Thread: Scripted vars
View Single Post
04-28-11, 03:21 AM   #2
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
Hi Narinka

Yes add 7 scripts in your design.
I may suggest that you can use the powerfull RDX API instead of your code

Replace

Code:
for i = 1,n do
    if  UnitBuff("player", buffs[i]) then varsc = false end;
end;
By

Code:
if unit:HasBuff("buff1") or unit:HasBuff("buff2") then  ... end
In the same concept with cooldown

Code:
unit:HasUsedCooldownBySpellid(spellid)
unit:HasAvailCooldownBySpellid(spellid)
Use the event "UNIT_COOLDOWN" as the trigger

One day I will publish the API of RDX.

BTW, do you have any update of the ruRU langage pack ?

Cheers
__________________
RDX manager
Sigg
  Reply With Quote