skill triggering ?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
botlover
Posts: 37
Joined: Thu Jul 09, 2009 10:33 am

skill triggering ?

#1 Post by botlover » Thu Jul 09, 2009 5:19 pm

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 :)

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: skill triggering ?

#2 Post by Administrator » Thu Jul 09, 2009 9:38 pm

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

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
Put this in: Runes of Magic/Interface/Addons/myAddon/myAddon.toc

Code: Select all

functions.lua
Now, you can make a macro (pseudo-code; The debuff and skill names probably don't make sense):

Code: Select all

/script if( UnitHasDebuff("target", "Weakness") ) then CastSpellByName("Thundering"); else CastSpellByName("Weak Shot"); end;

User avatar
3cmSailorfuku
Posts: 354
Joined: Mon Jan 21, 2008 6:25 pm

Re: skill triggering ?

#3 Post by 3cmSailorfuku » Fri Jul 10, 2009 3:18 am

Use Uberflex AutoCombat Addon, it features what you want.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests