EOSERV Wiki > Page: How to fix your quest: By Ananas > History > View Revision

View Revision: How to fix your quest: By Ananas

Hey there guys and girls,

I figured I would make a tutorial on how to fix your own quests!

You of course start by writing a quest. (Step 1)

You then try and run your server, but you figured out that your quest won't run! (O my god!)

You start to panic and you go to EOSERV.net making a new topic on how to fix your quest. (Wrong!)

You keep calm and you handle the next few listed steps. (Right!)

Step 1. Check if you opened and closed your states the right way!

State Begin
{
Correct!
}

State Begin
}
Wrong!
{

Once every state is opened and closed the right way, we start to go and look inside of the states!

Of course you can start a state with desc "Your shit here".

Once done that you add some actions of course, which you've already done.

The AddNpcText is the action that gets uses alot. It handles the NPC you're talking too.

action AddNpcText(1, "Hello!");

Be sure to have it as the action above!

If not, check EVERY state on if it has the right ' " ' and if it has the right ';' plus the comma of course.

Do this for every state and every action.

Then! You need to check your rules, and if they go to the right states, check for Capitals, or else your state won't go to the next one.

rule TalkedToNpc(1) goto NextState
}

NextState
{

^ Correct!

rule TalkedToNpc(1) goto Nextstate
}

NextState
{

^ Wrong!

If you done this, and you really wonder why the fuck your quest isn't working, you give up and go to Eoserv.net begging others to help you with your quest!

Have a nice day.

- Ananas

Extra Notes By Alex:

In summary, make sure you open and close all your curly brackets. And that each action ends with a semi-colon. rules should not end in semi-colons. Then make sure your actions are real actions and your rules are real rules. actions will not work properly as rules and vice versa.

In the newest eoservs, the problems found when loading quests are logged to your error log if enabled. Remember to always check your error log after adding new quests!

see this for more information: http://www.endless-edge.com/eoplus.htm

EOSERV Wiki > Page: How to fix your quest: By Ananas > History > View Revision