Skip to content

[Question]allow friend kill in town

Featured Replies

How to allow to friends(/friendinvite) to kill each other in town etc, any place they meet?

How to allow to friends(/friendinvite) to kill each other in town etc, any place they meet?

 

If i understand you you mean

 

# Zone Setting
#   0 = Peace All the Time
#   1 = PVP During Siege for siege participants
#   2 = PVP All the Time
ZoneTown = 0

 

you've to change the ZoneTown from 0 to 2

  • Author

that allows all players to kill each other at all time, i want it only for friends.

Piece of cake :)

Go to L2Character and find lines with: "isInsidePeaceZone"

you will find methods like onForcedAttack and isInsidePeaceZone stops u from being able to attack, so near isInsidePeaceZone(player) u will need to add && !player.getFriendList().contains(this))

 

thats all :)

Guest
This topic is now closed to further replies.

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.