newton666 wrote:anyone know what im doing wrong?
yup
RoMScript("TargetUnit('party1');");
that will make you target the character in party1, which is good but you don't actually check the buffs for your target.
So you would want to use
target = player:getTarget()
and then
if not target:hasBuff("Amplified Attack") then
So you end up with this
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
while(true) do
RoMScript("TargetUnit('party1');");
target = player:getTarget()
if not target:hasBuff("Amplified Attack") then
player:cast("PRIEST_AMPLIFIED_ATTACK")
end
yrest(1000)
end
</onLoad>
</waypoints>
you also had 2 " in the player cast
Also adding a yrest to a loop will help, you also were missing an end