Is it possible to Macro This?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
klassik1
Posts: 57
Joined: Wed Oct 19, 2011 12:38 pm

Is it possible to Macro This?

#1 Post by klassik1 » Sun Feb 12, 2012 8:21 am

Hello,
I currently farm mems with Rombot. Just recently, I've added this code into my OnSkillCast section in my Profile.xml and I've noticed a significant increase in DPS.

Code: Select all

while player:haveTarget() do
        keyboardPress(key.VK_1); -- press the 1 key
      end
Now, I have noticed my bot does more DPS to the boss than when i Manually DPS myself! Which obviously got me thinking..... The Bot uses a DIYCE script along with this code that spams the "1" key. Is there a way i could somehow add this Code into the DIYCE macro itself so for when I'm fighting a boss in a run, i could get a similar effect?

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Is it possible to Macro This?

#2 Post by BillDoorNZ » Sun Feb 12, 2012 4:39 pm

I do a similar thing, except I have written an external app to spam the F11 key (which drives my DIYCE script). When I looked at how to solve the problem I came up with 4 solutions:

1) Get the mm bot to send an F11 keypress each loop of the fight() method
2) Use a keypresser to send F11 to the game
3) Use a programmable keyboard to do it
4) Launch another micromacro instances, and write a script to spam F11 to the game

Solution 1 was a pain as you cannot guarantee the speed or frequency of the keypresses will be fast enough.
Solution 2 works just fine as long as it uses SendKeys to target the rom window (i.e. doesnt have to be focussed)
Solution 3 also works, but only while the game window is focussed
Solution 4 - I ran into trouble attaching multiple mm instances to the same game client.

The issue with 1 and 2 is also that the DIYCE macro is continuously being called. I solved this by checking for a target at the start of the DIYCE macro and returning if there was none (tho I have since altered it to allow healing/buffing to occurr when there is no target).

kkulesza
Posts: 150
Joined: Fri May 27, 2011 9:00 pm
Location: Poland

Re: Is it possible to Macro This?

#3 Post by kkulesza » Sun Feb 12, 2012 5:51 pm

klassik1 wrote:Now, I have noticed my bot does more DPS to the boss than when i Manually DPS myself! Which obviously got me thinking..... The Bot uses a DIYCE script along with this code that spams the "1" key. Is there a way i could somehow add this Code into the DIYCE macro itself so for when I'm fighting a boss in a run, i could get a similar effect?
This is interesting.
Can You post Your diyce function?

klassik1
Posts: 57
Joined: Wed Oct 19, 2011 12:38 pm

Re: Is it possible to Macro This?

#4 Post by klassik1 » Mon Feb 13, 2012 3:36 pm

Ah, Blyad gave me some good information.

if you run the RBAssist.xml as your waypoint setup it's a simply a combat assistant waypoint that allows you to target, and move your character manually, but once you have a hostile target MicroMacro then controls your character. basically it just spams keys for you.

So, keep that Code in the same place. and just run RBassist.xml as the waypoint!


I've attached my DIYCE script.

Line 222 & 223 have the timers for Shadowstab & Low Blow, these values can be changed to ensure that energy conservation is maintained during combat (non-burns) and that during burns with Energy Thief active, it will not activate the counter on Low Blow.

Everything is working perfectly (well, as far as I can tell.)

If you want to use it, don't forget you also have to change the Action #'s for the following:

Melee Check (Line 177) (Any skill with a range of 50, Shadowstab, Low Blow, Wound Attack from your hot-bar should be put here for me it's Low Blow)
Yawaka's Blessing (Line 229),
Unbridled Enthusiam (Line 230),
Unknown Choice (Line 235),
Caviar Sandwich (Line 236),
Energy Potion (Line 240),
Strong Stimulant (Line 241),
Extinction Potion (Line 242).

A macro should be made for each one.

/run KillSequence("","0") --- Buffs
/run KillSequence("","1") --- Melee Combat
/run KillSequence("","2") --- Ranged Combat
/run KillSequence("","3") --- Long Cooldowns (Informer, Unknown Choice, Caviar Sandwich)
/run KillSequence("","4") --- Burning Cooldowns (Strong Stimluant etc.)


Enjoy.
Attachments
DIYCE.lua
(10.15 KiB) Downloaded 202 times
CustomFunctions.lua
(12.97 KiB) Downloaded 231 times
DIYCE.zip
(5.83 KiB) Downloaded 188 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest