CDWriter wrote:
and so on ...it runs too all the spot i have marked scans it but does not do anything but walk away ...here is what it tellls
Unexpected interruption at harvesting begin. We will try it again.
Clearing target.
then runs to next way point? but does not Harvest at all ?
Do you run the RoM window in the foreground? Sometime there are problems, if the camera is still rotating or zooming. That should be fixed by the second try with the 'Unexpected interruption at harvesting begin. We will try it again.'.
Last edited by d003232 on Thu Aug 20, 2009 7:27 pm, edited 1 time in total.
Just did that ...and it does not see it with it on or off. what happens is it does not see the Harvest at all ...our it just does not start to harvest it ? does not even try. here is what i have for config
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="200" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="85" />
<option name="POTION_COOLDOWN" value="15" />
<!-- Combat options -->
<option name="COMBAT_TYPE" value="melee" />
<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
below is the skills i did not show here .. see anything wrong please let me know ?
also when you make the paths is it better when you stand on the harvest before starting it
CDWriter wrote:below is the skills i did not show here .. see anything wrong please let me know ?
also when you make the paths is it better when you stand on the harvest before starting it
I would suggest to stand on the node. And to zoom the camera at maximum distance. You can also configure the scan process with
Even if there are problems finding the node, you should see the scanprocess with the mouse movements. The bot will just Hold shift and left click mouse if he founds a node.
-- Begin gathering
keyboardHold(key.VK_SHIFT);
printf("Click 1 at %d,%d\n", wx, wy); -- <<<<<<<<<< NEW LINE
mouseLClick();
yrest(100);
printf("Click 2 at %d,%d\n", wx, wy); -- <<<<<<<<<< NEW LINE
mouseLClick();
keyboardRelease(key.VK_SHIFT);
Just insert the two lines. It is to check, if the bot comes to the 'click' point. Then you should see the text in your MM protocol window. And pls, be sure your RoM window is in the foreground !!!
But its still not pressing our trying to click left Mouse button ..... not sure its holding shift key (tested) Shift key is being pressed!
No mouse click ?
Iam running Vista 64 ? and the bot version is on the image...
Try commenting out the key press and release lines (place two minus signs [--] in front of the line to comment it out). Also, try adding this line in there:
-- Begin gathering
keyboardHold(key.VK_SHIFT);
-- printf("Click 1 at %d,%d\n", wx, wy); -- <<<<<<<<<< NEW LINE
printf("attached window: 0x%X", getAttachedHwnd());
mouseLClick();
yrest(100);
printf("attached window: 0x%X", getAttachedHwnd());
-- printf("Click 2 at %d,%d\n", wx, wy); -- <<<<<<<<<< NEW LINE
mouseLClick(wx, wy);
keyboardRelease(key.VK_SHIFT);
-- Wait for a few seconds... constantly check for aggro
local startWaitTime = os.time();
while( os.difftime(os.time(), startWaitTime) < 2 ) do
yrest(100);
self:update();
it crashes the bot and jump out with error in player.lua:130 attempt to call global 'getAttachedHwnd' (a nil value)
Can you be more specific? What kind of "castings" are you talking about? Is your character buffing up or using potions while trying to harvest? Can you specify which skill(s) in particular, if this is the case?
yes if iam useing the bot to fight then i have all my buffs and skills on the keys 0-9 - = , so as a rogue i have Posion, Assassins Rage, Enraged, Berserk, and what what ever else is needed for my rogue/Warrior ....But when i start this Harvesting (WORKS GREAT) it cast them buffs like its going to attack and fight and really its just going to harvest ....So you have Harvest , as a Key word in the waypoints i thought maybe you might have a NOCAST also..... eather way i can deal with it ...works the best and thanks for the hard work ....
CDWriter wrote:yes if iam useing the bot to fight then i have all my buffs and skills on the keys 0-9 - = , so as a rogue i have Posion, Assassins Rage, Enraged, Berserk, and what what ever else is needed for my rogue/Warrior ....But when i start this Harvesting (WORKS GREAT) it cast them buffs like its going to attack and fight and really its just going to harvest ....So you have Harvest , as a Key word in the waypoints i thought maybe you might have a NOCAST also..... eather way i can deal with it ...works the best and thanks for the hard work ....
Hmm. I suppose it would really be the best to make a profile option 'NO_CAST' or 'HARVEST_ONLY' and with that option, really to cast nothing? No friendly buff / no resurret buff / no healing skills? At least cast nothing while out of combat? What do you think?
I would suggest 'NOSKILL_OUT_OF_COMBAT'. Perhaps we can use a timer to use healing/skills at least a few seconds after the last fight.
Is your problem that you're casting while actually attempting to harvest a node, or while running between them? If it's just while running in between them, you can set the inbattle flag to true on each of those skills so they will only be used when something/someone attacks you.
While harvesting, it will stop Harvesting when the buffs come off just to add them again ..Unless i move them off there correct key code spot? Now for Inbattle flag ? i dont understand ? where is this inbattle flag
<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="" /> <!-- 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" />
<!-- Waypoint and movement settings -->
<option name="WAYPOINTS" value="demo.xml" />
<option name="RETURNPATH" value="demo_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="10" /> <!-- 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" />
</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_warrior>
<skill name="WARRIOR_FRENZY" hotkey="VK_8" priority="99" />
I dont see anything here for inbattle ? options i just showed the one Warrior skill just to give you the idea ? is there something iam missing ?