Lightning Blade
BETA Tester
How exactly does the Group method " IsLeader() " Work ?
// :IsLeader("name"/Player)
local group = player:GetGroup()
if (group ~= nil) then
if (group:IsLeader(player:GetName()) then
end
end
plr:GossipSendMenu(1, unit)
function OnSelect(event, player, ceature, sender, intid, code)
if(intid == 1) then
plr:GossipMenuAddItem(0, "", 0, 101)
plr:GossipMenuAddItem(0, "Tell me more about it", 0, 101)
plr:GossipSendMenu(1, creature)
end
end
It's the exact same -.-. I've just added gossipcomplete and fixed the menu sender.
Code:plr:GossipSendMenu(1, unit)
"unit" should be creature on both of those methods.
Also, your gossip menus "OnSelect" won't be seen because you're missing GossipSendMenu(1, creature) and you're missing an end to close your if statement, also, your OnSelect function arguments are wrong. It should be "event, player, ceature, sender, intid, code"
Code:function OnSelect(event, player, ceature, sender, intid, code) if(intid == 1) then plr:GossipMenuAddItem(0, "", 0, 101) plr:GossipMenuAddItem(0, "Tell me more about it", 0, 101) plr:GossipSendMenu(1, creature) end end
It seems as if you're guessing. If you aren't sure about anything, look on the wiki: http://wiki.emudevs.com/doku.php?id=eluna
You updated it after first time i read it.
- - - Updated - - -
But that didn't fix the problem.
- - - Updated - - -
I'm not using the sender nor code, so it doesn't affect my function.
Figured it out this is how my argument list should look like " event, plr, creature, arg2, intid "
event, player, creature, sender, intid, code
I needed arg2, it wouldn't work without it.