Scripts/The Barrens: Beaten Corpse (#24124)

* Scripts/The Barrens: Beaten Corpse

* Rename 9999_99_99_99_world.sql to 2020_02_01_00_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit 74d19691a5)
This commit is contained in:
Sorikoff
2020-02-01 15:40:34 +02:00
committed by Shauren
parent e57967aa3f
commit 3daeb28420
2 changed files with 4 additions and 36 deletions

View File

@@ -35,42 +35,6 @@ EndContentData */
#include "SpellInfo.h"
#include "TemporarySummon.h"
/*######
## npc_beaten_corpse
######*/
enum BeatenCorpse
{
GOSSIP_OPTION_ID_BEATEN_CORPSE = 0,
GOSSIP_MENU_OPTION_INSPECT_BODY = 2871
};
class npc_beaten_corpse : public CreatureScript
{
public:
npc_beaten_corpse() : CreatureScript("npc_beaten_corpse") { }
struct npc_beaten_corpseAI : public ScriptedAI
{
npc_beaten_corpseAI(Creature* creature) : ScriptedAI(creature) { }
bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override
{
if (menuId == GOSSIP_MENU_OPTION_INSPECT_BODY && gossipListId == GOSSIP_OPTION_ID_BEATEN_CORPSE)
{
CloseGossipMenuFor(player);
player->TalkedToCreature(me->GetEntry(), me->GetGUID());
}
return false;
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_beaten_corpseAI(creature);
}
};
/*######
# npc_gilthares
######*/