RoM bot

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)

Moderators: lisa, rock5

Message
Author
fox
Posts: 1
Joined: Mon Dec 29, 2008 2:31 pm

Re: RoM bot

#41 Post by fox » Mon Dec 29, 2008 2:33 pm

Is it possible that the bot is always running behind my character and heals me and attacking everything I attack?

User avatar
Administrator
Site Admin
Posts: 4850
Joined: Sat Jan 05, 2008 4:21 pm

Re: RoM bot

#42 Post by Administrator » Mon Dec 29, 2008 6:07 pm

Is it possible that the bot is always running behind my character and heals me and attacking everything I attack?
Not with this script. Other scripts may include this.

Zephyr
Posts: 86
Joined: Fri Apr 18, 2008 8:10 pm

Re: RoM bot

#43 Post by Zephyr » Mon Dec 29, 2008 6:50 pm

master121 wrote:It would be useful if you can setup a way when you are dead, so the bot would repair armor and buy new pots and then run back to your training spot.

At this point Master121, I think the plan was to keep the bot using virtual keys. Thus it could be minimized and you can go about playing or doing something else. With what you are talking about, the game would have to always be on top and require direct input from the device. ie. would take over your mouse cursor and need to click on proper locations.

Also how will the bot buy new pots if the inventory is full? The only time I die is when out of pots or equipment is broken. At which point my bags are full. From what I have seen at least with my rogue. I can go 4-6hrs and not have to repair.

Abul
Posts: 23
Joined: Mon Dec 29, 2008 8:00 pm

Re: RoM bot

#44 Post by Abul » Mon Dec 29, 2008 8:07 pm

Hey, I can get the movment to work..and the targetting ect. But as soon as it does target somthing and tries to cast a spell i get an error in the cmd console thing "micromacro/scrips/rom/classes/skill.lua :133: bad argument #1 to 'keyboardpress' ((null)) im confused :S...

btw thnx for this..look great!!! very impressed. Do you play RoM urself?(admin)
24 hours in a day
24 beers in a slab

coincidence? I THINK NOT

Zephyr
Posts: 86
Joined: Fri Apr 18, 2008 8:10 pm

Re: RoM bot

#45 Post by Zephyr » Mon Dec 29, 2008 8:29 pm

Abul wrote:Hey, I can get the movment to work..and the targetting ect. But as soon as it does target somthing and tries to cast a spell i get an error in the cmd console thing "micromacro/scrips/rom/classes/skill.lua :133: bad argument #1 to 'keyboardpress' ((null)) im confused :S...
Abul

First thing. Have you created a waypoint file? This is required before any movement will start. Also you need to specify the waypoint file in your profile. Also have you listed your skills in the profile? And make sure to have the profile file name the same as your character. Post your profile here if you can using the

Code: Select all

[code]
[/code] option.

Here is what mine looks like so you can compare.

Code: Select all

<profile>
	<options>
		<option name="HP_LOW" value="50" />
		<option name="MP_LOW_POTION" value="50" />
		<option name="HP_LOW_POTION" value="60" />

		<option name="COMBAT_TYPE" value="melee" />
		<option name="ANTI_KS" value="true" />
		<option name="WAYPOINTS" value="mywaypointfile.xml" />
		<option name="LOOT" value="true" />
		<option name="LOOT_TIME" value="1200" />
		<option name="ENERGY_STORAGE_1" value="energy" />
		<option name="ENERGY_STORAGE_2" value="concentration" />
		<option name="POTION_COOLDOWN" value="15" />
		<option name="MAX_FIGHT_TIME" value="60" />
		<option name="DOT_PERCENT" value="90" />
	</options>

	<friends>
		<friend name="MyOtherCharacter1" />
		<friend name="MyOtherCharacter2" />
	</friends>

	<hotkeys>
		<hotkey name="HP_POTION" key="VK_MINUS" modifier="" />
		<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
		<hotkey name="ATTACK" key="VK_0" modifier="" />
	</hotkeys>

	<skills>	
		<skill name="ROGUE_SHADOWFACE" level="24" hotkey="VK_1" />
		<skill name="ROGUE_VILLAINY" level="23" hotkey="VK_2" />
		<skill name="ROGUE_LACERATION" level="23" hotkey="VK_3" />
		<skill name="ROGUE_BLIND_STAB" level="1" hotkey="VK_4" />
		<skill name="SCOUT_VAMPIRE_ARROWS" level="18" hotkey="VK_5" />
		<skill name="ROGUE_POISON" level="1" hotkey="VK_6" />
		<skill name="SCOUT_SHOT" level="17" hotkey="VK_7" />
		<skill name="SCOUT_JOINT_BLOW" level="14" hotkey="VK_8" />
	</skills>

</profile>
Now FYI to those that notice. You do not need the level="nn" in the skill line for rogues and scouts. I just did it to have it there.

User avatar
3cmSailorfuku
Posts: 354
Joined: Mon Jan 21, 2008 6:25 pm

Re: RoM bot

#46 Post by 3cmSailorfuku » Mon Dec 29, 2008 8:29 pm

Zephyr wrote: At this point Master121, I think the plan was to keep the bot using virtual keys. Thus it could be minimized and you can go about playing or doing something else. With what you are talking about, the game would have to always be on top and require direct input from the device. ie. would take over your mouse cursor and need to click on proper locations.
There are other methods though, you could call it from the memory.
However the easiest method to bypass this would be to create a macro ingame with following content;
/script AcceptResurrection(true);
Put it on a hotkey which is valid for micromacro and you can use that to Resurrect, instead of using mouseclicks.
However Im not sure if the bot is intended to work with Hotkey Macros.
Zephyr wrote: Also how will the bot buy new pots if the inventory is full? The only time I die is when out of pots or equipment is broken. At which point my bags are full. From what I have seen at least with my rogue. I can go 4-6hrs and not have to repair.
You can make a macro that sells Items with specific names,ID's, index etc. You just have to be in range for the npc. You can also Repair and buy Pots like this.
Though solving things with macros isn't the purpose of this bot I assume.

Zephyr
Posts: 86
Joined: Fri Apr 18, 2008 8:10 pm

Re: RoM bot

#47 Post by Zephyr » Mon Dec 29, 2008 8:37 pm

bah! glanced at the macros. but never looked deep into them.

User avatar
3cmSailorfuku
Posts: 354
Joined: Mon Jan 21, 2008 6:25 pm

Re: RoM bot

#48 Post by 3cmSailorfuku » Mon Dec 29, 2008 9:10 pm

Zephyr wrote:bah! glanced at the macros. but never looked deep into them.
Don't worry, I'm sure Elverion is able to make them "Indenpendant" via an plugin.
He likes to debug his way into the hearts. :lol:


No really, I think it's not really a problem. Make the macro ingame,
search the function via OllyDBG or IDA (It's in plaintext),
set a breakpoint and use the macro. It should deliver the required esi value
you'd need to trigger the resurrection. Then insert it like this in c++:

void AcceptResurrection(DWORD *aAcceptResurrection, DWORD *aEsi)
{
__asm
{
push aEsi
call [aAcceptResurrection]
}
}

and tada, you can execute the resurrection without even using Hotkeys.
But the theory always sounds easy, and Im not good with C++.

Abul
Posts: 23
Joined: Mon Dec 29, 2008 8:00 pm

Re: RoM bot

#49 Post by Abul » Tue Dec 30, 2008 2:07 am

hmm i think this is the problem... my priest skill thing hast got a hokey or something saying where it is...where would i put something like that in it?

Code: Select all

 <profile>
	<options>
		<option name="HP_LOW" value="50" />
		<option name="MP_LOW_POTION" value="15" />
		<option name="HP_LOW_POTION" value="40" />

		<option name="COMBAT_TYPE" value="melee" />
		<option name="ANTI_KS" value="true" />
		<option name="WAYPOINTS" value="randomrun.xml" />
		<option name="LOOT" value="true" />
		<option name="LOOT_TIME" value="800" />
		<option name="ENERGY_STORAGE_1" value="mana" />
		<option name="ENERGY_STORAGE_2" value="none" />
		<option name="POTION_COOLDOWN" value="15" />
		<option name="MAX_FIGHT_TIME" value="60" />
		<option name="DOT_PERCENT" value="90" />
	</options>

	<friends>
		<friend name="MyOtherCharacter1" />
		<friend name="MyOtherCharacter2" />
	</friends>

	<hotkeys>
		<hotkey name="HP_POTION" key="VK_MINUS" modifier="" />
		<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
		<hotkey name="ATTACK" key="VK_1" modifier="" />
	</hotkeys>

	<skills> 
	<skill name="PRIEST_RISING_TIDE" mana="15" manainc="0.9" range="217" casttime="2" type="damage" target="enemy" /> 
	</skills>
</profile> 
24 hours in a day
24 beers in a slab

coincidence? I THINK NOT

User avatar
Administrator
Site Admin
Posts: 4850
Joined: Sat Jan 05, 2008 4:21 pm

Re: RoM bot

#50 Post by Administrator » Tue Dec 30, 2008 3:11 am

<skill name="PRIEST_RISING_TIDE" mana="15" manainc="0.9" range="217" casttime="2" type="damage" target="enemy" />
Remove that. You need this:

Code: Select all

<skill name="PRIEST_RISING_TIDE" hotkey="VK_3" modifier="" /> 
Where VK_3 stands for 3 on your number row.

Abul
Posts: 23
Joined: Mon Dec 29, 2008 8:00 pm

Re: RoM bot

#51 Post by Abul » Tue Dec 30, 2008 3:15 am

thnx for the quick repy :) i've been fiddeling with it..and did that :p working great ...expet... (lol always somthing aye) I begin casting the thing ..and then my char just runs forward to attck the thing which gets the spell canceled. ...is there a delaying thing or somthing?

also im a priest can i get it to heal itself with regen or somthing?
24 hours in a day
24 beers in a slab

coincidence? I THINK NOT

tcflying
Posts: 29
Joined: Thu Dec 18, 2008 12:07 pm

Re: RoM bot

#52 Post by tcflying » Tue Dec 30, 2008 3:44 am

dear Elverion, thx for the hard work first of all. but just try it seem the addresses has been changed.

createpath.lua can't work, would you plz update the addresses.lua? i can't find it by myself. thx for the help.

Abul
Posts: 23
Joined: Mon Dec 29, 2008 8:00 pm

Re: RoM bot

#53 Post by Abul » Tue Dec 30, 2008 5:20 am

tcflying wrote:dear Elverion, thx for the hard work first of all. but just try it seem the addresses has been changed.

createpath.lua can't work, would you plz update the addresses.lua? i can't find it by myself. thx for the help.

My path making works Fine... :s
24 hours in a day
24 beers in a slab

coincidence? I THINK NOT

tcflying
Posts: 29
Joined: Thu Dec 18, 2008 12:07 pm

Re: RoM bot

#54 Post by tcflying » Tue Dec 30, 2008 5:58 am

dear Abul, i would like to confirm if we play with the same client. becuase i play in german and german server. i download the client from
http://www.runesofmagic.com/de/download ... lient.html
thx.

scion
Posts: 5
Joined: Tue Dec 30, 2008 5:51 am

Re: RoM bot

#55 Post by scion » Tue Dec 30, 2008 6:15 am

anyone can help tell me how multi-botting work?

im running 2 ROM then when i press delete it always give me a error.

tcflying
Posts: 29
Joined: Thu Dec 18, 2008 12:07 pm

Re: RoM bot

#56 Post by tcflying » Tue Dec 30, 2008 6:18 am

scion wrote:anyone can help tell me how multi-botting work?

im running 2 ROM then when i press delete it always give me a error.
scion may i know if you use the bot normal? if that may i know what server you play in and what client you download, thx so much.

User avatar
Administrator
Site Admin
Posts: 4850
Joined: Sat Jan 05, 2008 4:21 pm

Re: RoM bot

#57 Post by Administrator » Tue Dec 30, 2008 6:30 am

tcflying: you probably had an error while updating. It's actually pretty common. It will still let you log in and play normally, but using an older client, when this happens. Try completley exiting RoM, restarting your computer, and going to your RoM folder then running the file named patch_2.0.0.1801.en_2.0.0.1802.en.exe (or patch_2.0.0.1801.de_2.0.0.1802.de.exe for the German client). This should reinstall the patch and hopefully fix the problem.

scion: It works perfectly fine for me. Does it work when you use just one client? Attach your log.txt from the MicroMacro folder for examination.

Abul
Posts: 23
Joined: Mon Dec 29, 2008 8:00 pm

Re: RoM bot

#58 Post by Abul » Tue Dec 30, 2008 6:36 am

tcflying wrote:dear Abul, i would like to confirm if we play with the same client. becuase i play in german and german server. i download the client from
http://www.runesofmagic.com/de/download ... lient.html
thx.
oh i play on an English server.. so yea

( lol just bumping my question: can i get priest to use heal skills on self....can i make the priest cast from a distance and not move in to attck and dirupt the spell..and lastly..can u make it sit till health/mana is full again or until attacked.?)
24 hours in a day
24 beers in a slab

coincidence? I THINK NOT

User avatar
Administrator
Site Admin
Posts: 4850
Joined: Sat Jan 05, 2008 4:21 pm

Re: RoM bot

#59 Post by Administrator » Tue Dec 30, 2008 7:01 am

can i get priest to use heal skills on self.
Enable self cast under interface options, then add PRIEST_REGENERATE like any other skill. Or any other heal, if you would like.

can i make the priest cast from a distance and not move in to attck and dirupt the spell
Change your combat type from "melee" to "ranged".
and lastly..can u make it sit till health/mana is full again or until attacked.?
Unnecessary and more problematic than it's worth. Potions are like candy in this game. Also, sitting does not regenerate that much faster than standing. Plus, you can insert a bit of code into your waypoint script to make your character rest at a specified (presumably safe) point. This needs to be done manually.

Just open up your waypoint script and modify one of the waypoint entries. Here's an example:

Code: Select all

  <waypoint x="1234" z="5678" /> <!-- Normal waypoint -->
  <waypoint x="2345" z="6789">
    -- Waypoint with Lua code in it.

    --- Take a ~10 second break. Exit if we get attacked.
    for i = 1, 10 do
      yrest(1000);
      player:update();
      if( player:haveTarget() ) then
        i = 10;
      end;

      player:checkSkills(); -- check if we need to cast buffs/heals.
    end
  </waypoint>

scion
Posts: 5
Joined: Tue Dec 30, 2008 5:51 am

Re: RoM bot

#60 Post by scion » Tue Dec 30, 2008 7:04 am

Administrator wrote:tcflying: you probably had an error while updating. It's actually pretty common. It will still let you log in and play normally, but using an older client, when this happens. Try completley exiting RoM, restarting your computer, and going to your RoM folder then running the file named patch_2.0.0.1801.en_2.0.0.1802.en.exe (or patch_2.0.0.1801.de_2.0.0.1802.de.exe for the German client). This should reinstall the patch and hopefully fix the problem.

scion: It works perfectly fine for me. Does it work when you use just one client? Attach your log.txt from the MicroMacro folder for examination.
yup it works when using 1 client, do i have to load two MicroMacro for each client?
and what do you mean by attach on the top?

its odd because the log is empty.

i remade the error.
Tue Dec 30 20:01:16 2008 : MicroMacro v0.99
Tue Dec 30 20:01:16 2008 : Processor Type: 2X 586, OS: Windows XP Service Pack 3
Tue Dec 30 20:01:16 2008 : Lua initialized successfully.
Tue Dec 30 20:01:16 2008 : Lua libs opened successfully.
Tue Dec 30 20:01:16 2008 : LuaCoco is available.
Tue Dec 30 20:01:16 2008 : Lua glues exported.
Tue Dec 30 20:01:16 2008 : Keyboard layout: US English
Tue Dec 30 20:01:16 2008 : Configurations run.
Tue Dec 30 20:01:25 2008 : Executing script "bot.lua".
==================================================

Tue Dec 30 20:01:40 2008 : attach() failed to attach to window 0xC0300. Error code: 0 (The operation completed successfully.).
Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x83f7cc in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x31c in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x324 in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x328 in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x32c in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x330 in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x334 in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x250 in memoryReadString(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x354 in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x35c in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x248 in memoryReadInt(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x2c in memoryReadFloat(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x30 in memoryReadFloat(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x34 in memoryReadFloat(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x89f858 in memoryReadBytePtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0x83f7cc in memoryReadBytePtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0xcc in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Tue Dec 30 20:01:40 2008 : WARNING: Failure reading memory from 0xCB4790 at 0xcc in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)


stack traceback:
...and Settings\scion\Desktop\micromacro\lib\lib.lua:476: in function 'startMacro'
...ings\scion\Desktop\micromacro\scripts\rom/bot.lua:112: in main chunk

----------TRACEBACK END----------

Tue Dec 30 20:01:40 2008 : Cannot open file 'D:/Documents and Settings/scion/Desktop/micromacro/scripts/rom/profiles/.xml' for reading.
Tue Dec 30 20:01:40 2008 : Execution of bot.lua complete.
Tue Dec 30 20:01:40 2008 : Execution error: Runtime error
Tue Dec 30 20:01:40 2008 : Collecting garbage...
Tue Dec 30 20:01:40 2008 : 65KB freed.
Last edited by scion on Tue Dec 30, 2008 7:12 am, edited 1 time in total.

Locked

Who is online

Users browsing this forum: Google [Bot] and 8 guests