My problem is if i use bot'automatic skill to a boss, it don't follow the additional castingspeed buffs time, so it casting flames more slowly than he could cast (like manual). Then soluted this now i dont use this, i using macro only making actions from skillbar...I cast as many times the flame as need to kill the boss, and a lil more for safety. Its successful, but waiting too many time when boss killed for the looting...So it wasting time. I need one solution wich monitoring the mob's HP...And making actions only till the boss is living...Ive tryed with this scripts:
Code: Select all
RoMScript("TargetNearestEnemy();") yrest(1000)
local target = player:getTarget()
if target.HP > 0 then
player:update();
player:cast("MAGE_FLAME"); -----(or sendMacro("UseAction(7,1)") this one would be better)
yrest(500);
end
Code: Select all
RoMScript("TargetNearestEnemy();") yrest(1000)
local target = player:getTarget()
repeat
player:update();
player:cast("MAGE_FLAME"); -----(or sendMacro("UseAction(7,1)") this one would be better)
yrest(500);
until target.HP > 0
Mybe ive thought something wrong about this theme, or only made a syntactical mistake...But it not works...
I need a solution, pls help me, or write some script to solution this theme!
Many thx