EOSERV Forum > EOSERV > having a problem with a quest
Page: << 1 >>
having a problem with a quest
Author Message
Post #202474 having a problem with a quest

Its been awhile sense i used this stuff but tried to make a quest and it kinda failed got 2 errors,  

[ERR] Could not load quest: ./data/quests/00013.eqf

[ERR] Syntax Error: Unterminated string on previous line (Line 17) 


Main 

{

           Questname                      "Training" 

           Version                        1.0 

State Begin

{   

           desc        "Talk to Jessica" 

           action      AddNpcText (13,   " Hello My name is Jessica and i will help teach you how to walk, talk, and attack."); 


           Rule        TalkedToNpc (13) goto Killcrows 

State Killcrows 

           Desc        "kill 5 Rats" 

           action      AddNpcText(13, to walk use your arrow keys to talk. Click on the chat box below your charater. To attack approach an enemy and hold the ctrl key. Try to kill 10 crows then come to me for a reward."); 

  

           Rule        Killednpcs(1, 10)  goto TalkToJessica   

State TalkToJessica

           Desc       "Talk To Jessica" 

           Action     AddNpcText(13,  " Now your getting it good job ill reward you with a few things to begin your journey."); 


           Rule       TalkedToNpc(13)   goto Reward  

}                                                                                                                                                                                                                                                                           

State Reward 

           Action     GiveExp(100); 

           Action     GiveItem(1, 100); 

           Action     End(); 

idk what is wrong with it would like some help please.

7 years, 10 weeks ago
Post #202475 Re: having a problem with a quest

Hello,

You have a syntax error on line #17. Which I assume is this line:

action      AddNpcText(13, to walk use your arrow keys to talk. Click on the chat box below your charater. To attack approach an enemy and hold the ctrl key. Try to kill 10 crows then come to me for a reward."); 

Add a beginning quotation mark ( " ) on your string.

So it should look like this:

action      AddNpcText(13, "to walk use your arrow keys to talk. Click on the chat box below your charater. To attack approach an enemy and hold the ctrl key. Try to kill 10 crows then come to me for a reward."); 

---
Just your friendly neighborhood Programmer-Man!
7 years, 10 weeks ago
Post #202476 Re: having a problem with a quest

Thanks for the help that fixed it didn't think it was that simple but thank you. 

7 years, 10 weeks ago
Page: << 1 >>

EOSERV Forum > EOSERV > having a problem with a quest