I know I'm missing something really simple here. I get an error saying "Bad argument #1 to `GetPlayerGUID` <number expected, got nil>
Code:if (intid == 2) then guid = GetPlayerGUID(lowguid) print(guid) end
local NPC_ID = 4629
function Gossip(event, plr, unit)
plr:GossipMenuAddItem(7, "Hello World", 0, 1)
plr:GossipMenuAddItem(2, "Test", 0, 2)
plr:GossipSendMenu(1, unit)
end
function Gossip_Select(event, player, unit, sender, intid, code)
if (intid == 1) then
-- Do Something
end
if (intid == 2) then
guid = player:GetGUIDLow()
print(guid)
end
player:GossipComplete()
end
RegisterCreatureGossipEvent(NPC_ID, 1, Gossip)
RegisterCreatureGossipEvent(NPC_ID, 2, Gossip_Select)
Shouldn't it be Player::GetGUID() instead of GetPlayerGUID()?
EDIT: Nevermind, problem was solved already.