Jump to content
  • 0

Question

Posted

Hello. I'm trying to add TvT for acis, but something goes wrong.

Code - http://pastebin.com/ESxADxRV

 

sf/l2j/gameserver/handler/usercommandhandlers/Escape.java

10eb80bba1975ba17c583961c02180af166.jpg

 

 

sf/l2j/gameserver/events/EventManager.java

e54278a535dea52c39dea9ca6f7b6b0f203.jpg

 

 

sf/l2j/gameserver/events/TvTEvent.java

27964121d675f42e7773db8bdbcd0687430.jpg

 

Any help?

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...