Starting a custom function (from userfuction_xxxx) from CLI

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Space-Junk
Posts: 3
Joined: Fri Jul 11, 2014 2:45 am

Starting a custom function (from userfuction_xxxx) from CLI

#1 Post by Space-Junk » Tue Jan 20, 2015 5:23 pm

I have a function I made which I use regularly from commandline, how do I do this in a batch file. I want to be lazy and just click an icon on my shortcut bar instead of starting the bot, starting commandline and typing the function name.

Lets say the user function is called ImLazy() and is inside a userfunction called something like userfunction_lazyarse.lua

Code: Select all

Copy/Move all Flames and Bullshit >NIL:

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

Re: Starting a custom function (from userfuction_xxxx) from

#2 Post by rock5 » Wed Jan 21, 2015 12:23 am

You can't create a batch file that starts the commandline and then issues a command to it, I think. But you can run a waypoint file. Look at the existing bat files in the rom folder to get an idea how. Then you just need to make a waypoint file that just runs your function. Eg.

Code: Select all

<waypoints>
    <onload>
        ImLazy()
        error("Finished")
    </onload>
</waypoints>
Edit: Actually I see only 1 bat file that starts a waypoint file and that is StartCommandLine.bat. And before you ask commandline.xml is actually a waypoint file.
  • 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

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests