Untitled
Guest 81 8th May, 2024
local toFollow = "Player2"
local toFollowPos = {}
local followMacro = macro(20, "follow target", function()
local target = getCreatureByName(toFollow)
if target then
local tpos = target:getPosition()
toFollowPos[tpos.z] = tpos
end
if player:isWalking() then return end
local p = toFollowPos[posz()]
if not p then return end
if autoWalk(p, 20, {ignoreNonPathable=true, precision=1}) then
delay(100)
end
end)
onCreaturePositionChange(function(creature, oldPos, newPos)
if creature:getName() == toFollow then
toFollowPos[newPos.z] = newPos
end
end)
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Untitled
Markup | 2 | 24 minutes ago
- Untitled
Markup | 13 | 1 hour ago
- Подшипники Цены
HTTP Strict-Transport-Security | 9 | 12 hours ago
- Doxycycline And Epiduo For Acne - rrkurqpldh
WebAssembly | 13 | 23 hours ago
- Утепление дома снаружи цена
Git | 14 | 1 day ago
- Untitled
Markup | 41 | 1 day ago
- The Wedding Photographer
Scheme | 114 | 1 day ago