Could someone help me with the following code:
I'm trying to do a trade market, when the player right click on npc appears in the popMenu list the Trade Market option, but in this way I'm trying to do I'm not getting results, I've tried in other ways, but with no success.
Lua:
if creatureThing and creatureThing:isNpc() then
menu:addSeparator()
menu:addOption(tr('Trade Market'), function() modules.game_npctrade.onOpenNpcTrade() end)
end
I'm trying to do a trade market, when the player right click on npc appears in the popMenu list the Trade Market option, but in this way I'm trying to do I'm not getting results, I've tried in other ways, but with no success.