diff options
| author | Shauren <shauren.trinity@gmail.com> | 2017-07-27 00:04:37 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2017-07-27 00:04:37 +0200 |
| commit | b85d46138bf6cd0fd50a0f8060f1512002ced731 (patch) | |
| tree | 0f9785a0641b1978e45d507d2aae1e18b63bcef6 /src/server/scripts/World | |
| parent | 0cd5179726f91cc163910dd0806d622fe86d9a8c (diff) | |
Core/Creatures: Deleted obsolete pet trainer script and fixed build
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/npc_professions.cpp | 12 | ||||
| -rw-r--r-- | src/server/scripts/World/npcs_special.cpp | 36 |
2 files changed, 8 insertions, 40 deletions
diff --git a/src/server/scripts/World/npc_professions.cpp b/src/server/scripts/World/npc_professions.cpp index 04ce1037cfe..26e4e6de928 100644 --- a/src/server/scripts/World/npc_professions.cpp +++ b/src/server/scripts/World/npc_professions.cpp @@ -190,6 +190,7 @@ enum SpecializationTrainers N_TRAINER_TRANSMUTE = 22427, // Zarevhi N_TRAINER_ELIXIR = 19052, // Lorokeem N_TRAINER_POTION = 17909, // Lauranna Thar'well + TRAINER_ID_ALCHEMY = 122, /* Blacksmithing */ N_TRAINER_SMITHOMNI1 = 11145, // Myolor Sunderfury @@ -201,6 +202,7 @@ enum SpecializationTrainers N_TRAINER_HAMMER = 11191, // Lilith the Lithe N_TRAINER_AXE = 11192, // Kilram N_TRAINER_SWORD = 11193, // Seril Scourgebane + TRAINER_ID_BLACKSMITHING = 80, /* Leatherworking */ N_TRAINER_DRAGON1 = 7866, // Peter Galen @@ -209,11 +211,13 @@ enum SpecializationTrainers N_TRAINER_ELEMENTAL2 = 7869, // Brumn Winterhoof N_TRAINER_TRIBAL1 = 7870, // Caryssia Moonhunter N_TRAINER_TRIBAL2 = 7871, // Se'Jib + TRAINER_ID_LEATHERWORKING = 103, /* Tailoring */ N_TRAINER_SPELLFIRE = 22213, // Gidge Spellweaver N_TRAINER_MOONCLOTH = 22208, // Nasmara Moonsong N_TRAINER_SHADOWEAVE = 22212, // Andrion Darkspinner + TRAINER_ID_TAILORING = 117, }; /*### @@ -485,7 +489,7 @@ public: player->GetSession()->SendListInventory(creature->GetGUID()); break; case GOSSIP_ACTION_TRAIN: - player->GetSession()->SendTrainerList(creature->GetGUID()); + player->GetSession()->SendTrainerList(creature->GetGUID(), TRAINER_ID_ALCHEMY); break; //Learn Alchemy case GOSSIP_ACTION_INFO_DEF + 1: @@ -673,7 +677,7 @@ public: player->GetSession()->SendListInventory(creature->GetGUID()); break; case GOSSIP_ACTION_TRAIN: - player->GetSession()->SendTrainerList(creature->GetGUID()); + player->GetSession()->SendTrainerList(creature->GetGUID(), TRAINER_ID_BLACKSMITHING); break; //Learn Armor/Weapon case GOSSIP_ACTION_INFO_DEF + 1: @@ -983,7 +987,7 @@ public: player->GetSession()->SendListInventory(creature->GetGUID()); break; case GOSSIP_ACTION_TRAIN: - player->GetSession()->SendTrainerList(creature->GetGUID()); + player->GetSession()->SendTrainerList(creature->GetGUID(), TRAINER_ID_LEATHERWORKING); break; //Unlearn Leather case GOSSIP_ACTION_INFO_DEF + 1: @@ -1113,7 +1117,7 @@ public: player->GetSession()->SendListInventory(creature->GetGUID()); break; case GOSSIP_ACTION_TRAIN: - player->GetSession()->SendTrainerList(creature->GetGUID()); + player->GetSession()->SendTrainerList(creature->GetGUID(), TRAINER_ID_TAILORING); break; //Learn Tailor case GOSSIP_ACTION_INFO_DEF + 1: diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index dbbfd8a1f01..2974bddd85d 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -1733,41 +1733,6 @@ class npc_wormhole : public CreatureScript }; /*###### -## npc_pet_trainer -######*/ - -enum PetTrainer -{ - MENU_ID_PET_UNLEARN = 6520, - OPTION_ID_PLEASE_DO = 0 -}; - -class npc_pet_trainer : public CreatureScript -{ -public: - npc_pet_trainer() : CreatureScript("npc_pet_trainer") { } - - struct npc_pet_trainerAI : public ScriptedAI - { - npc_pet_trainerAI(Creature* creature) : ScriptedAI(creature) { } - - void sGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override - { - if (menuId == MENU_ID_PET_UNLEARN && gossipListId == OPTION_ID_PLEASE_DO) - { - player->ResetPetTalents(); - CloseGossipMenuFor(player); - } - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_pet_trainerAI(creature); - } -}; - -/*###### ## npc_experience ######*/ @@ -2553,7 +2518,6 @@ void AddSC_npcs_special() new npc_brewfest_reveler(); new npc_training_dummy(); new npc_wormhole(); - new npc_pet_trainer(); new npc_experience(); new npc_firework(); new npc_spring_rabbit(); |
