Skip to content

Tvt Event

Featured Replies

  • Author

Yes but only userInfo & CharInfo.

Do not remove anything. Just add _activeChar.isInFunEvent()

 

For example: (UserInfo.java & CharInfo.Java)

 

 

- if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
writeC(0x01); // team circle around feet 1= Blue, 2 = red
+ if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected() && _activeChar.isInFunEvent()))
writeC(0x01); // team circle around feet 1= Blue, 2 = red
- else if (_activeChar.getTeam() == 2)
+ else if (_activeChar.getTeam() == 2 && _activeChar.isInFunEvent())
writeC(0x02); // team circle around feet 1= Blue, 2 = red
  • Author

So i need remove that: if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))

writeC(0x01); // team circle around feet 1= Blue, 2 = red

 

And add that: if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected() && _activeChar.isInFunEvent()))

writeC(0x01); // team circle around feet 1= Blue, 2 = red

 

Remove that: else if (_activeChar.getTeam() == 2)

 

Add that: else if (_activeChar.getTeam() == 2 && _activeChar.isInFunEvent())

 

Or i'm wrong?

/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets

Charinfo.java

Userinfo.java

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.