thx a lot!!!!!!
The script seems awesome but doesnt work either

no errors, but no effect.
the skill is triggered by a waypoint by
could this be a problem in combination with onSkillCast?
I hoped to get some kind of debug mode by adding
else sendMacro("DEFAULT_CHAT_FRAME:AddMessage('_t')");
Code: Select all
<onSkillCast>
if( arg1.Name == "ROGUE_BOSS_ATTACK" ) then
_t = os.time()
end
if _t ~= nil then
leaptime = os.difftime(os.time(), _t)
if ( leaptime > 24000 and 28000 > leaptime ) then
keyboardHold( settings.hotkeys.MOVE_BACKWARD.key );
yrest(4000)
keyboardPress(key.VK_SPACE)
yrest(500);
keyboardRelease( settings.hotkeys.MOVE_BACKWARD.key );
else
sendMacro("DEFAULT_CHAT_FRAME:AddMessage(_t)");
end
end
</onSkillCast>
I wanted to look when or if he starts calculating values...
but theres just nothing... -> I guess printing out variables doesnt work? duno
my bigger problem is the healing right now...
been away the whole day but I hope I manage this to work in the next 4 hours....
it's so simpel... he just should target my rogue (tank) char and keeps spamming urgent heal
until he is out of battle... but as I said before,
Code: Select all
repeat
sendMacro('TargetUnit("party1")');
player:cast("PRIEST_URGENT_HEAL");
yrest(1200);
local state = GetPlayerCombatState();
until (state) == nil
end
and same thing with
doesnt work... LUA code error...
im trying to make the same thing now with a timer which keeps stoping the loop after 50 secounds
edit1:
read somwhere that os.time / diftime would be in secounds, thought it would be millisecounds...
so changed my values and voilla!!!! -- it still doesnt work ^^
but now Im confused if the times should be s or ms...
everytime the priest bot comes on the waypoint which should trigger the healing he brakes up with a lua
code error, but now I managed:
Code: Select all
_t2 = os.time();
healtime = os.difftime(os.time(), _t2);
repeat
sendMacro('TargetUnit("party1")');
player:cast("PRIEST_URGENT_HEAL");
yrest(1100);
until healtime > 55;
to work!! but .... he just wont stop healing...
getting back to try stop the heal loop with some "is fighting?" request
makes more sense then the time trigger...
edit2:
there is a "player.fighting" this should return the value TRUE when the player got a target and FALSE if not...
can I use that to for my target (the char Im healing) to heal him as long he gots a target?
will try adding
Code: Select all
local target = player:getTarget();
until target:player.fighting == false;
edit3:
nah that wouldnt start working at all...
next try was:
Code: Select all
repeat
sendMacro('TargetUnit("party1")');
player:cast("PRIEST_URGENT_HEAL");
yrest(1030);
until GetPlayerCombatState() ~= true;
but the code gets an error, because if not in combat the string gets a nil value and aperently thats something which is not allowed ^^
so I tried following and a shitload of other things
Code: Select all
repeat
sendMacro('TargetUnit("party1")');
player:cast("PRIEST_URGENT_HEAL");
yrest(1030);
local state = GetPlayerCombatState();
until (state) == nil;
Code: Select all
repeat
sendMacro('TargetUnit("party1")');
player:cast("PRIEST_URGENT_HEAL");
yrest(1030);
if GetPlayerCombatState() ~= nil; -- added this to avoid the GetPlayerCombatState() nil value error
then local state = GetPlayerCombatState();
until (state) == nil;
i wrote like hundred different things,... but it seems cursed or doomed...
why cant it has a true and false ....