Working on Sigil of Regeneration Addon

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Working on Sigil of Regeneration Addon

#1 Post by Germangold »

Hi !!

i've tried to create a fast and easy addon to use the regeneration sigil

what ive done before was
BTW "Siegel der Regeneration" is the german name for the item/buff

ingame create a macro and put it on key no9:

Code: Select all

/Script FocusUnit(12,"target")
/Script TargetUnit("player")
/Script UseItemByName("Siegel der Regeneration")
/Script TargetUnit("focus12")
/Script FocusUnit(12,"")
Profile.xml:

Code: Select all

<onSkillCast><![CDATA[
if not player:hasBuff("Siegel der Regeneration") then
keyboardPress(key.VK_9);   	
yrest(330);  end
]]></onSkillCast>

This is not realy elegant...
my questions are
How do I focus my self? >> player:target(self) or sth like this
or should i do it like this

Code: Select all

	if not player:hasBuff(GetIdName(500998)) then
			sendMacro("FocusUnit(12,"target")");
			sendMacro("TargetUnit("player")");
			inventory:useItem(200005);
			sendMacro("TargetUnit("focus12")");
			sendMacro("FocusUnit(12,"")");
		end
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Working on Sigil of Regeneration Addon

#2 Post by rock5 »

Assuming those id numbers are correct and you fix the double quotes, it should work.

By "fix the quotes" I mean you can't nest matching quotes.

This wont work.

Code: Select all

sendMacro("FocusUnit(12,"target")");
These should.

Code: Select all

sendMacro("FocusUnit(12,'target')");
sendMacro("FocusUnit(12,\"target\")");
sendMacro('FocusUnit(12,"target")');
Also 'hasBuff' can accept ids so you don't need to use 'GetIdName'.
  • 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
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Working on Sigil of Regeneration Addon

#3 Post by Germangold »

Code: Select all

<onSkillCast><![CDATA[
		if not player:hasBuff(500998) then
		keyboardPress(key.VK_9);   	yrest(555);  end	]]></onSkillCast>
and

Code: Select all

/Script FocusUnit(12,"target")
/Script TargetUnit("player")
/Script UseItemByName("Siegel der Regeneration")
/Script TargetUnit("focus12")
/Script FocusUnit(12,"")
works perfectly
Post Reply