diff --git a/GlobalMethods.h b/GlobalMethods.h index 3da06ee..8d68fd6 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -926,6 +926,8 @@ namespace LuaGlobalFunctions /** * Registers a [Player] gossip event handler. * + * Note that you can not use `GOSSIP_EVENT_ON_HELLO` with this hook. It does nothing since players dont have an "on hello". + * *
* enum GossipEvents
* {
diff --git a/PlayerMethods.h b/PlayerMethods.h
index 1a6c6fe..7557721 100644
--- a/PlayerMethods.h
+++ b/PlayerMethods.h
@@ -3090,7 +3090,7 @@ namespace LuaPlayer
* @proto (entry, itemCount)
* @param [Item] item : item to remove
* @param uint32 entry : entry of the item to remove
- * @param uint32 itemCount = 1 : amount of the item to add
+ * @param uint32 itemCount = 1 : amount of the item to remove
*/
int RemoveItem(Eluna* /*E*/, lua_State* L, Player* player)
{
@@ -3381,10 +3381,16 @@ namespace LuaPlayer
/**
* Sends the current gossip items of the player to him as a gossip menu with header text from the given textId.
*
+ * If sender is a [Player] then menu_id is mandatory, otherwise it is not used for anything.
+ * menu_id is the ID used to trigger the OnGossipSelect registered for players. See [Global:RegisterPlayerGossipEvent]
+ *
* See also: [Player:GossipMenuAddItem], [Player:GossipAddQuests], [Player:GossipComplete], [Player:GossipClearMenu]
*
+ * @proto (npc_text, sender)
+ * @proto (npc_text, sender, menu_id)
* @param uint32 npc_text : entry ID of a header text in npc_text database table, common default is 100
* @param [Object] sender : object acting as the source of the sent gossip menu
+ * @param uint32 menu_id : if sender is a [Player] then menu_id is mandatory
*/
int GossipSendMenu(Eluna* /*E*/, lua_State* L, Player* player)
{