Removed Summon class getFormId method.

This commit is contained in:
MobiusDevelopment
2019-04-02 00:47:57 +00:00
parent 0ba6ab0377
commit c01e3ffeba
22 changed files with 11 additions and 418 deletions

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points

View File

@ -1122,43 +1122,6 @@ public abstract class Summon extends Playable
return (_owner != null) ? _owner.getAllyId() : 0;
}
public int getFormId()
{
int formId = 0;
final int npcId = getId();
if ((npcId == 16041) || (npcId == 16042))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
else if ((npcId == 16025) || (npcId == 16037))
{
if (getLevel() > 69)
{
formId = 3;
}
else if (getLevel() > 64)
{
formId = 2;
}
else if (getLevel() > 59)
{
formId = 1;
}
}
return formId;
}
public void setSummonPoints(int summonPoints)
{
_summonPoints = summonPoints;

View File

@ -186,7 +186,7 @@ public class PetInfo implements IClientOutgoingPacket
packet.writeC(_summon.getSpiritShotsPerHit()); // How many spiritshots this servitor uses per hit - - Confirmed
packet.writeD(0x00); // TODO: Find me
packet.writeD(_summon.getFormId()); // Transformation ID - Confirmed
packet.writeD(0x00); // "Transformation ID - Confirmed" - Used to bug Fenrir after 64 level.
packet.writeC(_summon.getOwner().getSummonPoints()); // Used Summon Points
packet.writeC(_summon.getOwner().getMaxSummonPoints()); // Maximum Summon Points