Calling ingame macros via RomBot

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Nobodyknows
Posts: 5
Joined: Thu Jan 10, 2013 3:49 pm

Calling ingame macros via RomBot

#1 Post by Nobodyknows » Sun Jan 04, 2015 2:43 am

I'm looking to create a simple waypoint file that targets a particular NPC and then runs 2 different in game macros that I have already created and fully tested and then repeats this in a loop until the bot is either paused or ended.

Basically it just needs to be:

Target NPC
Run in-game macro 1
Run in-game macro 2
Rinse and repeat

Can anyone help me out with this?

I've tried looking in the wiki and around the forum and I didn't find a good way to call an in-game macro via the bot.

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Calling ingame macros via RomBot

#2 Post by BlubBlab » Sun Jan 04, 2015 10:56 am

I would use the search function there is a function target_NPC if you use a macro to press menu points there is also some function choiceOption which can do this for you.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Nobodyknows
Posts: 5
Joined: Thu Jan 10, 2013 3:49 pm

Re: Calling ingame macros via RomBot

#3 Post by Nobodyknows » Sun Jan 04, 2015 3:44 pm

I figured out how to target the NPC that's needed. I'm turning in a quest using dailynotes add-on and the in-game macros I created.

I've moved the in-game macros so they're at positions 8 and 9 on the action bar. Now all I need to figure out is how to get the bot to trigger them without it having to be a mouse click which would force the client to have to be in the foreground all the time.

Basically I'm looking for something that says "target x NPC, use thingy in action bar position 8, wait x seconds, use thingy in action bar position 9, wait x seconds, repeat from the beginning." The difficulty I'm having is it's easy to tell the bot to use a particular skill by name, but not easy with something like macro that I have a button for in the action bar.

Any suggestions?

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Calling ingame macros via RomBot

#4 Post by BlubBlab » Sun Jan 04, 2015 4:55 pm

You can also press buttons with MM since it is a macro system you can but like I said you can also use choiceOption or choiceByName
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

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

Re: Calling ingame macros via RomBot

#5 Post by rock5 » Sun Jan 04, 2015 11:05 pm

Target NPC. http://www.solarstrike.net/wiki/index.p ... _Functions

Code: Select all

player:target_NPC("npc name")
Use action bar. http://runesofmagic.gamepedia.com/API:UseAction

Code: Select all

RoMCode("UseAction(8)")
Wait some time in ms, eg. 1 second. http://www.solarstrike.net/wiki/index.p ... rary#yrest

Code: Select all

yrest(1000)
  • 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

Nobodyknows
Posts: 5
Joined: Thu Jan 10, 2013 3:49 pm

Re: Calling ingame macros via RomBot

#6 Post by Nobodyknows » Sun Jan 04, 2015 11:25 pm

rock5 wrote:Use action bar. http://runesofmagic.gamepedia.com/API:UseAction

Code: Select all

RoMCode("UseAction(8)")
^^^^^^^ That is the part I couldn't figure out! I knew there had to be a way to send a keystroke directly to the client.

The NPC targeting and the yrest part I already had but thank you for including that.

Thank you all for your help. I need to tweak things a bit but it's working the way I want it to now.

Cheers! :D

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest