Hi guys, currently i'm creating a quest for my server,
and it seems that i'm facing a small issue at the moment as i'm not really that clear of certain commands of questing.
I've read up on the script commands on the doc in the trunk, however it still doesn't fix this problem for it.
Currently, i've added up an example quest ID 80000 on my db and displayquestid.
it works without any problem. Alt+U shows everything i need it to show,
however, let's say for this example script that i've taken from basic scripting and editing just for fun
setquest 80000;
mes "[^FF0000Mysterious Old Man^000000]";
mes "H...H......E...L..P M.......e.........";
mes "*COUGH COUGH COUGH*";
mes " ";
mes " ";
mes "^FF0000Beware What you choose....^000000";
next;
menu "Ignore and leave him away",-,"Help the dying man out.",help;
mes "^FF0000You've left him there to slowly rot....^000000";
atcommand "@nuke " + strcharinfo(0);
close;
help:
mes "You've decided to help the mysterious old man out.";
next;
mes "[^FF0000Mysterious Old Man^000000]";
mes "urgh..... what..? where am i?... ouch ouch ouch! *Screams in pain";
emotion e_omg;
next;
mes "[^FF0000Mysterious Old Man^000000]";
mes "Did.. you by any chance help me?";
next;
menu "Yeah, it was me, My name is...",L_zeny,"Nope it wasn't me! It was a ghost!",ghost;
close;
L_Zeny:
mes "[^FF0000Mysterious Old Man^000000]";
mes "Wait! Dont speak! I know you....";
mes "Your voice.. Your face... it sounds like... you're...";
next;
mes "[^FF0000Mysterious Old Man^000000]";
mes strcharinfo(0) + ", Are you not?";
if (Zeny > 10000) goto toomuch;
mes "You have 10,000 zeny or less, I see.";
set Zeny,Zeny+10000;
next;
mes "Hope you feel better!";
close;
Ghost:
mes "[^FF0000Mysterious Old Man^000000]";
mes "OMG LOL WTF";
emotion e_omg;
atcommand "@monster thanatos";
close;
toomuch:
mes "You have over 10,000 zeny, you must feel really good about yourself!";
close;
completequest 80000;
}
current issue is, my map server keeps saying my character has the quest added in already
[Error]: quest_add: Character 150000 already has quest 80000.
and i cant complete the quest 80000.
Another thing i wanna add would be not repeating the quest if it's possible
Question
ToiletMaster
Hi guys, currently i'm creating a quest for my server,
and it seems that i'm facing a small issue at the moment as i'm not really that clear of certain commands of questing.
I've read up on the script commands on the doc in the trunk, however it still doesn't fix this problem for it.
Currently, i've added up an example quest ID 80000 on my db and displayquestid.
it works without any problem. Alt+U shows everything i need it to show,
however, let's say for this example script that i've taken from basic scripting and editing just for fun
current issue is, my map server keeps saying my character has the quest added in already
[Error]: quest_add: Character 150000 already has quest 80000.
and i cant complete the quest 80000.
Another thing i wanna add would be not repeating the quest if it's possible
Thanks!
Regards,
ToiletMaster
Edited by ToiletMasterLink to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.