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 :/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..