i was wondering if it was possible to make some kind of skill triggering macro ?
i mean in the way " if spell on target "Open Flank" true, then cast "Thundering"
this way it would be possible to make a good cast chain, instead of random pushing buttons or hopping that the priority works out.
also, this would also make the bot more human like, since it wouldn't try to cast a spell with the requirements not fullfilled.
thanks in advance
skill triggering ?
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: skill triggering ?
Again, this is done in macros. Actually, I suggest you make an addon. Here's some old addon code I used.
Put this in: Runes of Magic/Interface/Addons/myAddon/functions.lua
Put this in: Runes of Magic/Interface/Addons/myAddon/myAddon.toc
Now, you can make a macro (pseudo-code; The debuff and skill names probably don't make sense):
Put this in: Runes of Magic/Interface/Addons/myAddon/functions.lua
Code: Select all
-- Returns true if the unit has a buff with the given name, otherwise false
function UnitHasBuff(unit, buffname)
for i = 1,20 do
if( UnitBuff(unit, i) == buffname ) then
return true;
end
end
return false;
end
-- Returns true if the unit has a debuff with the given name, otherwise false
function UnitHasDebuff(unit, buffname)
for i = 1,20 do
if( UnitDebuff(unit, i) == buffname ) then
return true;
end
end
return false;
end
Code: Select all
functions.lua
Code: Select all
/script if( UnitHasDebuff("target", "Weakness") ) then CastSpellByName("Thundering"); else CastSpellByName("Weak Shot"); end;
- 3cmSailorfuku
- Posts: 354
- Joined: Mon Jan 21, 2008 6:25 pm
Re: skill triggering ?
Use Uberflex AutoCombat Addon, it features what you want.
Who is online
Users browsing this forum: Bing [Bot] and 7 guests