Page 1 of 1

Harvest mysterious bags

Posted: Thu Jul 18, 2013 8:07 am
by wiedzmin97
Hi i have problem, if i run the bot on syrbal pass, after 10-30 minutes i get a crash and error:

Code: Select all

3:2pm - ...adek/Downloads/rombot/scripts/rom/classes/player.lua:1803: Error in y
our profile: onLeaveCombat error: ...ers/Radek/Downloads/rombot/scripts/rom/func
tions.lua:756: bad argument #1 to 'memoryReadByte' ((null))
i'm using this in profiles:

Code: Select all

<onLeaveCombat><![CDATA[ 
if player:findNearestNameOrId("Mysterious Bag") and inventory:itemTotalCount(0) ~= 0 then
player:target_Object("Mysterious Bag")
yrest(800) 
player:loot()
yrest(900)
elseif inventory:itemTotalCount(0) == 0 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("sell"));
end
]]></onLeaveCombat> 
Where is error?

Re: Harvest mysterious bags

Posted: Thu Jul 18, 2013 10:26 am
by rock5
This is some sort of timing issue or pc performance issue. Argument #1 of any memory read command will be "getProc()". That should always return the client process. If it returned null as the error suggests then for a moment the bot couldn't see the client. Maybe you were doing something else with your computer that momentarily used so much of the processing power that the bot wasn't able to communicate with the client so getProc() returned nil. I'm just speculating as I've no way to test this. Maybe you could try increasing the client and bot cpu priority using the task manager. That might work (assuming the problem is as I described).

Re: Harvest mysterious bags

Posted: Thu Jul 18, 2013 12:31 pm
by wiedzmin97
ok thanks for reply.

Re: Harvest mysterious bags

Posted: Thu Jul 18, 2013 2:40 pm
by wiedzmin97
Ah and i have second question with daily quest on logar.
What do I need to do, to bot received from the Mailbox items only once and then continue doing daily quests? (I have addon from this forum and installed userfunction)

This is my waypoint:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
    <onLoad>	
    function relog()
        SetCharList({
         -- enter account number and char numbers that you like to run this script
         {account=1 , chars= {1}},
	 {account=2 , chars= {1}},  
	 {account=3 , chars= {1}},
	 })
        LoginNextChar()
        loadProfile()
        loadPaths("hehe 3");
      end	
   </onLoad>
	<!-- #  1 --><waypoint x="-524" z="-5966" y="23">	</waypoint>
	<!-- #  2 --><waypoint x="-603" z="-5834" y="24">
	player:target_Object("Logar Bulletin Board")
	player:target_Object("Logar Bulletin Board")
	</waypoint>
	<!-- #  3 --><waypoint x="-654" z="-6017" y="28">	
	player:target_NPC("Dell")
	</waypoint>
	<!-- #  4 --><waypoint x="-668" z="-6061" y="25">	</waypoint>
	<!-- #  5 --><waypoint x="-579" z="-6109" y="19">	
	player:target_NPC("Cid")
	</waypoint>
	<!-- #  6 --><waypoint x="-505" z="-6035" y="22">	</waypoint>
	<!-- #  7 --><waypoint x="-431" z="-5991" y="21">
	player:target_Object("Mailbox")
	UMM_TakeMail()
	</waypoint>
</waypoints>