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?

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..