Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. public class RelationChanged extends L2GameServerPacket
  2. {
  3. public static final int RELATION_PVP_FLAG = 0x00002; // pvp ???
  4. public static final int RELATION_HAS_KARMA = 0x00004; // karma ???
  5. public static final int RELATION_LEADER = 0x00080; // leader
  6. public static final int RELATION_INSIEGE = 0x00200; // true if in siege
  7. public static final int RELATION_ATTACKER = 0x00400; // true when attacker
  8. public static final int RELATION_ALLY = 0x00800; // blue siege icon, cannot have if red
  9. public static final int RELATION_ENEMY = 0x01000; // true when red icon, doesn't matter with blue
  10. public static final int RELATION_MUTUAL_WAR = 0x08000; // double fist
  11. public static final int RELATION_1SIDED_WAR = 0x10000; // single fist
  12.  
  13. private final int _objId, _relation, _autoAttackable, _karma, _pvpFlag;
  14.  
  15. public RelationChanged(L2Playable cha, int relation, boolean autoattackable)
  16. {
  17. _objId = cha.getObjectId();
  18. _relation = relation;
  19. _autoAttackable = autoattackable ? 1 : 0;
  20. _karma = cha.getKarma();
  21. _pvpFlag = cha.getPvpFlag();
  22. }
  23.  
  24. @Override
  25. protected final void writeImpl()
  26. {
  27. writeC(0xce);
  28. writeD(_objId);
  29. writeD(_relation);
  30. writeD(_autoAttackable);
  31. writeD(_karma);
  32. writeD(_pvpFlag);
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement