Jump to content
  • 0

Sad Girl Custom Quest


kurosuki

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

I cant find the problem here.





=====================================================
// Sad Girl
new_1-1,124,129,6 script Sad Girl 552,{ //4_F_STARFISHGIRL
if (checkquest(20500) == -1) { //You don't have this quest.
mes "Leave me alone!!...";
next;
mes "[ " + strnpcinfo(1) + " ]";
mes "I said leave me alone!!...";
next;
mes "^009900[ " + strcharinfo(0) + " ]^000000";
mes "Why are you crying?";
mes "Is there something i can do.";
next;
mes "[ " + strnpcinfo(1) + " ]";
mes "This dog stole Gold Pouch !";
mes "He digged it beneath the ground";
mes "And i cant find it anymore";
next;
mes "[ " + strnpcinfo(1) + " ]";
mes "Do you want to help me search?";
if (select("Help Search:Dont help") != 1) {
mes "[ " + strnpcinfo(1) + " ]";
mes "You Selfish Human Being!!";
} else {
mes "[ " + strnpcinfo(1) + " ]";
mes "Thank you so much";
next;

setquest 20500;

mes "[ " + strnpcinfo(1) + " ]";
mes "There is a dighole around.";
close2;
end;
}
if (checkquest(20500) == 2) { //Quest is completed.
mes "Thanks for helping";
close2;
end;
}
if (checkquest(20000) == 0 || checkquest(20000) == 1) { //Active.
if (countitem(7865) > 0) {
mes "[ " + strnpcinfo(1) + " ]";
mes "Oh my god, you found it!!";
delitem 7865,1;
next;
completequest 20500;
getexp 20,15;
close;
end;
}
// Dighole
new_1-1,122,125,6 script Dighole 557,{ //4_SOIL
if( !GiveQuestItem1 ){
set GiveQuestItem1,1;
mes "[ " + strnpcinfo(1) + " ]";
mes "You found the Gold Pouch";
getitem 7865,1;
} else {
mes "Just and empty dighole";
close;
end;
}
// Dog who digged in Gold Pouch
new_1-1,124,129,6 script Playfull Dog 81,{ //4_DOG01
mes "[ " + strnpcinfo(1) + " ]";
mes "Bark !!";
close;
end;
}
=====================================================


i got this in mapserv.sql.bat



[Error]: Missing 4 right curlys at file 'npc/custom/new/SQ_Sad_Girl.txt', line '83'.

post-29838-0-27232200-1415382379_thumb.png

Edited by Emistry
use codebox
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 

NPC headers require tabs, not spaces.

Read: Basic_Scripting#Structure

Solution in not yet fixed.

 

because you didnt follow the instruction given or read it carefully...or maybe you didnt even read it ?

 

anyway

http://pastebin.com/raw.php?i=Vh7RmSqv

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

Should be fixed:

 

// Sad Girl
new_1-1,124,129,6 script Sad Girl 552,{ //4_F_STARFISHGIRL
if (checkquest(20500) == -1) { //You don't have this quest.
mes "Leave me alone!!...";
next;
mes "[ " + strnpcinfo(1) + " ]";
mes "I said leave me alone!!...";
next;
mes "^009900[ " + strcharinfo(0) + " ]^000000";
mes "Why are you crying?";
mes "Is there something i can do.";
next;
mes "[ " + strnpcinfo(1) + " ]";
mes "This dog stole Gold Pouch !";
mes "He digged it beneath the ground";
mes "And i cant find it anymore";
next;
mes "[ " + strnpcinfo(1) + " ]";
mes "Do you want to help me search?";
if (select("Help Search:Dont help") != 1) {
mes "[ " + strnpcinfo(1) + " ]";
mes "You Selfish Human Being!!";
} else {
mes "[ " + strnpcinfo(1) + " ]";
mes "Thank you so much";
 
setquest 20500;
 
mes "[ " + strnpcinfo(1) + " ]";
mes "There is a dighole around.";
close2;
end;
}
}
if (checkquest(20500) == 2) { //Quest is completed.
mes "Thanks for helping";
close2;
end;
}
if (checkquest(20000) == 0 || checkquest(20000) == 1) { //Active.
if (countitem(7865) > 0) {
mes "[ " + strnpcinfo(1) + " ]";
mes "Oh my god, you found it!!";
delitem 7865,1;
next;
completequest 20500;
getexp 20,15;
close;
}
}
// Dighole
new_1-1,122,125,6 script Dighole 557,{ //4_SOIL
if( !GiveQuestItem1 ){
set GiveQuestItem1,1;
mes "[ " + strnpcinfo(1) + " ]";
mes "You found the Gold Pouch";
getitem 7865,1;
} else {
mes "Just and empty dighole";
close;
end;
}
}
// Dog who digged in Gold Pouch
new_1-1,124,129,6 script Playfull Dog 81,{ //4_DOG01
mes "[ " + strnpcinfo(1) + " ]";
mes "Bark !!";
close;
end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

Still got an error 

post-29838-0-45816900-1415384421_thumb.png

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:  

NPC headers require tabs, not spaces.

Read: Basic_Scripting#Structure

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

NPC headers require tabs, not spaces.

Read: Basic_Scripting#Structure

Solution in not yet fixed.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

 

 

NPC headers require tabs, not spaces.

Read: Basic_Scripting#Structure

Solution in not yet fixed.

 

because you didnt follow the instruction given or read it carefully...or maybe you didnt even read it ?

 

anyway

http://pastebin.com/raw.php?i=Vh7RmSqv

 

Thank you it works. but it seems she dont complete the quest when i have the item in my bag :/?? any tips?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

1. I'd like to know, who made this quest? (ah forget about the question, I don't mind whoever made it)

2. Why do I see 2 quest numbers there? 20500 and 20000 ? please be consistent.

3. what does this suppose to mean?

 

if (checkquest(20000) == 0 || checkquest(20000) == 1) { //Active.
If the player doesn't have the quest or the player has the quest?

probably you want to make it this:

 

if(checkquest(20000) == 1)
4. why do you have so many this thing?

close;
end;
and

close2;
end;
 

use close if you want to end a script that has mes

use close2 if you want to execute something else after closing the box (e.g: deleting cutin, warp players)

e.g:

mes "Okay, I'll warp you now";
close2;
warp prontera,x,y;
cutin "",255;
end;
and use end; if the script has no mes. e.g:

protera,150,164,3    script    Test    909,{
    dispbottom "Your cashpoint is: "+#CASHPOINTS;
    end;
}
Edited by Winz
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

script is fixed thanks everyone who helped !!

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:  

3. what does this suppose to mean?

 

if (checkquest(20000) == 0 || checkquest(20000) == 1) { //Active.
That's actually correct -- see the documentation. Quests can either have an 'active' or 'inactive' state, but it's started regardless. A newer (and less confusing) command is 'isbegin_quest'.
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...