i need support with my script . the script works fine it's just that the rate is 1 : 1 i want it 200 : 5 where do i change the rates ? then i they input 500 they will get 10 .
Here's the Script :
royal_room3,102,120,3 script Skull Exchanger 795,{
mes "[ ^336699Skull Exchanger^000000 ]";
mes "Hi ^ff8000"+strcharinfo(0)+"^000000,";
mes "tired from collecting skulls eh ? well don't worry because your hardwork all paid off this time because you can exchange Skulls to iRO Cash Tokens.";
next;
mes "[ ^336699Skull Exchanger^000000 ]";
mes "You have "+countitem(7420)+" Skulls!";
mes "Just Remeber that 250 Skulls is equivalent to 5 iRO Cash Token.";
next;
L_MEN:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "Do you want to exchange your Skulls for iRO Cash Tokens ?";
next;
menu "Yes, I'd Be Glad To",-,"What can i Buy with iRO Cash Token?",L_INF,"No, Not Right Now.",L_OUT;
mes "[ ^336699Skull Exchanger^000000 ]";
mes "The Exchange Rate is 200 Skulls = ^0000FF5 iRO Cash Tokens^000000.";
mes "How many Skulls do you want to exchange? Input 0 to cancel.";
next;
input @coinschange;
if(@coinschange == 0) goto L_OUT;
// If you want to change the item ID of the Gold Coin, edit here
if(countitem(7420) < @coinschange) goto L_NOTENOUGH;
delitem 7420,@coinschange;
// If you want to change the echange rate, edit here
// If you DO change the rate, don't forget to change the dialogue too!
set @getitem,@coinschange * 5;
getitem 20001,@coinschange; //input here your custom pods!!!
mes "[ ^336699Skull Exchanger^000000 ]";
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
L_INF:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "iRO Cash Tokens is to be clicked then you get 10 Cash Points.";
mes "If you want to check what items are available, talk to the Cash Shop.";
next;
goto L_MEN;
L_NOTENOUGH:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "You do not have enough Skulls.";
close;
L_OUT:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "Come Back when you already have Skulls to Exchange.";
close;
}
Question
SlashGeeGee
Hello rA
i need support with my script . the script works fine it's just that the rate is 1 : 1 i want it 200 : 5 where do i change the rates ? then i they input 500 they will get 10 .
Here's the Script :
Thanks
SlashGeeGee
Link to comment
Share on other sites
8 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.