Page 1 of 1
Configure the macro
Posted: Tue Sep 15, 2009 2:19 pm
by fasher
hello, I have the last update. But I have this error when I execute "rom\bot.lua" and I not why. I believe that I have it well formed. Someone might help me. Thank you. Excuse my English
Re: Configure the macro
Posted: Tue Sep 15, 2009 3:18 pm
by Administrator
In your game chat, it should say something like "MACRO: sending test 1234" or something like that. What do you see?
Re: Configure the macro
Posted: Tue Sep 15, 2009 3:24 pm
by d003232
I did a SVN update a view minutes ago at that coding place. So please update to the latest SVN. After having the error please:
- what messages do you see in the ingame chat
- whats the content of the macro at macro place 1
- whats the content of the macro place 2
Re: Configure the macro
Posted: Tue Sep 15, 2009 3:29 pm
by fasher
Thanks for his answer. I have not seen anything when I have created the macro. it did not also go out at all when I added it to the actions bar. When I pulsate on the macro it is as if my personage was speaking but he does not even say anything. Thank you

Re: Configure the macro
Posted: Tue Sep 15, 2009 3:44 pm
by d003232
fasher wrote:Thanks for his answer. I have not seen anything when I have created the macro. it did not also go out at all when I added it to the actions bar. When I pulsate on the macro it is as if my personage was speaking but he does not even say anything. Thank you

The messages are send as orange 'system message'. So it could be send to different chat tabs, depending from your ingame configuration. But also check the content of the macros at place 1 and 2. That will give the information it the macro was written to the clients memory. And if you press if by hand, it should also give an output.
Re: Configure the macro
Posted: Tue Sep 15, 2009 4:08 pm
by fasher
Excuse but I do not understand them very well what they mean me. The macro that I believe this one empty. it does not have any scripts. does not go out any text naraja. Thank you the same way
edit:I have just seen that in the macro,/script r='' a={SendSystemChat("MACRO test: test failed !!! No return values found!");} for i=1,#a do if a then r=r..tostring(a) end r=r..' ' end EditMacro(2,'',7,r); to position in the window of his configuration
Re: Configure the macro
Posted: Wed Sep 16, 2009 1:23 am
by d003232
fasher wrote:edit:I have just seen that in the macro,/script r='' a={SendSystemChat("MACRO test: test failed !!! No return values found!");} for i=1,#a do if a then r=r..tostring(a) end r=r..' ' end EditMacro(2,'',7,r); to position in the window of his configuration
Ok. that's the content of macro 1 after the fail. thx What's the content of macro 2 after the fail?
What messages did you see the in the system chat? What message do you see, if you press the hotkey manual ... after the test failed?
Re: Configure the macro
Posted: Wed Sep 16, 2009 2:57 pm
by fasher
the second macro does not say anything. he does not say the error to me in the chat. if not in the window of modifying the macro.
I have tried "<option name = "IGNORE_MACRO_ERROR" values = "true"/> "and it me works but it does not attack. and it gives me this error "the rom window have to have e in the foreground to be able to use the haverting funcion. wue can´t harvest now!
Re: Configure the macro
Posted: Wed Sep 16, 2009 3:28 pm
by Administrator
fasher wrote:the second macro does not say anything. he does not say the error to me in the chat. if not in the window of modifying the macro.
I have tried "<option name = "IGNORE_MACRO_ERROR" values = "true"/> "and it me works but it does not attack.
Post a screenshot of your chat. If you manually click/press the first macro, does it modify the second?
it gives me this error "the rom window have to have e in the foreground to be able to use the haverting funcion. wue can´t harvest now!
As it says, it cannot harvest while the RoM window is in the background. It must have focus.
Re: Configure the macro
Posted: Wed Sep 16, 2009 3:51 pm
by fasher
Code: Select all
<profile>
<options>
<!-- Try the bot with a new char mage -->
<!-- At the pioneer village. Use demo.xml waypoint file -->
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="60" />
<!-- Rest if HP or Mana is below that level -->
<option name="HP_REST" value="40" />
<option name="MP_REST" value="40" />
<!-- Shopping options, how many of what do you want to keep in your inventory -->
<option name="HEALING_POTION" value="0" />
<option name="MANA_POTION" value="0" />
<option name="ARROW_QUIVER" value="0" />
<option name="THROWN_BAG" value="0" />
<option name="INV_MAX_SLOTS" value="18" /> <!-- max slots for inventory scan -->
<!-- Combat options -->
<option name="COMBAT_TYPE" value="melee" /> <!-- leave empty or choose ranged/melee if not using class
default -->
<option name="COMBAT_RANGED_PULL" value="false" /> <!-- only important for melees -->
<option name="COMBAT_DISTANCE" value="200" />
<option name="MAX_FIGHT_TIME" value="15" /> <!-- Max time without damage before break -->
<option name="DOT_PERCENT" value="90" />
<option name="ANTI_KS" value="true" />
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="2" />
<option name="TARGET_LEVELDIF_BELOW" value="2" />
<!-- Waypoint and movement settings -->
<option name="WAYPOINTS" value="1" /> <!-- leave empty to show a list -->
<option name="RETURNPATH" value="" />
<option name="PATH_TYPE" value="waypoints" /> <!-- waypoints | wander -->
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="QUICK_TURN" value="true" />
<!-- Loot settings -->
<option name="LOOT" value="false" />
<option name="LOOT_IN_COMBAT" value="true" />
<option name="LOOT_DISTANCE" value="100" />
<option name="LOOT_PAUSE_AFTER" value="0" /> <!-- probability in % for a short rest -->
<!-- Log out and resurrect settings -->
<option name="LOGOUT_TIME" value="0" /> <!-- in minutes, 0 = timer disabled -->
<option name="LOGOUT_SHUTDOWN" value="false" />
<option name="LOGOUT_WHEN_STUCK" value="true" />
<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
<option name="IGNORE_MACRO_ERROR" value="false" />
<!-- For more options and documentation see the RoM Bot Wiki: -->
<!-- http://www.solarstrike.net/wiki/index.php5?title=RoM_Bot -->
</options>
<friends>
<!-- names of friends we help fighting or enemys we don't want to attack -->
<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer -->
<friend name="friendname1" />
<friend name="elitemob K\132fer" />
<friend name="elitemob H\129ter" />
</friends>
<hotkeys>
<!-- to communicate with the RoM API / define ingame a dummy macro at place 1 -->
<hotkey name="MACRO" key="VK_0" />
</hotkeys>
<!-- define your skills depending from your actual primary class -->
<!-- see the example for a priest/mage -->
<!-- delete skills you don't have or don't want to use. -->
<!-- For more skills to use see /database/skills.xml -->
<!-- demo skills for LvL 1 character for all classes -->
<skills_scout>
<skill name="SCOUT_SHOT" hotkey="VK_2" priority="90" />
<skill name="SCOUT_AUTOSHOT" hotkey="VK_4" priority="80" />
</skills_scout>
<skills_rogue>
<skill name="ROGUE_SHADOWSTAB" hotkey="VK_2" priority="90" />
</skills_rogue>
<onLoad>
-- Additional Lua code to execute after loading the profile
-- and before the bot starts. e.g. You could overwrite profile settings here
-- like: changeProfileOption("HP_REST", 60);
if(player.Level == 1) then
openGiftbags1To10(player.Level);
else
levelupSkills1To10("loadonly");
end;
</onLoad>
<onDeath>
-- Additional Lua code to execute on death
-- pauseOnDeath(); -- Stop the script
</onDeath>
<onLeaveCombat>
-- Additional Lua code to execute after a target is finished
if(player.Class1 == CLASS_SCOUT) then
inventory:reloadAmmunition("arrow");
end;
</onLeaveCombat>
<onLevelup>
-- thats a demo for opening the gift bags from Lvl 1-10
-- and levelup the skills for a new character (mage or priest recommended)
-- you can delete that lines if you don't want to use that
-- single skill would be: sendMacro("SetSpellPoint(4,2);");
-- or levelupSkill(_skillname, _times)
levelupSkills1To10();
-- open giftbag and equipt content
openGiftbags1To10(player.Level);
</onLevelup>
<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>
When I touch the first macro the second one it is not modified. He excuses but I do not understand well "Expert it says, it cannot harvest while the RoM window is in the background. It must have focus." I am Spanish and I defend myself a little in English. Do you mean me of that the rom cannot be behind?. Thanks for his patience
edit:When I set "<option yam = "IGNORE_MACRO_ERROR" should value = "false"/> "he says it to me q puts in the image 3 and when I put true what goes out in the image 1
Re: Configure the macro
Posted: Wed Sep 16, 2009 3:56 pm
by d003232
fasher wrote:When I touch the first macro the second one it is not modified. He excuses but I do not understand well "Expert it says, it cannot harvest while the RoM window is in the background. It must have focus." I am Spanish and I defend myself a little in English. Do you mean me of that the rom cannot be behind?. Thanks for his patience
Yes, the RoM bot can not harvest, if the RoM window is in the background.
I you want help for the other problem. Please read
here and don't use the 'IGNORE_MACRO_ERROR' option. Hence that would overwrite the values.
Re: Configure the macro
Posted: Wed Sep 16, 2009 5:00 pm
by d003232
There have been some changes. Please update to the current SVN version and try again. If it don't work also post your ingame chat 1 and the content of the MM window.
Re: Configure the macro
Posted: Wed Sep 16, 2009 5:51 pm
by fasher
Thanks for the help. I have updated, but now it me does not work "rom\createpath.lua".
Re: Configure the macro
Posted: Wed Sep 16, 2009 6:02 pm
by d003232
fasher wrote:Thanks for the help. I have updated, but now it me does not work "rom\createpath.lua".
Which messages did you see after the failure in your ingame chat? The first chat tab?
Re: Configure the macro
Posted: Wed Sep 16, 2009 6:10 pm
by fasher
I do not see any message in the chat after the mistake. only that now it puts in the macro "/script r='' a={ChatFrame1:AddMessage("MACRO test: test failed !!! No return values found!");} for i=1,#a do if a
then r=r..tostring(a) end r=r..' ' end EditMacro(2,'',7,r);" but before updating if it me was working "rom\createpath.lua" and now not
<profile>
<options>
<!-- Try the bot with a new char mage -->
<!-- At the pioneer village. Use demo.xml waypoint file -->
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="40" />
<!-- Rest if HP or Mana is below that level -->
<option name="HP_REST" value="15" />
<option name="MP_REST" value="15" />
<!-- Shopping options, how many of what do you want to keep in your inventory -->
<option name="HEALING_POTION" value="99" />
<option name="MANA_POTION" value="99" />
<option name="ARROW_QUIVER" value="2" />
<option name="THROWN_BAG" value="2" />
<!-- Combat options -->
<option name="COMBAT_TYPE" value="" /> <!-- leave empty or choose ranged/melee if not using class default -->
<option name="COMBAT_RANGED_PULL" value="true" /> <!-- only important for melees -->
<option name="COMBAT_DISTANCE" value="200" />
<option name="MAX_FIGHT_TIME" value="15" /> <!-- Max time without damage before break -->
<option name="DOT_PERCENT" value="90" />
<option name="ANTI_KS" value="true" />
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="3" />
<option name="TARGET_LEVELDIF_BELOW" value="10" />
<!-- Waypoint and movement settings -->
<option name="WAYPOINTS" value="" /> <!-- leave empty to show a list -->
<option name="RETURNPATH" value="" />
<option name="PATH_TYPE" value="waypoints" /> <!-- waypoints | wander -->
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="QUICK_TURN" value="false" />
<!-- Loot settings -->
<option name="LOOT" value="true" />
<option name="LOOT_IN_COMBAT" value="true" />
<option name="LOOT_DISTANCE" value="100" />
<option name="LOOT_PAUSE_AFTER" value="0" /> <!-- probability in % for a short rest -->
<!-- Log out and resurrect settings -->
<option name="LOGOUT_TIME" value="0" /> <!-- in minutes, 0 = timer disabled -->
<option name="LOGOUT_SHUTDOWN" value="false" />
<option name="LOGOUT_WHEN_STUCK" value="true" />
<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
<!-- For more options and documentation see the RoM Bot Wiki: -->
<!-- http://www.solarstrike.net/wiki/index.p ... le=RoM_Bot -->
</options>
<friends>
<!-- names of friends we help fighting or enemys we don't want to attack -->
<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer -->
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
<friend name="Elite_Mob_Name1" />
<friend name="Elite_Mob_Name2" />
</friends>
<hotkeys>
<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
<hotkey name="MACRO" key="VK_0" />
</hotkeys>
<!-- define your skills depending from your actual primary class -->
<!-- see the example for a priest/mage -->
<!-- delete skills you don't have or don't want to use. -->
<!-- For more skills to use see /database/skills.xml -->
<!-- demo skills for LvL 1 character for all classes -->
<skills_priest>
<skill name="PRIEST_SOUL_SOURCE" hotkey="VK_4" priority="110" inbattle="true" hpper="15" />
<skill name="PRIEST_HOLY_AURA" hotkey="VK_7" priority="100" inbattle="true" hpper="24" />
<skill name="PRIEST_URGENT_HEAL" hotkey="VK_2" priority="100" hpper="30" />
<skill name="PRIEST_REGENERATE" hotkey="VK_6" priority="90" />
<skill name="PRIEST_RISING_TIDE" hotkey="VK_3" priority="80" />
<skill name="MAGE_FIREBALL" hotkey="VK_8" priority="70" />
<skill name="PRIEST_WAVE_ARMOR" hotkey="VK_5" priority="40" inbattle="true" />
<!--skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" /> -->
<!--skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_F" priority="20" /> -->
</skills_priest>
<skills_warrior>
<skill name="WARRIOR_SLASH" hotkey="VK_2" priority="90" />
<skill name="WARRIOR_PROBING_ATTACK" hotkey="VK_4" priority="80" />
<skill name="WARRIOR_OPEN_FLANK" hotkey="VK_5" priority="70" />
</skills_warrior>
<skills_scout>
<skill name="SCOUT_SHOT" hotkey="VK_2" priority="90" />
<skill name="SCOUT_AUTOSHOT" hotkey="VK_4" priority="80" />
<skill name="SCOUT_WIND_ARROWS" hotkey="VK_5" priority="70" />
</skills_scout>
<skills_rogue>
<skill name="ROGUE_SHADOWSTAB" hotkey="VK_2" priority="90" />
<skill name="ROGUE_LOW_BLOW" hotkey="VK_4" priority="80" />
</skills_rogue>
<skills_mage>
<skill name="MAGE_FLAME" hotkey="VK_3" priority="80" />
<skill name="MAGE_ELEMENTAL_CATALYST" hotkey="VK_2" priority="30" inbattle="true" />
</skills_mage>
<skills_knight>
<skill name="KNIGHT_HOLY_STRIKE" hotkey="VK_3" priority="90" />
<skill name="KNIGHT_HOLY_SHIELD" hotkey="VK_4" priority="80" inbattle="true" hpper="15" />
<skill name="KNIGHT_HOLY_SEAL" hotkey="VK_5" priority="70" />
<skill name="KNIGHT_PUNISHMENT" hotkey="VK_2" priority="60" />
</skills_knight>
<skills_warden>
<skill name="WARDEN_CHARGED_CHOP" hotkey="VK_2" priority="90" />
<skill name="WARDEN_ENERGY_ABSORB" hotkey="VK_3" priority="80" inbattle="true" hpper="25" />
</skills_warden>
<skills_druid>
<skill name="DRUID_RECOVER" hotkey="VK_2" priority="90" hpper="30" />
<skill name="DRUID_EARTH_ARROW" hotkey="VK_3" priority="80" />
</skills_druid>
<onLoad>
-- Additional Lua code to execute after loading the profile
-- and before the bot starts. e.g. You could overwrite profile settings here
-- like: changeProfileOption("HP_REST", 60);
</onLoad>
<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>
if you want more information I put it to you. Thank you
Re: Configure the macro
Posted: Wed Sep 16, 2009 6:15 pm
by d003232
fasher wrote:I do not see any message in the chat after the mistake. only that now it puts in the macro "/script r='' a={ChatFrame1:AddMessage("MACRO test: test failed !!! No return values found!");} for i=1,#a do if a then r=r..tostring(a) end r=r..' ' end EditMacro(2,'',7,r);" but before updating if it me was working "rom\createpath.lua" and now
OK. thx for your help. It seems that your client don't get the keypress '0'. And I don't know why. 
Perhaps Admin has an idea?
You can just try to use the 'IGNORE_MACRO_ERROR' to work on while we have to look for more ideas.
Re: Configure the macro
Posted: Wed Sep 16, 2009 6:16 pm
by fasher
Thanks for everything. I will be somewhere here if something new arises. thank you the same way

Re: Configure the macro
Posted: Wed Sep 16, 2009 7:09 pm
by Administrator
Fasher: try changing keyboardSetDelay(0) to keyboardSetDelay(50) in rom/bot.lua. Also, try changing the MACRO hotkey from 0 to something else (and remember to update this change in your profile as well).
Re: Configure the macro
Posted: Thu Sep 17, 2009 1:22 pm
by fasher
I did these changes and it did not give any type of result. Thank you