Harvest mysterious bags

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Harvest mysterious bags

#1 Post 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?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Harvest mysterious bags

#2 Post 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).
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Re: Harvest mysterious bags

#3 Post by wiedzmin97 »

ok thanks for reply.
wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Re: Harvest mysterious bags

#4 Post 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>
Post Reply