Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RelationChanged extends L2GameServerPacket
- {
- public static final int RELATION_PVP_FLAG = 0x00002; // pvp ???
- public static final int RELATION_HAS_KARMA = 0x00004; // karma ???
- public static final int RELATION_LEADER = 0x00080; // leader
- public static final int RELATION_INSIEGE = 0x00200; // true if in siege
- public static final int RELATION_ATTACKER = 0x00400; // true when attacker
- public static final int RELATION_ALLY = 0x00800; // blue siege icon, cannot have if red
- public static final int RELATION_ENEMY = 0x01000; // true when red icon, doesn't matter with blue
- public static final int RELATION_MUTUAL_WAR = 0x08000; // double fist
- public static final int RELATION_1SIDED_WAR = 0x10000; // single fist
- private final int _objId, _relation, _autoAttackable, _karma, _pvpFlag;
- public RelationChanged(L2Playable cha, int relation, boolean autoattackable)
- {
- _objId = cha.getObjectId();
- _relation = relation;
- _autoAttackable = autoattackable ? 1 : 0;
- _karma = cha.getKarma();
- _pvpFlag = cha.getPvpFlag();
- }
- @Override
- protected final void writeImpl()
- {
- writeC(0xce);
- writeD(_objId);
- writeD(_relation);
- writeD(_autoAttackable);
- writeD(_karma);
- writeD(_pvpFlag);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement