Page 40 of 111

Re: RoM bot

Posted: Mon Apr 20, 2009 9:52 pm
by holystrikers
Ty for response admin :) ! this is just i want to know.

Re: RoM bot

Posted: Mon Apr 20, 2009 10:13 pm
by Rajinn
he asked you 3 questions with 0 answers..
read my reply you apparently skipped it.

Re: RoM bot

Posted: Tue Apr 21, 2009 2:24 am
by Izebize
You didn't disturbed at all. I just told you that it's not 2 minutes to change the bot for multiple game, and I don't know anyone who would work out the code for you.

Re: RoM bot

Posted: Tue Apr 21, 2009 8:03 am
by kokowiki
holystrikers wrote:2: i dont know how the second can assit the first(example: for heal/buff)
Well, as i've mentioned before, i use this program for the auto-move/acquire target, and use UberFlex add-on to actually do the whole 'combat' thing, it's more advanced, and can actually 'assist' as you requested. I target whomever i want to keep buffed/healed, and then /engage, that's it, but make sure you set him on follow.

I also made a small script to take the target from the main character, and attack it, then go back to following when it dies.

Re: RoM bot

Posted: Tue Apr 21, 2009 10:12 am
by Rajinn
kokowiki wrote:
holystrikers wrote:2: i dont know how the second can assit the first(example: for heal/buff)
Well, as i've mentioned before, i use this program for the auto-move/acquire target, and use UberFlex add-on to actually do the whole 'combat' thing, it's more advanced, and can actually 'assist' as you requested. I target whomever i want to keep buffed/healed, and then /engage, that's it, but make sure you set him on follow.

I also made a small script to take the target from the main character, and attack it, then go back to following when it dies.
uberflex does look good, thx for the info.
im sure theres a way to determine if your target is in combat/has a target, and do a /engage script from there.

this should work for following the party leader

Code: Select all

		<option name="LOOT" value="false" />

	<onLeaveCombat>
		-- Additional Lua code to execute after killing an enemy
		keyboardPress(key.VK_F2);
		keyboardPress(key.VK_BACKSLASH);
	</onLeaveCombat>

Re: RoM bot

Posted: Tue Apr 21, 2009 12:16 pm
by blademagical
plz guys, 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 =)

Re: RoM bot

Posted: Tue Apr 21, 2009 12:22 pm
by viperfx
Keep getting this error
Tue Apr 21 18:16:04 2009 : RoM Bot Version 2.33
Tue Apr 21 18:16:04 2009 : Using static base address 0x885F08, player address 0x2B10CD00

stack traceback:
C:\..........\rom\micromacro\lib\lib.lua:513: in function 'startMacro'
scripts\rom\bot.lua:244: in main chunk

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

Tue Apr 21 18:16:04 2009 : profile error: VK_10 does not name a valid hotkey!
Tue Apr 21 18:16:04 2009 : Execution error: Runtime error
Tue Apr 21 18:20:26 2009 : Executing script 'bot.lua'
==================================================

Re: RoM bot

Posted: Tue Apr 21, 2009 12:34 pm
by kokowiki
Rajinn wrote:im sure theres a way to determine if your target is in combat/has a target, and do a /engage script from there.
For that i use 'TankAssist', with a small side script that makes it follow the main character when targetted. I don't have to toggle /engage though, i just have on all the time with the 'manual' option inside the UberFlex addon.

Re: RoM bot

Posted: Tue Apr 21, 2009 12:48 pm
by Izebize
viperfx: Do you have a "10" key on your keyboard? I think you have 0-9 but not "10". As you can see, the error describes everything you have to know to fix your problem "profile error: VK_10 does not name a valid hotkey!".

Re: RoM bot

Posted: Tue Apr 21, 2009 1:19 pm
by viperfx
Izebize wrote:viperfx: Do you have a "10" key on your keyboard? I think you have 0-9 but not "10". As you can see, the error describes everything you have to know to fix your problem "profile error: VK_10 does not name a valid hotkey!".
Nevermind it was just some random error. Worked after i restarted rom.

I would like to know how to make the Addon Uberflex work with this. Can someone tell me please.

Re: RoM bot

Posted: Tue Apr 21, 2009 1:29 pm
by blademagical
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 =)

Re: RoM bot

Posted: Tue Apr 21, 2009 3:00 pm
by deedly
omg i screwed up a bit i think.. made a char with "ë" in the name, cant make the bot work with it. its unable to open profiles file..

since its a perfect botter and highlvld char now i'd like to get it working somehow..

Admin, u got any idea?

Re: RoM bot

Posted: Tue Apr 21, 2009 3:32 pm
by Administrator
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 =)
Not much can be done about this at the time. Just make due.

deedly wrote:omg i screwed up a bit i think.. made a char with "ë" in the name, cant make the bot work with it. its unable to open profiles file..

since its a perfect botter and highlvld char now i'd like to get it working somehow..

Admin, u got any idea?
Try this... It's a temporary fix until I can release a proper update.
Open up rom/bot.lua and go to line 74. You'll see this:
settings.loadProfile(player.Name);
Change it like so:

Code: Select all

	settings.loadProfile("Yournamehere");
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.

Re: RoM bot

Posted: Tue Apr 21, 2009 3:56 pm
by deedly
Ouch, did what u said. But executing rom/bot.lua afterwards gives me an error message

"scripts\rom/bot.lua:61 ´>´ expected near ´\´"

then MM goes back to "Please enter script..."

Re: RoM bot

Posted: Tue Apr 21, 2009 8:48 pm
by Rajinn
blademagical 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 =)
since the targeting only targets stuff in front of you, you could goto the onLeaveCombat section and add a script to move backwards

Code: Select all

keyboardHold(settings.hotkeys.MOVE_BACKWARD.key);
yrest(200);
keyboardRelease(settings.hotkeys.MOVE_BACKWARD.key);
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)

Re: RoM bot

Posted: Tue Apr 21, 2009 10:47 pm
by blademagical
Administrator or some1 can send a script for mine (gathering) for us? or dont have it yet? plz post here if some1 have that script for mining! ty!

Re: RoM bot

Posted: Wed Apr 22, 2009 1:35 am
by Rajinn
blademagical wrote:Administrator or some1 can send a script for mine (gathering) for us? or dont have it yet? plz post here if some1 have that script for mining! ty!
there isnt one yet, it has been mentioned through this thread numerous times, shows how much of it you read >.>
i was trying to come up with a simple method of making one though...

Re: RoM bot

Posted: Wed Apr 22, 2009 8:03 am
by Jovaras
Hello, I have configured my bot to rezz and run back to spot, but it only ressurects and doesn't start running. It says awaiting for pressing delete. Waypoints are loaded successfuly.
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="70" />

		<option name="COMBAT_TYPE" value="ranged" />
		<option name="COMBAT_DISTANCE" value="180" />
		<option name="ANTI_KS" value="true" />
		<option name="WAYPOINTS" value="coast.xml" />
		<option name="RETURNPATH" value="coastret.xml" />
		<option name="PATH_TYPE" value="waypoints" />
		<option name="WANDER_RADIUS" value="300" />
		<option name="WAYPOINT_DEVIATION" value="50" />
		<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="" />
		<hotkey name="RES_MACRO" key="VK_8" modifier="" />
	</hotkeys>

	<skills>
		<skill name="SCOUT_VAMPIRE_ARROWS" hotkey="VK_4" type="dot" />
		<skill name="ROGUE_SHADOWSTAB" hotkey="VK_6" energy="30" range="50" type="damage" target="enemy" />
		<skill name="SCOUT_WIND_ARROWS" hotkey="VK_3" concentration="8" range="225" type="damage" target="enemy" />
		<skill name="SCOUT_FROST_ARROW" hotkey="VK_EQUAL" concentration="20" cooldown="300" type="buff" target="self" />
		<skill name="SCOUT_SHOT" priority="100" hotkey="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

Posted: Wed Apr 22, 2009 11:54 am
by Administrator
<onDeath>
-- Additional Lua code to execute on death
pauseOnDeath(); -- Stop the script
</onDeath>
Think pausing it when you die might cause any problems?

Re: RoM bot

Posted: Wed Apr 22, 2009 12:14 pm
by frank
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.
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.

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?