What I'm trying to do is to set-up a 2 npc quest that can only be done 1 per account. The problem is that I don't really know exactly where to put those codes so that it will run smoothly. After the player has done the quest the only message he/she will be seeing is "You already claimed your reward!". The 2nd quest is similar to this one.
Codes:
if( #account == 1) {
mes "You already claimed your reward!";
emotion e_bzz;
close;}
and
set #account, 1;
The quest code:
prontera,150,150,5 script Akame 909,{
if( #account == 1) {
mes "You already claimed your reward!";
emotion e_bzz;
close;}
if(countitem(983) && Zeny > 49999)
{
mes "[ Akame ]";
mes "1 Black Dyestuff";
mes "500000 zeny";
next;
mes "[ Akame ]";
mes "Give it to me";
next;
switch( select( "Let her have the items.", "Don't give her the items." ) )
{
case 1:
mes "[ Akame ]";
mes "Oh, thank you so much!";
mes "I've always wanted to make";
mes "this hat and try it on.";
next;
mes "[ Akame ]";
mes "^FF0000FOOLS!!!^000000";
mes "Do you really think i will give the that item?";
delitem 983,1;
set Zeny,Zeny - 50000;
getitem 5011,1;
emotion e_thx;
close;
case 2:
mes "[ Akame ]";
mes "Im sorry that is what you deserve for not giving me the items I requested.";
percentheal -99,-99;
emotion e_bzz;
close;
}
mes "[ Akame ]";
mes "Hey "+strcharinfo(0)+"!!";
mes "Glad you found me.";
mes "I thought no one would ever find me here on this place.";
next;
mes "[ Akame ]";
mes "In exchange for finding me.. I will tell you a secret";
next;
mes "[ Akame ]";
mes "But first...";
mes "Can you keep a secret?";
next;
switch( select( "Certainly", "Maybe" ) )
{
case 1:
mes "[ Akame ]";
mes "Oh! It seems like you can keep a secret afterall.";
next;
mes "[ Akame ]";
mes "I could make a god item for you.";
mes "The best god item there is on this world.";
next;
mes "[ Akame ]";
mes "It will be tough but worth it";
mes "so without further to do...";
next;
mes "[ Akame ]";
mes "Give me the items I need in exchange for a ticket.";
mes "You will need the ticket later on.";
next;
mes "[ Akame ]";
mes "READY?";
next;
mes "[ Akame ]";
mes "Gooooo!";
next;
mes "[ Akame ]";
mes "..............";
next;
mes "[ Akame ]";
mes "Sorry forgot I havent told you the items I need.";
next;
mes "[ Akame ]";
mes "1 Black Dyestuff";
mes "50000 zeny";
next;
mes "[ Akame ]";
mes "Thats it really.";
mes "Goodluck!!!";
close;
case 2:
mes "[ Akame ]";
mes "Not 100% sure?";
mes "Too bad.";
close;
}
}
}
Question
BlackSnow
What I'm trying to do is to set-up a 2 npc quest that can only be done 1 per account. The problem is that I don't really know exactly where to put those codes so that it will run smoothly. After the player has done the quest the only message he/she will be seeing is "You already claimed your reward!". The 2nd quest is similar to this one.
Codes:
and
The quest code:
Edited by BlackSnowLink to comment
Share on other sites
4 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.