Focus command?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
ZZZZZ
Posts: 513
Joined: Sun Oct 21, 2012 1:42 am

Focus command?

#1 Post 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 :)
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Focus command?

#2 Post 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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
ZZZZZ
Posts: 513
Joined: Sun Oct 21, 2012 1:42 am

Re: Focus command?

#3 Post 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.
Post Reply