prontera,150,150,4 script Converter 83,{
.@name$ ="[^FF0000Cash Point Converter^000000]";
mes .@name$;
mes "Welcome, "+strcharinfo(0)+"!";
mes "You currently have ^ff0000"+#CASHPOINTS+"^000000 Cash Points";
next;
mes .@name$;
mes "How can I help you?";
menu "Exchange Gold Coin to Cash Point", L_GTC, "Cancel", L_Cancel;
L_GTC:
next;
mes .@name$;
mes "Gold Coin will ^ff0000NOT TO BE REFUND^000000 after converted to Cash Points.";
mes "Please keep that in your mind";
next;
mes .@name$;
mes "How many Gold Coin do you want to exchange?";
mes "^ff0000Note^000000: 30 Gold Coin currently 200 Cash Point";
input .@count;
if (.@count == 0) close;
if (countitem(7517) < .@count*30) goto L_Noitem;
delitem 7517,.@count*30;
set #CASHPOINTS, #CASHPOINTS + ( .@count*200 );
close;
L_Noitem:
next;
mes .@name$;
mes "Sorry you dont have enough of Gold Coin";
close;
L_Cancel:
mes .@name$;
mes "No problem, Come back again";
close;
end;
}
Hi rAthena, this is the NPC script that I refer from some where else(I forgot the scripter name***)
I try to make it like 30 Gold coins to 200 Cash points, but at the end it doesn't function well.
No cash obtain, even I have 30 Gold Coins for the exchange.
Anyone could guide me the way to solve this problem?
Addon:
How to show out the amount of cash points gained from and npc in the chat log?
Question
ahloi007
prontera,150,150,4 script Converter 83,{ .@name$ ="[^FF0000Cash Point Converter^000000]"; mes .@name$; mes "Welcome, "+strcharinfo(0)+"!"; mes "You currently have ^ff0000"+#CASHPOINTS+"^000000 Cash Points"; next; mes .@name$; mes "How can I help you?"; menu "Exchange Gold Coin to Cash Point", L_GTC, "Cancel", L_Cancel; L_GTC: next; mes .@name$; mes "Gold Coin will ^ff0000NOT TO BE REFUND^000000 after converted to Cash Points."; mes "Please keep that in your mind"; next; mes .@name$; mes "How many Gold Coin do you want to exchange?"; mes "^ff0000Note^000000: 30 Gold Coin currently 200 Cash Point"; input .@count; if (.@count == 0) close; if (countitem(7517) < .@count*30) goto L_Noitem; delitem 7517,.@count*30; set #CASHPOINTS, #CASHPOINTS + ( .@count*200 ); close; L_Noitem: next; mes .@name$; mes "Sorry you dont have enough of Gold Coin"; close; L_Cancel: mes .@name$; mes "No problem, Come back again"; close; end; }
Hi rAthena, this is the NPC script that I refer from some where else(I forgot the scripter name***)
I try to make it like 30 Gold coins to 200 Cash points, but at the end it doesn't function well.
No cash obtain, even I have 30 Gold Coins for the exchange.
Anyone could guide me the way to solve this problem?
Addon:
How to show out the amount of cash points gained from and npc in the chat log?
Thank you, and sorry for my bad english!
Edited by ahloi007Link to comment
Share on other sites
3 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.