running scripts without having game client

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

running scripts without having game client

#1 Post by Rickster »

Hi,

is it possible to build some lua scripts an run them without having the game client up and running?

I am not talking about running whole WP files, but some code snippets and functions for testing purpose.
So I wonder how to set up a lua environment which knows for example the "cprintf_ex" function and others, available by the lua environment implemented in MM.

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

Re: running scripts without having game client

#2 Post by rock5 »

I actually have a command line script that starts up a command line that doesn't need the game running. Is that what you are talking about? Of course no bot functions are available to it.
Cl.lua
(552 Bytes) Downloaded 167 times
Just put it in your "micromacro/scripts" folder and start it by typing "cl" in the micromacro window.
  • 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
Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

Re: running scripts without having game client

#3 Post by Rickster »

jep :) thats it!

for testing when not at home and not having a game client around ;)

with

Code: Select all

Lua> dofile("scripts/file.lua")
i can also feed it with my code :)

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

Re: running scripts without having game client

#4 Post by rock5 »

I think you should also be able to just do

Code: Select all

Script> file
at the standard mm prompt to run the 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