Finale Posted July 19, 2023 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
0 Winterfox Posted July 19, 2023 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
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!
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.