Finale Posted July 19, 2023 Group: Members Topic Count: 17 Topics Per Day: 0.02 Content Count: 37 Reputation: 0 Joined: 06/09/23 Last Seen: November 18, 2023 Share Posted July 19, 2023 Hi Team, Seeking for your kind assistance to create a zeny converter via command. Here are the mechanics: 1. Convert all of your Zeny into an item id 22787. 2. You must type @convert to execute the command / script. 3. The conversion will be 100m = 1 22787. 4. The script also able to check weight though the item 22787 has only 1 weight. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted July 19, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted July 19, 2023 (edited) - script ZENY_CONVERTER FAKE_NPC,{ OnConvert: .@amt = floor(Zeny / .convZeny, 1); if(.@amt <= 0) { dispbottom("You don't have enough zeny for a conversion. You need atleast " + callfunc("F_InsertComma", .convRate) + "z."); end; } .@price = .@amt * .convZeny; Zeny -= .@price; getitem(.itemId, .@amt * .convItem); dispbottom(callfunc("F_InsertComma", .@price) + " of your zeny got converted to " + .@amt + " x " + getitemname(.itemId)); end; OnInit: .itemId = 22787; .convItem = 1; .convZeny = 100000000; bindatcmd("convert", strnpcinfo(3) + "::OnConvert"); } Edited July 19, 2023 by Winterfox Quote Link to comment Share on other sites More sharing options...
Question
Finale
Hi Team,
Seeking for your kind assistance to create a zeny converter via command. Here are the mechanics:
1. Convert all of your Zeny into an item id 22787.
2. You must type @convert to execute the command / script.
3. The conversion will be 100m = 1 22787.
4. The script also able to check weight though the item 22787 has only 1 weight.
Thanks in advance!
Link to comment
Share on other sites
1 answer 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.