Version 2.6.1

This commit is contained in:
OTCv8
2021-01-18 00:46:05 +01:00
parent 8fa45f387d
commit b938520faf
100 changed files with 1812 additions and 4267 deletions

View File

@@ -0,0 +1,27 @@
setDefaultTab("Tools")
local toggle = macro(1000, "mwall step", "F12",function() end)
onPlayerPositionChange(function(newPos, oldPos)
if oldPos.z ~= posz() then return end
if oldPos then
local tile = g_map.getTile(oldPos)
if toggle.isOn() and tile:isWalkable() then
useWith(3180, tile:getTopUseThing())
toggle.setOff()
end
end
end)
local toggle2 = macro(1000, "mwall on target", "F11",function() end)
onCreaturePositionChange(function(creature, newPos, oldPos)
if creature == target() or creature == g_game.getFollowingCreature() then
if oldPos and oldPos.z == posz() then
local tile2 = g_map.getTile(oldPos)
if toggle2.isOn() and tile2:isWalkable() then
useWith(3180, tile2:getTopUseThing())
toggle2.setOff()
end
end
end
end)