- 0
Sign in to follow this
Followers
0

Facing problem with the Coin to Cash exchanger NPC
Asked by
ahloi007
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
ahloi007
No registered users viewing this page.
By using this site, you agree to our Terms of Use and Privacy Policy.
prontera,150,150,4 script Converter 83,{ [email protected]$ ="[^FF0000Cash Point Converter^000000]"; mes [email protected]$; mes "Welcome, "+strcharinfo(0)+"!"; mes "You currently have ^ff0000"+#CASHPOINTS+"^000000 Cash Points"; next; mes [email protected]$; mes "How can I help you?"; menu "Exchange Gold Coin to Cash Point", L_GTC, "Cancel", L_Cancel; L_GTC: next; mes [email protected]$; mes "Gold Coin will ^ff0000NOT TO BE REFUND^000000 after converted to Cash Points."; mes "Please keep that in your mind"; next; mes [email protected]$; mes "How many Gold Coin do you want to exchange?"; mes "^ff0000Note^000000: 30 Gold Coin currently 200 Cash Point"; input [email protected]; if ([email protected] == 0) close; if (countitem(7517) < [email protected]*30) goto L_Noitem; delitem 7517,[email protected]*30; set #CASHPOINTS, #CASHPOINTS + ( [email protected]*200 ); close; L_Noitem: next; mes [email protected]$; mes "Sorry you dont have enough of Gold Coin"; close; L_Cancel: mes [email protected]$; 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 ahloi007Share this post
Link to post
Share on other sites