Jump to content
  • 0

Sad Girl Custom Quest


Question

Posted (edited)
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

9 answers to this question

Recommended Posts

Posted

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;
}
Posted (edited)

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
Posted

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'.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...