Rewrite trainer handling to properly support multiple trainers on the same creature

This commit is contained in:
hondacrx
2017-07-27 17:29:22 -04:00
parent 0d8729ae32
commit 0aa7df2f53
18 changed files with 434 additions and 508 deletions
+8 -8
View File
@@ -170,11 +170,11 @@ namespace Game.Network.Packets
_worldPacket.WriteString(Greeting);
}
public string Greeting;
public int TrainerType = 0;
public ObjectGuid TrainerGUID;
public int TrainerType;
public int TrainerID = 1;
public List<TrainerListSpell> Spells = new List<TrainerListSpell>();
public string Greeting;
}
public class ShowBank : ServerPacket
@@ -276,7 +276,7 @@ namespace Game.Network.Packets
public ObjectGuid TrainerGUID;
public uint SpellID;
public uint TrainerFailedReason;
public TrainerFailReason TrainerFailedReason;
}
class RequestStabledPets : ClientPacket
@@ -344,11 +344,11 @@ namespace Game.Network.Packets
public class TrainerListSpell
{
public int SpellID;
public int MoneyCost;
public int ReqSkillLine;
public int ReqSkillRank;
public int[] ReqAbility = new int[SharedConst.MaxTrainerspellAbilityReqs];
public uint SpellID;
public uint MoneyCost;
public uint ReqSkillLine;
public uint ReqSkillRank;
public uint[] ReqAbility = new uint[SharedConst.MaxTrainerspellAbilityReqs];
public TrainerSpellState Usable;
public byte ReqLevel;
}