Jump to content
  • 0

R> Zeny Converter Script


Finale

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  37
  • Reputation:   0
  • Joined:  06/09/23
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   87
  • Joined:  06/30/18
  • Last Seen:  

-	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
Link to comment
Share on other sites

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.

×
×
  • Create New...