|
|
Source code |
1 |
/run if (UnitHealth("target")>=1) then UseAction(5);end;
|
|
|
Source code |
1 2 |
/wait 1 /run if GetActionUsable(1) then UseAction(1);UseAction(4);elseif GetActionUsable(2) then UseAction(2);UseAction(4);else UseAction(3);UseAction(4);end; |
Quoted from "Bulba;175788"
i found this handy script on wiki but how do i make a macro out of it?
local state = GetPlayerCombatState();
if (state) then
SendChatMessage("I'm in combat.","SAY");
end;
Thanks![]()
|
|
Source code |
1 |
/run if GetPlayerCombatState("true") then SendChatMessage("I'm in combat.","SAY");end;
|
Quoted from "hcukk;192223"
So heres the deal.. i have this macro
/cast Holy Strike
/wait 1
/cast Holy Strike
/wait 1
/cast Holy Strike
/wait 1
/cast Disarmament
/wait 1
/cast Disarmament
/wait 1
/cast Punishment
...
ok here's my problem. when i attack a mob and it dies before the macro is done, my guy keeps going back and try to attack it (the dead mob). Is there a way to check in between each attack to see if the mob is dead or not before proceeding with the macro?
I was wondering if something like this would work
/script if (UnitHealth("target")/UnitMaxHealth("target")=0) then UseAction(x); else CastBySpellName("Holy Strike") ... Where x is the macro to stop attacking.
i dont know how to continue this with the next strike as holy strike, then another holy strike, then Disarmament, and so forth.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
/run function UseAtk(atk); if UnitChangeHealth("target")>0 then CastSpellByName(atk) end; end
/run UseAtk("Holy Strike")
/wait 1
/run UseAtk("Holy Strike")
/wait 1
/run UseAtk("Holy Strike")
/wait 1
/run UseAtk("Disarmament")
/wait 1
/run UseAtk("Disarmament")
/wait 1
/run UseAtk("Punishment")
|
Quoted from "Sixpax;192315"
Try this (untested):
When the target dies, it will just do waits, and since you can't run the same macro multiple times, you can just click it again on the next mob and the previous iteration stops.
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12/run function UseAtk(atk); if UnitChangeHealth("target")>0 then CastSpellByName(atk) end; end /run UseAtk("Holy Strike") /wait 1 /run UseAtk("Holy Strike") /wait 1 /run UseAtk("Holy Strike") /wait 1 /run UseAtk("Disarmament") /wait 1 /run UseAtk("Disarmament") /wait 1 /run UseAtk("Punishment")
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
local cd1, r1 = GetSkillCooldown(3,3)
local cd2, r2 = GetSkillCooldown(3,2)
local Cst = GetPlayerCombatState()
if (r2<.5) then
if (r1<.5) then
CastSpellByName("Vampire Arrows")
end
CastSpellByName("Shot")
else
if (UnitSkill("player")>=35 and Cst) then
CastSpellByName("Joint Blow")
end
CastSpellByName("Attack")
end
|
Quoted from "goblinlord;193149"
I do have a question though. Does anyone know how to do the following:
a) Target/cast onto your pet via macro.
b) Set your pet to attack or return to you via macro.
Quoted from "hardcoregarrett;197317"
Can someone tell me the script for cash shop bag and transmuter?