I'm New here I need some help for Event Coin Exchanger Script
I don know what I did wrong when I @reloadscript it did not came out
prontera,148,168,4 <tab>script<tab>Event Coin Changer<tab>733,{
mes "[Event Coins Changer]";
mes "Hi ^ff8000"+strcharinfo(0)+"^000000, I can exchange your coins to higher coins.";
mes "^C0C0C05 Bronze Coin = 1 Silver Coin^000000";
mes "^C9AE5D5 Silver Coin = 1 Gold Coin^000000";
mes "^8B65085 Gold Coin = 1 Platinum Coin^000000";
mes "What would you like to do?";
next;
switch(select("Bronze Coin to Silver Coin","Silver Coin to Gold Coin","Gold Coin to Platinum Coin:Platinum Coin to Gold Coin:Gold Coin to Silver Coin:Silver Coin to Bronze Coin")) {
case 1:
mes "How many you want to exchange?";
next;
input [email protected];
if ([email protected] == 0) close; // optional: if player enter 0 script will terminate
if (countitem(673) < [email protected]*5) goto L_NE;
delitem 673,[email protected]*5;
getitem 675,[email protected];
close;
case 2:
mes "How many you want to exchange?";
next;
input [email protected];
if ([email protected] == 0) close; // optional: if player enter 0 script will terminate
if (countitem(675) < [email protected]*5) goto L_NE;
delitem 675,[email protected]*5;
getitem 671,[email protected];
close;
case 3:
mes "How many you want to exchange?";
next;
input [email protected];
if ([email protected] == 0) close; // optional: if player enter 0 script will terminate
if (countitem(671) < [email protected]*5) goto L_NE;
delitem 671,[email protected]*5;
getitem 677,[email protected];
close;
case 4:
mes "How many Coins do you want to exchange?";
next;
input [email protected];
if ([email protected] == 0) close; // optional: if player enter 0 script will terminate
if (countitem(677) < [email protected]) goto L_NE;
delitem 677,[email protected];
getitem 671,[email protected]*5;
close;
case 5:
mes "How many Coins do you want to exchange?";
next;
input [email protected];
if ([email protected] == 0) close; // optional: if player enter 0 script will terminate
if (countitem(671) < [email protected]) goto L_NE;
delitem 671,[email protected];
getitem 675,[email protected]*5;
close;
case 6:
mes "How many Coins do you want to exchange?";
next;
input [email protected];
if ([email protected] == 0) close; // optional: if player enter 0 script will terminate
if (countitem(675) < [email protected]) goto L_NE;
delitem 675,[email protected];
getitem 673,[email protected]*5;
close;
}
L_NE:
mes "You don't have enough of this coin.";
close;
}
Hi,
I'm New here I need some help for Event Coin Exchanger Script
I don know what I did wrong when I @reloadscript it did not came out
prontera,148,168,4 <tab>script<tab>Event Coin Changer<tab>733,{ mes "[Event Coins Changer]"; mes "Hi ^ff8000"+strcharinfo(0)+"^000000, I can exchange your coins to higher coins."; mes "^C0C0C05 Bronze Coin = 1 Silver Coin^000000"; mes "^C9AE5D5 Silver Coin = 1 Gold Coin^000000"; mes "^8B65085 Gold Coin = 1 Platinum Coin^000000"; mes "What would you like to do?"; next; switch(select("Bronze Coin to Silver Coin","Silver Coin to Gold Coin","Gold Coin to Platinum Coin:Platinum Coin to Gold Coin:Gold Coin to Silver Coin:Silver Coin to Bronze Coin")) { case 1: mes "How many you want to exchange?"; next; input [email protected]; if ([email protected] == 0) close; // optional: if player enter 0 script will terminate if (countitem(673) < [email protected]*5) goto L_NE; delitem 673,[email protected]*5; getitem 675,[email protected]; close; case 2: mes "How many you want to exchange?"; next; input [email protected]; if ([email protected] == 0) close; // optional: if player enter 0 script will terminate if (countitem(675) < [email protected]*5) goto L_NE; delitem 675,[email protected]*5; getitem 671,[email protected]; close; case 3: mes "How many you want to exchange?"; next; input [email protected]; if ([email protected] == 0) close; // optional: if player enter 0 script will terminate if (countitem(671) < [email protected]*5) goto L_NE; delitem 671,[email protected]*5; getitem 677,[email protected]; close; case 4: mes "How many Coins do you want to exchange?"; next; input [email protected]; if ([email protected] == 0) close; // optional: if player enter 0 script will terminate if (countitem(677) < [email protected]) goto L_NE; delitem 677,[email protected]; getitem 671,[email protected]*5; close; case 5: mes "How many Coins do you want to exchange?"; next; input [email protected]; if ([email protected] == 0) close; // optional: if player enter 0 script will terminate if (countitem(671) < [email protected]) goto L_NE; delitem 671,[email protected]; getitem 675,[email protected]*5; close; case 6: mes "How many Coins do you want to exchange?"; next; input [email protected]; if ([email protected] == 0) close; // optional: if player enter 0 script will terminate if (countitem(675) < [email protected]) goto L_NE; delitem 675,[email protected]; getitem 673,[email protected]*5; close; } L_NE: mes "You don't have enough of this coin."; close; }Link to comment
Share on other sites