• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient - PopMenu Trade Market

Gengo

Member
Joined
Jan 13, 2018
Messages
7
Solutions
2
Reaction score
19
Could someone help me with the following code:

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.
 
Back
Top