Update hook documentations
This commit is contained in:
109
GlobalMethods.h
109
GlobalMethods.h
@@ -652,15 +652,15 @@ namespace LuaGlobalFunctions
|
||||
* PLAYER_EVENT_ON_DUEL_END = 11, // (event, winner, loser, type)
|
||||
* PLAYER_EVENT_ON_GIVE_XP = 12, // (event, player, amount, victim) - Can return new XP amount
|
||||
* PLAYER_EVENT_ON_LEVEL_CHANGE = 13, // (event, player, oldLevel)
|
||||
* PLAYER_EVENT_ON_MONEY_CHANGE = 14, // (event, player, amount)
|
||||
* PLAYER_EVENT_ON_MONEY_CHANGE = 14, // (event, player, amount) - Can return new money amount
|
||||
* PLAYER_EVENT_ON_REPUTATION_CHANGE = 15, // (event, player, factionId, standing, incremental) - Can return new standing
|
||||
* PLAYER_EVENT_ON_TALENTS_CHANGE = 16, // (event, player, points)
|
||||
* PLAYER_EVENT_ON_TALENTS_RESET = 17, // (event, player, noCost)
|
||||
* PLAYER_EVENT_ON_CHAT = 18, // (event, player, msg, Type, lang) - Can return false or new msg
|
||||
* PLAYER_EVENT_ON_WHISPER = 19, // (event, player, msg, Type, lang, receiver) - Can return false or new msg
|
||||
* PLAYER_EVENT_ON_GROUP_CHAT = 20, // (event, player, msg, Type, lang, group) - Can return false or new msg
|
||||
* PLAYER_EVENT_ON_GUILD_CHAT = 21, // (event, player, msg, Type, lang, guild) - Can return false or new msg
|
||||
* PLAYER_EVENT_ON_CHANNEL_CHAT = 22, // (event, player, msg, Type, lang, channel) - Can return false or new msg
|
||||
* PLAYER_EVENT_ON_CHAT = 18, // (event, player, msg, Type, lang) - Can return false, newMessage
|
||||
* PLAYER_EVENT_ON_WHISPER = 19, // (event, player, msg, Type, lang, receiver) - Can return false, newMessage
|
||||
* PLAYER_EVENT_ON_GROUP_CHAT = 20, // (event, player, msg, Type, lang, group) - Can return false, newMessage
|
||||
* PLAYER_EVENT_ON_GUILD_CHAT = 21, // (event, player, msg, Type, lang, guild) - Can return false, newMessage
|
||||
* PLAYER_EVENT_ON_CHANNEL_CHAT = 22, // (event, player, msg, Type, lang, channel) - Can return false, newMessage
|
||||
* PLAYER_EVENT_ON_EMOTE = 23, // (event, player, emote) - Not triggered on any known emote
|
||||
* PLAYER_EVENT_ON_TEXT_EMOTE = 24, // (event, player, textEmote, emoteNum, guid)
|
||||
* PLAYER_EVENT_ON_SAVE = 25, // (event, player)
|
||||
@@ -671,7 +671,7 @@ namespace LuaGlobalFunctions
|
||||
* // Custom
|
||||
* PLAYER_EVENT_ON_EQUIP = 29, // (event, player, item, bag, slot)
|
||||
* PLAYER_EVENT_ON_FIRST_LOGIN = 30, // (event, player)
|
||||
* PLAYER_EVENT_ON_CAN_USE_ITEM = 31, // (event, player, itemEntry)
|
||||
* PLAYER_EVENT_ON_CAN_USE_ITEM = 31, // (event, player, itemEntry) - Can return InventoryResult
|
||||
* PLAYER_EVENT_ON_LOOT_ITEM = 32, // (event, player, item, count)
|
||||
* PLAYER_EVENT_ON_ENTER_COMBAT = 33, // (event, player, enemy)
|
||||
* PLAYER_EVENT_ON_LEAVE_COMBAT = 34, // (event, player)
|
||||
@@ -679,12 +679,10 @@ namespace LuaGlobalFunctions
|
||||
* PLAYER_EVENT_ON_RESURRECT = 36, // (event, player)
|
||||
* PLAYER_EVENT_ON_LOOT_MONEY = 37, // (event, player, amount)
|
||||
* PLAYER_EVENT_ON_QUEST_ABANDON = 38, // (event, player, questId)
|
||||
* // UNUSED = 39, // (event, player)
|
||||
* PLAYER_EVENT_ON_LEARN_TALENTS = 39, // (event, player, talentId, talentRank, spellid)
|
||||
* // UNUSED = 40, // (event, player)
|
||||
* // UNUSED = 41, // (event, player)
|
||||
* PLAYER_EVENT_ON_COMMAND = 42, // (event, player, command) - player is nil if command used from console. Can return false
|
||||
*
|
||||
* PLAYER_EVENT_COUNT
|
||||
* };
|
||||
* </pre>
|
||||
*
|
||||
@@ -710,13 +708,13 @@ namespace LuaGlobalFunctions
|
||||
* {
|
||||
* // Guild
|
||||
* GUILD_EVENT_ON_ADD_MEMBER = 1, // (event, guild, player, rank)
|
||||
* GUILD_EVENT_ON_REMOVE_MEMBER = 2, // (event, guild, isDisbanding)
|
||||
* GUILD_EVENT_ON_REMOVE_MEMBER = 2, // (event, guild, player, isDisbanding)
|
||||
* GUILD_EVENT_ON_MOTD_CHANGE = 3, // (event, guild, newMotd)
|
||||
* GUILD_EVENT_ON_INFO_CHANGE = 4, // (event, guild, newInfo)
|
||||
* GUILD_EVENT_ON_CREATE = 5, // (event, guild, leader, name) // Not on TC
|
||||
* GUILD_EVENT_ON_DISBAND = 6, // (event, guild)
|
||||
* GUILD_EVENT_ON_MONEY_WITHDRAW = 7, // (event, guild, player, amount, isRepair)
|
||||
* GUILD_EVENT_ON_MONEY_DEPOSIT = 8, // (event, guild, player, amount)
|
||||
* GUILD_EVENT_ON_MONEY_WITHDRAW = 7, // (event, guild, player, amount, isRepair) - Can return new money amount
|
||||
* GUILD_EVENT_ON_MONEY_DEPOSIT = 8, // (event, guild, player, amount) - Can return new money amount
|
||||
* GUILD_EVENT_ON_ITEM_MOVE = 9, // (event, guild, player, item, isSrcBank, srcContainer, srcSlotId, isDestBank, destContainer, destSlotId) // TODO
|
||||
* GUILD_EVENT_ON_EVENT = 10, // (event, guild, eventType, plrGUIDLow1, plrGUIDLow2, newRank) // TODO
|
||||
* GUILD_EVENT_ON_BANK_EVENT = 11, // (event, guild, eventType, tabId, playerGUIDLow, itemOrMoney, itemStackCount, destTabId)
|
||||
@@ -805,9 +803,9 @@ namespace LuaGlobalFunctions
|
||||
* <pre>
|
||||
* enum PacketEvents
|
||||
* {
|
||||
* PACKET_EVENT_ON_PACKET_RECEIVE = 5,
|
||||
* PACKET_EVENT_ON_PACKET_RECEIVE_UNKNOWN = 6,
|
||||
* PACKET_EVENT_ON_PACKET_SEND = 7,
|
||||
* PACKET_EVENT_ON_PACKET_RECEIVE = 5, // (event, packet, player) - Player only if accessible. Can return false, newPacket
|
||||
* PACKET_EVENT_ON_PACKET_RECEIVE_UNKNOWN = 6, // Not Implemented
|
||||
* PACKET_EVENT_ON_PACKET_SEND = 7, // (event, packet, player) - Player only if accessible. Can return false, newPacket
|
||||
*
|
||||
* PACKET_EVENT_COUNT
|
||||
* };
|
||||
@@ -834,8 +832,8 @@ namespace LuaGlobalFunctions
|
||||
* <pre>
|
||||
* enum GossipEvents
|
||||
* {
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. For item gossip can return false to stop spell *casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is *only for player gossip
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. Can return false to do default action. For item gossip can return false to stop spell casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is only for player gossip. Can return false to do default action.
|
||||
* GOSSIP_EVENT_COUNT
|
||||
* };
|
||||
* </pre>
|
||||
@@ -861,8 +859,8 @@ namespace LuaGlobalFunctions
|
||||
* <pre>
|
||||
* enum GossipEvents
|
||||
* {
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. For item gossip can return false to stop spell *casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is *only for player gossip
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. Can return false to do default action. For item gossip can return false to stop spell casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is only for player gossip. Can return false to do default action.
|
||||
* GOSSIP_EVENT_COUNT
|
||||
* };
|
||||
* </pre>
|
||||
@@ -888,11 +886,11 @@ namespace LuaGlobalFunctions
|
||||
* <pre>
|
||||
* enum ItemEvents
|
||||
* {
|
||||
* ITEM_EVENT_ON_DUMMY_EFFECT = 1, // (event, caster, spellid, effindex, item)
|
||||
* ITEM_EVENT_ON_DUMMY_EFFECT = 1, // (event, caster, spellid, effindex, item) - Can return true
|
||||
* ITEM_EVENT_ON_USE = 2, // (event, player, item, target) - Can return false to stop the spell casting
|
||||
* ITEM_EVENT_ON_QUEST_ACCEPT = 3, // (event, player, item, quest)
|
||||
* ITEM_EVENT_ON_EXPIRE = 4, // (event, player, itemid)
|
||||
* ITEM_EVENT_ON_REMOVE = 5, // (event, player, item)
|
||||
* ITEM_EVENT_ON_QUEST_ACCEPT = 3, // (event, player, item, quest) - Can return true
|
||||
* ITEM_EVENT_ON_EXPIRE = 4, // (event, player, itemid) - Can return true
|
||||
* ITEM_EVENT_ON_REMOVE = 5, // (event, player, item) - Can return true
|
||||
* ITEM_EVENT_COUNT
|
||||
* };
|
||||
* </pre>
|
||||
@@ -918,8 +916,8 @@ namespace LuaGlobalFunctions
|
||||
* <pre>
|
||||
* enum GossipEvents
|
||||
* {
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. For item gossip can return false to stop spell *casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is *only for player gossip
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. Can return false to do default action. For item gossip can return false to stop spell casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is only for player gossip. Can return false to do default action.
|
||||
* GOSSIP_EVENT_COUNT
|
||||
* };
|
||||
* </pre>
|
||||
@@ -1001,8 +999,8 @@ namespace LuaGlobalFunctions
|
||||
* <pre>
|
||||
* enum GossipEvents
|
||||
* {
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. For item gossip can return false to stop spell *casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is *only for player gossip
|
||||
* GOSSIP_EVENT_ON_HELLO = 1, // (event, player, object) - Object is the Creature/GameObject/Item. Can return false to do default action. For item gossip can return false to stop spell casting.
|
||||
* GOSSIP_EVENT_ON_SELECT = 2, // (event, player, object, sender, intid, code, menu_id) - Object is the Creature/GameObject/Item/Player, menu_id is only for player gossip. Can return false to do default action.
|
||||
* GOSSIP_EVENT_COUNT
|
||||
* };
|
||||
* </pre>
|
||||
@@ -1028,40 +1026,40 @@ namespace LuaGlobalFunctions
|
||||
* <pre>
|
||||
* enum CreatureEvents
|
||||
* {
|
||||
* CREATURE_EVENT_ON_ENTER_COMBAT = 1, // (event, creature, target)
|
||||
* CREATURE_EVENT_ON_LEAVE_COMBAT = 2, // (event, creature)
|
||||
* CREATURE_EVENT_ON_TARGET_DIED = 3, // (event, creature, victim)
|
||||
* CREATURE_EVENT_ON_DIED = 4, // (event, creature, killer)
|
||||
* CREATURE_EVENT_ON_SPAWN = 5, // (event, creature)
|
||||
* CREATURE_EVENT_ON_REACH_WP = 6, // (event, creature, type, id)
|
||||
* CREATURE_EVENT_ON_AIUPDATE = 7, // (event, creature, diff)
|
||||
* CREATURE_EVENT_ON_RECEIVE_EMOTE = 8, // (event, creature, player, emoteid)
|
||||
* CREATURE_EVENT_ON_ENTER_COMBAT = 1, // (event, creature, target) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_LEAVE_COMBAT = 2, // (event, creature) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_TARGET_DIED = 3, // (event, creature, victim) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_DIED = 4, // (event, creature, killer) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_SPAWN = 5, // (event, creature) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_REACH_WP = 6, // (event, creature, type, id) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_AIUPDATE = 7, // (event, creature, diff) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_RECEIVE_EMOTE = 8, // (event, creature, player, emoteid) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_DAMAGE_TAKEN = 9, // (event, creature, attacker, damage) - Can return new damage
|
||||
* CREATURE_EVENT_ON_PRE_COMBAT = 10, // (event, creature, target)
|
||||
* CREATURE_EVENT_ON_ATTACKED_AT = 11, // (event, creature, attacker)
|
||||
* CREATURE_EVENT_ON_OWNER_ATTACKED = 12, // (event, creature, target) // Not on mangos
|
||||
* CREATURE_EVENT_ON_OWNER_ATTACKED_AT = 13, // (event, creature, attacker) // Not on mangos
|
||||
* CREATURE_EVENT_ON_HIT_BY_SPELL = 14, // (event, creature, caster, spellid)
|
||||
* CREATURE_EVENT_ON_SPELL_HIT_TARGET = 15, // (event, creature, target, spellid)
|
||||
* CREATURE_EVENT_ON_PRE_COMBAT = 10, // (event, creature, target) - Can return true to stop normal action
|
||||
* // UNUSED
|
||||
* CREATURE_EVENT_ON_OWNER_ATTACKED = 12, // (event, creature, target) - Can return true to stop normal action // Not on mangos
|
||||
* CREATURE_EVENT_ON_OWNER_ATTACKED_AT = 13, // (event, creature, attacker) - Can return true to stop normal action // Not on mangos
|
||||
* CREATURE_EVENT_ON_HIT_BY_SPELL = 14, // (event, creature, caster, spellid) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_SPELL_HIT_TARGET = 15, // (event, creature, target, spellid) - Can return true to stop normal action
|
||||
* // UNUSED = 16, // (event, creature)
|
||||
* // UNUSED = 17, // (event, creature)
|
||||
* // UNUSED = 18, // (event, creature)
|
||||
* CREATURE_EVENT_ON_JUST_SUMMONED_CREATURE = 19, // (event, creature, summon)
|
||||
* CREATURE_EVENT_ON_SUMMONED_CREATURE_DESPAWN = 20, // (event, creature, summon)
|
||||
* CREATURE_EVENT_ON_SUMMONED_CREATURE_DIED = 21, // (event, creature, summon, killer) // Not on mangos
|
||||
* CREATURE_EVENT_ON_SUMMONED = 22, // (event, creature, summoner)
|
||||
* CREATURE_EVENT_ON_JUST_SUMMONED_CREATURE = 19, // (event, creature, summon) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_SUMMONED_CREATURE_DESPAWN = 20, // (event, creature, summon) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_SUMMONED_CREATURE_DIED = 21, // (event, creature, summon, killer) - Can return true to stop normal action // Not on mangos
|
||||
* CREATURE_EVENT_ON_SUMMONED = 22, // (event, creature, summoner) - Can return true to stop normal action
|
||||
* CREATURE_EVENT_ON_RESET = 23, // (event, creature)
|
||||
* CREATURE_EVENT_ON_REACH_HOME = 24, // (event, creature)
|
||||
* CREATURE_EVENT_ON_REACH_HOME = 24, // (event, creature) - Can return true to stop normal action
|
||||
* // UNUSED = 25, // (event, creature)
|
||||
* CREATURE_EVENT_ON_CORPSE_REMOVED = 26, // (event, creature, respawndelay) - Can return new respawndelay
|
||||
* CREATURE_EVENT_ON_MOVE_IN_LOS = 27, // (event, creature, unit) - Does not actually check LOS. Just uses the sight range
|
||||
* CREATURE_EVENT_ON_CORPSE_REMOVED = 26, // (event, creature, respawndelay) - Can return true, newRespawnDelay
|
||||
* CREATURE_EVENT_ON_MOVE_IN_LOS = 27, // (event, creature, unit) - Can return true to stop normal action. Does not actually check LOS, just uses the sight range
|
||||
* // UNUSED = 28, // (event, creature)
|
||||
* // UNUSED = 29, // (event, creature)
|
||||
* CREATURE_EVENT_ON_DUMMY_EFFECT = 30, // (event, caster, spellid, effindex, creature)
|
||||
* CREATURE_EVENT_ON_QUEST_ACCEPT = 31, // (event, player, creature, quest)
|
||||
* CREATURE_EVENT_ON_DUMMY_EFFECT = 30, // (event, caster, spellid, effindex, creature) - Can return true
|
||||
* CREATURE_EVENT_ON_QUEST_ACCEPT = 31, // (event, player, creature, quest) - Can return true
|
||||
* // UNUSED = 32, // (event, creature)
|
||||
* // UNUSED = 33, // (event, creature)
|
||||
* CREATURE_EVENT_ON_QUEST_REWARD = 34, // (event, player, creature, quest, opt)
|
||||
* CREATURE_EVENT_ON_QUEST_REWARD = 34, // (event, player, creature, quest, opt) - Can return true
|
||||
* CREATURE_EVENT_ON_DIALOG_STATUS = 35, // (event, player, creature)
|
||||
* CREATURE_EVENT_ON_ADD = 36, // (event, creature)
|
||||
* CREATURE_EVENT_ON_REMOVE = 37, // (event, creature)
|
||||
@@ -1155,9 +1153,9 @@ namespace LuaGlobalFunctions
|
||||
* {
|
||||
* GAMEOBJECT_EVENT_ON_AIUPDATE = 1, // (event, go, diff)
|
||||
* GAMEOBJECT_EVENT_ON_SPAWN = 2, // (event, go)
|
||||
* GAMEOBJECT_EVENT_ON_DUMMY_EFFECT = 3, // (event, caster, spellid, effindex, go)
|
||||
* GAMEOBJECT_EVENT_ON_QUEST_ACCEPT = 4, // (event, player, go, quest)
|
||||
* GAMEOBJECT_EVENT_ON_QUEST_REWARD = 5, // (event, player, go, quest, opt)
|
||||
* GAMEOBJECT_EVENT_ON_DUMMY_EFFECT = 3, // (event, caster, spellid, effindex, go) - Can return true
|
||||
* GAMEOBJECT_EVENT_ON_QUEST_ACCEPT = 4, // (event, player, go, quest) - Can return true
|
||||
* GAMEOBJECT_EVENT_ON_QUEST_REWARD = 5, // (event, player, go, quest, opt) - Can return true
|
||||
* GAMEOBJECT_EVENT_ON_DIALOG_STATUS = 6, // (event, player, go)
|
||||
* GAMEOBJECT_EVENT_ON_DESTROYED = 7, // (event, go, player)
|
||||
* GAMEOBJECT_EVENT_ON_DAMAGED = 8, // (event, go, player)
|
||||
@@ -1166,6 +1164,7 @@ namespace LuaGlobalFunctions
|
||||
* // UNUSED = 11, // (event, gameobject)
|
||||
* GAMEOBJECT_EVENT_ON_ADD = 12, // (event, gameobject)
|
||||
* GAMEOBJECT_EVENT_ON_REMOVE = 13, // (event, gameobject)
|
||||
* GAMEOBJECT_EVENT_ON_USE = 14, // (event, go, player)
|
||||
* GAMEOBJECT_EVENT_COUNT
|
||||
* };
|
||||
* </pre>
|
||||
|
||||
Reference in New Issue
Block a user