Page 43 of 111
Re: RoM bot
Posted: Fri Apr 24, 2009 7:18 pm
by Izebize
Is it enough to add this line to database.xml, to use the Priest Angel's Carol skill?
Code: Select all
<skill name="PRIEST_ANGELS_CAROL" cooldown="180" type="buff" target="self" />
And of course the in profile:
Code: Select all
<skill name="PRIEST_ANGELS_CAROL" hotkey="VK_MINUS" modifier="" />
After I tested it, I can answer it myself, and yes it is enough

Re: RoM bot
Posted: Sat Apr 25, 2009 2:12 am
by xrozhija
I have been using this got for some time now, and wondered if theres a special class that does better in botting, as so far my mage still dies on lv 8 mobs even tho its lv 16. Or are there some better way to make it attack whats attacking me?
I have been playing around with the
Code: Select all
if( canTarget == false and os.difftime(os.time(), startTime) > 1 ) then
in the /classes/player.lua
are there other options to change to make the bot check if its attacked more often?
Re: RoM bot
Posted: Sat Apr 25, 2009 3:45 am
by Administrator
xrozhija wrote:I have been using this got for some time now, and wondered if theres a special class that does better in botting, as so far my mage still dies on lv 8 mobs even tho its lv 16. Or are there some better way to make it attack whats attacking me?
I have been playing around with the
Code: Select all
if( canTarget == false and os.difftime(os.time(), startTime) > 1 ) then
in the /classes/player.lua
are there other options to change to make the bot check if its attacked more often?
Not at this time, no. It's being worked on.
Re: RoM bot
Posted: Sat Apr 25, 2009 5:10 am
by xrozhija
ok, gotta stay farming on lv 5-8 mobs then, until i can find a decent area with neutral mobs at lv 16-18
Re: RoM bot
Posted: Sat Apr 25, 2009 11:26 am
by elroy72
Rogues are a good class to bot with.. dodge rate and high dps.
I've been working on a GUI for configuration in my space time.. I'm actually trying to teach myself some programming languages and i though this would be a pretty good place for my first real project.. I have it writing to the xml file perfectly I'm just trying to firgure out how to load the xml file into my program.. anyways here's a WIP screenshot.
Re: RoM bot
Posted: Sat Apr 25, 2009 11:52 am
by Administrator
Looks good. You can try using
Expat to load XML files.
I noticed you've got "Update bot", "Create path", and "Run bot" buttons. I'm not sure if you know this already, but you can make these work by running micromacro.exe with the scripts through command-line arguments. That is, use ShellExec to run "micromacro.exe scripts/rom/bot.lua update", for example.
Re: RoM bot
Posted: Sat Apr 25, 2009 3:04 pm
by elroy72
yep i got all that.. im using VB.Net to write it..
so for loading im using XmlTextReader
the update and all this is easy like you said
Code: Select all
Shell("../../micromacro.exe scripts/rom/update.lua", AppWinStyle.NormalFocus)
The only problem is, runes of magic doesn't like getting run through a shell like this..
Code: Select all
Shell("C:\Program Files\Runes of Magic\Runes of Magic.exe", AppWinStyle.NormalFocus)
I just doesn't load..
if i try to load the launcher executable that was it just give version.txt errors

Re: RoM bot
Posted: Sat Apr 25, 2009 3:38 pm
by Administrator
You need to run "C:/Path/To/RoM/Client.exe NoCheckVersion" to get around that. You should allow the path to be editable. Many users have 64 bit operating systems (myself included), which means RoM resides in "Program Files (x86)" rather than just "Program Files".
Re: RoM bot
Posted: Sat Apr 25, 2009 4:15 pm
by elroy72
good point, I'll add a settings tab

Re: RoM bot
Posted: Sat Apr 25, 2009 4:52 pm
by elroy72
OK, so now when run rom using Nocheckversion, client.exe throws me this error:
Code: Select all
ObjectDataClass [Init]Loadfile failed = data\weaponobject.DB
I think its trying to load data\weaponobject.DB from the folder that my program is in.
Re: RoM bot
Posted: Sat Apr 25, 2009 5:03 pm
by Administrator
Yes, it is. Check the documentation for the functions you want to use. Shell() doesn't seem to take a path to execute from, so try
ShellExecute() instead.
Re: RoM bot
Posted: Sat Apr 25, 2009 5:11 pm
by elroy72
That's in C#..
This proggy is in VB :S
I also have to rewrite the load operation using another class.. the one i was useing needed the data to be sequential.. so if 1 person has 4 skills and the other person has 3 it will mess it up.. so yea im working on that right now.
Re: RoM bot
Posted: Sat Apr 25, 2009 6:10 pm
by Administrator
The WIN32 API functions are, for the most part, the same across all languages. I'm sure there is an equivalent you can use. Alternatively, you could just open the launcher.
Re: RoM bot
Posted: Sat Apr 25, 2009 6:14 pm
by elroy72
I did look for an equivalent, but I couldn't find one..
No success opening laucher.exe or just plain old runes of magic.exe either.. when i try both.. nothing happens.. lol
Re: RoM bot
Posted: Sat Apr 25, 2009 9:24 pm
by frank
Code: Select all
<onLeaveCombat>
keyboardPress("VK_9");
</onLeaveCombat>
Code: Select all
<onLeaveCombat>
keyboardPress(VK_9);
</onLeaveCombat>
I want the 9 key pressed when my bot leaves combat, but this code is erroring out:
C:/{edited}/player.lua:290: onLeaveCombat error: [string "
keyboardPress("VK_9");"]:1: bad argument #1 to 'keyboardPress' (
(null))
What am I doing wrong? (I've tried with and without quotes)
Re: RoM bot
Posted: Sat Apr 25, 2009 10:19 pm
by Administrator
Probably because you're not using key.VK_F9?
Re: RoM bot
Posted: Sun Apr 26, 2009 4:47 am
by reloxx
Administrator wrote:Probably because you're not using key.VK_F9?
u mean
but why u putted the F there Oo
Re: RoM bot
Posted: Mon Apr 27, 2009 1:00 am
by elroy72
Yea he meant VK_9...
Prolly to much coding on the brain... i know im goin nuts lol..
Fixed the loading problem..
Fixed opening rom.. (changing 'current directory to rom folder :S)
Code: Select all
prev_dir = CurDir()
ChDir(ROM_FOLDER.Text)
Shell(ROM_FOLDER.Text + "/client.exe NoCheckVersion", AppWinStyle.NormalFocus)
ChDir(prev_dir)
Fixed some other minor problems..
ALMOST DONE!
will release 1st version for evaluation/bug finding soon.
Re: RoM bot
Posted: Mon Apr 27, 2009 1:22 am
by frank
Thanks for the help, key.VK_9 worked, however my macro /script CancelDuel(); did not remove the dialogs from my screen. I have both a party invite remover and duel invite remover but neither appear to work. =\
Re: RoM bot
Posted: Mon Apr 27, 2009 2:49 am
by elroy72
You have the macro set to hotkey 9, and when you leave combat it should cancel the duel correct?