Page 3 of 12

Re: Eggs

Posted: Sun Jul 04, 2010 9:03 am
by somberland
So I'm (for) now happy with the player.lua fix + wizzyslo's waypoint-file

Re: Eggs

Posted: Sun Jul 04, 2010 10:16 am
by WhiteTiger
rock5 wrote:That is because you are using an older bot. Update to the latest SVN revision. It doesn't use the mouse to harvest.
what do you mean it doesnt use the mouse?:O Ive updated mine and it still uses the mouse. How do i make it work without?

Re: Eggs

Posted: Sun Jul 04, 2010 10:54 am
by wizzyslo
somberland wrote:So I'm (for) now happy with the player.lua fix + wizzyslo's waypoint-file
Sorry but that waypoint is to much failing working on new one allmost done. Testing it but allmost never fail.

Re: Eggs

Posted: Sun Jul 04, 2010 11:17 am
by wizzyslo
I think it's done but i think i don't give out for public becouse that waypoint rly never fail.
I give waypoint wich I take time and rapair it. Bot found all chieckens, have enought feedbags, pick 2 eggs,.. Working allmost prfect but samethimes it's run wrong. You can see that problem when you are boting.
Have fun ;)

Code: Select all

<waypoints>
   <!-- #  1 --><waypoint x="4029" z="3168">   </waypoint>
   <!-- #  2 --><waypoint x="4079" z="3172">   </waypoint>
   <!-- #  3 --><waypoint x="4110" z="3121">   </waypoint>
   <!-- #  4 --><waypoint x="4114" z="3113">
	player:harvest(112956)
	            while player:harvest(112956) do
                yrest(8000);
            end

   </waypoint>
   <!-- #  5 --><waypoint x="4079" z="3170">   </waypoint>
   <!-- #  6 --><waypoint x="4040" z="3162">   </waypoint>
   <!-- #  7 --><waypoint x="3950" z="3004">   </waypoint>
   <!-- #  9 --><waypoint x="3936" z="2968">
	player:harvest(112956)
	            while player:harvest(112956) do
                yrest(8000);
            end
 
   </waypoint>



<waypoint x="3935" z="3039">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
		
		</waypoint>
<waypoint x="3947" z="3107">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
</waypoint>
<waypoint x="3958" z="3136">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
</waypoint>


<!-- #  1 --><waypoint x="3946" z="3264">
		yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end

	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
		</waypoint>
	<!-- #  2 --><waypoint x="3929" z="3265">	
		yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end

	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
		
		</waypoint>	
	<!-- #  2 --><waypoint x="3920" z="3265">	
	yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
			
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end
			
	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
				</waypoint>
	<!-- #  4 --><waypoint x="3912" z="3199">	</waypoint>
</waypoints>

Re: Eggs

Posted: Sun Jul 04, 2010 5:48 pm
by Administrator
WhiteTiger wrote:
rock5 wrote:That is because you are using an older bot. Update to the latest SVN revision. It doesn't use the mouse to harvest.
what do you mean it doesnt use the mouse?:O Ive updated mine and it still uses the mouse. How do i make it work without?
If you are using the latest revision off of SVN, it will harvest without the need of having window focus.

Re: Eggs

Posted: Sun Jul 04, 2010 9:17 pm
by shavas
some suggestions and additons

1) update to the very latest version of the bot.
2) set harvest distance at 70 (too much more and it will jump to other nodes)
3) do not use a loop on the chickens. It can get stuck in a permanent loop if you run out of feed.


Anyways fixed my copy up (based on VoidMain's work).
Cheers

Re: Eggs

Posted: Mon Jul 05, 2010 6:27 am
by jason404
wizzyslo wrote:I think it's done but i think i don't give out for public becouse that waypoint rly never fail.
I give waypoint wich I take time and rapair it. Bot found all chieckens, have enought feedbags, pick 2 eggs,.. Working allmost prfect but samethimes it's run wrong. You can see that problem when you are boting.
Have fun ;)

Code: Select all

<waypoints>
   <!-- #  1 --><waypoint x="4029" z="3168">   </waypoint>
   <!-- #  2 --><waypoint x="4079" z="3172">   </waypoint>
   <!-- #  3 --><waypoint x="4110" z="3121">   </waypoint>
   <!-- #  4 --><waypoint x="4114" z="3113">
	player:harvest(112956)
	            while player:harvest(112956) do
                yrest(8000);
            end

   </waypoint>
   <!-- #  5 --><waypoint x="4079" z="3170">   </waypoint>
   <!-- #  6 --><waypoint x="4040" z="3162">   </waypoint>
   <!-- #  7 --><waypoint x="3950" z="3004">   </waypoint>
   <!-- #  9 --><waypoint x="3936" z="2968">
	player:harvest(112956)
	            while player:harvest(112956) do
                yrest(8000);
            end
 
   </waypoint>



<waypoint x="3935" z="3039">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
		
		</waypoint>
<waypoint x="3947" z="3107">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
</waypoint>
<waypoint x="3958" z="3136">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
</waypoint>


<!-- #  1 --><waypoint x="3946" z="3264">
		yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end

	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
		</waypoint>
	<!-- #  2 --><waypoint x="3929" z="3265">	
		yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end

	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
		
		</waypoint>	
	<!-- #  2 --><waypoint x="3920" z="3265">	
	yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
			
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end
			
	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
				</waypoint>
	<!-- #  4 --><waypoint x="3912" z="3199">	</waypoint>
</waypoints>
Tried this script and it works perfectly fine until it rom crashs. Is that the problem you was talking about?

Re: Eggs

Posted: Mon Jul 05, 2010 7:02 am
by honda
jason404 wrote:
wizzyslo wrote:I think it's done but i think i don't give out for public becouse that waypoint rly never fail.
I give waypoint wich I take time and rapair it. Bot found all chieckens, have enought feedbags, pick 2 eggs,.. Working allmost prfect but samethimes it's run wrong. You can see that problem when you are boting.
Have fun ;)

Code: Select all

<waypoints>
   <!-- #  1 --><waypoint x="4029" z="3168">   </waypoint>
   <!-- #  2 --><waypoint x="4079" z="3172">   </waypoint>
   <!-- #  3 --><waypoint x="4110" z="3121">   </waypoint>
   <!-- #  4 --><waypoint x="4114" z="3113">
	player:harvest(112956)
	            while player:harvest(112956) do
                yrest(8000);
            end

   </waypoint>
   <!-- #  5 --><waypoint x="4079" z="3170">   </waypoint>
   <!-- #  6 --><waypoint x="4040" z="3162">   </waypoint>
   <!-- #  7 --><waypoint x="3950" z="3004">   </waypoint>
   <!-- #  9 --><waypoint x="3936" z="2968">
	player:harvest(112956)
	            while player:harvest(112956) do
                yrest(8000);
            end
 
   </waypoint>



<waypoint x="3935" z="3039">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
		
		</waypoint>
<waypoint x="3947" z="3107">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
</waypoint>
<waypoint x="3958" z="3136">
		player:harvest(112955)
		while player:harvest(112955) do
               yrest(6000)
            end
</waypoint>


<!-- #  1 --><waypoint x="3946" z="3264">
		yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end

	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
		</waypoint>
	<!-- #  2 --><waypoint x="3929" z="3265">	
		yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end

	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
		
		</waypoint>	
	<!-- #  2 --><waypoint x="3920" z="3265">	
	yrest(1000)
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
			
	player:harvest(112955)
		   yrest(500)
			if player:harvest(112955) then
               yrest(5000)
            end
	
	player:harvest(112958)
	     while player:harvest(112958) do
          yrest(50)
            end
			
	player:harvest(114931)
		  while player:harvest(114931) do
            yrest(50)
            end
				</waypoint>
	<!-- #  4 --><waypoint x="3912" z="3199">	</waypoint>
</waypoints>
Tried this script and it works perfectly fine until it rom crashs. Is that the problem you was talking about?
I have the same problem ..... game crash after 5-10min. Can anyone help?

Re: Eggs

Posted: Mon Jul 05, 2010 7:17 am
by rock5
jason404 wrote:Tried this script and it works perfectly fine until it rom crashs. Is that the problem you was talking about?
honda wrote:I have the same problem ..... game crash after 5-10min. Can anyone help?
When I tried "while" loops with only 50 ms it became unstable for me too. I think you can''t communicate with the game 20 times a sec like that. This is the timing I use for picking up eggs. Replace all the yrest(50) to look like this. Never fails to get 2 eggs and I can leave it running for hours without any crashes.

Code: Select all

		while player:harvest(112958) do
			yrest(1850)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(1000)
		end

Re: Eggs

Posted: Mon Jul 05, 2010 7:43 am
by jason404
Thanks alot, hopefully its solved the problem.

Re: Eggs

Posted: Mon Jul 05, 2010 11:22 am
by wizzyslo
I'm working on new waypoint and i have problem to get ID. Old bot gave me all ID by function player:harvest("test") but new don't give nothing. Any way how to get IDs?

Re: Eggs

Posted: Mon Jul 05, 2010 11:28 am
by MrStraatsoldaat
wizzyslo wrote:I'm working on new waypoint and i have problem to get ID. Old bot gave me all ID by function player:harvest("test") but new don't give nothing. Any way how to get IDs?
Didnt you had a "perfect waypoint" that you didn;t share? :)

- blegh cant figure out my old login codes lol

Re: Eggs

Posted: Mon Jul 05, 2010 11:35 am
by MrStraatsoldaat
By the way... all the waypoints fail at 1 point: what if you get the error "you need to get some Sacks of Feed blablabla..." then it stays in a non-ending loop trying to harvest a chicken while it's impossible...
NVM, I dont have problems with this anymore, I begin with way more food then needed


Wizzy and Rock5 I have to say props, thanks :)

Rock5 thanks because of this topic I found out about the new harvesting thing. Now I can finally change my old waypoints.
Wizzy thanks for the waypoints I adjusted them a bit

Re: Eggs

Posted: Mon Jul 05, 2010 11:37 am
by rock5
wizzyslo wrote:I'm working on new waypoint and i have problem to get ID. Old bot gave me all ID by function player:harvest("test") but new don't give nothing. Any way how to get IDs?
rom/getid.lua

Re: Eggs

Posted: Mon Jul 05, 2010 6:35 pm
by qcalex
thx alot wizzslo! im using your waypoint + all the recommandation of rock5 and it work great it doesnt crash at every 5 min now ans it has planty of sacks (to be sure im runing twice the first collect then i let it go :P )
but as you know the only bug is that some time he harvest the chicken direct after 9 and dont collect the eggs until he get to 12.
but with-out that thing this waypoint is great :P

(now i need one waypoint for the cow :P)

Re: Eggs

Posted: Mon Jul 05, 2010 7:49 pm
by wizzyslo
qcalex wrote:thx alot wizzslo! im using your waypoint + all the recommandation of rock5 and it work great it doesnt crash at every 5 min now ans it has planty of sacks (to be sure im runing twice the first collect then i let it go :P )
but as you know the only bug is that some time he harvest the chicken direct after 9 and dont collect the eggs until he get to 12.
but with-out that thing this waypoint is great :P

(now i need one waypoint for the cow :P)
Ok i will help about this waypoint but you need to learn something how to do waypoint. Can't only copy waypoint.

Code: Select all

	
FINISH QUEST:

player:target_NPC("Jessica Miller"); yrest(2000);
	sendMacro("OnClick_QuestListButton(3,1)");   yrest(1000);
	sendMacro("CompleteQuest();")	 ; yrest(1000);

TAKE QUEST:
	
	player:target_NPC("Jessica Miller");	yrest(2000);
		sendMacro("OnClick_QuestListButton(1,1)");  	yrest(1000);
	sendMacro("AcceptQuest();")	 ; 	yrest(1000);



GRASS
player:harvest(112954)
		if player:harvest(112954) then
               yrest(7000)

OR


player:harvest(112954)
while player:harvest(112954) do
yrest(7000)
end



COW:

player:harvest(112954)
if player:harvest(112954) then
yrest(7000)
end


OR

player:
harvest(112954)
while player:harvest(112954) do
yrest(7000)
end
Now is your way how to make it.

Advance:
When you run waypoint is good that you accept and cancle quest to get buckets and bot works much better.

Re: Eggs

Posted: Mon Jul 05, 2010 11:39 pm
by rock5
wizzyslo wrote:

Code: Select all

player:harvest(112954)
if player:harvest(112954) then
yrest(7000)
end


OR

player:harvest(112954)
while player:harvest(112954) do
yrest(7000)
end
I told you, you are repeating yourself. "if player:harvest(112954) then" actually does the harvest, so

Code: Select all

player:harvest(112954)
if player:harvest(112954) then
is actually trying to harvest twice without any pause between them.

Your suggestions should be like this

Code: Select all

FINISH QUEST:

player:target_NPC("Jessica Miller"); yrest(2000);
   sendMacro("OnClick_QuestListButton(3,1)");   yrest(1000);
   sendMacro("CompleteQuest();")    ; yrest(1000);

TAKE QUEST:
   
   player:target_NPC("Jessica Miller");   yrest(2000);
      sendMacro("OnClick_QuestListButton(1,1)");     yrest(1000);
   sendMacro("AcceptQuest();")    ;    yrest(1000);



GRASS
if player:harvest(112954) then
yrest(7000)
end

OR


while player:harvest(112954) do
yrest(7000)
end



COW:

if player:harvest(112954) then
yrest(7000)
end


OR

while player:harvest(112954) do
yrest(7000)
end

Re: Eggs

Posted: Tue Jul 06, 2010 8:32 am
by nokirk
WhiteTiger wrote: what do you mean it doesnt use the mouse?:O Ive updated mine and it still uses the mouse. How do i make it work without?

same here.

I read the whole topic and tried to understand the memory finding (which even to me as a beginner sounds great). Unfortunately in my updated version (468) it still tries to find the eggs via mousemovement and rom has to be in the foreground. I wasn't quit sure what to do with the userfunctions.lua and the object.lua posted in the other topic so I just put it in the micromacro/scripts/rom folder, unfortunately that didn't help much :D

So, how can I make the bot use addresses in the memory instead of searching for items with the mouse? Do I have to use player:harvestmem() now? How can I make it use the two new lua files? And finally, would one of you guys care to post a working waypoint file using those memory pointers`?

Thank you.

Re: Eggs

Posted: Tue Jul 06, 2010 8:37 am
by MrStraatsoldaat
nokirk wrote:
WhiteTiger wrote: what do you mean it doesnt use the mouse?:O Ive updated mine and it still uses the mouse. How do i make it work without?

same here.

I read the whole topic and tried to understand the memory finding (which even to me as a beginner sounds great). Unfortunately in my updated version (468) it still tries to find the eggs via mousemovement and rom has to be in the foreground. I wasn't quit sure what to do with the userfunctions.lua and the object.lua posted in the other topic so I just put it in the micromacro/scripts/rom folder, unfortunately that didn't help much :D

So, how can I make the bot use addresses in the memory instead of searching for items with the mouse? Do I have to use player:harvestmem() now? How can I make it use the two new lua files? And finally, would one of you guys care to post a working waypoint file using those memory pointers`?

Thank you.
All the answers are in this topic.. even about the updating

Re: Eggs

Posted: Tue Jul 06, 2010 11:34 am
by extremeuser
Getting an error after 10 mins still.

player.lua:1713 bad argument #1 to 'memoryReadIntPtr' ((null))

line 1713 is

local tmpAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);