|
|
|
@@ -556,6 +556,9 @@ public:
|
|
|
|
|
// Called from End of Creature Update.
|
|
|
|
|
virtual void OnAllCreatureUpdate(Creature* /*creature*/, uint32 /*diff*/) { }
|
|
|
|
|
|
|
|
|
|
// Called just before the level of the creature is set.
|
|
|
|
|
virtual void OnBeforeCreatureSelectLevel(const CreatureTemplate* /*cinfo*/, Creature* /*creature*/, uint8& /*level*/) { }
|
|
|
|
|
|
|
|
|
|
// Called from End of Creature SelectLevel.
|
|
|
|
|
virtual void Creature_SelectLevel(const CreatureTemplate* /*cinfo*/, Creature* /*creature*/) { }
|
|
|
|
|
|
|
|
|
@@ -706,6 +709,9 @@ public:
|
|
|
|
|
// Called when the game object is damaged (destructible buildings only).
|
|
|
|
|
virtual void OnGameObjectDamaged(GameObject* /*go*/, Player* /*player*/) { }
|
|
|
|
|
|
|
|
|
|
// Called when the health of a game object is modified (destructible buildings only).
|
|
|
|
|
virtual void OnGameObjectModifyHealth(GameObject* /*go*/, Unit* /*attackerOrHealer*/, int32& /*change*/, SpellInfo const* /*spellInfo*/) { }
|
|
|
|
|
|
|
|
|
|
// Called when the game object loot state is changed.
|
|
|
|
|
virtual void OnGameObjectLootStateChanged(GameObject* /*go*/, uint32 /*state*/, Unit* /*unit*/) { }
|
|
|
|
|
|
|
|
|
@@ -788,6 +794,9 @@ public:
|
|
|
|
|
// Called when the game object is damaged (destructible buildings only).
|
|
|
|
|
virtual void OnDamaged(GameObject* /*go*/, Player* /*player*/) { }
|
|
|
|
|
|
|
|
|
|
// Called when the health of a game object is modified (destructible buildings only).
|
|
|
|
|
virtual void OnModifyHealth(GameObject* /*go*/, Unit* /*attackerOrHealer*/, int32& /*change*/, SpellInfo const* /*spellInfo*/) { }
|
|
|
|
|
|
|
|
|
|
// Called when the game object loot state is changed.
|
|
|
|
|
virtual void OnLootStateChanged(GameObject* /*go*/, uint32 /*state*/, Unit* /*unit*/) { }
|
|
|
|
|
|
|
|
|
@@ -1634,6 +1643,7 @@ public:
|
|
|
|
|
|
|
|
|
|
// loot
|
|
|
|
|
virtual void OnAfterRefCount(Player const* /*player*/, LootStoreItem* /*LootStoreItem*/, Loot& /*loot*/, bool /*canRate*/, uint16 /*lootMode*/, uint32& /*maxcount*/, LootStore const& /*store*/) { }
|
|
|
|
|
virtual void OnAfterCalculateLootGroupAmount(Player const* /*player*/, Loot& /*loot*/, uint16 /*lootMode*/, uint32& /*groupAmount*/, LootStore const& /*store*/) { }
|
|
|
|
|
virtual void OnBeforeDropAddItem(Player const* /*player*/, Loot& /*loot*/, bool /*canRate*/, uint16 /*lootMode*/, LootStoreItem* /*LootStoreItem*/, LootStore const& /*store*/) { }
|
|
|
|
|
virtual bool OnItemRoll(Player const* /*player*/, LootStoreItem const* /*LootStoreItem*/, float& /*chance*/, Loot& /*loot*/, LootStore const& /*store*/) { return true; };
|
|
|
|
|
virtual bool OnBeforeLootEqualChanced(Player const* /*player*/, LootStoreItemList /*EqualChanced*/, Loot& /*loot*/, LootStore const& /*store*/) { return true; }
|
|
|
|
@@ -2268,6 +2278,7 @@ public: /* GameObjectScript */
|
|
|
|
|
uint32 GetDialogStatus(Player* player, GameObject* go);
|
|
|
|
|
void OnGameObjectDestroyed(GameObject* go, Player* player);
|
|
|
|
|
void OnGameObjectDamaged(GameObject* go, Player* player);
|
|
|
|
|
void OnGameObjectModifyHealth(GameObject* go, Unit* attackerOrHealer, int32& change, SpellInfo const* spellInfo);
|
|
|
|
|
void OnGameObjectLootStateChanged(GameObject* go, uint32 state, Unit* unit);
|
|
|
|
|
void OnGameObjectStateChanged(GameObject* go, uint32 state);
|
|
|
|
|
void OnGameObjectUpdate(GameObject* go, uint32 diff);
|
|
|
|
@@ -2538,6 +2549,7 @@ public: /* GlobalScript */
|
|
|
|
|
void OnGlobalMirrorImageDisplayItem(Item const* item, uint32& display);
|
|
|
|
|
void OnBeforeUpdateArenaPoints(ArenaTeam* at, std::map<ObjectGuid, uint32>& ap);
|
|
|
|
|
void OnAfterRefCount(Player const* player, Loot& loot, bool canRate, uint16 lootMode, LootStoreItem* LootStoreItem, uint32& maxcount, LootStore const& store);
|
|
|
|
|
void OnAfterCalculateLootGroupAmount(Player const* player, Loot& loot, uint16 lootMode, uint32& groupAmount, LootStore const& store);
|
|
|
|
|
void OnBeforeDropAddItem(Player const* player, Loot& loot, bool canRate, uint16 lootMode, LootStoreItem* LootStoreItem, LootStore const& store);
|
|
|
|
|
bool OnItemRoll(Player const* player, LootStoreItem const* LootStoreItem, float& chance, Loot& loot, LootStore const& store);
|
|
|
|
|
bool OnBeforeLootEqualChanced(Player const* player, LootStoreItemList EqualChanced, Loot& loot, LootStore const& store);
|
|
|
|
@@ -2589,6 +2601,7 @@ public: /* MovementHandlerScript */
|
|
|
|
|
public: /* AllCreatureScript */
|
|
|
|
|
//listener function (OnAllCreatureUpdate) is called by OnCreatureUpdate
|
|
|
|
|
//void OnAllCreatureUpdate(Creature* creature, uint32 diff);
|
|
|
|
|
void OnBeforeCreatureSelectLevel(const CreatureTemplate* cinfo, Creature* creature, uint8& level);
|
|
|
|
|
void Creature_SelectLevel(const CreatureTemplate* cinfo, Creature* creature);
|
|
|
|
|
void OnCreatureSaveToDB(Creature* creature);
|
|
|
|
|
|
|
|
|
|