TARGET_FRIEND = {key = _G.key.J, modifier = nil},Administrator wrote:Try updating to r162. It should be fixed now.
this was my error
![Sad :(](./images/smilies/icon_e_sad.gif)
<skill name="PRIEST_SOUL_SOURCE" hotkey="VK_J" priority="110" inbattle="true" hpper="30" />
double key setting
![Sad :(](./images/smilies/icon_e_sad.gif)
TARGET_FRIEND = {key = _G.key.J, modifier = nil},Administrator wrote:Try updating to r162. It should be fixed now.
Look at the red tags...<profile>
<options_priest>
<option name="HP_LOW" value="65" />
<option name="HP_LOW_POTION" value="50" />
<option name="MP_LOW_POTION" value="25" />
<option name="COMBAT_TYPE" value="ranged" />
<option name="COMBAT_DISTANCE" value="200" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="ents.xml" />
<option name="RETURNPATH" value="ents.xml" />
<option name="PATH_TYPE" value="waypoints" />
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="2000" />
<option name="LOOT_DISTANCE" value="220" />
<option name="LOOT_IN_COMBAT" value="true" />
<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" />
<option name="HARVEST_SCAN_WIDTH" value="15" /> -- steps horizontal
<option name="HARVEST_SCAN_HEIGHT" value="10" /> -- steps vertical
<option name="HARVEST_SCAN_STEPSIZE" value="15" /> -- wide of every step
<option name="HARVEST_SCAN_TOPDOWN" value="false" /> -- true = top->down false = botton->up
<option name="HARVEST_SCAN_YREST" value="9" /> -- scanspeed
</options_priest>
<options_knight>
<option name="HP_LOW" value="65" />
<option name="HP_LOW_POTION" value="50" />
<option name="MP_LOW_POTION" value="25" />
<option name="COMBAT_TYPE" value="meele" />
<option name="COMBAT_DISTANCE" value="200" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="ents.xml" />
<option name="RETURNPATH" value="ents.xml" />
<option name="PATH_TYPE" value="waypoints" />
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="2000" />
<option name="LOOT_DISTANCE" value="220" />
<option name="LOOT_IN_COMBAT" value="true" />
<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" />
<option name="HARVEST_SCAN_WIDTH" value="15" /> -- steps horizontal
<option name="HARVEST_SCAN_HEIGHT" value="10" /> -- steps vertical
<option name="HARVEST_SCAN_STEPSIZE" value="15" /> -- wide of every step
<option name="HARVEST_SCAN_TOPDOWN" value="false" /> -- true = top->down false = botton->up
<option name="HARVEST_SCAN_YREST" value="9" /> -- scanspeed
</options_knight>
<friends>
<friend name="XXXXXX" />
<friend name="XXXXXX" />
<friend name="XXXXXX" />
<friend name="XXXXXX" />
<friend name="XXXXXX" />
<friend name="XXXXXX" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_MINUS" />
<hotkey name="MP_POTION" key="VK_EQUAL" />
<hotkey name="ATTACK" key="VK_1" />
<hotkey name="RES_MACRO" key="VK_0" />
</hotkeys>
<skills_priest>
<skill name="PRIEST_BONE_CHILL" hotkey="VK_3" pullonly="true" />
<skill name="PRIEST_RISING_TIDE" hotkey="VK_2" priority="100" />
<skill name="PRIEST_CHAIN_OF_LIGHT" hotkey="VK_4" priority="100" />
<skill name="PRIEST_REGENERATE" hotkey="VK_0" priority="110" />
</skills_priest>
<skills_knight>
<skill name="KNIGHT_HOLY_STRIKE" hotkey="VK_2" priority="100" />
<skill name="KNIGHT_PUNISHMENT" hotkey="VK_3" priority="100" />
<skill name="KNIGHT_HATRED_STRIKE" hotkey="VK_5" pullonly="true" />
</skills_knight>
<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>
no, and i dont see how it could be implemented, and why.BlackGod wrote:Hey dudes...
Is it possible set options for a single class?
Yes, why want you do that? And you could also overwrite the options by yourselfe, e.g. in your waypointfile or somewhere else e.g.:droppen wrote:no, and i dont see how it could be implemented, and why.BlackGod wrote:Hey dudes...
Is it possible set options for a single class?
Code: Select all
settings.profile.options.HP_LOW = 80;
Code: Select all
<onLeaveCombat>
if(player.Classe1 == CLASS_PRIEST) then
settings.profile.options.HP_LOW = 80;
elseif(player.Classe1 == CLASS_MAGE) then
settings.profile.options.HP_LOW = 60;
else
settings.profile.options.HP_LOW = 50;
end
</onLeaveCombat>
Because my knight is meele and my priest is ranged attacking...d003232 wrote:Yes, why want you do that?BlackGod wrote:Hey dudes...
Is it possible set options for a single class?
Thank you very much!And you could also overwrite the options by yourselfe, e.g. in your waypointfile or somewhere else e.g.:orCode: Select all
settings.profile.options.HP_LOW = 80;
Code: Select all
<onLeaveCombat> if(player.Classe1 == CLASS_PRIEST) then settings.profile.options.HP_LOW = 80; elseif(player.Classe1 == CLASS_MAGE) then settings.profile.options.HP_LOW = 60; else settings.profile.options.HP_LOW = 50; end </onLeaveCombat>
Code: Select all
<onLeaveCombat>
if(player.Classe1 == CLASS_PRIEST) then
settings.profile.options.COMBAT_TYPE = ranged;
elseif(player.Classe1 == CLASS_KNIGHT) then
settings.profile.options.COMBAT_TYPE = meele;
end
</onLeaveCombat>
No. It have to be 'strings':BlackGod wrote:Is this right?Code: Select all
<onLeaveCombat> if(player.Classe1 == CLASS_PRIEST) then settings.profile.options.COMBAT_TYPE = ranged; elseif(player.Classe1 == CLASS_KNIGHT) then settings.profile.options.COMBAT_TYPE = meele; end </onLeaveCombat>
Code: Select all
settings.profile.options.COMBAT_TYPE = "ranged";
Code: Select all
<option name="COMBAT_TYPE" value="" />
Ok this is much easier!d003232 wrote:No. It have to be 'strings':BlackGod wrote:Is this right?Code: Select all
<onLeaveCombat> if(player.Classe1 == CLASS_PRIEST) then settings.profile.options.COMBAT_TYPE = ranged; elseif(player.Classe1 == CLASS_KNIGHT) then settings.profile.options.COMBAT_TYPE = meele; end </onLeaveCombat>
And you don't need that anymore. Be sure you have the actual SVN version. Then you can just let the type empty.Code: Select all
settings.profile.options.COMBAT_TYPE = "ranged";
The bot will now use the combat type depending from your actual primary class.Code: Select all
<option name="COMBAT_TYPE" value="" />
Code: Select all
Thu Aug 20 10:08:34 2009 : RoM Bot Version 2.45
Thu Aug 20 10:08:34 2009 : Language: english
Thu Aug 20 10:08:34 2009 : Using static char address 0x8D85E0, player address 0x34DA5400
stack traceback:
...tellungen\Etienne\Desktop\micromacro\lib\lib.lua:536: in function 'startMacro'
scripts\\rom\bot.lua:582: in main chunk
----------TRACEBACK END----------
Thu Aug 20 10:08:34 2009 : ...nne/Desktop/micromacro NEU/scripts//rom/settings.lua:92: bad argument #1 to 'getKeyName' ((null))
Thu Aug 20 10:08:34 2009 : Execution error: Runtime error
Just do an update to the actual SVN. There was a bug in a new profile check function. It was solved yesterday.BlackGod wrote:----------TRACEBACK END----------
Thu Aug 20 10:08:34 2009 : ...nne/Desktop/micromacro NEU/scripts//rom/settings.lua:92: bad argument #1 to 'getKeyName' ((null))
Thu Aug 20 10:08:34 2009 : Execution error: Runtime error
[/code]
What's wrong now?
The error says that I use modifiers but I don't...
Code: Select all
<onBotStart>
-- Additional Lua code to execute loading profile
-- and befor bot starts.You can overwrite profile settings here
-- e.g. settings.profile.options.HP_LOW = 80;
</onBotStart>
I renamed it to onLoad for better consistency and it is more descriptive/accurate.d003232 wrote:
And now there is also the possibility to declare a new event within your profile:Code: Select all
<onBotStart> -- Additional Lua code to execute loading profile -- and befor bot starts.You can overwrite profile settings here -- e.g. settings.profile.options.HP_LOW = 80; </onBotStart>
Thank you!Administrator wrote:Fixed. Try r165.
Code: Select all
Fri Aug 21 13:36:50 2009 : MicroMacro v1.0
Fri Aug 21 13:36:50 2009 : Processor Type: 2X 586, OS: Windows XP Service Pack 3
Fri Aug 21 13:36:50 2009 : LuaCoco is available.
Fri Aug 21 13:36:50 2009 : Lua glues exported.
Fri Aug 21 13:36:50 2009 : Keyboard layout: US English
Fri Aug 21 13:37:03 2009 : Executing script 'bot.lua'
==================================================
Fri Aug 21 13:37:03 2009 : Please check your settings!
Fri Aug 21 13:37:03 2009 : Execution error: Runtime error
Yes, you are right! The check for the targetnearestfriend should only be a warning, not a error. Seems that something was messed up yesterday. I'm just late now, I will look for that this evening if not admon do it.BlackGod wrote:Thank you!Administrator wrote:Fixed. Try r165.
Works fine again!
Edit:
WTF... what's wrong? I'm at reversion 168.
Why does the bot check the keybingings?
I don't wanna change all my keybinds because I need them when I'm not botting... sometimes![]()
d003232 wrote:Yes, you are right! The check for the targetnearestfriend should only be a warning, not a error. Seems that something was messed up yesterday. I'm just late now, I will look for that this evening if not admon do it.BlackGod wrote:Thank you!Administrator wrote:Fixed. Try r165.
Works fine again!
Edit:
WTF... what's wrong? I'm at reversion 168.
Why does the bot check the keybingings?
I don't wanna change all my keybinds because I need them when I'm not botting... sometimes![]()
Choose the simple way... It's very easy...SVN - Always have the newest version:
Advanced:
For those of you who already have some working knowledge of SVN, you can use this command to checkout:
svn checkout http://rom-bot.googlecode.com/svn/trunk/ rom-bot-read-only
Simple:
First, I suggest you install Tortoise SVN. Once installed, you may need to reboot your machine. Now, locate your 'rom' folder (should be inside micromacro/scripts/) and right-click it. Select 'SVN Checkout'.
Now, a window should open. Inside "URL of repository:", enter this url:
http://rom-bot.googlecode.com/svn/trunk/rom
Everything else can be left at default. Click OK and it should begin downloading and updating all of your files. Now that you've got it all setup, you can simply right click the 'rom' folder again and select SVN update. Typically, a red icon over the folder should indicate that there are updates to download.
The bot should not target other players by itselfe. But he should still fight back, if other players attack him. See here the code in player.lua line 1013:akira2102 wrote:Hi
I have a question (what else.. ^^). Could it be that the bot did not react on other players attacking him? Everytime someone attacks me the bot did not defend himself..
Code: Select all
-- PK protect
if( target.Type == PT_PLAYER ) then -- Player are type == 1
if ( self.Battling == false ) then -- if we don't have aggro then
return false; -- he is not a valid target
end;
if( self.Battling == true and -- we have aggro
target.TargetPtr ~= self.Address ) then -- but not from the PK player
return false;
end;
end;
Users browsing this forum: Ahrefs [Bot] and 0 guests