How do i get a variable from the Global RoM to the Rombot?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Romplayer
Posts: 120
Joined: Wed Jan 11, 2012 10:07 am

How do i get a variable from the Global RoM to the Rombot?

#1 Post by Romplayer »

I need to call up some variables from an addon that stores it into open file SaveVariables.lua. These are Global variables accessable by RoM but not Global to the RoM bot. Can i use the igf: frame to get the variables? If so how?

would i = igf:variable('GetText()') work? if so even if it a table?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How do i get a variable from the Global RoM to the Rombo

#2 Post by lisa »

you just need to use RoMScript

example

Code: Select all

if RoMScript("madman.Time") >= 1 then
madman.Time is an addon global variable.
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
Romplayer
Posts: 120
Joined: Wed Jan 11, 2012 10:07 am

Re: How do i get a variable from the Global RoM to the Rombo

#3 Post by Romplayer »

i can't find the madman addon can u link it for me?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How do i get a variable from the Global RoM to the Rombo

#4 Post by lisa »

You won't find it on curse as it is mine.

forum search got this
http://www.solarstrike.net/phpBB3/viewt ... 098#p26098
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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How do i get a variable from the Global RoM to the Rombo

#5 Post by rock5 »

Just note that you can't normally get tables with RoMScript, only single values.
  • 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
Post Reply