Returning variables

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
fobsauce
Posts: 46
Joined: Wed Dec 15, 2010 3:40 pm

Returning variables

#1 Post by fobsauce » Tue Jun 21, 2011 6:29 pm

How do I forward in game variables to micromacro?

for example:

/run DEFAULT_CHAT_FRAME:AddMessage(GetActionCooldown(2)) -- returns the skills cooldown in game

I want the bot to get the data when executing GetActionCooldown and other functions not necessarily related to the action bar.

Thanks in advance

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Returning variables

#2 Post by lisa » Tue Jun 21, 2011 8:16 pm

Code: Select all

cooldown = RoMScript(GetActionCooldown(2))
can change the name of course, use it anyway you want.

if cooldown == 5 then

end
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

fobsauce
Posts: 46
Joined: Wed Dec 15, 2010 3:40 pm

Re: Returning variables

#3 Post by fobsauce » Tue Jun 21, 2011 8:38 pm

well that was easy lol

I was using sendMacro and it wasn't working as I wanted it to.

So here's the next part. Check out an addon called Itempreview. If you send it IDs, it will send you back the buff/debuff/skill.

So we can send the game IDs whenever we get "Table not found for ID:" and find out what it is.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Returning variables

#4 Post by rock5 » Wed Jun 22, 2011 8:47 am

fobsauce wrote:I was using sendMacro and it wasn't working as I wanted it to.
RoMScript and sendMacro are essentially the same but sendMacro prints a green message to the micromacro window when used.
fobsauce wrote:So here's the next part. Check out an addon called Itempreview. If you send it IDs, it will send you back the buff/debuff/skill.

So we can send the game IDs whenever we get "Table not found for ID:" and find out what it is.
Yes we are aware of itempreview. I don't think it will be a solution as we have to understand why we are getting the error in the first place. Getting some info from itempreview wont fill the missing parts of the memorytable. I haven't heard of anyone getting these errors lately. Are people still getting them with 4.0.0?
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Returning variables

#5 Post by lisa » Wed Jun 22, 2011 10:25 am

I did at first after the patch but for the last few days I haven't seen any table not found. So no idea.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

fobsauce
Posts: 46
Joined: Wed Dec 15, 2010 3:40 pm

Re: Returning variables

#6 Post by fobsauce » Wed Jun 22, 2011 10:38 am

I'm getting it when I put a debuff on the target.
In particular, shadowstab, which causes bleed, 620313.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests