Hellou guy's.
Find on forum example of code and wanted to test it. Well 75002 is gossip entry, and 75006 is npc vendor flaged entry. But When I click Test nothing happen and no error's show. Where seems to be a problem ?
Find on forum example of code and wanted to test it. Well 75002 is gossip entry, and 75006 is npc vendor flaged entry. But When I click Test nothing happen and no error's show. Where seems to be a problem ?
Code:
local vendorEntry = 75002
function vendorGossipHello(event, player, creature)
player:GossipClearMenu()
player:GossipMenuAddItem(0, "Test",0, 75006)
player:GossipSendMenu(103, creature)
end
function vendorGossipSelect(event, player, creature, sender, intid, code)
player:SendListInventory(creature,intid)
end
RegisterCreatureGossipEvent(vendorEntry, 1, vendorGossipHello)
RegisterCreatureGossipEvent(vendorEntry, 2, vendorGossipSelect)