realRO Posted December 10, 2016 Posted December 10, 2016 Hi guys. Requesting an NPC Kafra Cashpoints converter to Cashpoints. Example 10 or 50 #KAFRAPOINTS ( amount can be changed anytime) can be convert to cashpoints #CASHPOINTS ( amount can be exchanged anytime) thanks in advance! Quote
-1 Emistry Posted December 11, 2016 Posted December 11, 2016 (edited) prontera,155,181,5 script Sample 4_F_KAFRA1,{ mes "Change Kafra Point to Cash Point?"; input .@amount,0,#KAFRAPOINTS; .@amount = ( .@amount / 100 ); if ( .@amount ) { #KAFRAPOINTS -= ( .@amount * 100 ); #CASHPOINTS += .@amount; } mes "Exchanged "+( .@amount * 100 )+" Kafra Point to "+.@amount+" Cash Point."; close; } Edited December 20, 2016 by Emistry added images. Quote
0 Emistry Posted December 11, 2016 Posted December 11, 2016 prontera,155,181,5 script Sample 4_F_KAFRA1,{ mes "Change Kafra Point to Cash Point?"; input .@amount,0,#KAFRAPOINTS; if ( .@amount ) { #KAFRAPOINTS -= .@amount; #CASHPOINTS += .@amount; } mes "Exchanged "+.@amount+" Kafra Point to Cash Point."; close; } try this. Quote
0 realRO Posted December 11, 2016 Author Posted December 11, 2016 @Emistrywhere should I put the "changing" amount for kafra points and cashpoints? Thank you! Quote
0 Emistry Posted December 11, 2016 Posted December 11, 2016 14 minutes ago, realRO said: @Emistrywhere should I put the "changing" amount for kafra points and cashpoints? Thank you! #KAFRAPOINTS -= .@amount; #CASHPOINTS += .@amount; Quote
0 realRO Posted December 11, 2016 Author Posted December 11, 2016 1 minute ago, Emistry said: So it should be like this? Quote #KAFRAPOINTS -= .@amount,100 ; #CASHPOINTS += .@amount,1 ; Quote
0 Emistry Posted December 11, 2016 Posted December 11, 2016 if you're asking for guide to convert to eAthena emulators...read this Quote
0 realRO Posted December 11, 2016 Author Posted December 11, 2016 @Emistry no sir, I'm sorry. I'm using rAthena. I was just wondering on where to put the Kafra Points amount. I'm very noob. I think the script is 1 is to 1 exchanger? Quote
0 Emistry Posted December 11, 2016 Posted December 11, 2016 11 minutes ago, realRO said: I think the script is 1 is to 1 exchanger? yes 11 minutes ago, realRO said: where to put the Kafra Points amount you put the amount of kafra point in-game when your char talk to NPC. Quote
0 realRO Posted December 11, 2016 Author Posted December 11, 2016 @Emistry sir. Iwas looking if you I can change it to 100 kafrapoints = 1 cash point @Emistry wow, I see you need to put a () bracket and * is multiply. I learned something today. Thank you so much for replying my thread. Quote
0 realRO Posted December 17, 2016 Author Posted December 17, 2016 (edited) @Emistry yo emistry, itried it and I have 1000kafrapoints. I exchaged it and input 100 Kafrapoint, all my kafrapoints where removed. Edited December 17, 2016 by realRO Quote
Question
realRO
Hi guys. Requesting an NPC Kafra Cashpoints converter to Cashpoints.
Example 10 or 50 #KAFRAPOINTS ( amount can be changed anytime) can be convert to cashpoints #CASHPOINTS ( amount can be exchanged anytime)
thanks in advance!
10 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.