Jump to content
  • 0

Help me change the prize of this NPC


Dvrstle

Question


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

//===== 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,154,175,4 script JnP Special Event 923,{
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^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;
}
}

i want to change the prize to 100 KVM Points per win .. . . =)

Edited by Arcenciel
Codeboxed
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  02/12/12
  • Last Seen:  

find:

getitem 7227,3000;

replace with:

set kvm_point,kvm_point+100;

@edit

Not sure if its kvm_points at rathena..

Edited by Tribbiani
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

@Tribbiani: No, you're right, it is kvm_point.

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 for immediate reply =) GoD Bless

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...