aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/ScriptMgr.h
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-04 01:44:14 +0200
committerQAston <none@none>2009-08-04 01:44:14 +0200
commit2e34af64cf83d79b7352636da71b60132b512106 (patch)
treecea5dcc663fed54b74f728c3af730b47da0e9096 /src/bindings/scripts/ScriptMgr.h
parent29c9d709b908bae35b03dc24e5ba64481c1d547e (diff)
*Allow ItemExpire events to be scripted.
*Add .debug itemexpire command *Add script for Disgusting Jar and Mysterious Egg - original patch by Elron. --HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts/ScriptMgr.h')
-rw-r--r--src/bindings/scripts/ScriptMgr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bindings/scripts/ScriptMgr.h b/src/bindings/scripts/ScriptMgr.h
index 719cf7932e9..06830532c9b 100644
--- a/src/bindings/scripts/ScriptMgr.h
+++ b/src/bindings/scripts/ScriptMgr.h
@@ -23,6 +23,7 @@ class SpellCastTargets;
class Map;
class Unit;
class WorldObject;
+struct ItemPrototype;
#define MAX_SCRIPTS 5000 //72 bytes each (approx 351kb)
#define VISIBLE_RANGE (166.0f) //MAX visible range (size of grid)
@@ -34,7 +35,7 @@ struct Script
pGossipHello(NULL), pQuestAccept(NULL), pGossipSelect(NULL), pGossipSelectWithCode(NULL),
pQuestSelect(NULL), pQuestComplete(NULL), pNPCDialogStatus(NULL), pGODialogStatus(NULL),
pChooseReward(NULL), pItemHello(NULL), pGOHello(NULL), pAreaTrigger(NULL), pItemQuestAccept(NULL),
- pGOQuestAccept(NULL), pGOChooseReward(NULL),pItemUse(NULL),
+ pGOQuestAccept(NULL), pGOChooseReward(NULL),pItemUse(NULL), pItemExpire(NULL),
pEffectDummyCreature(NULL), pEffectDummyGameObj(NULL), pEffectDummyItem(NULL),
GetAI(NULL), GetInstanceData(NULL)
{}
@@ -60,6 +61,7 @@ struct Script
bool (*pGOQuestAccept )(Player*, GameObject*, Quest const* );
bool (*pGOChooseReward )(Player*, GameObject*, Quest const*, uint32 );
bool (*pItemUse )(Player*, Item*, SpellCastTargets const& );
+ bool (*pItemExpire )(Player*, ItemPrototype const *);
bool (*pEffectDummyCreature )(Unit*, uint32, uint32, Creature* );
bool (*pEffectDummyGameObj )(Unit*, uint32, uint32, GameObject* );
bool (*pEffectDummyItem )(Unit*, uint32, uint32, Item* );