diff options
| author | tkrokli <tkrokli@users.noreply.github.com> | 2016-08-14 09:50:28 +0200 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-02-12 14:51:31 +0100 |
| commit | 7223adfea3e8e9bce73879d092ce380466c90475 (patch) | |
| tree | cbf42bc90d045d443a224d8b77b13316f8a92262 /src | |
| parent | 78748bff93f38d06b74caec0d8be5e2479d1d65f (diff) | |
Core/Scripts: move npc_mortog_steamhead to DB
Move core script npc_mortog_steamhead to database
- script contains gossip handling + 1 condition
- both actions can be handled in DB settings
(cherry picked from commit 0c6eeb3abc54dbc0f147e5098619e8e19e27accd)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Outland/zone_zangarmarsh.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/server/scripts/Outland/zone_zangarmarsh.cpp b/src/server/scripts/Outland/zone_zangarmarsh.cpp index 85b68483421..bbb2d7abdef 100644 --- a/src/server/scripts/Outland/zone_zangarmarsh.cpp +++ b/src/server/scripts/Outland/zone_zangarmarsh.cpp @@ -27,7 +27,6 @@ EndScriptData */ npcs_ashyen_and_keleth npc_cooshcoosh npc_elder_kuruti -npc_mortog_steamhead npc_kayra_longmane npc_timothy_daniels EndContentData */ @@ -295,33 +294,6 @@ public: }; /*###### -## npc_mortog_steamhead -######*/ -class npc_mortog_steamhead : public CreatureScript -{ -public: - npc_mortog_steamhead() : CreatureScript("npc_mortog_steamhead") { } - - bool OnGossipHello(Player* player, Creature* creature) override - { - if (creature->IsVendor() && player->GetReputationRank(942) == REP_EXALTED) - player->ADD_GOSSIP_ITEM(GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE); - - player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID()); - - return true; - } - - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override - { - player->PlayerTalkClass->ClearMenus(); - if (action == GOSSIP_ACTION_TRADE) - player->GetSession()->SendListInventory(creature->GetGUID()); - return true; - } -}; - -/*###### ## npc_kayra_longmane ######*/ @@ -455,7 +427,6 @@ void AddSC_zangarmarsh() new npcs_ashyen_and_keleth(); new npc_cooshcoosh(); new npc_elder_kuruti(); - new npc_mortog_steamhead(); new npc_kayra_longmane(); new npc_timothy_daniels(); } |
