Jump to content
  • 0

[Request] 15 pvps=1 safe ench.


Question

Posted

Hello guys.

 

I want that when a player take 15 pvps in a row then get  +1 safe enchant to his/her weapon .

Any idea? :D

14 answers to this question

Recommended Posts

  • 0
Posted

try with this

	switch (killInRow) {
		case 15:
			Inventory inv = getInventory();
			L2ItemInstance enchMe = inv.getPaperdollItem(Inventory.PAPERDOLL_RHAND);

			if (enchMe != null && enchMe.getEquipSlot() == Inventory.PAPERDOLL_RHAND) {
				enchMe.setEnchantLevel(enchMe.getEnchantLevel()+1);

				InventoryUpdate iu = new InventoryUpdate();
				iu.addModifiedItem(enchMe);
				sendPacket(iu);
				broadcastPacket(new CharInfo(this));
				sendPacket(new UserInfo(this));

				sendMessage("The enchant level of "+enchMe.getItem().getName()+" has been increased by 1");
			}
		break;
		default:
		;
	}

  • 0
Posted

try with this

	switch (killInRow) {
		case 15:
			Inventory inv = getInventory();
			L2ItemInstance enchMe = inv.getPaperdollItem(Inventory.PAPERDOLL_RHAND);

			if (enchMe != null && enchMe.getEquipSlot() == Inventory.PAPERDOLL_RHAND) {
				enchMe.setEnchantLevel(enchMe.getEnchantLevel()+1);

				InventoryUpdate iu = new InventoryUpdate();
				iu.addModifiedItem(enchMe);
				sendPacket(iu);
				broadcastPacket(new CharInfo(this));
				sendPacket(new UserInfo(this));

				sendMessage("The enchant level of "+enchMe.getItem().getName()+" has been increased by 1");
			}
		break;
		default:
		;
	}

 

where to add this ?

 

http://www.maxcheaters.com/forum/index.php?topic=134769.0

 

remove all // from //spreeKills = 0;

 

switch (spreeKills)

{

  case 15:

      player.showEnchantHtml();

      break;

}

 

 

 

i dont understand you clearly :/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...