예제 #1
0
		public void AddSpell(TrainerSpellEntry entry)
		{
			if (Spells.Count == 0)
			{
				SetupTrainer(entry.Spell);
			}
			if (!Spells.ContainsKey(entry.SpellId))
			{
				Spells.Add(entry.SpellId, entry);
				entry.Index = lastIndex++;
			}
		}
예제 #2
0
 public void AddSpell(TrainerSpellEntry entry)
 {
     if (Spells.Count == 0)
     {
         SetupTrainer(entry.Spell);
     }
     if (!Spells.ContainsKey(entry.SpellId))
     {
         Spells.Add(entry.SpellId, entry);
         entry.Index = lastIndex++;
     }
 }
예제 #3
0
 public void AddSpell(TrainerSpellEntry entry)
 {
     if (this.Spells.Count == 0)
     {
         this.SetupTrainer(entry.Spell);
     }
     if (this.Spells.ContainsKey(entry.SpellId))
     {
         return;
     }
     this.Spells.Add(entry.SpellId, entry);
     entry.Index = this.lastIndex++;
 }
예제 #4
0
파일: NPCHandler.cs 프로젝트: NVN/WCell
		public static void SendTrainerBuySucceeded(IPacketReceiver client, NPC trainer, TrainerSpellEntry spell)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_TRAINER_BUY_SUCCEEDED, 8 + 4))
			{
				packet.Write(trainer.EntityId);
				packet.Write(spell.Spell.Id);

				client.Send(packet);
			}
		}