Jump to content
  • 0

simple hunting quest error?


fight_the_fallen

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  04/22/12
  • Last Seen:  

just practicing scripting and i cant seem to get this one right :P

anyone want to help? haha

the error is:

[Error]: Loading NPC file: npc/custom/FirstHunt.txt
script error on npc/custom/FirstHunt.txt line 0
Unexpected end of string.
 } ose;re you done yet?";,HUNTING) == 0){ou've finished.";

The Script:

new_1-1,139,92,2 script Novice Hunter 118,{
if(poring_H == 0){
mes "[Gyro]";
mes "HEY!";
mes "Do you think you can give me a little help here?";
mes "I can't seem to kill this ^F0FF12Poring^000000,";
mes "can you do it for me?
next;
mes "[Gyro]";
mes "I assure you,";
mes "you will be properly rewarded.";
switch(select(Sure!:Nah)){
case 1:
mes "[Gyro]";
mes "OH! Thank you so much!";
mes "Just come back to me when you've finished.";
set poring_H,1;
setquest 60400;
close;
case 2:
mes "[Gyro]";
mes "Awwww...";
mes "okayy.";
close;
}
}
else if(poring_H == 1){
if(checkquest(60400,HUNTING) == 2){
mes "[Gyro]";
mes "Thank you so much!";
mes "Here is your reward.";
getitem 4049,1;
set poring_H,0;
close;
}
else if(checkquest(60400,HUNTING) == 0){
mes "[Gyro]";
mes "Are you done yet?";
close;
}
}
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Unexpected end of string.

--> You've ended a string without closing it with quotes.

// Missing quotes.
mes "can you do it for me?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  04/22/12
  • Last Seen:  

OHHH!!! thank you hahaha

now im getting this error :o

[Error]: Loading NPC file: npc/custom/FirstHunt.txt
script error on npc/custom/FirstHunt.txt line 1
parse_callfunc: expected ')' to close argument list
 } ose;re you done yet?";,HUNTING) == 0){ou've finished.";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

// Missing quotes.
switch(select("Sure!:Nah")){

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...