Hi. I try to edit the rpsroulette by Acky 1.2. I came up with this but I cant make it work. Can someone point out to me on what did i do wrong? I try to put an announcer and add a jackpot prize and consilation prize. Here is the script that i did.
KILL:
specialeffect EF_SUI_EXPLOSION;
emotion e_omg;
mes "*^0000FFClick^000000* *^FF0000BANG^000000*";
mes "OWWW @#$%^!! THAT HURT LIKE HELL!!";
next;
set .@rand, rand(1,100);
if(.@rand < 2) { //Jackpot Prize 1% Win
Announce "Crazy Boris: " + strcharinfo(0) + " has won the Jackpot Prize of 1 POD! ",8;
getitem 7179,1;
}
else if(.@rand < 5) { // Conso Prize 5% win
mes "Congratulations you won consolation prize!!";
switch(rand(6)) {
case 1: getitem 7539,5; break;
case 2: getitem 677,1; break;
case 3: getitem 12103,1; break;
case 4: getitem 7539,2; break;
case 5: geitem 750,1; break; // 1x bapodoll
case 6: geitem 7008,1; break; // 1x Stiff Horn
}
}
else if(.@rand < 70) { // Trash
switch(rand(7)) {
case 1: geitem 984,10; break;
case 2: geitem 601,100; break; // 100x Fly Wings
case 3: geitem 603,8; break; // 8x Old Blue Box
case 4: geitem 4,617; break; // 4x Old Violet Box
case 5: geitem 7139,3; break; // 3x Gold
case 6: geitem 11502,20 break; // 20x Light Blue Potion
case 7: geitem 985,10;
}
}
else {
mes "too bad you didn't win anything!!";
}
LEAVE:
mes "Pansy.";
close;
}
Question
cross10hunter
Hi. I try to edit the rpsroulette by Acky 1.2. I came up with this but I cant make it work. Can someone point out to me on what did i do wrong? I try to put an announcer and add a jackpot prize and consilation prize. Here is the script that i did.
KILL: specialeffect EF_SUI_EXPLOSION; emotion e_omg; mes "*^0000FFClick^000000* *^FF0000BANG^000000*"; mes "OWWW @#$%^!! THAT HURT LIKE HELL!!"; next; set .@rand, rand(1,100); if(.@rand < 2) { //Jackpot Prize 1% Win Announce "Crazy Boris: " + strcharinfo(0) + " has won the Jackpot Prize of 1 POD! ",8; getitem 7179,1; } else if(.@rand < 5) { // Conso Prize 5% win mes "Congratulations you won consolation prize!!"; switch(rand(6)) { case 1: getitem 7539,5; break; case 2: getitem 677,1; break; case 3: getitem 12103,1; break; case 4: getitem 7539,2; break; case 5: geitem 750,1; break; // 1x bapodoll case 6: geitem 7008,1; break; // 1x Stiff Horn } } else if(.@rand < 70) { // Trash switch(rand(7)) { case 1: geitem 984,10; break; case 2: geitem 601,100; break; // 100x Fly Wings case 3: geitem 603,8; break; // 8x Old Blue Box case 4: geitem 4,617; break; // 4x Old Violet Box case 5: geitem 7139,3; break; // 3x Gold case 6: geitem 11502,20 break; // 20x Light Blue Potion case 7: geitem 985,10; } } else { mes "too bad you didn't win anything!!"; } LEAVE: mes "Pansy."; close; }
Link to comment
Share on other sites
22 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.