well my last problem is that he pauses after death.
I think it's because of
Code: Select all
pauseOnDeath()
Code: Select all
<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
So long ...
Code: Select all
pauseOnDeath()
Code: Select all
<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
How do you notice, that the bot uses other values?BlackGod wrote:Why does my bot ignore my
<option name="WAYPOINT_DEVIATION" value="0" />
In the new SVN is a 'hiden' profile option:BlackGod wrote: and an other question:
Is it possible not to map inventory when the bot starts?
It sucks when I'm testing a new script to wait about 30 sec.
Code: Select all
<option name="INV_MAX_SLOTS" value="3" />
Delete that 'pauseOnDeath()' if you have one in your profile at the event '<onDeath>'. If not, we need some more informations from your MM window.KindaNoob wrote:well my last problem is that he pauses after death.
I think it's because ofCode: Select all
pauseOnDeath()
Heyd003232 wrote:How do you notice, that the bot uses other values?BlackGod wrote:Why does my bot ignore my
<option name="WAYPOINT_DEVIATION" value="0" />
In the new SVN is a 'hiden' profile option:BlackGod wrote: and an other question:
Is it possible not to map inventory when the bot starts?
It sucks when I'm testing a new script to wait about 30 sec.With that you can overwrite the default value (dafault value is 60) how much slots the bot will update. Just set it to '0' in your profile if you don't want a update.Code: Select all
<option name="INV_MAX_SLOTS" value="3" />
To know which items are in your eventory. How much potions. Or other stuff you wan't to use by yourself.BlackGod wrote:But could you tell me what is the sense of inventory-mapping?
And how can I read out the duration of my items with the bot, to let him go the "repair-path"?
thx for your hint. I added at 'attach(getWin());' with SVN 228. Hope that's the right solution. I think Admin will late also look after that.runus wrote:change startMacro(main,true) in createpath.lua to startMacro(main)
best wishes.
The bot doesn't go to the waypoint exactly...d003232 wrote:How do you notice, that the bot uses other values?BlackGod wrote:Why does my bot ignore my
<option name="WAYPOINT_DEVIATION" value="0" />
I never noticed a problem with that?BlackGod wrote:The bot doesn't go to the waypoint exactly...
I can see it, because sometime my char stucks on trees or rocks...
(Eine PN auf deutsch wäre auch ausreichend... )
Code: Select all
if(self.ForcedType ~= 0 ) then
tmp.Type = self.ForcedType;
end
cprintf(cli.lightblue, "DEV: %d\n", settings.profile.options.WAYPOINT_DEVIATION ); -- INSERT THAT LINE
if( settings.profile.options.WAYPOINT_DEVIATION < 2 ) then
return tmp;
end
Ok I'll check this when the server is online...d003232 wrote:I never noticed a problem with that?BlackGod wrote:The bot doesn't go to the waypoint exactly...
I can see it, because sometime my char stucks on trees or rocks...
(Eine PN auf deutsch wäre auch ausreichend... )
You can try to printout that variable at waypointlist.lua 165Perhaps that could help to geht some infos. And don't walk to close to trees.Code: Select all
if(self.ForcedType ~= 0 ) then tmp.Type = self.ForcedType; end cprintf(cli.lightblue, "DEV: %d\n", settings.profile.options.WAYPOINT_DEVIATION ); -- INSERT THAT LINE if( settings.profile.options.WAYPOINT_DEVIATION < 2 ) then return tmp; end
And you can comparte x,y the coordinates in the MM window with the coordinates in your waypoint file.
You could also do aBlackGod wrote:Ok I'll check this when the server is online...
Thanks for your help!
Code: Select all
player:update();
cprintf(cli.lightblue, "x %d, z %d\n", player.X, player.Z );
Ok I inserd it behind every wp...d003232 wrote:You could also do ain your waypoint files to see what your position is and compare that with the file positions.Code: Select all
player:update(); cprintf(cli.lightblue, "x %d, z %d\n", player.X, player.Z );
That looks all fine. A distance < 16 means we reach the wp. If you are so close, your character wouldn't move if you loot a mob in that distance. So that can't be the reason for running into the trees.BlackGod wrote:There are (little) departures of 2 up to 8...
Can someone tell me why and how can I solve this problem? thx
Exactly what it says it's about. Your profile has mismatched tags near line 125.Monday wrote:sorry for ask again but i got another error when trying run bot
..../micromacro2/micromacro/scripts/rom/settings.lua:372:XML Parse Error.
File: ....micromacro2/micromacro/scripts/rom/profiles/<removed>.xml
Line:125
colum:3
Message: mismatched tag
any idea about pls??
thx for the fast answers but i have no idea how fix this,im sure i dont change anything so low on the profile,just put the skills and make a waypointAdministrator wrote:Exactly what it says it's about. Your profile has mismatched tags near line 125.Monday wrote:sorry for ask again but i got another error when trying run bot
..../micromacro2/micromacro/scripts/rom/settings.lua:372:XML Parse Error.
File: ....micromacro2/micromacro/scripts/rom/profiles/<removed>.xml
Line:125
colum:3
Message: mismatched tag
any idea about pls??
Pls post your profile.Monday wrote:thx for the fast answers but i have no idea how fix this,im sure i dont change anything so low on the profile,just put the skills and make a waypointAdministrator wrote:Exactly what it says it's about. Your profile has mismatched tags near line 125.Monday wrote:sorry for ask again but i got another error when trying run bot
..../micromacro2/micromacro/scripts/rom/settings.lua:372:XML Parse Error.
File: ....micromacro2/micromacro/scripts/rom/profiles/<removed>.xml
Line:125
colum:3
Message: mismatched tag
any idea about pls??
Code: Select all
<profile>
<options>
<!-- Try the bot with a new char mage or priest -->
<!-- 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" />
<option name="POTION_COOLDOWN" value="15" />
<!-- 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="80" />
<option name="ANTI_KS" value="true" />
<!-- Waypoint and movement settings -->
<option name="WAYPOINTS" value="kadmos.xml" />
<option name="RETURNPATH" value="kadmos_return.xml" />
<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" />
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="3" />
<option name="TARGET_LEVELDIF_BELOW" value="10" />
<!-- 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 -->
<!-- Rest if HP or Mana is below that level -->
<option name="HP_REST" value="15" />
<option name="MP_REST" value="15" />
<!-- 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" />
</options>
<friends>
<!-- names of friends we help fighting or enemys we don't want to attack -->
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
<friend name="Elite_Mob_Name1" />
<friend name="Elite_Mob_Name2" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_MINUS" />
<hotkey name="MP_POTION" key="VK_PLUS" />
<hotkey name="ATTACK" key="VK_1" />
<hotkey name="RES_MACRO" key="VK_9" />
<hotkey name="LOGOUT_MACRO" key="VK_0" />
</hotkeys>
<!-- define your skills depending from your actual primary class -->
<!-- see the example for a priest/mage respectively mage/priest -->
<!-- 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_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="PRIEST_BONE_CHILL" hotkey="VK_7" priority="90" />
<skill name="PRIEST_SNAKE_CURSE" hotkey="VK_5" priority="90" />
<!--skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" /> -->
<!--skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_F" priority="20" /> -->
</skills_priest>
<skills_warrior>
</skills_warrior>
<skills_scout>
</skills_scout>
<skills_rogue>
Users browsing this forum: No registered users and 66 guests