Method Global:RegisterPlayerGossipEvent [-] [+]
Registers a Player gossip event handler.
| Event | State | Parameters | Comment |
|---|---|---|---|
| GOSSIP_EVENT_ON_HELLO | MAP | Not applicable for player gossip (players have no hello). | |
| GOSSIP_EVENT_ON_SELECT | MAP | 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. |
Synopsis
cancel = RegisterPlayerGossipEvent( menu_id, event, function )
cancel = RegisterPlayerGossipEvent( menu_id, event, function, shots )
Arguments
number eventPlayer gossip event Id, refer to table above.
Valid numbers: integers from 0 to 4,294,967,295.
function functionFunction to register.
number shots (0)The number of times the function will be called, 0 means "always call this function".
Valid numbers: integers from 0 to 4,294,967,295.
Returns
function cancelA function that cancels the binding when called.