Page 1 of 1
Returning variables
Posted: Tue Jun 21, 2011 6:29 pm
by fobsauce
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
Re: Returning variables
Posted: Tue Jun 21, 2011 8:16 pm
by lisa
Code: Select all
cooldown = RoMScript(GetActionCooldown(2))
can change the name of course, use it anyway you want.
if cooldown == 5 then
end
Re: Returning variables
Posted: Tue Jun 21, 2011 8:38 pm
by fobsauce
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.
Re: Returning variables
Posted: Wed Jun 22, 2011 8:47 am
by rock5
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?
Re: Returning variables
Posted: Wed Jun 22, 2011 10:25 am
by lisa
I did at first after the patch but for the last few days I haven't seen any table not found. So no idea.
Re: Returning variables
Posted: Wed Jun 22, 2011 10:38 am
by fobsauce
I'm getting it when I put a debuff on the target.
In particular, shadowstab, which causes bleed, 620313.