bot traceback, moveup function, chat setting default ongamestart

This commit is contained in:
Henrique Santiago
2012-04-25 21:15:48 -03:00
parent c89665848d
commit 60495174a4
5 changed files with 21 additions and 3 deletions

View File

@@ -194,8 +194,7 @@ function GameInterface.createThingMenu(menuPosition, lookThing, useThing, creatu
if lookThing then
local parentContainer = lookThing:getParentContainer()
if parentContainer and parentContainer:hasParent() then
local pos = lookThing:getPosition()
menu:addOption('Move up', function() g_game.move(lookThing, { x=pos.x, y=pos.y, z=254 }, lookThing:getCount()) end)
menu:addOption('Move up', function() g_game.moveToParentContainer(lookThing, lookThing:getCount()) end)
end
end