mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 1.7
This commit is contained in:
@@ -285,10 +285,14 @@ function onUseWith(clickedWidget, mousePosition)
|
||||
if clickedWidget:getClassName() == 'UIGameMap' then
|
||||
local tile = clickedWidget:getTile(mousePosition)
|
||||
if tile then
|
||||
if selectedThing:isFluidContainer() or selectedThing:isMultiUse() then
|
||||
g_game.useWith(selectedThing, tile:getTopMultiUseThing(), selectedSubtype)
|
||||
if selectedThing:isFluidContainer() or selectedThing:isMultiUse() then
|
||||
if selectedThing:getId() == 3180 or selectedThing:getId() == 3156 then
|
||||
-- special version for mwall
|
||||
g_game.useWith(selectedThing, tile:getTopUseThing(), selectedSubtype)
|
||||
else
|
||||
g_game.useWith(selectedThing, tile:getTopMultiUseThingEx(clickedWidget:getPositionOffset(mousePosition)), selectedSubtype)
|
||||
end
|
||||
else
|
||||
print("normal")
|
||||
g_game.useWith(selectedThing, tile:getTopUseThing(), selectedSubtype)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user