Method Player:GossipMenuAddItem [-] [+]

Adds a new item to the gossip menu shown to the Player on next call to Player:GossipSendMenu.

sender and intid are numbers which are passed directly to the gossip selection handler. Internally they are partly used for the database gossip handling.
code specifies whether to show a box to insert text to. The player inserted text is passed to the gossip selection handler.
money specifies an amount of money the player needs to have to click the option. An error message is shown if the player doesn't have enough money.
Note that the money amount is only checked client side and is not removed from the player either. You will need to check again in your code before taking action.

See also: Player:GossipSendMenu, Player:GossipAddQuests, Player:GossipComplete, Player:GossipClearMenu

Synopsis

Player:GossipMenuAddItem( icon, msg, sender, intid )

Player:GossipMenuAddItem( icon, msg, sender, intid, code )

Player:GossipMenuAddItem( icon, msg, sender, intid, code, popup )

Player:GossipMenuAddItem( icon, msg, sender, intid, code, popup, money )

Arguments

number icon

Number that specifies used icon.

Valid numbers: integers from 0 to 4,294,967,295.

string msg

Label on the gossip item.

number sender

Number passed to gossip handlers.

Valid numbers: integers from 0 to 4,294,967,295.

number intid

Number passed to gossip handlers.

Valid numbers: integers from 0 to 4,294,967,295.

boolean code (false)

Show text input on click if true.

string popup (nil)

If non empty string, a popup with given text shown on click.

number money (0)

Required money in copper.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

Nothing.

Generated on
©2016 - Eluna Lua Engine