Hello guys, i need help with this part of my script.
//for job restrict
if (BaseJob == Job_Ninja) {
mes "[Kagerou Shin]";
mes "Do you want to craft [Kagerou] Job ring?";
next;
mes "[Kagerou Shin]";
mes "Show me that you are worthy of my suit, Im going to test your strength by killing monster.";
mes "Are you strong enough to accept the mission?";
next;
switch(select("Yes!:No!")) {
case 1:
mes "[Kagerou Shin]";
mes "First thing you'll need to do is complete all requirements to craft my suit. After completing all requirements, come back to me and I'll give you my suit.";
next;
switch(select("Kagerou Job Ring:Missions:Cancel")) {
case 1:
// Item turn in
mes "[Kagerou Shin]";
mes "Im going to need these items:";
mes "^00CC001 Goddess Tear^000000";
mes "^00CC001 Valkyrie's Token^000000";
mes "^00CC001 Giant Bradium Fragment^000000";
mes "^00CC001000 Golds^000000.";
mes "and ^00CC00200 Credits^000000.";
next;
switch(select("I have all the materials you need.:I'll be right back!")) {
case 1:
if(countitem(7830) > 0 || countitem(7831) > 0 || countitem(6151) > 0 || countitem(969) > 999 || countitem(60003) > 199) {
next;
mes "[Kagerou Shin]";
mes "Congratulations! You have completed the missions.";
mes "You are a true Ninja, you're worth of this suit.";
delitem 7830,1; //goddess tear
delitem 7831,1; //valkyrie's token
delitem 6151,1; //giant bradium fragment
delitem 969,1000; //Gold
delitem 60003,200; //Credits
getitem 50506,1; //Kagerou suit
close;
}
else {
mes "[Kagerou Shin]";
mes "You have not yet completed all the requirements!";
close;
}
case 2:
mes "[Kagerou Shin]";
mes "I need all the requirements to craft the suit.";
close;
}
okay so the problem is, if the "if(countitem(7830) > 0 || countitem(7831) > 0 || countitem(6151) > 0 || countitem(969) > 999 || countitem(60003) > 199)" items are not complete, it will consume the other requirements and it show the "case 1: mes Congrats" message. Check picture below
Where in if the requirements are not complete, it should show this message mes "You have not yet completed all the requirements!";
but if for example, there is NO requirements at all, it works fine. See picture below
and if for example, the requirements are complete. it works fine too. Im only having problems, if there's a missing/not complete requirement.
thank you in advance.
Question
BabaVoss
Hello guys, i need help with this part of my script.
//for job restrict if (BaseJob == Job_Ninja) { mes "[Kagerou Shin]"; mes "Do you want to craft [Kagerou] Job ring?"; next; mes "[Kagerou Shin]"; mes "Show me that you are worthy of my suit, Im going to test your strength by killing monster."; mes "Are you strong enough to accept the mission?"; next; switch(select("Yes!:No!")) { case 1: mes "[Kagerou Shin]"; mes "First thing you'll need to do is complete all requirements to craft my suit. After completing all requirements, come back to me and I'll give you my suit."; next; switch(select("Kagerou Job Ring:Missions:Cancel")) { case 1: // Item turn in mes "[Kagerou Shin]"; mes "Im going to need these items:"; mes "^00CC001 Goddess Tear^000000"; mes "^00CC001 Valkyrie's Token^000000"; mes "^00CC001 Giant Bradium Fragment^000000"; mes "^00CC001000 Golds^000000."; mes "and ^00CC00200 Credits^000000."; next; switch(select("I have all the materials you need.:I'll be right back!")) { case 1: if(countitem(7830) > 0 || countitem(7831) > 0 || countitem(6151) > 0 || countitem(969) > 999 || countitem(60003) > 199) { next; mes "[Kagerou Shin]"; mes "Congratulations! You have completed the missions."; mes "You are a true Ninja, you're worth of this suit."; delitem 7830,1; //goddess tear delitem 7831,1; //valkyrie's token delitem 6151,1; //giant bradium fragment delitem 969,1000; //Gold delitem 60003,200; //Credits getitem 50506,1; //Kagerou suit close; } else { mes "[Kagerou Shin]"; mes "You have not yet completed all the requirements!"; close; } case 2: mes "[Kagerou Shin]"; mes "I need all the requirements to craft the suit."; close; }
okay so the problem is, if the "if(countitem(7830) > 0 || countitem(7831) > 0 || countitem(6151) > 0 || countitem(969) > 999 || countitem(60003) > 199)" items are not complete, it will consume the other requirements and it show the "case 1: mes Congrats" message. Check picture below
Where in if the requirements are not complete, it should show this message mes "You have not yet completed all the requirements!";
but if for example, there is NO requirements at all, it works fine. See picture below
and if for example, the requirements are complete. it works fine too. Im only having problems, if there's a missing/not complete requirement.
Edited by BabaVossthank you in advance.
Link 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.