Jump to content
  • 0

Sad Girl Custom Quest Part II


kurosuki

Question


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



// 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;
}
}
close;
}



 

[The Quest dont notice my item and dont complete quest.]

 

No error shown in Map_Serv.dat

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

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

I'm unable to help with the rest unfortunately, but from a quick view of your script, you have this-

mes "["+strnpcinfo(1)+"]";
mes "Oh my god, you found it!!";
delitem 7865,1;
next;
completequest 20500;
getexp 20,15;
close;

And I highly encourage you to change it to this

mes "["+strnpcinfo(1)+"]";
mes "Oh my god, you found it!!";
next;
delitem 7865,1;
completequest 20500;
getexp 20,15;
close;
}

All I've done is moved the delitem7685,1,; to after the 'next.' If you leave the delitem before the 'next,' players could close the dialogue, lose the item, but not finish the quest which could lead to a number of other issues.

Regards,
~Azura Skyy

  • Upvote 1
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:  

why do you duplicate threads?

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:  

why do you duplicate threads?

i did not Duplicate threads i'm following the Forum Rules.

 

Scripting Support Rules

  • This section is - like all sections - affected by the general rAthena Board Rules.
  • You may post into this area to demand help concerning scripting code. Scripting code is the content of a file you will load to your server using the "npc: <path>" syntax.
  • You may only post into this area if you are willing to either write new or make changes to scripting code yourself. You can not expect other members to give you full working scripting code - you can be happy though if that happens nevertheless. That said, you might only receive a general advice how to solve your problem without any concrete scripting code. If you have no idea about scripting and want someone to write new or change scripting code for your, post it into the Script Requests.
  • For each new problem, you will have to open a new topic.
  • When you open a new topic, you will have to chose an informative topic title.
  • You have to clearly and elaborately describe your problem.
  • If you demand help for existing scripting code, you have to provide this scripting code in your topic.
  • If your map-server displays error messages concerning the problem you have, you will have to provide these error messages in your topic.
  • You will have to use the code bbcode tag whenever you would like to post either scripting code or map-server error message

rule nr4. this is a new problem in my script. Emistry helped me Show the npc and fix my error showing in Map_server.dat

Script is fixed thanks everyone who helped.

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:  

so, you're saying this is not yours?

http://rathena.org/board/topic/99004-sad-girl-custom-quest/

 

 

nvm

Edited by Winz
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...