Skip to content

Interface:Monster Events

Stefan A. Brannfjell edited this page Dec 19, 2017 · 2 revisions

You can create event names in creatureevents.xml, which will link a creatureevent name to a script file located in data/creatureevents/scripts. You must also register events to monsters. This can either be done through the monster.xml file in data/monsters/scripts, or through Lua

monster:registerEvent("EventNameFromCreaturescriptsXML")

Available events:

onCreatureAppear()
onCreatureDisappear()
onCreatureMove()
onCreatureSay()
onThink()


onCreatureAppear()

Description: N/A
Parameters: N/A
Accepted return values: N/A
Example:

N/A  

Added in version: 1.0


onCreatureDisappear()

Description: N/A
Parameters: N/A
Accepted return values: N/A
Example:

N/A  

Added in version: 1.0


onCreatureMove()

Description: N/A
Parameters: N/A
Accepted return values: N/A
Example:

N/A  

Added in version: 1.0


onCreatureSay()

Description: N/A
Parameters: N/A
Accepted return values: N/A
Example:

N/A  

Added in version: 1.0


onThink()

Description: N/A
Parameters: N/A
Accepted return values: N/A
Example:

N/A  

Added in version: 1.0

Clone this wiki locally