Code: Select all
if 30 > player.MP/player.MaxMP*100 then
cprintf(cli.yellow,"\nLow on Mana!!\n")
endCode: Select all
if 30 > player.MP/player.MaxMP*100 then
cprintf(cli.yellow,"\nLow on Mana!!\n")
endCode: Select all
player:updateMP();
if 30 > player.MP/player.MaxMP*100 then
cprintf(cli.yellow,"\nLow on Mana!!\n")
end
Code: Select all
repeat
if not player:hasBuff(621218) and player.Class1 == 10 then
RoMScript('CastSpellByName("Shield Form")')
yrest(200);
end
if player:target() ~= Tobuff then
player:target(Tobuff.Address)
end
if 30 > player.MP/player.MaxMP*100 then
cprintf(cli.yellow,"\nLow on Mana!!\n")
end
if Followtank == true then
RoMScript('FollowUnit("target")');
end
yrest(200);
if Spamtank == true then
RoMScript("CastSpellByName(\""..UseSkill.."\");");
else
if 100 > target.HP/target.MaxHP*100 then
RoMScript("CastSpellByName(\""..UseSkill.."\");");
end
end
target:update();
player:update();
until memoryReadBytePtr(getProc(),addresses.loadingScreenPtr, addresses.loadingScreen_offset) ~= 0Code: Select all
if (player.Class1 == 5 or player.Class1 == 8) and 30 > player.MP/player.MaxMP*100 then
GetMana()
end