I use this script and I try to modify the zeny requested by war badges.
Thank you in advance
Quote
z_agit,16,108,6 script Claw Machine 563,{
.@npcName$ = "[" + strnpcinfo(1) + "]";
mes .@npcName$;
mes "Hello, for 75 War Badge you have a chance to obtain one of these items :";
for (.@i = 0; .@i < getarraysize(.items); .@i++) {
mes "^008000~ " + getitemname(.items[.@i]) + "^000000";
}
next;
switch(select("Gamble!:Leave")) {
case 1:
if (Zeny < 1000000) {
mes .@npcName$;
mes "I'm afraid you don't have enough to gamble.";
close;
}
Zeny -= 1000000;
.@rand = rand(1,100);
for (.@i = 0 ; .@i < getarraysize(.items) ; .@i++) {
if (.@rand <= .percents[.@i]) { getitem .items[.@i],1 ; dispbottom "Congrats! You won 1 "+getitemname(.items[.@i])+" !" ; .@won = 1; }
}
if (!.@won) dispbottom "You lost !";
mes .@npcName$;
mes "There you go!";
break;
case 2:
break;
}
Question
legtoleg
Hello,
I use this script and I try to modify the zeny requested by war badges.
Thank you in advance
Link to comment
Share on other sites
2 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.