XtriC 1 Posted March 23, 2018 Hi all. is there any npc script that trades Credit - Zeny and vice versa which has a limit to 2b zeny thank you guys.. Quote Share this post Link to post Share on other sites
0 Luciar 14 Posted March 24, 2018 What "credit" are you trying to exchange? Quote Share this post Link to post Share on other sites
0 XtriC 1 Posted March 24, 2018 something like a credit or a ticket and trade it to zeny Quote Share this post Link to post Share on other sites
0 luizragna 41 Posted March 24, 2018 Do you must create a custom item or make a variable. Quote Share this post Link to post Share on other sites
0 XtriC 1 Posted March 24, 2018 just a simple trader with that checks for 2b max zeny... liek a coin to zeny trade 1 Coin = 10m zeny something liek that Quote Share this post Link to post Share on other sites
0 luizragna 41 Posted March 24, 2018 (edited) OK, I'll try to do it for you. You want the currency is for a player or account? Edited March 24, 2018 by luizragna 1 XtriC reacted to this Quote Share this post Link to post Share on other sites
0 XtriC 1 Posted March 24, 2018 i have a custom item called Credit its like a Game ticket so its for players to use exchanging it to 10m zeny per 1 Credit Quote Share this post Link to post Share on other sites
0 luizragna 41 Posted March 24, 2018 I maked with variable. Trader NPC: prontera,136,217,4 script Coin Trader 4_M_MANAGER,{ .@npc$ = "[Coin Trader]"; //NPC Name mes .@npc$; mes "Hello. I'm the Coin Trader"; mes "I can trade Zeny for Coin and vice versa"; mes "(1 Coin = 10.000.000z)"; mes "What you want trade?"; next; menu "Zeny for Coins",zc,"Coins for Zeny",cz,"Close",cl; cl: close; zc: mes .@npc$; mes "How many Coins do you want purchase"; mes "(1 Coin = 10.000.000z)"; input @zc; @qnt = @zc*10000000; if (Zeny - @qnt < 0){ mes "Do you not have zeny"; close; } set SCoin,SCoin + @zc; set Zeny,Zeny - @qnt; mes " "; mes "Thank You!"; mes "(Now do you have "+SCoin+" Coin(s) )"; close; cz: mes .@npc$; mes "How many Coins you want sell?"; mes "Do you have "+SCoin+" Coin(s)"; mes "(1 Coin = 10.000.000z)"; input @cz; @qnt = @cz*10000000; if (SCoin - @cz < 0) { mes "Do you not have sufficient Coins"; close; } if (Zeny + @qnt > 2000000000){ mes "Do you can't stay more than 2b Zeny"; close; } set SCoin,SCoin - @cz; set Zeny,Zeny + @qnt; mes " "; mes "Thank You!"; mes "(Now do you have "+SCoin+" Coin(s) )"; close; } Coin Shop: prontera,141,217,4 script Coin Shop 4_F_TELEPORTER,{ mes "[Coin Shop]"; mes "Hello. Why do you want buy with yours Coins?"; mes "(Do you have "+SCoin+" Coin(s) )"; menu "Red Potion (3 Coins)",rp,"Knife[4] (7 Coins)",kn,"Cancell",cl; cl: close; rp: if (SCoin - 3 < 0) { mes "Do you not have sufficient Coins"; close; } SCoin = SCoin - 3; getitem 501,1; mes " "; mes "Thank You!"; mes "(Now do you have "+SCoin+" Coin(s) )"; close; kn: if (SCoin - 7 < 0) { mes "Do you not have sufficient Coins"; close; } SCoin = SCoin - 7; getitem 1202,1; mes " "; mes "Thank You!"; mes "(Now do you have "+SCoin+" Coin(s) )"; close; } 1 XtriC reacted to this Quote Share this post Link to post Share on other sites
0 XtriC 1 Posted March 24, 2018 (edited) How do you change the coin to another item? if i put on another item for trade like and Apple to zeny ot like poring coin im using this custom item which has and ID 26080 Edited March 24, 2018 by XtriC Quote Share this post Link to post Share on other sites
0 luizragna 41 Posted March 24, 2018 (edited) Try now: I changed the coin to item ID 26080 NPC Trader: prontera,136,217,4 script Coin Trader 4_M_MANAGER,{ .@npc$ = "[Coin Trader]"; //NPC Name mes .@npc$; mes "Hello. I'm the Coin Trader"; mes "I can trade Zeny for Coin and vice versa"; mes "(1 Coin = 10.000.000z)"; mes "What you want trade?"; next; menu "Zeny for Coins",zc,"Coins for Zeny",cz,"Close",cl; cl: close; zc: mes .@npc$; mes "How many Coins do you want purchase?"; mes "(1 Coin = 10.000.000z)"; input @zc; @qnt = @zc*10000000; if (Zeny - @qnt < 0){ mes "Do you not have zeny"; close; } getitem 26080,@zc; set Zeny,Zeny - @qnt; mes " "; mes "Thank You!"; mes "(Now do you have "+countitem(26080)+" Coin(s) )"; close; cz: mes .@npc$; mes "How many Coins you want sell?"; mes "Do you have "+countitem(26080)+" Coin(s)"; mes "(1 Coin = 10.000.000z)"; input @cz; @qnt = @cz*10000000; if (countitem(26080) - @cz < 0) { mes "Do you not have sufficient Coins"; close; } if (Zeny + @qnt > 2000000000){ mes "Do you can't stay more than 2b Zeny"; close; } delitem 26080,@zc; set Zeny,Zeny + @qnt; mes " "; mes "Thank You!"; mes "(Now do you have "+countitem(26080)+" Coin(s) )"; close; } Coin Shop: prontera,141,217,4 script Coin Shop 4_F_TELEPORTER,{ mes "[Coin Shop]"; mes "Hello. Why do you want buy with yours Coins?"; mes "(Do you have "+countitem(26080)+" Coin(s) )"; menu "Red Potion (3 Coins)",rp,"Knife[4] (7 Coins)",kn,"Cancell",cl; cl: close; rp: if (countitem(26080) - 3 < 0) { mes "Do you not have sufficient Coins"; close; } delitem 26080,3; getitem 501,1; mes " "; mes "Thank You!"; mes "(Now do you have "+countitem(26080)+" Coin(s) )"; close; kn: if (countitem(26080) - 7 < 0) { mes "Do you not have sufficient Coins"; close; } delitem 26080,7; getitem 1202,1; mes " "; mes "Thank You!"; mes "(Now do you have "+countitem(26080)+" Coin(s) )"; close; } Edited March 24, 2018 by luizragna 1 XtriC reacted to this Quote Share this post Link to post Share on other sites
0 XtriC 1 Posted March 24, 2018 +10 @luizragna thank you for your kind help 1 luizragna reacted to this Quote Share this post Link to post Share on other sites
Hi all.
is there any npc script that trades Credit - Zeny and vice versa which has a limit to 2b zeny
thank you guys..
Share this post
Link to post
Share on other sites