View Single Post
06-13-05, 05:27 PM   #3
Coskesh
A Deviate Faerie Dragon
Join Date: Jun 2005
Posts: 11
Thanks for the timely reply Gello! I posted asking about the shaman weapon buff over in the macro help section over a week ago, should have posted here instead!

I now understand why my time based function wasnt' being called, and I've fixed it. I tried using the GetWeaponEnchantInfo() command, but I"m not sure if I'm doing it properly.


So outside of my if statement, I'd have,

GetWeaponEnchantInfo();

then inside I'd say...

elseif AutoAllBuff and not mounted and not shapeshifted and (not hasMainHandEnchant == 1) then

? Well, obviously that isnot right, because it does not work.

I'm also trying to encompass group buffing into the script for mages and druids. Is there a way to check for spell range when attempting to buff a party member? As it is right now:

local i=GetNumPartyMembers();

if i > 3 then
ClearTarget();
TargetUnit("party4");
Thorns_Cast_Other()


and...

function Thorns_Cast_Other()
local i,done,name,id=1,false;
if (not IsBuffActive("Thorns","target")) then
while not done do
name = GetSpellName(i,BOOKTYPE_SPELL);
if not name then
done=true;
elseif name=="Thorns" then
id = i;
gid = i;
end
i = i+1;
end
CastSpell(id,BOOKTYPE_SPELL);
SpellTargetUnit("target")
end
end


I'd like to modify it so that it checks if the target is out of range, but I only know how to do that with action buttons with the IsActionInRange command . Any tips?
  Reply With Quote