Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
EO+ Quest Guide
Well here is what you have all been waiting for... my 1000th post (just kidding).
Addison and I have been working together to add the EO+ quest system to EOSERV. For those of you that are not familiar with this, it is basically a script that is similar to the one used by Vult-r in Endless Online. You will be able to make quests, wise man, stories, or maybe you just need
an online friend to talk to that displays a set of messages. In any case I have created a guide in very simple html so that you may save it to your computer(recommended) and use the anchor links to direct you to different sections on that page. You may view this page here: http://www.endless-edge.com/eoplus.htm
As Addison and I have discovered, common mistakes can occur and make your quest not work out the way you want it to, or maybe not at all. If you have any trouble with quest scripts, please direct them to this thread only. For bugs or questions regarding the installation of quests to EOSERV,
please use Addison's quest release post.
Best of Luck to all of you. Happy Questing :P
14 years, 40 weeks ago
|
Nirion

Joined: 28th Jul 2009
Posts: 33
Re: EO+ Quest Guide
First I want to say thanks to both you and Addison on creating the quest system, you guys did an awesome job.
The only bug I've noticed after making a few quests is that if you make a make an option to warp a character when you click on it it crashes the whole server when it warps the character...Heres an example of a quest I have that crashes when I click on warp.
State Reward
{
desc "Go back to get your reward"
action AddNpcText(4, "You have finished the quest, choose a reward");
action AddNpcInput(4, 2, "Exp");
action AddNpcInput(4, 3, "Item");
action AddNpcInput(4, 4, "Warp");
rule InputNpc(2) goto Exp
rule InputNpc(3) goto Item
rule InputNpc(4) goto Warp
}
State Exp
{
action GiveExp(1000);
action End();
}
State Item
{
action GiveItem(541, 10);
action End();
}
State Warp
{
action SetCoord(3, 50, 50);
}
#edit sorry I meant to post the bug in Addison's thread
14 years, 40 weeks ago
|
Addison

Joined: 24th Mar 2009
Posts: 1380
Re: EO+ Quest Guide
Did you ever think that map 3 does not have the size 50, 50?
:P
I guess I can add a protection system for it.
---
http://www.addipop.com
14 years, 40 weeks ago
|
Nirion

Joined: 28th Jul 2009
Posts: 33
Re: EO+ Quest Guide
ah sorry I forgot to mention that its on a custom map but either way it still crashes regardless of the size for me :/
14 years, 40 weeks ago
|
AustinB

Joined: 9th Jul 2010
Posts: 1400
Re: EO+ Quest Guide
I get that on my first Quest. I added a warp setting and it crashes the whole Fcking server.
---
Create your own destiny, don't let someone else do it for you.
14 years, 40 weeks ago
|
Addison

Joined: 24th Mar 2009
Posts: 1380
Re: EO+ Quest Guide
Yes, I am working on it. It's really odd, but give me 30minutes or so.
---
http://www.addipop.com
14 years, 40 weeks ago
|
AustinB

Joined: 9th Jul 2010
Posts: 1400
Re: EO+ Quest Guide
Is there a action/statement that allows you to repeat a quest? I'm going to use that for Wiseman...
---
Create your own destiny, don't let someone else do it for you.
14 years, 40 weeks ago
|
Addison

Joined: 24th Mar 2009
Posts: 1380
Re: EO+ Quest Guide
How about Reset or SetState?
Anyways, fixed it. I will update my post guys. You only have to update your character.cpp
---
http://www.addipop.com
14 years, 40 weeks ago
|
Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
Re: EO+ Quest Guide
I will be updating the guide soon with a new troubleshooting section as I discover mistakes that other people make and correct them along the way.
Here is a new suggestion for quest making that I will add to this guide:
When making quests, you should set an action Reset(); point up so that you may restart the quest for the purpose of debugging. When you are satisfied with your quest you should decide on making that Reset() an End() if the quest should be terminal. The reason I say this is because I was just
asked to find a mistake in a script that wasn't there. The problem was the quest info was stored at the reward point of a state and obviously put the quest into a "limbo" state making the associated quest npc seemingly broken. I figured I would share this as someone else along the way may do the
same thing. Keep the feedback coming. It will help improve the EO+ guide for everyone's benefit. :P
14 years, 40 weeks ago
|
Re: EO+ Quest Guide
Apollo, I know how the quest system works pretty well, so if you want you can direct people to me when they can't understand your guide. xD
I noticed WHY your quest didn't work.. simply because you didn't end it after the warp. Remember to ALWAYS use action End(); or action Reset(); after you're done the quest, and I'd say debug it a few times as well, it helps a lot. When I wrote my first quest, I made it make me
kill 3 piggies in newbland, then gave me 10k exp, made it warp me to aeven, kill 3 sheep, then warp me to hell and walk to apo's room, in front of the books, then gave me 10k exp again, then I made it make me kill 10 gnomes and rewarded myself with a lens of truth, everything worked. I forgot
to put action End(); and it fucked up ;P It's an important thing to do, at the end of a quest add: action Reset(); <-- for Repeatable Quests. and: action End(); <-- for Terminal Quests.
State Reward
{
desc "Go back to get your reward"
action AddNpcText(4, "You have finished the quest, choose a reward");
action AddNpcInput(4, 2, "Exp");
action AddNpcInput(4, 3, "Item");
action AddNpcInput(4, 4, "Warp");
rule InputNpc(2) goto Exp
rule InputNpc(3) goto Item
rule InputNpc(4) goto Warp
}
State Exp
{
action GiveExp(1000);
action End();
}
State Item
{
action GiveItem(541, 10);
action End();
}
State Warp
{
action SetCoord(3, 50, 50);
action End();
}
14 years, 39 weeks ago
|
Miksu

Joined: 4th Jun 2009
Posts: 1457
Re: EO+ Quest Guide
http://pastebin.com/926BfDB2
Okay, my quest does works until I got the items item ID: 3 x 10, it won't go forward of: State GetWorms.
What is wrong with my quest?
I will fix my english on that quest later on and make it more interesting, I just would like to get it work first...
---
Eoserv classes: Forum ghost, test player, ex-server owner, TOP 50, mapper & an
oldbie
14 years, 39 weeks ago
|
AustinB

Joined: 9th Jul 2010
Posts: 1400
Re: EO+ Quest Guide
sephiroth posted: (2nd Aug 2010 06:03 pm)
http://pastebin.com/926BfDB2
Okay, my quest does works until I got the items item ID: 3 x 10, it won't go forward of: State GetWorms.
What is wrong with my quest?
I will fix my english on that quest later on and make it more interesting, I just would like to get it work first...
Hmm i just took a quick look at it, but what i saw is, on "State GetWorms", the rule says rule GotItems(3,10) goto GiveWorms
I don't know what this will do, but try this
rule GotItems(3, 10) goto GiveWorms
You forgot a space. As i quote, "I DO NOT KNOW IF THIS WILL FIX IT"
---
Create your own destiny, don't let someone else do it for you.
14 years, 39 weeks ago
|
Miksu

Joined: 4th Jun 2009
Posts: 1457
Re: EO+ Quest Guide
AustinB posted: (2nd Aug 2010 06:11 pm)
sephiroth posted: (2nd Aug 2010 06:03 pm)
http://pastebin.com/926BfDB2
Okay, my quest does works until I got the items item ID: 3 x 10, it won't go forward of: State GetWorms.
What is wrong with my quest?
I will fix my english on that quest later on and make it more interesting, I just would like to get it work first...
Hmm i just took a quick look at it, but what i saw is, on "State GetWorms", the rule says rule GotItems(3,10) goto GiveWorms
I don't know what this will do, but try this
rule GotItems(3, 10) goto GiveWorms
You forgot a space. As i quote, "I DO NOT KNOW IF THIS WILL FIX IT"
Didn't help, still it doesn't go forward of State GetWorms :(
---
Eoserv classes: Forum ghost, test player, ex-server owner, TOP 50, mapper & an
oldbie
14 years, 39 weeks ago
|
Addison

Joined: 24th Mar 2009
Posts: 1380
Re: EO+ Quest Guide
You forgot your \ character for when you use ' or " in parantheses. Please read the guide Apollo made.
---
http://www.addipop.com
14 years, 39 weeks ago
|
Nirion

Joined: 28th Jul 2009
Posts: 33
Re: EO+ Quest Guide
Septharoth posted: (2nd Aug 2010 04:28 pm)
Apollo, I know how the quest system works pretty well, so if you want you can direct people to me when they can't understand your guide. xD
I noticed WHY your quest didn't work.. simply because you didn't end it after the warp. Remember to ALWAYS use action End(); or action Reset(); after you're done the quest, and I'd say debug it a few times as well, it helps a lot. When I wrote my first quest, I made it makemekill3
piggies in newbland, then gave me 10k exp, made it warp me to aeven, kill 3 sheep, then warp me to hell and walk to apo's room, in front of the books, then gave me 10k exp again, then I made it make me kill 10 gnomes and rewarded myself with a lens of truth, everything worked. Iforgottoput
action End(); and it fucked up ;P It's an important thing to do, at the end of a quest add: action Reset(); <-- for Repeatable Quests. and: action End(); <-- for Terminal Quests.
State Reward
{
desc "Go back to get your reward"
action AddNpcText(4, "You have finished the quest, choose a reward");
action AddNpcInput(4, 2, "Exp");
action AddNpcInput(4, 3, "Item");
action AddNpcInput(4, 4, "Warp");
rule InputNpc(2) goto Exp
rule InputNpc(3) goto Item
rule InputNpc(4) goto Warp
}
State Exp
{
action GiveExp(1000);
action End();
}
State Item
{
action GiveItem(541, 10);
action End();
}
State Warp
{
action SetCoord(3, 50, 50);
action End();
}
No my quest worked, thats just an example of what mine looked like ...There was a bug with warping but Addison fixed it :)
14 years, 39 weeks ago
| | | | | | | | | | | | | | | |