oGasai
Make bot to not attack totems - Printable Version

+- oGasai (http://darkenedlinux.com/ogasai)
+-- Forum: My Category (http://darkenedlinux.com/ogasai/forumdisplay.php?fid=1)
+--- Forum: General (http://darkenedlinux.com/ogasai/forumdisplay.php?fid=44)
+--- Thread: Make bot to not attack totems (/showthread.php?tid=201)



Make bot to not attack totems - ejaboz - 12-06-2017

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


RE: Make bot to not attack totems - Logitech - 12-07-2017

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