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

  • 0
Posted

when i apply this code of down ,it dont accept it,something wrong with { }  .

Aff,what's wrong?

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock