avatar
Untitled

Guest 69 8th Feb, 2025

MARKUP 3.98 KB
                                           
                         followName = "autofollow"
if not storage[followName] then storage[followName] = { player = 'creatine'} end
UI.Separator()
UI.Label("Auto Follow")
followTE = UI.TextEdit(storage[followName].player or "creatine", function(widget, newText)
    storage[followName].player = newText
end)
UI.Label("Walk Delay")
UI.TextEdit(storage.delayf or "100", function(widget, newText)
    storage.delayf = newText
end)
local toFollowPos = {}
local followChange = macro(500, "Follow Change", function() end)
local followMacro = macro(20, "Follow", function()
    local target = getCreatureByName(storage[followName].player)
    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 target then
      autoWalk(p, 20, {ignoreNonPathable=true, precision=1, marginMin=1, marginMax=1})
    else
      autoWalk(p, 20, {ignoreNonPathable=true, precision=0})
    end
    delay(tonumber(storage.delayf))
end)
UI.Separator()
onPlayerPositionChange(function(newPos, oldPos)
  if followChange:isOff() then return end
  if (g_game.isFollowing()) then
    tfollow = g_game.getFollowingCreature()
 
    if tfollow then
      if tfollow:getName() ~= storage[followName].player then
        followTE:setText(tfollow:getName())
        storage[followName].player = tfollow:getName()
      end
    end
  end
end)
onCreaturePositionChange(function(creature, newPos, oldPos)
    if creature:getName() == storage[followName].player and newPos then
        toFollowPos[newPos.z] = newPos
    end
end)














macro(40000, "auto eat", function() use(169
)
end)



macro(500, "Auto Haste", nil, function()
    if not hasHaste() and storage.autoHasteText:len() > 0 then
      if saySpell(storage.autoHasteText) then
        delay(5000)
      end
    end
  end)
  addTextEdit("autoHasteText", storage.autoHasteText or "speed up", function(widget, text) 
    storage.autoHasteText = text
end)


local singleTargetSpell = ''
local multiTargetSpell = 'Kekkai Shiho Fujin'
local distance = 4
local amountOfMonsters = 1

macro(250, "multi target spell",  function()
    local specAmount = 0
    if not g_game.isAttacking() then
        return
    end
    for i,mob in ipairs(getSpectators()) do
        if (getDistanceBetween(player:getPosition(), mob:getPosition())  <= distance and mob:isMonster())  then
            specAmount = specAmount + 1
        end
    end
    if (specAmount >= amountOfMonsters) then    
        say(multiTargetSpell)
    else
        say(singleTargetSpell)
    end
end)




-----leczenie soldierkami------
local soldierId = 2992
addIcon("SoldierMana&&Hp", {item={id= 2992, count=1}, text="Sold"}, macro(500,  function()
  if (hppercent() <= 50) then
    usewith(soldierId, player) 
  end
end))
-------leczenie specialkami-------
local specialId = 5895
addIcon("SpHp", {item={id= 5895, count=1}, text="Adre"}, macro(500, function()
  if (hppercent() <= 60) then
    usewith(specialId, player) 
  end
end))
------regeneration spell--------
local regeSpell = "Chiyute no Jutsu"
addIcon("regen", {item={id= 3049, count=1}, text="Chiyo"}, macro(250, function()
  if(hppercent() <= 87) then
    say(regeSpell)
    end
end))
------leczenie herowater------
local hwId = 3042
addIcon("HwMana&&Hp", {item={id= 3042, count=1}, text="ChakPill"}, macro(500, function()
  if (manapercent() <= 1) then
    usewith(hwId, player) 
  end
end))


macro(2000, "BUFF", function()
  say ("Genki Me")
end)
UI.Separator()
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
Ta strona używa plików cookie w celu usprawnienia i ułatwienia dostępu do serwisu oraz prowadzenia danych statystycznych. Dalsze korzystanie z tej witryny oznacza akceptację tego stanu rzeczy.
Wykorzystywanie plików Cookie
Jak wyłączyć cookies?
ROZUMIEM