Page 22 of 111

Re: RoM bot

Posted: Fri Feb 20, 2009 8:44 pm
by barbarossa
Administrator wrote:
markusbab wrote:

Code: Select all

<skill name="MAGE_THUNDERSTORM" mana="70" range="180" type="damage" target="enemy" />
that skill not be casted
also bot pressed the key but cast will not be

any idea?
The instructions wrote: My skills aren't working. Why?

Press escape and go to interface settings. Turn on Self Cast. This will help for buffs at least.
Next, make sure your energy types are set correctly in your profile. Your primary energy storage is set to the energy type that your primary class uses, and your secondary energy storage is (obviously) for your secondary class. If both classes use the same energy type, then only the primary storage is needed, and the secondary storage can be set to "none".

For example, a knight/warrior would use primary storage of "mana" and secondary storage of "rage". A mage/priest would use a primary of "mana" and secondary of "none". The values are case sensitive, so "Mana" would not work.
hey admin
first great jop you doing her

but i guess you are missunderstand my questchen

also normaly all skills working whit settings selfcast

and my profile is maked as you write in this passage

only problem is that one skill
i see in game the bot will us the skill ... also a blue area where i need klick whit mouse
but it not will be casted alone
i need still klick if i want us that skill

i hope this clear it a bit about my queschen!

Re: RoM bot

Posted: Fri Feb 20, 2009 8:47 pm
by Yahell14
is there a way that if i have 2 chars , priest and scout that the priest will heal my scout when needed?
i think there is a way, if not, why do i need to enter my friend name?...
but how does it work? i need to turn off the "V" in "self cast" ?

please help me boys!

Re: RoM bot

Posted: Fri Feb 20, 2009 10:13 pm
by SinSxi
Anyone have any idea how to fix my problem?

Image

Re: RoM bot

Posted: Fri Feb 20, 2009 10:48 pm
by Administrator
markusbab: You're right. I overlooked it that time and thought you were asking about casting heals on yourself. In this case, there is no answer. Mouse input would not work very well for multiple reasons (for example, determining where to click would be a problem). Look into how to do this with the addon system if it really is that important to you.

Yahell14: With the current setup of the bot right now, you can't. You could, however, write a macro/addon to heal your party members.

SinSxi: For the third time, follow the instructions you have been given, or at least post a log and tell what you have or haven't done. Or just re-download the scripts again. And stop posting screenshots of text errors.

Re: RoM bot

Posted: Sat Feb 21, 2009 7:31 am
by osveno
Just curious if an update is needed again? i am doing everything the same as i was about a day and a half ago. now when i go to type rom/bot.lua it says it cant open book_questlist button_1 folder text.xml in the profiles folder

Re: RoM bot

Posted: Sat Feb 21, 2009 10:41 am
by Yahell14
Administrator wrote: Yahell14: With the current setup of the bot right now, you can't. You could, however, write a macro/addon to heal your party members.
i have no idea how to do such things =(
really, all i need the bot to do is heal when its needed... not even to fight.. ill do autofolow on my char and he will heal when its needed.. thats it.. :o

Re: RoM bot

Posted: Sat Feb 21, 2009 1:33 pm
by Administrator
osveno: Be more specific. Provide the log.txt and state exactly which staticcharbase_address shows up in addresses.lua (line 1).

Yahell14: You will need an addon for that. It's not very difficult to write one to accomplish what you want. If there is only one person you want to heal, you can just have your addon constantly check UnitHealth("target")/UnitMaxHealth("target"), and if below, say, 0.7, then cast Urgent Heal ( CastSpellByname("Urgent Heal");).

Re: RoM bot

Posted: Sat Feb 21, 2009 2:54 pm
by osveno
Sat Feb 21 07:56:46 2009 : MicroMacro v1.0
Sat Feb 21 07:56:46 2009 : Processor Type: 2X 586, OS: Unknown Windows OS v5.2
Sat Feb 21 07:56:46 2009 : LuaCoco is available.
Sat Feb 21 07:56:46 2009 : Lua glues exported.
Sat Feb 21 07:56:46 2009 : Keyboard layout: US English
Sat Feb 21 07:57:20 2009 : Executing script 'bot.lua'
==================================================

Sat Feb 21 07:57:29 2009 : RoM Bot Version 2.14

stack traceback:
...inistrator\Desktop\micromacro\micromacro\lib\lib.lua:512: in function 'startMacro'
scripts\rom/bot.lua:140: in main chunk

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

Sat Feb 21 07:57:29 2009 : Cannot open file 'C:/Documents and Settings/Administrator/Desktop/micromacro/micromacro/scripts/rom/profiles/Book_QuestListButton_1FolderText.xml' for reading.
Sat Feb 21 07:57:29 2009 : Execution error: Runtime error
Sat Feb 21 08:01:14 2009 : Executing script 'bot.lua'
==================================================



NEVERMIND I FIXED IT. -------------

Re: RoM bot

Posted: Sat Feb 21, 2009 4:20 pm
by Administrator
And, again, exactly which staticcharbase_address shows up in addresses.lua (line 1)?

Re: RoM bot

Posted: Sat Feb 21, 2009 4:35 pm
by osveno
One question i did have tho. Is there a way to amke the bot rest your character? Say for example instead of popping hp potions back to back all day, id there a way to stop and sit down and rest till your hp regens?

Re: RoM bot

Posted: Sat Feb 21, 2009 4:58 pm
by Administrator

Re: RoM bot

Posted: Sat Feb 21, 2009 4:59 pm
by Yahell14
Administrator wrote:osveno: Be more specific. Provide the log.txt and state exactly which staticcharbase_address shows up in addresses.lua (line 1).

Yahell14: You will need an addon for that. It's not very difficult to write one to accomplish what you want. If there is only one person you want to heal, you can just have your addon constantly check UnitHealth("target")/UnitMaxHealth("target"), and if below, say, 0.7, then cast Urgent Heal ( CastSpellByname("Urgent Heal");).

where do i need to write this command?
(srry for beeing stupid :X )

Re: RoM bot

Posted: Sat Feb 21, 2009 8:09 pm
by barbarossa
Yahell14 wrote:
Administrator wrote:osveno: Be more specific. Provide the log.txt and state exactly which staticcharbase_address shows up in addresses.lua (line 1).

Yahell14: You will need an addon for that. It's not very difficult to write one to accomplish what you want. If there is only one person you want to heal, you can just have your addon constantly check UnitHealth("target")/UnitMaxHealth("target"), and if below, say, 0.7, then cast Urgent Heal ( CastSpellByname("Urgent Heal");).

where do i need to write this command?
(srry for beeing stupid :X )
hey yahell maybe i find her some what help you
http://forum.runesofmagic.com/showpost. ... ostcount=2
her in the official forum from rom is a good exemple

Re: RoM bot

Posted: Sat Feb 21, 2009 10:40 pm
by haura
I get bad lag now so that make me wonder I can modify some of the yrest() delays to include a server ping result.

The best I can do without help is a calculation using distance to target for looting. This code inside player.lua Fight() function:

Code: Select all

	local dist = distance(self.X, self.Z, target.X, target.Z);
	keyboardPress(settings.profile.hotkeys.ATTACK.key);
	yrest(dist + settings.profile.options.LOOT_TIME);
Does anyone know how to assign server ping result to a variable?

For now I just edit the character profile.xml file.

Re: RoM bot

Posted: Sun Feb 22, 2009 12:32 am
by Administrator
You could just increase your LOOT_TIME in your profile instead. What else would you need to modify for ping?

Re: RoM bot

Posted: Sun Feb 22, 2009 2:08 pm
by osveno
Is there a setting that can be set to make it scan for targets faster or actively? Here is the problem i am running into

My bot will run right past mobs sometimes and not target them. it looks almost like he runs to a way point targets 1 time, runs to a way point targets one time and misses the mobs in between his last kill and the next waypoint stop.

Re: RoM bot

Posted: Sun Feb 22, 2009 10:04 pm
by Overcool
I did everything right (I think) and this error happens in the time that I click to run the bot...

Image
Image[/img]

Someone can help me PLEASE!?!?!?!?!?!?!?!??!?!?!?!??!?!?!?!?!?

Re: RoM bot

Posted: Mon Feb 23, 2009 12:15 am
by osveno
If i wanted the bot to use a skill after it kills a mob how would i make it do that?

say for example after it detects the mob is dead i want it to cast like a heal skill or something. how would i make it do that?

i am new to lua all together so if you tell me what to do please tell me where to put the code exactly and what file it goes in if you dont mind

Thank you

Re: RoM bot

Posted: Mon Feb 23, 2009 1:16 am
by osveno
celgene32 wrote:Hi i have a problem my bot just start use the regular skills, after 2-3 skills it just stops and
do nothing, i get this error form time to time.
Mon Jan 26 14:09:01 2009 : MicroMacro v1.0
Mon Jan 26 14:09:01 2009 : Processor Type: 2X 586, OS: Windows XP Szervizcsomag 2
Mon Jan 26 14:09:01 2009 : LuaCoco is available.
Mon Jan 26 14:09:01 2009 : Lua glues exported.
Mon Jan 26 14:09:01 2009 : Keyboard layout: US English
Mon Jan 26 14:09:06 2009 : Executing script 'createpath.lua'
==================================================

Mon Jan 26 14:09:19 2009 : Execution success

Mon Jan 26 14:09:22 2009 : Executing script 'bot.lua'
==================================================

Mon Jan 26 14:09:24 2009 : RoM Bot Version 2.10

stack traceback:
D:\GameZ\micromacro\lib\lib.lua:510: in function 'startMacro'
scripts\bot.lua:137: in main chunk

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

Mon Jan 26 14:09:36 2009 : D:/GameZ/micromacro/scripts/classes/player.lua:201: attempt to compare nil with number
Mon Jan 26 14:09:36 2009 : Execution error: Runtime error
my profile:
<profile>
<options>
<option name="HP_LOW" value="50" />
<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="a.xml" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="2000" />
<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_5" modifier="" />
<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
<hotkey name="ATTACK" key="VK_0" modifier="" />
</hotkeys>

<skills>
<skill name="ROGUE_SHADOWFACE" hotkey="VK_2" modifier="" />
<skill name="ROGUE_LACERATION" hotkey="VK_3" modifier="" />
<skill name="ROGUE_VILLAINY" hotkey="VK_1" modifier="" />
<skill name="SCOUT_VAMPIRE_ARROWS" hotkey="VK_4" modifier="" />
<skill name="SCOUT_SHOT" hotkey="VK_6" modifier="" />


</skills>
</profile>
i also try to change skills and switch the energy and concentration but nothing .
Btw i have this problem with rogue/scout, scout/rogue it works fine






i find it works better to leave your combat type as ranged for both r/s and s/r and use vamp arrow as your puller skill.

Re: RoM bot

Posted: Mon Feb 23, 2009 4:31 am
by Administrator
osveno wrote:If i wanted the bot to use a skill after it kills a mob how would i make it do that?

say for example after it detects the mob is dead i want it to cast like a heal skill or something. how would i make it do that?

i am new to lua all together so if you tell me what to do please tell me where to put the code exactly and what file it goes in if you dont mind

Thank you
Can be done multiple ways. First, through macros. Second, modify function CPlayer:fight() in classes/player.lua (starts at line 97), modify near line 269. Look for this:

Code: Select all

	-- Monster is dead (0 HP) but still targeted.
	-- Loot and clear target.
Just add (as an example):

Code: Select all

if( settings.profile.skills["SKILL_NAME_HERE"] ~= nil ) then
     settings.profile.skills["SKILL_NAME_HERE"]:use();
end
Is there a setting that can be set to make it scan for targets faster or actively? Here is the problem i am running into

My bot will run right past mobs sometimes and not target them. it looks almost like he runs to a way point targets 1 time, runs to a way point targets one time and misses the mobs in between his last kill and the next waypoint stop.
classes/player.lua, line 373

Code: Select all

		if( canTarget == false and os.difftime(os.time(), startTime) > 2 ) then
Change the 2. Lower means it will try to target faster, higher means it will wait for aggressive monsters longer.