RoM bot
-
- Posts: 27
- Joined: Mon Mar 23, 2009 4:49 am
Re: RoM bot
Sorry not sure what that means, Like I said I was combining example from the admin, you may need to wait till someone who actually knows the lua language to help you or the admin.
Just thought ID post how it could be done to give you a place to start, if you need it now I suggest studying the lua scripting language and use my above example to figure out where the errors occur.
As I said I didnt test it, and dont know lua scripting to make sure its right.
I'm sure someone who gets it working will post it at some time.
Just thought ID post how it could be done to give you a place to start, if you need it now I suggest studying the lua scripting language and use my above example to figure out where the errors occur.
As I said I didnt test it, and dont know lua scripting to make sure its right.
I'm sure someone who gets it working will post it at some time.
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
chip99: You're going to need to describe the problem. That could be anything. And I still have no idea why people post screenshots of text errors. Explain exactly what happens when the error occures, and the events leading up to it.
Re: RoM bot
this has probably been asked before so sorry.. i tried to search for it and cant find shit.. what code would i use so when it dies it auto ressing as nearest place and unpauses the bot.. well thanks in advance
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
You should wait for the next version. Unless you really know what you're doing and want to have to make a lot of changes.legends00 wrote:this has probably been asked before so sorry.. i tried to search for it and cant find shit.. what code would i use so when it dies it auto ressing as nearest place and unpauses the bot.. well thanks in advance
Re: RoM bot
i have a question. when i go and start creating my waypoints using the numpad, when i press numpad 1 it makes a really loud beep sound and since i have a roommate, its kinda annoying.
i have a laptop and this beep only sounds on numpad 1 and when im setting waypoint. this beep is not from the speakers but rather the computer itself.
here are a few options for questions:
-do you have any idea where this sound is located that i can turn it off?
-where is the waypoint setting so that i may change the hotkey from numpad to something else or read through and figure why it does that?
-i didnt really look at the waypoint coord but does it relate to the waypoint in game? or is it a different algorithm? so that i can change it manually in waypoint xml.
anyway thanks for your help.
i have a laptop and this beep only sounds on numpad 1 and when im setting waypoint. this beep is not from the speakers but rather the computer itself.
here are a few options for questions:
-do you have any idea where this sound is located that i can turn it off?
-where is the waypoint setting so that i may change the hotkey from numpad to something else or read through and figure why it does that?
-i didnt really look at the waypoint coord but does it relate to the waypoint in game? or is it a different algorithm? so that i can change it manually in waypoint xml.
anyway thanks for your help.
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
To disable the sound, open up createpath.lua in notepad, and go to line (CTRL+G) 55. You'll see this:
Delete the \a right in front of 'Recorded.', and it will not make a sound anymore.
To change the hotkeys, you'll find them at line 14:
Code: Select all
printf("\aRecorded. Continue to the next. Press %s to save and quit\n", getKeyName(saveKey));
To change the hotkeys, you'll find them at line 14:
Code: Select all
wpKey = key.VK_NUMPAD1; -- insert a movement point
saveKey = key.VK_NUMPAD3; -- save the waypoints
They are unrelated. The waypoint scripts use world (real) coordinates, and the coordinates displayed in-game are for that specific map only, and range from 0 to 100 (0 being the left/top, and 100 being the right/bottom).-i didnt really look at the waypoint coord but does it relate to the waypoint in game? or is it a different algorithm? so that i can change it manually in waypoint xml
Re: RoM bot
plenty of info and answered all my questions. props!
thanks.
thanks.
Re: RoM bot
Hi all, i'm new but i'm usig the Rom BoT a bit and for now all work well.....ellamental wrote:Eviltuna: I think if you do something like this it might work
<onDeath>
-- Additional Lua code to execute on death
yrest(1000)
keyboardPress(key.VK_6);--press a key to hit a macro to accept res.
yrest(60000) --waits 60 secs
keyboardPress(key.VK_DELETE); -- hits delete to unpause script
__WPL:load(getExecutionPath() .. "/waypoints/Deathwaypoint.xml"); -- Loads way points for death run
__WPL:setWaypointIndex(1); -- not sure what this does, but from Admins examples in my thread its needed.
</onDeath>
Then in your death way point file this at the end
<waypoint x="-1896" z="-8259"> -- last way point in death file
if( player.Level >= 1 ) then -- not sure if there is another method but this should work since you should be higher then level 1
__WPL:load(getExecutionPath() .. "/waypoints/Alivewaypoints.xml"); -- loads your alive waypoints
__WPL:setWaypointIndex(1);
end;
</waypoint>
I have not tested this so it might not work, but I think this would be the right direction to get something working as you like. Also remove all the comments (-- and the text after it). Best of luck and if you manage to get it working, posting it here would be great to allow other people to see how it can be done.
i'm chekking the quoted code and i got a simply question:
keyboardPress(key.VK_6);--press a key to hit a macro to accept res.
what macro can work to accept the ress?
after this i can try the code

ty
Enigmatico
Re: RoM bot
Hey, make a macro
and set it to a hotkey.
Code: Select all
/script AcceptResurrect();
Re: RoM bot
OMG if i clik this command while alive the game count me as death and raise up my debt :\elroy72 wrote:Hey, make a macroand set it to a hotkey.Code: Select all
/script AcceptResurrect();
TY i'm gonna chek it right now
Enigmatico
Re: RoM bot
ok i changed the "pauseondeath" function with this:
function pauseOnDeath()
yrest(1000)
keyboardPress(key.VK_9); -- with a macro: /script AcceptResurrect(); and also setted the hotkey
yrest(60000) --waits 60 secs
__WPL:load(getExecutionPath() .. "/waypoints/death.xml"); -- this is the new way point
__WPL:setWaypointIndex(1);
end
and so the bot ressed me and get the new waypoints but (there is always a but) when bot finish the points don't get the new command:
death waypoints
<waypoints>
<waypoint x="4665" z="8509" />
<waypoint x="4622" z="8605" />
<waypoint x="4574" z="8712" />
<waypoint x="4537" z="8796" />
<waypoint x="4484" z="8909" />
<waypoint x="4447" z="8993" />
<waypoint x="4425" z="9055" />
<waypoint x="4386" z="9181" />
<waypoint x="4287" z="9234" />
<waypoint x="4130" z="9262" />
<waypoint x="3997" z="9287" />
<waypoint x="3904" z="9343" />
<waypoint x="3904" z="9432" />
<waypoint x="3847" z="9503" />
<waypoint x="3756" z="9548" />
__WPL:load(getExecutionPath() .. "/waypoints/lvl19.xml"); --lvl19 are the normal waypoint to bot
__WPL:setWaypointIndex(1);
end;
</waypoints>
any suggest to let the bot get the new waypoint at the end of the "DEATH WAYPOINTS"?
function pauseOnDeath()
yrest(1000)
keyboardPress(key.VK_9); -- with a macro: /script AcceptResurrect(); and also setted the hotkey
yrest(60000) --waits 60 secs
__WPL:load(getExecutionPath() .. "/waypoints/death.xml"); -- this is the new way point
__WPL:setWaypointIndex(1);
end
and so the bot ressed me and get the new waypoints but (there is always a but) when bot finish the points don't get the new command:
death waypoints
<waypoints>
<waypoint x="4665" z="8509" />
<waypoint x="4622" z="8605" />
<waypoint x="4574" z="8712" />
<waypoint x="4537" z="8796" />
<waypoint x="4484" z="8909" />
<waypoint x="4447" z="8993" />
<waypoint x="4425" z="9055" />
<waypoint x="4386" z="9181" />
<waypoint x="4287" z="9234" />
<waypoint x="4130" z="9262" />
<waypoint x="3997" z="9287" />
<waypoint x="3904" z="9343" />
<waypoint x="3904" z="9432" />
<waypoint x="3847" z="9503" />
<waypoint x="3756" z="9548" />
__WPL:load(getExecutionPath() .. "/waypoints/lvl19.xml"); --lvl19 are the normal waypoint to bot
__WPL:setWaypointIndex(1);
end;
</waypoints>
any suggest to let the bot get the new waypoint at the end of the "DEATH WAYPOINTS"?
Re: RoM bot
hmm seens i cannot set any function in a waypoint list ......
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Triple posting is uncalled for. Don't do that.
A return path after death (and resurrection) are already being worked on for the next version of the bot. Don't spend too much time working on hacking it in when it could be done tomorrow.
Fixed.
A return path after death (and resurrection) are already being worked on for the next version of the bot. Don't spend too much time working on hacking it in when it could be done tomorrow.
That XML is broken. The code is *not* inside the waypoint (because it's closed with />).<waypoint x="3756" z="9548" />
__WPL:load(getExecutionPath() .. "/waypoints/lvl19.xml"); --lvl19 are the normal waypoint to bot
__WPL:setWaypointIndex(1);
end;
</waypoints>
Code: Select all
<waypoint x="3756" z="9548">
__WPL:load(getExecutionPath() .. "/waypoints/lvl19.xml"); --lvl19 are the normal waypoint to bot
__WPL:setWaypointIndex(1);
end;
</waypoints>
Re: RoM bot
Just got your bot, tried it, liked it.
Lot of work put into it, and it is very user friendly.
I was considering making some additions to it in my spare time.
If you need any help with any of the programming or ever get stumped, you can drop me a PM or an email (at the email linked to this account) and I will help you out.
Anyways awesome bot, good job on inactive botting (sendmessage I assume)
I saw on some of the earlier posts in the thread that someone recommended a bot to do vendoring or gathering, and the answer was that you couldn't allow the bot to work inactively that way.
You can send mouse clicks to a minimized window too if you didn't know (although doing so will interrupt a drag operation on another window)
Also I saw note of a color bot style gather bot, I could put together a simple cham system for you if thats where you want to go, but a colorbot does require active window unless you grab the backbuffer all the time and THAT IS ANNOYING! On the other hand once the objects have been found using a cham like system, it is possible to do a project/unproject "aimbot" style mouse click which would work inactively.
I saw you have an update.lua, if it doesn't work you can send me a message and I can try to set up a findpattern function for everything. Most of my hacks/bots rely on findpattern anyways.
(WOW BIG POST!)
-Rajinn
edit:
Is there a simple way to pull with a certain spell then not use it again unless no other skill can be used? I have a rogue/priest and I use rising tide as a pull, then I just use my mana for healing, but the bot likes to use a melee skill to open the combat then cast rising tide once or twice just using up mana when other skills are much better. When soloing I normally never use a potion, and the way the bot likes to go through them, they get pricey.
edit2:
Also, about killing anything attacking you before finding a new target...? I hate links, they are the only way my bot dies.
Lot of work put into it, and it is very user friendly.
I was considering making some additions to it in my spare time.
If you need any help with any of the programming or ever get stumped, you can drop me a PM or an email (at the email linked to this account) and I will help you out.
Anyways awesome bot, good job on inactive botting (sendmessage I assume)
I saw on some of the earlier posts in the thread that someone recommended a bot to do vendoring or gathering, and the answer was that you couldn't allow the bot to work inactively that way.
You can send mouse clicks to a minimized window too if you didn't know (although doing so will interrupt a drag operation on another window)
Also I saw note of a color bot style gather bot, I could put together a simple cham system for you if thats where you want to go, but a colorbot does require active window unless you grab the backbuffer all the time and THAT IS ANNOYING! On the other hand once the objects have been found using a cham like system, it is possible to do a project/unproject "aimbot" style mouse click which would work inactively.
I saw you have an update.lua, if it doesn't work you can send me a message and I can try to set up a findpattern function for everything. Most of my hacks/bots rely on findpattern anyways.
(WOW BIG POST!)
-Rajinn
edit:
Is there a simple way to pull with a certain spell then not use it again unless no other skill can be used? I have a rogue/priest and I use rising tide as a pull, then I just use my mana for healing, but the bot likes to use a melee skill to open the combat then cast rising tide once or twice just using up mana when other skills are much better. When soloing I normally never use a potion, and the way the bot likes to go through them, they get pricey.
edit2:
Also, about killing anything attacking you before finding a new target...? I hate links, they are the only way my bot dies.
Last edited by Rajinn on Mon Apr 13, 2009 1:23 pm, edited 1 time in total.
Re: RoM bot
Hi,
I get this error:
For all skills.
My profile:
Screenshot of hotkeys:

I get this error:
Code: Select all
Mon Apr 13 21:10:24 2009 : ...ras/Desktop/micromacro/scripts/rom/classes/skill.lua:131: Bad skill hotkey name: SCOUT_VAMPIRE_ARROWS
Mon Apr 13 21:10:24 2009 : Execution error: Runtime error
Mon Apr 13 21:11:03 2009 : Executing script 'bot.lua'
==================================================
Mon Apr 13 21:11:04 2009 : RoM Bot Version 2.29
Mon Apr 13 21:11:04 2009 : Using static base address 0x884F00, player address 0x4209CD00
My profile:
Code: Select all
<profile>
<options>
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="60" />
<option name="COMBAT_TYPE" value="ranged" />
<option name="COMBAT_DISTANCE" value="180" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="scealok.xml" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="2000" />
<option name="ENERGY_STORAGE_1" value="concentration" />
<option name="ENERGY_STORAGE_2" value="energy" />
<option name="POTION_COOLDOWN" value="15" />
<option name="MAX_FIGHT_TIME" value="30" />
<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="SCOUT_VAMPIRE_ARROWS" key="VK_4" type="dot" />
<skill name="ROGUE_SHADOWSTAB" key="VK_6" energy="30" range="50" type="damage" target="enemy" />
<skill name="SCOUT_WIND_ARROWS" key="VK_3" concentration="8" range="225" type="damage" target="enemy" />
<skill name="SCOUT_FROST_ARROW" key="VK_EQUAL" concentration="20" cooldown="300" type="buff" target="self" />
<skill name="SCOUT_SHOT" key="VK_2" consumable="1" range="20" cooldown="4" type="damage" target="enemy" />
</skills>
<onDeath>
-- Additional Lua code to execute on death
pauseOnDeath(); -- Stop the script
</onDeath>
<onLeaveCombat>
-- Additional Lua code to execute after killing an enemy
</onLeaveCombat>
<onSkillCast>
-- Additional Lua code to execute when casting a skill
-- Note: arg1 contains the skill being used.
-- i.e. arg1.Name will be the name of the skill being cast.
</onSkillCast>
</profile>

Re: RoM bot
should it not be hotkey="VK_4" ? mine are...
yours are just key="VK_4"
you dont need to copy/paste the entire skill, just give the name and the hotkey for it, then any modifiers.
if it consumes mana then include the level like
and if you want it prioritized you can do
which will tell the bot to use that over any other (good for pulling with a dot)
yours are just key="VK_4"
Code: Select all
<skills>
<skill name="SCOUT_VAMPIRE_ARROWS" hotkey="VK_4" modifier="" />
<skill name="ROGUE_SHADOWSTAB" hotkey="VK_6"modifier="" />
<skill name="SCOUT_WIND_ARROWS" hotkey="VK_3" modifier="" />
<skill name="SCOUT_FROST_ARROW" hotkey="VK_EQUAL" modifier="" />
<skill name="SCOUT_SHOT" hotkey="VK_2" modifier="" />
</skills>
if it consumes mana then include the level like
Code: Select all
<skill name="MAGE_FLAME" level="13" hotkey="VK_2" modifier="" />
Code: Select all
<skill name="SCOUT_VAMPIRE_ARROWS" priority="100" hotkey="VK_4" modifier="" />
Last edited by Rajinn on Mon Apr 13, 2009 1:28 pm, edited 1 time in total.
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Actually, it would be great if you would go ahead and just experiment and add-in your own ideas, then let me know what you did and supply me a copy of your changes. Several users have done this. Most recently, clutterskull provided some ideas and code that will be seen in the next update; improvements to the waypoint system. Also, character resurrection and return paths have been implemented, so I wouldn't bother re-writing that right now. This update will be made available after the next patch (which should be tonight, I believe) for those of you that are looking forward to this.Rajinn wrote:Just got your bot, tried it, liked it.
Lot of work put into it, and it is very user friendly.
I was considering making some additions to it in my spare time.
If you need any help with any of the programming or ever get stumped, you can drop me a PM or an email (at the email linked to this account) and I will help you out.
I'm looking into a system that might allow for this to be done without needing focus, and without needing to rely on clicking. It's an idea I have had for awhile, but never really bothered doing any research on it till now. It probably won't work, though.I saw on some of the earlier posts in the thread that someone recommended a bot to do vendoring or gathering, and the answer was that you couldn't allow the bot to work inactively that way.
You can send mouse clicks to a minimized window too if you didn't know (although doing so will interrupt a drag operation on another window)
Yeah, I remember this. They had working chams for several gathering nodes, but that's about the last of it I heard. It has been a long time, so I'm guessing that project has been abandoned. If this is something you would like to spend your time experimenting with, then by all means go ahead and let me know what you come up with. We might be able to get a decent system working.Also I saw note of a color bot style gather bot, I could put together a simple cham system for you if thats where you want to go, but a colorbot does require active window unless you grab the backbuffer all the time and THAT IS ANNOYING! On the other hand once the objects have been found using a cham like system, it is possible to do a project/unproject "aimbot" style mouse click which would work inactively.
This would probably be the best thing out of all that you have presented. I find constantly updating the patterns a real pain, since they seem to change every patch. I'm not sure why, really. The developers like to play with things that work perfectly fine; and more often than not end up breaking something that shouldn't have been touched.I saw you have an update.lua, if it doesn't work you can send me a message and I can try to set up a findpattern function for everything. Most of my hacks/bots rely on findpattern anyways.
Set your combat type to "ranged" and set melee_distance to 50. This will make your character use long-ranged spells to pull, but rely primarily on melee combat. Set the priority of rising tide to something low (about 60) so that it will use melee skills over rising tide when in range.edit:
Is there a simple way to pull with a certain spell then not use it again unless no other skill can be used? I have a rogue/priest and I use rising tide as a pull, then I just use my mana for healing, but the bot likes to use a melee skill to open the combat then cast rising tide once or twice just using up mana when other skills are much better. When soloing I normally never use a potion, and the way the bot likes to go through them, they get pricey.
EDIT:
Jovaras: You have this:
Code: Select all
<skill name="SCOUT_VAMPIRE_ARROWS" key="VK_4" type="dot" />
Code: Select all
<skill name="SCOUT_VAMPIRE_ARROWS" hotkey="VK_4" type="dot" />
Re: RoM bot
thanks for the reply!
I'll try out what you said, hope it works
edit:
how does priority work exactly?
is it 0-100, whats the default priority? is it based on the skill? //answered it myself, its defined in the database for skills.
if skill A is priority 15 and skill B is priority 16, will B get cast first or A? (aka low to high or high to low cast order?)
im trying to set my skills to work in an exact order and its tricky XD, they are casting in reverse order regardless of priority.
I'll try out what you said, hope it works

edit:
how does priority work exactly?
is it 0-100, whats the default priority? is it based on the skill? //answered it myself, its defined in the database for skills.
if skill A is priority 15 and skill B is priority 16, will B get cast first or A? (aka low to high or high to low cast order?)
im trying to set my skills to work in an exact order and its tricky XD, they are casting in reverse order regardless of priority.
Re: RoM bot
Alright, I followed the instructions to the letter. It works until after the first mob then the bot starts running off at a tangent. Is something wrong with the create path script? My values seem to be off or something.
Re: RoM bot
I'm pretty sure 100 priority would go first, 1 or 0 going last.Rajinn wrote:thanks for the reply!
I'll try out what you said, hope it works
edit:
how does priority work exactly?
is it 0-100, whats the default priority? is it based on the skill? //answered it myself, its defined in the database for skills.
if skill A is priority 15 and skill B is priority 16, will B get cast first or A? (aka low to high or high to low cast order?)
im trying to set my skills to work in an exact order and its tricky XD, they are casting in reverse order regardless of priority.
New version! I'm definitely looking forward to it..
Last edited by elroy72 on Mon Apr 13, 2009 6:15 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 4 guests