Macros
Macros
OBS²: O que tiver em azul é algo que precisa ser alterado pelo usuario .
local castBelowHp = 40
say('SKILL AQUI')
end
end)
-Usar potion-
usewith(healthId, player)
end
end)
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
if modules.corelib.g_keyboard.isKeyPressed('w') then
checkPos(0, -5)
checkPos(3, -3)
checkPos(5, 0)
checkPos(3, 3)
checkPos(0, 5)
checkPos(-5, 0)
checkPos(-3, -3)
end
end)
-ENEMY-
for i, v in ipairs(friendlist) do
friendlist[i] = v:lower()
end
if creature:canShoot() then
possibleTarget = g
possibleTargetHP = possibleTarget:getHealthPercent()
end
end
end
end
end
g_game.attack(possibleTarget)
end
end)
-POTION-
usewith(healthId, player)
end
end)
local healthPercent = 99
end
end)
x = g_game.getAttackingCreature()
say('nome da magia')
end)
-ENEMY-
local playerList = {}
local friendPlayers = {}
if mob:getEmblem() == 1 then
table.insert(friendPlayers, mob:getName():lower())
end
if mob:isPlayer() then
end
end
end
table.sort(playerList, function(a,b) return a.hpenemy < b.hpenemy end)
g_game.attack(playerList[1].player)
end
playerList = {}
end)
local playerList = {}
-TEMPO DE PK NA TELA-
storage.TimeRemain = 0
storage.attacked = {}
storage.id = player:getId()
end
onTextMessage(function(mode, text)
if not text:lower():find('due to your') and not text:lower():find('you deal') then return end
for _, x in ipairs(getSpectators(posz())) do
for v, u in pairs(storage.attacked) do
if x:getName() == u.nk then
table.remove(storage.attacked, v)
end
end
end
end
end)
return '00:00'
end
v = v/1000
local mins = 00
local seconds = 00
if v >= 60 then
end
end
Panel
height: 400
width: 900
]], g_ui.getRootWidget())
Label
color: white
background-color: black
opacity: 0.85
text-horizontal-auto-resize: true
]], widget)
macro(1, function()
for c, q in ipairs(storage.attacked) do
for _, x in ipairs(getSpectators(true)) do
if x:getHealthPercent() == 0 then
table.remove(storage.attacked, c)
end
end
if q.t < now or q.t - now > 60000 or (q.nk == x:getName() and q.i ~= x:getId()) then
table.remove(storage.attacked, c)
end
end
end
timepk:setText('00:00:00')
timepk:setColor('green')
else
timepk:setText(doFormatMin(math.abs(now - storage.TimeRemain)))
timepk:setColor('red')
end
end)
storage.Key = {}
end
storage.Key.n = 'Numpad8'
storage.Key.s = 'Numpad2'
storage.Key.e = 'Numpad4'
storage.Key.d = 'Numpad6'
end)
storage.Key.n = 'W'
storage.Key.s = 'S'
storage.Key.e = 'A'
storage.Key.d = 'D'
end)
function checkPos(x, y)
xyz = pos()
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
onKeyPress(function(keys)
checkPos(0, -5)
checkPos(0, 5)
checkPos(-5, 0)
elseif keys == storage.Key.d then
checkPos(5, 0)
end
end)
use(11588)
end
end)
-REVIDAR PLAYER-
widget:setOn(revidar)
end)
onTextMessage(function(mode, text)
if revidar == true and not g_game.getAttackingCreature() and string.find(text, "You lose") then
if target then
g_game.attack(target)
end
end
end)
-ATACK OTHERS-
local closest = 10
if val:isMonster() then
lowesthpc = val:getHealthPercent()
end
end
end
end
if val:isMonster() then
g_game.attack(val)
delay(100)
break
end
end
end
end
end)
-MACRO DANCE-
end, warTab)
-MACRO UP ML-
say('Powerdown')
end)
-MACRO FOLLOW-
if g_game.isFollowing() then
return
end
g_game.follow(getFollowCreature)
end
end)
storage.followLeader = text
end)
tt = g_game.getAttackingCreature()
tx = tt:getPosition().x
ty = tt:getPosition().y
dir = player:getDirection()
tdx = math.abs(tx-pos().x)
tdy = math.abs(ty-pos().y)
if (tdy >= 2 and tdx >= 2) or tdx > 7 or tdy > 7 then return end
if dir ~= 2 then
turn(2)
end
end
turn(0)
end
end
if dir ~= 1 then
turn(1)
end
end
if dir ~= 3 then
turn(3)
end
end
end
end)
-MACRO DE COMBO-
local combo
if g_game.isAttacking() then
say('ESPECIAL')
say('magia1')
say('magia2')
say('magia3')
say('magia4')
end
end)
-MAGIA DE AREA-
local hpPercent = 100 macro(1, "Especial", function() if (hppercent() <= hpPercent) then say('genki
orijinaruredi') end end)
local combo
if g_game.isAttacking() then
say('MAGIA DE AREA')
say('MAGIA DE AREA')
say('')
say('')
end
end)
-MACRO DE SPEED-
say("Super speed")
end
end)
-MAGIA DE AREA COM ANT RED-
AreaTime = 0
end
say('area')
say('anjel attack')
end
end
end)
if g_game.isAttacking() then
say('magia ')
say('magia ')
say('magia ')
end
end)
macro(200, "MAGIA EM AREA", function()
if g_game.isAttacking() then
say('magia em area')
end
end)
-USAR BUFF-
ifnot hasPartyBuff()then
say("SEUBUFFAQUI")
end
end)
-FAST REGENERATION-
local hpPercent = 99
say(storage.HealText)
end
end)
storage.HealText = text
end)