Untitled
Guest 82 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
- Как повлияла пандемия на куринные крылышки
Markup templating | 4 | 1 hour ago
- Untitled
Markup | 13 | 3 hours ago
- Untitled
Markup | 14 | 4 hours ago
- Подшипники Цены
HTTP Strict-Transport-Security | 9 | 15 hours ago
- Doxycycline And Epiduo For Acne - rrkurqpldh
WebAssembly | 13 | 1 day ago
- Утепление дома снаружи цена
Git | 14 | 1 day ago
- Untitled
Markup | 41 | 1 day ago