aboutsummaryrefslogtreecommitdiff
path: root/src/game/ScriptMgr.h
diff options
context:
space:
mode:
authorRat <none@none>2010-06-03 14:29:04 +0200
committerRat <none@none>2010-06-03 14:29:04 +0200
commit3c05d4d54454df50de16fb32e702ea09397675d4 (patch)
tree6c485b98ad8099ef96da030ae306a93b63f7c6e4 /src/game/ScriptMgr.h
parent042971e7ffdfe8848b2aa837da6bc06d1e3e8776 (diff)
added script hook for gameobject's destroyed event
--HG-- branch : trunk
Diffstat (limited to 'src/game/ScriptMgr.h')
-rw-r--r--src/game/ScriptMgr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/ScriptMgr.h b/src/game/ScriptMgr.h
index f1c56061a55..ed7200d5786 100644
--- a/src/game/ScriptMgr.h
+++ b/src/game/ScriptMgr.h
@@ -39,7 +39,7 @@ struct Script
pGossipHello(NULL), pQuestAccept(NULL), pGossipSelect(NULL), pGossipSelectWithCode(NULL),
pGOSelect(NULL), pGOSelectWithCode(NULL),
pQuestSelect(NULL), pQuestComplete(NULL), pNPCDialogStatus(NULL), pGODialogStatus(NULL),
- pChooseReward(NULL), pItemHello(NULL), pGOHello(NULL), pAreaTrigger(NULL), pItemQuestAccept(NULL),
+ pChooseReward(NULL), pGODestroyed(NULL), pItemHello(NULL), pGOHello(NULL), pAreaTrigger(NULL), pItemQuestAccept(NULL),
pGOQuestAccept(NULL), pGOChooseReward(NULL),pItemUse(NULL), pItemExpire(NULL),
pEffectDummyCreature(NULL), pEffectDummyGameObj(NULL), pEffectDummyItem(NULL),
GetAI(NULL), GetInstanceData(NULL)
@@ -79,6 +79,7 @@ struct Script
bool (*pItemQuestAccept)(Player*, Item *, Quest const*);
bool (*pGOQuestAccept)(Player*, GameObject*, Quest const*);
bool (*pGOChooseReward)(Player*, GameObject*, Quest const*, uint32);
+ void (*pGODestroyed)(Player*, GameObject*, uint32);
bool (*pItemUse)(Player*, Item*, SpellCastTargets const&);
bool (*pItemExpire)(Player*, ItemPrototype const *);
bool (*pEffectDummyCreature)(Unit*, uint32, uint32, Creature*);
@@ -132,6 +133,7 @@ class ScriptMgr
bool GOHello(Player* pPlayer, GameObject* pGO);
bool GOQuestAccept(Player* pPlayer, GameObject* pGO, Quest const* pQuest);
bool GOChooseReward(Player* pPlayer, GameObject* pGO, Quest const* pQuest, uint32 opt);
+ void GODestroyed(Player* pPlayer, GameObject* pGO, uint32 destroyedEvent);
bool AreaTrigger(Player* pPlayer,AreaTriggerEntry const* atEntry);
CreatureAI* GetAI(Creature* pCreature);
bool ItemUse(Player* pPlayer, Item* pItem, SpellCastTargets const& targets);