Page 1 of 1

Focus command?

Posted: Wed Oct 30, 2013 1:18 am
by ZZZZZ
Trying to find if there is a command to focus a target. (Usually you target something, right click its portrait and click focus)

Have tried a few different in-game macro's and also searched on this forum but haven't been able to find anything.

Code: Select all

		gate = player:findNearestNameOrId(112064)
        if gate then
 	   player:target(gate.Address)
		-- add to focus
	end
Also wondering if there is a way to move to max heal range? eg, casting Restore Life on a Gate in siege which has a range of 250, if you stand at max range mage's cannot hit you with t-storm. I want to be able to do this after casting Curing Seed on the gate (150 range skill). Any help would be great :)

Re: Focus command?

Posted: Wed Oct 30, 2013 1:36 am
by rock5
Looking at the rom wikis list of functions, http://runesofmagic.gamepedia.com/List_of_Functions, I see FocusUnit.

So after targeting you would do

Code: Select all

RoMScript("FocusUnit(1,'target')")
As for healing the gate you would need some sort of custom code. Or you could just use 2 waypoints, 1 at 150 away and the other 250 away. At the closer waypoint you cast curing seed then move to the next waypoint that is 250 away from the gate and start casting the heals. I don't have much experience with seiges so can't really comment much more that that.

Re: Focus command?

Posted: Wed Oct 30, 2013 1:54 am
by ZZZZZ
Ahh thanks Rock, couldn't find it :/ Also could you move this post to board index/games/runes of magic? I didn't realise i posted this under Userfunctions, waypoints etc.