//===== eAthena Script =======================================
//= Jack en Poy
//============================================================
//===== By: ==================================================
//= imp18(Admin of RelyRO)
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= you need to win 5 straight times.
//= if you get draw it counts as lost.
//= just pick your bet if it is Rock,Paper or Scissors.
//= Bored Players will use this/ if you win this game you will
//= gain 20 Mithril Coins.
//============================================================.
prontera,154,175,4 script Pat 898,{
mes "Do you want to play Rock, Paper and Scissors?";
menu "Yes, Let's Play",play,"What is the Jackpot Prize",jackpot;
jackpot:
next;
mes "The current Jackpot Prize is ^0000FFBlank^000000!!";
mes "But to win this, ^FF0000you must win 5 straight times^000000";
mes "Draws are not counted so you start over";
close;
play:
mes "Rock! Paper! Scissors! ...";
set .@rps,rand(1,3);
next;
switch(select("Scissors:Rock:Paper")) {
//Scissors
case 1:
if (.@rps==1) {
emotion e_scissors;
emotion e_scissors,1;
mes "Hmpf.";
mes "It's a draw.";
mes "One more time!";
mes "Rock! Paper!";
mes "Scissors!";
set winRPS,0;
set anticlick,0;
close;
}
else if (.@rps==2) {
emotion e_rock;
emotion e_scissors,1;
mes "Hahaha!!!";
mes "You Lose!!!";
set winRPS,0;
set anticlick,0;
close;
}
else {
emotion e_paper;
emotion e_scissors,1;
set anticlick, anticlick+1;
goto prizes;
}
break;
case 2:
if (.@rps==1) {
emotion e_scissors;
emotion e_rock,1;
goto prizes;
}
else if (.@rps==2) {
emotion e_rock;
emotion e_rock,1;
mes "Hmpf.";
mes "It's a draw.";
mes "One more time!";
mes "Rock! Paper!";
mes "Scissors!";
set winRPS,0;
close;
}
else {
emotion e_paper;
emotion e_rock,1;
mes "Hahaha!!!";
mes "You Lose!!!";
set winRPS,0;
close;
}
break;
case 3:
if (.@rps==1) {
emotion e_scissors;
emotion e_paper,1;
mes "Hahaha!!!";
mes "You Lose!!!";
set winRPS,0;
close;
}
else if (.@rps==2) {
emotion e_rock;
emotion e_paper,1;
goto prizes;
}
else {
emotion e_paper;
emotion e_paper,1;
mes "Hmpf.";
mes "It's a draw.";
mes "One more time!";
mes "Rock! Paper!";
mes "Scissors!";
set winRPS,0;
close;
}
}
gotcha:
next;
mes "Sorry, to prevent autoclicker from ruining this event, I'm gonna have to reset your win.";
mes "Your win will be reseted to 0.";
next;
mes "Try playing it fairly, Thanks";
set anticlick,0;
set winRPS,0;
close;
prizes:
if (anticlick == 4) goto gotcha;
set winRPS,winRPS+1;
if (winRPS<5) {
mes "You win!";
mes "That makes "+winRPS+" wins in a row.";
} else {
mes "You've won five times! Take this! Congratulations!";
getitem 512,1;
set winRPS,0;
}
close;
}
}
Question
TheFinalEpisode
what's wrong here? its not working
Link to comment
Share on other sites
1 answer 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.