Need CodeLine for detection if my follower have aggro !

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
kumpel100
Posts: 47
Joined: Sat May 09, 2009 11:12 am

Need CodeLine for detection if my follower have aggro !

#1 Post by kumpel100 » Thu Jun 11, 2009 6:55 am

i need a code line to Detect if my following Priest had aggro from a Mob while my Main Bot account not assist my priest, something like this:

Code: Select all

if( self.Battling and self.TargetPtr ~= 0 ) then 
	cprintf(cli.green, "Priest had Aggro ??\n");
	end

better seems that:

if( self.Battling and target.HP <= 1 ) then
cprintf(cli.green, "Priest had Aggro ??\n");
	end
im rly new in lua

self.Battling = im fight or im not fight but my grp mate is in battle?
self.TargetPtr ~= 0 = i didnt have a target right?

kumpel100
Posts: 47
Joined: Sat May 09, 2009 11:12 am

Re: Need CodeLine for detection if my follower have aggro !

#2 Post by kumpel100 » Thu Jun 11, 2009 1:18 pm

this is a first step:

Code: Select all

 if( self.Battling and target.HP <= 1 ) then 
	cprintf(cli.red, "Priest hat Aggro ??\n");
	keyboardHold(settings.hotkeys.MOVE_BACKWARD.key);
					yrest(2000);
					keyboardRelease(settings.hotkeys.MOVE_BACKWARD.key);
					yrest(100);
	keyboardPress(settings.hotkeys.TARGET.key);
			if(settings.hotkeys.TARGET.modifier) then
				keyboardRelease(settings.hotkeys.TARGET.modifier);
				end
	end;
does very basic what i want..

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

Re: Need CodeLine for detection if my follower have aggro !

#3 Post by Administrator » Thu Jun 11, 2009 3:23 pm

Try pressing F2 and then assist (which I believe is F). That should target whatever is attacking your priest.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 11 guests