Jump to content
  • 0

Help me edit this JNP Script


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

This is what i want to edit:

If the

**player won once and the next try is failed, the player will die and receive 30 Blue Potions

**player won 2x and the next try is failed, the player will die and receive 10 Oridecons

**player won 3x and the next try is failed, the player will die and receive 10 Eluniums

**player won 4x and the next try is failed, the player will die and receive 50 TCG Cards

//===== 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.gat,152,175,4 script JnP - TCG 922,{
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 ^0000FF3000 TCG Cards^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 7227,3000;
 set winRPS,0;
}
close;
}
}

anyone??

bump~

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

Seems like a primitive way to detect clickbots, what if they just choose another option to click? Even a kiddie would test another option ;)

For the "won XX times do this", check out this part and learn about *if *else (in combination "else if").

if (winRPS<5) {

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

xD i didn't get it.... i got this script from eathena.

anyone?? =(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

Maybe something like that :

//===== 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.gat,152,175,4 script JnP - TCG 922,{
mes "Do you want to play Rock, Paper and Scissors?";
menu "Yes, Let's Play",play,"What is the Jackpot Prize",jackpot,"Reward",reward; //Add reward menu


reward:

mes "Want to take your reward ?"
mes "Number of game won "+@RPS_win+".";
next;
menu "No",-,"Yes",reward2;
close;

reward2:
setarray .@reward[0],1,1,1,1; //Set ID of your items
setarray .@rewardnb[0],30,10,10,50; //Number of items
mes "So "+@RPS_win+" victories, you win :";
mes "You win "+.@rewardnb[@RPS_win]+" "+getitemname(.@reward[@RPS_win])+" !";
close2;
getitem .@reward[@RPS_win],.@rewardnb[@RPS_win];
set @RPS_win,0;
end;


jackpot:
next;
mes "The current Jackpot Prize is ^0000FF3000 TCG Cards^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 anticlick,0;
close;
}
else if (.@rps==2) {
emotion e_rock;
emotion e_scissors,1;
mes "Hahaha!!!";
mes "You Lose!!!";
set anticlick,0;
set @RPS_win,0;
close;
}
else {
emotion e_paper;
emotion e_scissors,1;
set anticlick, anticlick+1;
set @RPS_win,@RPS_win+1;
goto prizes;
}
break;
case 2:
if (.@rps==1) {
emotion e_scissors;
emotion e_rock,1;
set @RPS_win,@RPS_win+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!";
close;
}
else {
emotion e_paper;
emotion e_rock,1;
mes "Hahaha!!!";
mes "You Lose!!!";
set winRPS,0;
set @RPS_win,0;
close;
}
break;
case 3:
if (.@rps==1) {
emotion e_scissors;
emotion e_paper,1;
mes "Hahaha!!!";
mes "You Lose!!!";
set @RPS_win,0;
close;
}
else if (.@rps==2) {
emotion e_rock;
emotion e_paper,1;
set @RPS_win,@RPS_win+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!";
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 @RPS_win,0;
close;

prizes:
if (anticlick == 4) goto gotcha;
mes "That makes "+@RPS_win+" wins in a row.";
mes "Refer to reward menu";
close;
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

how about 5 wins?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

No more enabled, if you want 5 wins you can add a line in arrays. Also there is to add a limitation of win to 4 or 5 or the player wouldn't be able to take his prize.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

or can it be just like this. . . when ever the player looses... the player will die

bump~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

emotion e_scissors;
emotion e_paper,1;
mes "Hahaha!!!";
mes "You Lose!!!";
set winRPS,0;
+atcommand "@die";
close;
}

add this line

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

tnx =)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...