chickengod
-
Posts
8 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Posts posted by chickengod
-
-
I found scripts for automation that set functions for determining the position of objects based on ObjectPosition. However, this does not function in tbc. Is it possible to determine the position of an object in space in tbc?
Example
function InLOS(obj1, obj2) local x1, y1, z1 = ObjectPosition(obj1) local x2, y2, z2 = ObjectPosition(obj2) if not TraceLine(x1, y1, z1+2.25, x2, y2, z2+2.25, bit.bor(0x10, 0x100)) then return true end return false end -
5 hours ago, Matenia said:
for i=1,40 do local name, rank, iconTexture, count, debuffType, duration, timeLeft = UnitDebuff("target", i); if name == "Frostbolt" and duration ~=nil then -- is mine end end
Thank you, this argument works fine.
-
3 hours ago, Smokie said:
You mean "unitCaster "? https://wowwiki.fandom.com/wiki/API_UnitDebuff
this should work its C#
if (ObjectManager.Target.GetBuffs("Spell name").Any(a => a.Owner == ObjectManager.Me.Guid))
Its API for tbc https://web.archive.org/web/20100105220335/http://wowprogramming.com/docs/api/UnitDebuff
-
1 hour ago, Matenia said:
unitCaster doesn't exist in TBC and owner doesn't work either
In TBC, if there's a timer it's yours.
Please show an example of a simple check for the presence of a timer for debuff/buff.
-
I want the function to determine whether my debaf is on the target and cast it even if there is such a debaf on the target but from another player.
-
Is it possible to set a caster check in these functions? UnitDebuff("target","spellname",nil,"player") dont work in TBC.
ObjectPosition
in Lua programming
Posted
It was FireHack API not wow.