Hi I'm making a rough elunium/oridecon exchanger with an amount input on it and im quite confuse right now anyone can check if this is correct. :))
prontera,255,55,5 script RoughStonesExchanger756,{
mes "[Leon]";
mes "Hi adventurer, I'm Leon and im trading";
mes "a whole ^0055FFOridecon^000000 or ^0055FFElunium^000000";
mes "For 5 ^0055FFRough Oridecon^000000 or ^0055FFRough Elunium^000000";
mes "What would you like to exchange today?";switch(select("Rough Elu to Elunium:Rough Ori to Oridecon")){case1:set.@i, countitem(757);if(.@i<5)goto notelu;
mes "[Leon]";
mes "[How many rough elunium would you like to exchange?]";
next;
input .@e;if(.@e<5||.@e> countitem(757)){
mes "[Leon]";
mes "That's an invalid amount of Elunium";
mes "The Exchange rate is 5 rough elu to 1 Elunium";
close;}
mes "Are you sure you want to exchange ^0055FF"+(.@e*5)+" Rough Elunium?^000000?";if(select("Yes:No")==2) close;
mes "[Leon]";
mes "Okay come to me again if you want to exchange";
delitem .@i,.@e*5;
getitem 985,.@e/5;
end;}
Question
crazyarashi
Hi I'm making a rough elunium/oridecon exchanger with an amount input on it and im quite confuse right now anyone can check if this is correct. :))
Fix
Link to comment
Share on other sites
7 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.