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.
Calling ingame macros via RomBot
Re: Calling ingame macros via RomBot
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
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

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
-
- Posts: 5
- Joined: Thu Jan 10, 2013 3:49 pm
Re: Calling ingame macros via RomBot
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?
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?
Re: Calling ingame macros via RomBot
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
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

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
Re: Calling ingame macros via RomBot
Target NPC. http://www.solarstrike.net/wiki/index.p ... _Functions
Use action bar. http://runesofmagic.gamepedia.com/API:UseAction
Wait some time in ms, eg. 1 second. http://www.solarstrike.net/wiki/index.p ... rary#yrest
Code: Select all
player:target_NPC("npc name")
Code: Select all
RoMCode("UseAction(8)")
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
-
- Posts: 5
- Joined: Thu Jan 10, 2013 3:49 pm
Re: Calling ingame macros via RomBot
^^^^^^^ 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.rock5 wrote:Use action bar. http://runesofmagic.gamepedia.com/API:UseActionCode: Select all
RoMCode("UseAction(8)")
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!

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