RoM bot
Re: RoM bot
Can anyone please share with me their settings to get this bot working with the addon called UberFlex ?
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
\137 is decimal notation. See the Extended ASCII chart. You will need to use string.char(0x89) to insert it through hex.frank wrote:I'm pretty sure "\137" isn't a valid string character. If LUA is anything like other languages it would be "\x89". The "\x" denotes you wish to insert a byte string, and then from there you can add all the hexadecimal code you want.Administrator wrote:Now, that 'ë' in your character's name needs to be replaced with \137. So, if your name was "Namë", change it to "Nam\137". Save it, and run the bot.
Anyways, I started fooling around with the bot a few days ago out of curiosity, and my bot isn't resurrecting upon death. The window just waits on a mouse click. What is the fix for this?
As for the resurrection problem, let me see your profile and a screenshot of your hotkeys.
Re: RoM bot
It does not do the trick. I added "Cow Beetle" and "Yuri" to my friends list in profiles\player.xml and I still attack both of those things.Administrator wrote:You could add the monsters to your friend list in profile. That should do the trick.Zeno1 wrote:i wonder if there is a way to "blacklist" mobs so u don't accidentally go after elite mobs or mobs that are too high for yu but in the area you want to bot
Re: RoM bot
I figured out the problem. Somewhere in this topic you (or someone else) said the script was AcceptRessurection(true); and later on in the topic it was said to actually be AcceptResurect();Administrator wrote:As for the resurrection problem, let me see your profile and a screenshot of your hotkeys.
I haven't died yet, but I assume with the macro properly set up and default bot settings, when I die, the bot will use the macro, I will res, the bot will wait 60s for the sickness to go away, and then it will follow my deathpath.xml back to the leveling spot?
Also, there is a bug ingame; If you die, swap your equipment in your Character Screen using that new button. Swap your gear to be naked, then ressurect, then swap back. Your items wont lose any durability and you'll save yourself a lot of cash. Perhaps a macro or the bot could be updated to automatically do this upon death?
Re: RoM bot
Bug Report
If I have ANTI_KS set to false, I will still attack everyone on my Friends List, since the check is not done in that case. The very first check should be a Friends List check, then a KS check, which doesn't work at all, since true or false my bot steals all kills anyways...
When selecting a new target, the very first check should be a Friends List check. Then you sohuld check if the target is at 100% health. If not, you should not attack it. Time and time again my bot targets and initiates an attack on a monster that is at low health (35%) and being killed by another player.
Code: Select all
local target = player:getTarget();
if( settings.profile.options.ANTI_KS ) then
if( target:haveTarget() and target:getTarget().Address ~= player.Address and (not player:isFriend(CPawn(target.TargetPtr))) ) then
cprintf(cli.red, language[5], target.Name);
else
player:fight();
end
else
player:fight();
end
When selecting a new target, the very first check should be a Friends List check. Then you sohuld check if the target is at 100% health. If not, you should not attack it. Time and time again my bot targets and initiates an attack on a monster that is at low health (35%) and being killed by another player.
Re: RoM bot
Couple of points. Anti Kill steal works fine. I am a melee player so i see this work better than if you were a ranged person. I have been using the bot for a couple of months nearly and started using that freature strait away. So it does work.
I do agree however the bot should NEVER target a mob that is below 100% health if anti KS is turned on. Simple coding fix witch would then eliminate other code. At the moment my bot will target a mob start chasing it and eventually wills top once the mobs health then changes again. Once this happens it then has to backtrack to the waypoint and then get another target. This can eat 10s easy.
The Way to ignore mobs you dont want to target is to simply add them to your friends list. This works perfectly. The 500+ mino charms i farmed proves this. If you are around lvl 36 you will be familiar with minotaur Patrolman and their berhu pets. Pets have insane health for the the lvl and disapear when the patrolman dies. I put in my friends list Berhu and it would ALWAYS skip the berhu. So this feature does work as intended.
All in all this bot is a fantastic piece of software. One of the best bots i have ever used.
Keep up the good work.
Oh for the person who had issue with the funny chracter the error you were getting is probably due to need another / infront of the numbers as the 1st slash the code is thinking it is a tag that needs closing. It is probably liek php where you need to place and escape char infront of it to signify that is is the actual character not the special properties the character represents. Mind sound odd to some but if you are a programmer or have worked with regular expressions you should get my drift
.
I do agree however the bot should NEVER target a mob that is below 100% health if anti KS is turned on. Simple coding fix witch would then eliminate other code. At the moment my bot will target a mob start chasing it and eventually wills top once the mobs health then changes again. Once this happens it then has to backtrack to the waypoint and then get another target. This can eat 10s easy.
The Way to ignore mobs you dont want to target is to simply add them to your friends list. This works perfectly. The 500+ mino charms i farmed proves this. If you are around lvl 36 you will be familiar with minotaur Patrolman and their berhu pets. Pets have insane health for the the lvl and disapear when the patrolman dies. I put in my friends list Berhu and it would ALWAYS skip the berhu. So this feature does work as intended.
All in all this bot is a fantastic piece of software. One of the best bots i have ever used.
Keep up the good work.
Oh for the person who had issue with the funny chracter the error you were getting is probably due to need another / infront of the numbers as the 1st slash the code is thinking it is a tag that needs closing. It is probably liek php where you need to place and escape char infront of it to signify that is is the actual character not the special properties the character represents. Mind sound odd to some but if you are a programmer or have worked with regular expressions you should get my drift

- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Yes, that is correct.frank wrote: I haven't died yet, but I assume with the macro properly set up and default bot settings, when I die, the bot will use the macro, I will res, the bot will wait 60s for the sickness to go away, and then it will follow my deathpath.xml back to the leveling spot?
I'm sure there is a Lua function to swap your equipment, but I do not know what it is offhand. Lets just pretend it's SwapEquipment() for now. You can change your res macro to this:Also, there is a bug ingame; If you die, swap your equipment in your Character Screen using that new button. Swap your gear to be naked, then ressurect, then swap back. Your items wont lose any durability and you'll save yourself a lot of cash. Perhaps a macro or the bot could be updated to automatically do this upon death?
Code: Select all
SwapEquipment();
AcceptResurrect();
wait 5
SwapEquipment();
Thanks for the bug report; I will be working on it soon. I think that a majority of the KS-check problem is due to an in-game bug where if you are out of distance of the player (or his enemy) when he targets the enemy, then move in range, it does not properly update that other players' target. However, a simple health check should fix the problem, I suppose.
The problem with Extended ASCII and Unicode characters in player names is proving quite annoying. Lua does not work well with Unicode. To compound the problem, the characters are stored as multi-width... meaning it's difficult to guess how many bytes each character will be. If a character is 2-bytes (ex: ë), it must be converted to 2 single by characters (ex: ├ ½). Now comes more trouble with Lua... it doesn't want to find profiles with either 'ë' or '├½' in them.
Re: RoM bot
As a suggested work around for the lua profiles. Add in an optional config to specify the lua config file. Dont waste time trying to beat your head against the limitations of a language... just code around it. The amount of time i have wasted on various projects cause of that mindset has now taught me to step back and just work around it. It wont be so elegant but i am sure in a very short time you can add a section in for somone to name the lua script they want. Maybe even have it passed in as a command line option from micromagic.
Cheers.
Cheers.
-
- Posts: 10
- Joined: Tue Apr 21, 2009 12:14 pm
Re: RoM bot
WORKS FINE RAJIN!! TY!!Rajinn wrote:since the targeting only targets stuff in front of you, you could goto the onLeaveCombat section and add a script to move backwardsblademagical wrote:Pls administrator help me =\
what i must change in my micromacro to my char attack first the mobs that are attacking me first, because here my character are being attacked by 3 mobs and he got a new target and dont attack first the mobs that are attacking me first, plz what i can do to my char kill first all the mobs are already attacking me first to take after a new target? ty =)
then when it goes to auto target it should grab the closest mob which should be the ones hitting you (i havent tried it yet, just theory)Code: Select all
keyboardHold(settings.hotkeys.MOVE_BACKWARD.key); yrest(200); keyboardRelease(settings.hotkeys.MOVE_BACKWARD.key);
Re: RoM bot
works great but can't get the looting to work, click to move and auto loot are both on... any ideas? heres where i'm at, maybe someone smarter than me can help

Code: Select all
<options>
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="40" />
<option name="COMBAT_TYPE" value="melee" />
<option name="COMBAT_DISTANCE" value="200" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="test4.xml" />
<option name="RETURNPATH" value="test4.xml" />
<option name="PATH_TYPE" value="waypoints" />
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="50" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="5000" />
<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="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="" />
<hotkey name="RES_MACRO" key="VK_9" modifier="" />
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
I need a screenshot of your hotkeys.fatty wrote:works great but can't get the looting to work, click to move and auto loot are both on... any ideas? heres where i'm at, maybe someone smarter than me can help![]()
Re: RoM bot
screenshot..<Removed for the user's protection>
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Looks like you've got it set up correctly. I've removed the link to your screenshot to protect you.
Turn off the bot for a minute, and kill a monster and then click on the 0 hotkey (attack). Does it loot for you?
Turn off the bot for a minute, and kill a monster and then click on the 0 hotkey (attack). Does it loot for you?
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Did you hotkey your weapon, or did you move the Attack icon from General skills into hotkey 0?
Re: RoM bot
so, u know a way i can fix the "ë" ? 

Re: RoM bot
when i press delete after seting up my bot message appears cannot open file e:/.....<Removed>.xml for reading.Can you pls help me here is 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="40" />
<option name="COMBAT_TYPE" value="melee" />
<option name="COMBAT_DISTANCE" value="200" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="cactusi.xml" />
<option name="RETURNPATH" value="cactusi.xml" />
<option name="PATH_TYPE" value="waypoints" />
<option name="WANDER_RADIUS" value="50" />
<option name="WAYPOINT_DEVIATION" value="50" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="2000" />
<option name="ENERGY_STORAGE_1" value="energy" />
<option name="ENERGY_STORAGE_2" value="mana" />
<option name="POTION_COOLDOWN" value="60" />
<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_8" modifier="" />
<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
<hotkey name="ATTACK" key="VK_1" modifier="" />
<hotkey name="RES_MACRO" key="VK_9" modifier="" />
</hotkeys>
<skills>
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_7" modifier="" />
<skill name="ROGUE_SHADOWSTAB" hotkey="VK_2" modifier="" />
<skill name="ROGUE_LOW_BLOW" hotkey="VK_3" modifier="" />
<skill name="ROGUE_WOUND_ATTACK" hotkey="VK_4" modifier="" />
</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>
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: RoM bot
Download the newest version (2.24), and manually load your profile. It's simple, just append the profile name when running the script: rom/bot.lua profile:Mynamëdeedly wrote:so, u know a way i can fix the "ë" ?
executor: Make absolutely sure that your profile exists in micromacro/scripts/rom/profiles/ and that the filename is in the format of Yourcharname.xml, and not Yourcharname.xml.xml.
Re: RoM bot
did this and now i have error and it says that game was updated . i downloaded the 2.24 version and starded rom\update.lua but it isnt working
EDIT:I installed new version once again and now it only gives me e:\...player.lua:638: attempt to index local 'pawn' (a nil value) error.How can i fix this?
EDIT:I installed new version once again and now it only gives me e:\...player.lua:638: attempt to index local 'pawn' (a nil value) error.How can i fix this?
Who is online
Users browsing this forum: No registered users and 1 guest