Jump to content
  • 0

R> Zeny Converter Script


Question

Posted

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

  • 0
Posted (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 by Winterfox

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...