Untitled
unknown
plain_text
a year ago
3.3 kB
6
Indexable
setDefaultTab("Tools") local amulet = 3081 local equip_ammy = null if getNeck() then equip_ammy = getNeck():getId() end macro(50, "Auto SSA", "Insert", function() if hppercent() <= 100 and (getNeck() == null or getNeck():getId() ~= amulet) then g_game.equipItemId(amulet) delay(200) elseif hppercent() >= 101 and (getNeck() == null or equip_ammy and getNeck():getId() ~= equip_ammy) then g_game.equipItemId(equip_ammy) delay(200) end end) -- equip might ring local ring = 3048 local equip_ammy = null if getFinger() then equip_ammy = getFinger():getId() end macro(50, "Auto Might Ring", "Delete", function() if hppercent() <= 100 and (getFinger() == null or getFinger():getId() ~= ring) then g_game.equipItemId(ring) delay(200) elseif hppercent() >= 102 and (getFinger() == null or equip_ammy and getFinger():getId() ~= equip_ammy) then g_game.equipItemId(equip_ammy) delay(200) end end) local energypercent = 50; local otherring = 70; local ringOne = 3051 local ringTwo = 25698 ener_Pvp=macro(200, "Butterfly > Energy Ring", function() if hppercent() <= energypercent and findItem(ringOne) then moveToSlot(ringOne, SlotFinger) elseif (hppercent() >= otherring) and findItem(ringTwo) then moveToSlot(ringTwo, SlotFinger) end end) addIcon("(RP) PvP", {item=3051, text="E-Ring"}, function(icon, isOn) ener_Pvp.setOn(isOn) end) local function checkPos(x, y) xyz = g_game.getLocalPlayer():getPosition() xyz.x = xyz.x + x xyz.y = xyz.y + y tile = g_map.getTile(xyz) if tile then return g_game.use(tile:getTopUseThing()) else return false end end macro(1, 'Bug Map', function() if modules.corelib.g_keyboard.isKeyPressed('w') then checkPos(0, -5) elseif modules.corelib.g_keyboard.isKeyPressed('e') then checkPos(3, -3) elseif modules.corelib.g_keyboard.isKeyPressed('d') then checkPos(5, 0) elseif modules.corelib.g_keyboard.isKeyPressed('c') then checkPos(3, 3) elseif modules.corelib.g_keyboard.isKeyPressed('s') then checkPos(0, 5) elseif modules.corelib.g_keyboard.isKeyPressed('z') then checkPos(-3, 3) elseif modules.corelib.g_keyboard.isKeyPressed('a') then checkPos(-5, 0) elseif modules.corelib.g_keyboard.isKeyPressed('q') then checkPos(-3, -3) end end) UI.Label("Auto Follow") addTextEdit("followleader", storage.followLeader or "player name", function(widget, text) storage.followLeader = text end) --Code local toFollowPos = {} local followMacro = macro(20, "Follow", function() local target = getCreatureByName(storage.followLeader) 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=false, precision=1, marginMin=1, marginMax=1}) then delay(100) end end) local function checkPos(x, y) xyz = g_game.getLocalPlayer():getPosition() xyz.x = xyz.x + x xyz.y = xyz.y + y tile = g_map.getTile(xyz) if tile then return g_game.use(tile:getTopUseThing()) else return false end end macro(1000, "Main BP Open", function() bpItem = getBack() bp = getContainer(0) if not bp and bpItem ~= nil then g_game.open(bpItem) end end)
Editor is loading...
Leave a Comment