mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 23:15:54 +02:00
Version 0.999 BETA - a lot of bug fixes, improvments and more advanced bot
This commit is contained in:
@@ -531,9 +531,13 @@ function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
end
|
||||
end
|
||||
|
||||
if g_game.getFeature(GameBot) and useThing then
|
||||
if g_game.getFeature(GameBot) and useThing and useThing:isItem() then
|
||||
menu:addSeparator()
|
||||
menu:addOption("ID: " .. useThing:getId())
|
||||
if useThing:getSubType() > 1 then
|
||||
menu:addOption("ID: " .. useThing:getId() .. " SubType: " .. useThing:getSubType())
|
||||
else
|
||||
menu:addOption("ID: " .. useThing:getId())
|
||||
end
|
||||
end
|
||||
|
||||
menu:display(menuPosition)
|
||||
|
Reference in New Issue
Block a user