- script Quest_Quest -1,{
OnInit:
setarray $QReq[0],501,502,503,504,505,506,507,508,509,510; // Input Quest Requirements here
}
city,84,317,5 script DudeMan 665,{
//I always like to index quest variables at the top
if(lemon == 1){goto QUESTNAME1;}
if(lemon == 2){goto QUESTNAME2;}
mes "[DudeMan]";
mes "So... you will blahblah, go and punch Lemon.";
set lemon, 1;
close;
QUESTNAME1:
mes "[DudeMan]";
mes "Did you do it?";
mes "Come on, i know you didn't.";
close;
QUESTNAME2:
mes "[DudeMan]";
mes "Hehe, you showed that idiot.";
next;
mes "[DudeMan]";
mes "What? Did you expect a reward? You went and punched a guy for no reason, fuck off!";
close;
}//End of DudeMan
city,84,317,5 script Lemon 665,{
if(lemon == 1){goto QUESTNAME1;}
if(lemon == 2){goto QUESTNAME2;}
mes "[Lemon]";
mes "This script is UNNACEPTABLEEEEEE!.";
close;
QUESTNAME1:
set .@req,getarraysize($QReq);
for ( .@i = 0; .@i < .@req; .i++ ) {
if (countitem(.@req[.@i])<1) {
dispbottom "Its seems there is something wrong! I cant punch the lemon!";
close;
}
dispbottom "You punch him really hard in the belly.";
sleep2 2000;
emotion e_sob;
mes "[Lemon]";
mes "w... why?";
sleep2 3000;
emotion e_sob;
mes "That hurts!";
set lemon, 2;
close;
QUESTNAME2:
emotion e_sob;
mes "[Lemon]";
mes "Please don't hurt me!";
close;
}//End of Lemon
try this one (above), if not working just say so.
and the easy way to understand(below):
city,84,317,5 script DudeMan 665,{
//I always like to index quest variables at the top
if(lemon == 1){goto QUESTNAME1;}
if(lemon == 2){goto QUESTNAME2;}
mes "[DudeMan]";
mes "So... you will blahblah, go and punch Lemon.";
set lemon, 1;
close;
QUESTNAME1:
mes "[DudeMan]";
mes "Did you do it?";
mes "Come on, i know you didn't.";
close;
QUESTNAME2:
mes "[DudeMan]";
mes "Hehe, you showed that idiot.";
next;
mes "[DudeMan]";
mes "What? Did you expect a reward? You went and punched a guy for no reason, fuck off!";
close;
}//End of DudeMan
city,84,317,5 script Lemon 665,{
if(lemon == 1){goto QUESTNAME1;}
if(lemon == 2){goto QUESTNAME2;}
mes "[Lemon]";
mes "This script is UNNACEPTABLEEEEEE!.";
close;
QUESTNAME1:
if (countitem(501)<1 && countitem(502)<1 && countitem(503)<1 ) {
mes "You need to get a set of "+getitemname(501)+","+getitemname(502)+","+getitemname(503)+" to punch the lemon!";
close;
}
dispbottom "You punch him really hard in the belly.";
sleep2 2000;
emotion e_sob;
mes "[Lemon]";
mes "w... why?";
sleep2 3000;
emotion e_sob;
mes "That hurts!";
set lemon, 2;
close;
QUESTNAME2:
emotion e_sob;
mes "[Lemon]";
mes "Please don't hurt me!";
close;
}//End of Lemon
QUESTNAME1:
if (countitem(501)<1 && countitem(502)<1 && countitem(503)<1 ) {
mes "You need to get a set of "+getitemname(501)+","+getitemname(502)+","+getitemname(503)+" to be able to punch the lemon!
close;
}
change item id in the upper box ^^^^ 501,502,503