Guest User

Untitled

a guest
Sep 8th, 2016
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P aCis_gameserver
  3. Index: java/net/sf/l2j/gameserver/model/actor/stat/UserInfo.java
  4. ===================================================================
  5. --- java/net/sf/l2j/gameserver/model/actor/stat/UserInfo.java (revision 1)
  6. +++ java/net/sf/l2j/gameserver/model/actor/stat/UserInfo.java (working copy)
  7.  
  8. + if (_activeChar.getTeam() == 1)
  9. - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
  10. writeC(0x01); // team circle around feet 1= Blue, 2 = red
  11.  
  12. Index: java/net/sf/l2j/gameserver/model/actor/stat/CharInfo.java
  13. ===================================================================
  14. --- java/net/sf/l2j/gameserver/model/actor/stat/CharInfo.java (revision 1)
  15. +++ java/net/sf/l2j/gameserver/model/actor/stat/CharInfo.java (working copy)
  16.  
  17. + if (_activeChar.getTeam() == 1)
  18. - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
  19. writeC(0x01); // team circle around feet 1= Blue, 2 = red
  20.  
  21. Index: java/net/sf/l2j/gameserver/model/actor/stat/L2PcInstance.java
  22. ===================================================================
  23. --- java/net/sf/l2j/gameserver/model/actor/stat/L2PcInstance.java (revision 1)
  24. +++ java/net/sf/l2j/gameserver/model/actor/stat/L2PcInstance.java (working copy)
  25.  
  26. public void setProtection(boolean protect)
  27. {
  28. final L2PcInstance player = getClient().getActiveChar();
  29. if (protect)
  30. {
  31. if (_protectTask == null)
  32. _protectTask = ThreadPoolManager.getInstance().scheduleGeneral(new ProtectTask(), Config.PLAYER_SPAWN_PROTECTION * 1000);
  33. + player.startAbnormalEffect(AbnormalEffect.IMPRISIONING_2);
  34. }
  35. else
  36. {
  37. _protectTask.cancel(true);
  38. _protectTask = null;
  39. + player.stopAbnormalEffect(AbnormalEffect.IMPRISIONING_2);
  40. }
  41. broadcastUserInfo();
  42. }
Advertisement
Add Comment
Please, Sign In to add comment