Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small fix popup menu (where shows item's IDs) #230

Open
felipepips opened this issue Dec 30, 2022 · 1 comment
Open

small fix popup menu (where shows item's IDs) #230

felipepips opened this issue Dec 30, 2022 · 1 comment

Comments

@felipepips
Copy link

modules\game_interface\gameinterface.lua
Lines 567-575:

  if g_game.getFeature(GameBot) and useThing and useThing:isItem() then
    menu:addSeparator()
    local useThingId = useThing:getId()
    if useThing:getSubType() > 1 then
      menu:addOption("ID: " .. useThingId .. " SubType: " .. g_game..setClipboardText(useThingId), function() end)    
    else
      menu:addOption("ID: " .. useThingId, function() g_game.setClipboardText(useThingId) end)
    end
  end

on lines 571 and 573 instead of g_game.setClipboardText it should be: g_window.setClipboardText

@felipepips
Copy link
Author

also, i saw now, line 571 have more errors, the correct is:

menu:addOption("ID: " .. useThingId .. " SubType: " .. useThing:getSubType(), function() g_window.setClipboardText(useThingId) end)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant