avatar
Untitled

Guest 112 15th Dec, 2019

                                           
                         local healthId = 23375
local healthPercent = 95
macro(50, "faster health potting", function()
	if (hppercent() <= healthPercent) then
		usewith(healthId, player)
	end
end)

local manaId = 268
local manaPercent = 90
macro(200, "faster mana potting", function()
	if (manapercent() <= manaPercent) then
		usewith(manaId, player)
	end
end)

macro(100, "Anti Paralyze", nil, function()
	if isParalyzed() and storage.autoAntiParalyzeText:len() > 0 then
		saySpell(storage.autoAntiParalyzeText)
	end
end)

addTextEdit("autoAntiParalyzeText", storage.autoAntiParalyzeText or "utani hur", function(widget, text)
	storage.autoAntiParalyzeText = text
end)

macro(2500, "Monster Boxes", function()
	for i, tile in ipairs(g_map.getTiles(posz())) do
		for u,item in ipairs(tile:getItems()) do
			if (item:getId() == 9586) then
				g_game.use(item)
				return
			end
		end
	end
	g_game.setChaseMode(1)
end)

local walk_button = modules.game_luniabot.walkButton;
function hasEffect(tile, effect)
	for i, fx in ipairs(tile:getEffects()) do
		if fx:getId() == effect then
			return true
		end
	end
	return false
end

macro(100, "essence", function()
	for _, tile in pairs(g_map.getTiles(posz())) do
		if (hasEffect(tile, 56) or hasEffect(tile, 56)) then
			walk_button:setChecked(false);
			autoWalk(tile:getPosition(), 100, { ignoreNonPathable = true });
			schedule(5000, function() walk_button:setChecked(true); end);
		end
	end
end)

macro(1000, "open monster flames", function()
	for i, tile in ipairs(g_map.getTiles(posz())) do
		for u,item in ipairs(tile:getItems()) do
			if (item:getId() == 25058) then
				autoWalk(tile:getPosition(), 100, {ignoreNonPathable = true})
			end
		end
	end
end)
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data