#include "AllCreatureScript.h"
|
virtual void | OnAllCreatureUpdate (Creature *, uint32) |
|
virtual void | OnBeforeCreatureSelectLevel (const CreatureTemplate *, Creature *, uint8 &) |
|
virtual void | Creature_SelectLevel (const CreatureTemplate *, Creature *) |
|
virtual void | OnCreatureAddWorld (Creature *) |
| This hook runs after add creature in world. More...
|
|
virtual void | OnCreatureRemoveWorld (Creature *) |
| This hook runs after remove creature in world. More...
|
|
virtual void | OnCreatureSaveToDB (Creature *) |
| This hook runs after creature has been saved to DB. More...
|
|
virtual bool | CanCreatureGossipHello (Player *, Creature *) |
| This hook called when a player opens a gossip dialog with the creature. More...
|
|
virtual bool | CanCreatureGossipSelect (Player *, Creature *, uint32, uint32) |
| This hook called when a player selects a gossip item in the creature's gossip menu. More...
|
|
virtual bool | CanCreatureGossipSelectCode (Player *, Creature *, uint32, uint32, const char *) |
| This hook called when a player selects a gossip with a code in the creature's gossip menu. More...
|
|
virtual bool | CanCreatureQuestAccept (Player *, Creature *, Quest const *) |
|
virtual bool | CanCreatureQuestReward (Player *, Creature *, Quest const *, uint32) |
|
virtual CreatureAI * | GetCreatureAI (Creature *) const |
|
virtual void | OnFfaPvpStateUpdate (Creature *, bool) |
|
virtual bool | IsDatabaseBound () const |
|
virtual bool | isAfterLoadScript () const |
|
virtual void | checkValidity () |
|
const std::string & | GetName () const |
|
uint16 | GetTotalAvailableHooks () |
|
◆ AllCreatureScript()
AllCreatureScript::AllCreatureScript |
( |
const char * |
name | ) |
|
|
protected |
81 :
83{
85}
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43
References ScriptRegistry< TScript >::AddScript().
◆ CanCreatureGossipHello()
virtual bool AllCreatureScript::CanCreatureGossipHello |
( |
Player * |
, |
|
|
Creature * |
|
|
) |
| |
|
inlinevirtual |
This hook called when a player opens a gossip dialog with the creature.
- Parameters
-
player | Contains information about the Player |
creature | Contains information about the Creature |
- Returns
- False if you want to continue, true if you want to disable
Referenced by ScriptMgr::OnGossipHello().
◆ CanCreatureGossipSelect()
This hook called when a player selects a gossip item in the creature's gossip menu.
- Parameters
-
player | Contains information about the Player |
creature | Contains information about the Creature |
sender | Contains information about the sender type |
action | Contains information about the action id |
- Returns
- False if you want to continue, true if you want to disable
Referenced by ScriptMgr::OnGossipSelect().
◆ CanCreatureGossipSelectCode()
This hook called when a player selects a gossip with a code in the creature's gossip menu.
- Parameters
-
player | Contains information about the Player |
creature | Contains information about the Creature |
sender | Contains information about the sender type |
action | Contains information about the action id |
code | Contains information about the code entered |
- Returns
- True if you want to continue, false if you want to disable
Referenced by ScriptMgr::OnGossipSelectCode().
◆ CanCreatureQuestAccept()
virtual bool AllCreatureScript::CanCreatureQuestAccept |
( |
Player * |
, |
|
|
Creature * |
, |
|
|
Quest const * |
|
|
) |
| |
|
inlinevirtual |
◆ CanCreatureQuestReward()
◆ Creature_SelectLevel()
◆ GetCreatureAI()
◆ OnAllCreatureUpdate()
virtual void AllCreatureScript::OnAllCreatureUpdate |
( |
Creature * |
, |
|
|
uint32 |
|
|
) |
| |
|
inlinevirtual |
◆ OnBeforeCreatureSelectLevel()
◆ OnCreatureAddWorld()
virtual void AllCreatureScript::OnCreatureAddWorld |
( |
Creature * |
| ) |
|
|
inlinevirtual |
◆ OnCreatureRemoveWorld()
virtual void AllCreatureScript::OnCreatureRemoveWorld |
( |
Creature * |
| ) |
|
|
inlinevirtual |
◆ OnCreatureSaveToDB()
virtual void AllCreatureScript::OnCreatureSaveToDB |
( |
Creature * |
| ) |
|
|
inlinevirtual |
◆ OnFfaPvpStateUpdate()
virtual void AllCreatureScript::OnFfaPvpStateUpdate |
( |
Creature * |
, |
|
|
bool |
|
|
) |
| |
|
inlinevirtual |