• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make bot to not attack totems
#1
Hi is there any specific script to get the character to ignore attacking totems?
I already have setPVE(1) and enemyFaction = "Horde"; -- Set to "Horde" if you play Alliance
  Reply
#2
The SetPVE(1) only works if you use GetNearestEnemy() I think.

I don't know any way else than using the WoW Api on the current target for checking if they are player controlled.

The enemyFaction is just a string used in a check I've made...

e.g:
if (UnitFactionGroup("target") == enemyFaction) then
-- Don't attack
end

But for this you have the target you wanna check as a real target in your UI, then use the GetTarget() function.

e.g:
if(GetTarget() ~= 0) then
if (UnitFactionGroup("target") == enemyFaction) then
-- Dont attack this target, pause or whatever
end
end
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)