else {
mes "[test npc]";
mes "What a lovely choice my dear!";
mes "I need the following Items:";
mes "- 20 Torn Magic Book"; //7117
mes "- 100 Event Ticket"; //7711
mes "- 5 Yggdrasil Berry"; //607
mes "- 5 Blue Potion"; //505
cutin "",255;
close;
}
Case2:
if (countitem(7117) >= 20 && countitem(7711) >= 100 && countitem(607) >= 5 && countitem(505) >= 5) {
mes "[test npc]";
mes "Here you go!";
delitem 7117,20;
delitem 7711,100;
delitem 607,5;
delitem 505,5;
getitem 5208,1;
cutin "",255;
close;
}
else {
mes "[test npc]";
mes "Armor 2 requirements";
cutin "",255;
close;
}
}
Question
Sunset
In the following script even if i choose case 2, i get the msg'es from case 1, what should i change?
Thanks in advice
Armors: //Armors
next;
if(select("Armor1:Armor2")){
Case1:
if (countitem(7117) >= 20 && countitem(7711) >= 100 && countitem(607) >= 5 && countitem(505) >= 5) {
mes "[Celine]";
mes "Here you go!";
delitem 7117,20;
delitem 7711,100;
delitem 607,5;
delitem 505,5;
getitem 5208,1;
cutin "",255;
close;
}
else {
mes "[test npc]";
mes "What a lovely choice my dear!";
mes "I need the following Items:";
mes "- 20 Torn Magic Book"; //7117
mes "- 100 Event Ticket"; //7711
mes "- 5 Yggdrasil Berry"; //607
mes "- 5 Blue Potion"; //505
cutin "",255;
close;
}
Case2:
if (countitem(7117) >= 20 && countitem(7711) >= 100 && countitem(607) >= 5 && countitem(505) >= 5) {
mes "[test npc]";
mes "Here you go!";
delitem 7117,20;
delitem 7711,100;
delitem 607,5;
delitem 505,5;
getitem 5208,1;
cutin "",255;
close;
}
else {
mes "[test npc]";
mes "Armor 2 requirements";
cutin "",255;
close;
}
}
11 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.