Skip to content

[Request] 15 pvps=1 safe ench.

Featured Replies

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

I think there already is something like this.

  • Author

I think there already is something like this.

 

ok then,show me the way ^^ .

I think there already is something like this.

:O Realy???

Can you please Post the Link Here??

  • Author

afff damn wizzy.

ok if anyone know anything plzz reply it here.

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:
		;
	}

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

 

remove all // from //spreeKills = 0;

 

switch (spreeKills)

{

  case 15:

      player.showEnchantHtml();

      break;

}

 

 

  • Author

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

add it in L2PcInstance.java/increasePvpKills

where to add this ?

 

i dont understand you clearly :/

of course, when you will read the code ..you will understand

  • Author

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

Aff,what's wrong?

than add new

 

+private int killInRow=0;

 

and above my code

 

killInRow++;

switch (killInRow) {

  • Author

Can someone give me the code for l2jserver [Epilogue client]  ??

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.