Addition of relation info for summon packets.
Thanks to Index.
This commit is contained in:
parent
ed4965f32e
commit
740dc96dfa
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -217,7 +219,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final int _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeD(0);
|
packet.writeD(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -59,6 +60,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -59,6 +60,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class SummonInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
private final Summon _summon;
|
private final Summon _summon;
|
||||||
private final Player _attacker;
|
private final Player _attacker;
|
||||||
|
private final long _relation;
|
||||||
private final int _value;
|
private final int _value;
|
||||||
private final byte[] _masks = new byte[]
|
private final byte[] _masks = new byte[]
|
||||||
{
|
{
|
||||||
@ -59,6 +60,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
{
|
{
|
||||||
_summon = summon;
|
_summon = summon;
|
||||||
_attacker = attacker;
|
_attacker = attacker;
|
||||||
|
_relation = (attacker != null) && (summon.getOwner() != null) ? summon.getOwner().getRelation(attacker) : 0;
|
||||||
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
_title = (summon.getOwner() != null) && summon.getOwner().isOnline() ? summon.getOwner().getName() : "";
|
||||||
_value = value;
|
_value = value;
|
||||||
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
_abnormalVisualEffects = summon.getEffectList().getCurrentAbnormalVisualEffects();
|
||||||
@ -218,7 +220,7 @@ public class ExPetInfo extends AbstractMaskPacket<NpcInfoType>
|
|||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.RELATIONS))
|
if (containsMask(NpcInfoType.RELATIONS))
|
||||||
{
|
{
|
||||||
packet.writeQ(0);
|
packet.writeQ(_relation);
|
||||||
}
|
}
|
||||||
if (containsMask(NpcInfoType.TITLE))
|
if (containsMask(NpcInfoType.TITLE))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user