Page 2 of 3

Re: planting like the flintstones

Posted: Tue Feb 14, 2012 2:37 pm
by Tamyra
I know this is working as is, but...Here's a thought, maybe place your newbie pet in the hot-bar and create a wait time to allow it to show up upon log in, then just select the number associated with the hot-bar location to recall it?

Re: planting like the flintstones

Posted: Sun May 13, 2012 12:50 pm
by jester
Hi! tried to run the bot on the Russian server, but the function plantcare() does not work ... why?

Re: planting like the flintstones

Posted: Sun May 13, 2012 7:19 pm
by lisa
jester wrote:but the function plantcare() does not work ... why?
That is like saying to someone, "my computer is broken it won't send email" there could be hundreds of reasons.

Please give us some kind of hint as to why it isn't working, there has been a lot of effort into putting in troubleshooting prints to make it easier to determine the cause of issues. So please either copy what is printed on micromacro, or type it out or take a screen shot and post it.

Without more information there is nothing I can do to help you.

Re: planting like the flintstones

Posted: Sun May 13, 2012 9:00 pm
by jester
I use a file of waypoints:

<?xml version="1.0" encoding="utf-8" ?>
- <waypoints>
- <onLoad>
- <![CDATA[
PlantCare()

sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();");
waitForLoadingScreen();
loadPaths("plantcare");

]]>
</onLoad>
</waypoints>

I attach a screenshot.

characters on the boat moves, but watering is not done ... What other information may be requested to report to me?

Re: planting like the flintstones

Posted: Sun Jan 06, 2013 11:29 am
by blackpanzer
Hi, nice work

I have a problem with the waypoint.
PlantCare function does not work, but the bot will log only from character to character.

Can anyone tell me why the function not work?

userfunction_PlantCare.lua -copy in userfunction folder
seeds.xml -copy in database folder

RomBot-Version is Revision 744.

Please help me & sorry for my bad english.

Re: planting like the flintstones

Posted: Sun Jan 06, 2013 6:50 pm
by lisa
My guess is you both need to get the addon
7. get the addon, ummm "plantcare" just D/L from curse here

Re: planting like the flintstones

Posted: Wed Jan 09, 2013 12:04 am
by blackpanzer
Hi Lisa,

I have Plantcare-Version 2.18.1

Re: planting like the flintstones

Posted: Tue Jan 15, 2013 8:43 am
by Niki
Hi Lisa!
thanks for this nice waypoint file.
@ blackpanzer
There are a few changes necessary that this waypoint works with new Seeds and Pots.
1.) Add the seeds with lvl>55 to the seed.xml
2.) in the userfunctions.lua is a section where it creates a table with the pots.
If you you use a different client language than english you have to change the Strings from "pot" to "Topf" (German ie).
You also have to add more string searches if you use pots which have not the string "pot" in the name.

@Lisa

If still have troubles that the localize-function doesn't find the pot sometimes. Especially when he harvest the plant which disappears and the function makes a second try to plant again but the object became smaller without the plant in the pot.

Is there any possibility to activate the object with the unique Adress in the table like targetobject?
This would solve a lot of problems and the client could run in the background.

LG
Niki

Re: planting like the flintstones

Posted: Tue Jan 15, 2013 9:17 am
by lisa
Niki wrote:Is there any possibility to activate the object with the unique Adress in the table like targetobject?
At the time I made this there was no way to interact with the object via memory, this may have changed in the last 18 months.

Is planting actually viable?

Re: planting like the flintstones

Posted: Wed Jan 16, 2013 4:22 am
by lisa
lisa wrote:At the time I made this there was no way to interact with the object via memory, this may have changed in the last 18 months.
Seems that hasn't changed with respect to house items, still can't interact with it via memory.
So no player:target_Object() doesn't work, so you still need to use the mouse click.

Re: planting like the flintstones

Posted: Fri Jan 18, 2013 8:48 pm
by blackpanzer
thx Niki, I try it

Re: planting like the flintstones

Posted: Fri Jan 18, 2013 9:54 pm
by lisa
Niki wrote:1.) Add the seeds with lvl>55 to the seed.xml
If you post your updated seed.xml I can add it to first post for others to use.
Niki wrote:Especially when he harvest the plant which disappears and the function makes a second try to plant again but the object became smaller without the plant in the pot.
Could make it do the "scan" again before the "planting" new seed, that should fix that.
Niki wrote:If you you use a different client language than english you have to change the Strings from "pot" to "Topf" (German ie). You also have to add more string searches if you use pots which have not the string "pot" in the name.
Could add usage of a variable I guess that can just be changed at the top of the file to make it easier with other languages.
Actually we use the pawn info to make the bot face the object, we could also use the name from the pawn info as what to "scan" for, that should eliviate any language issues.

--=== Added ===--
Seems I didn't upload my latest V3.0, it uses the address when scanning and not looking for "pot".

Have a test of it and see how it goes.
userfunction_PlantCare.lua
V 3.0
(6.16 KiB) Downloaded 265 times
V3.1 does a rescan before trying to click again, untested
userfunction_PlantCare.lua
V 3.1
(6.13 KiB) Downloaded 347 times

Re: planting like the flintstones

Posted: Tue Jan 22, 2013 12:24 pm
by Niki
Thanks Lisa!
Im sorry but the last week i had not enough time to test it.
Also the seed.xml file is not completed (I only added some seeds to test it). But i'll add the rest and post it in this Thread.
Greetings
Niki

Re: planting like the flintstones

Posted: Sat Jan 26, 2013 10:54 am
by blackpanzer
Hi,

I have added the seeds with lvl>55 to the seeds.xml

The File is not tested!

black

Re: planting like the flintstones

Posted: Wed Mar 20, 2013 5:00 pm
by dr-nuker
Hello there!

I have problems with this nice function :(

It does not work for me... So i have the named addon installed and the bot actually clicks but he is not targeting the correct area in my house.
I've placed the pots as described in the first post but the char does not turn and so it click random stuff inside my beloved home.

Any help on this?

br, nuker

Re: planting like the flintstones

Posted: Wed Mar 20, 2013 6:32 pm
by lisa
dr-nuker wrote:Hello there!

I have problems with this nice function :(

It does not work for me... So i have the named addon installed and the bot actually clicks but he is not targeting the correct area in my house.
I've placed the pots as described in the first post but the char does not turn and so it click random stuff inside my beloved home.

Any help on this?

br, nuker
Did you save the seeds.xml to the database folder?
What exactly does the bot do?
When you manually click the pot does it automatically feed the seeds?
Are your pots within the ID range of "if obj.Id >= 200000 and 210000 >= obj.Id then"
What does MM print, it should be printing something.

Re: planting like the flintstones

Posted: Thu Mar 21, 2013 1:38 pm
by dr-nuker
Okay Lisa.

The problem seems to be that the bot detects some chests in my house and turns around to face them.
I adjusted the userfunction now in that way, that it only uses the ids of objects that are pots in my house.

But anyways it works not as you built the function, maybe it has to do with my type of house because i move in and the bot needs to turn right to see the pot but as the wall behin is too close the camara does not zoom out far enought so that the bot actually never can click the pot which is "below" his field of view.

Anyways i found a mod by moving to the middle of the room first and putting the pot onto a wall so that it is high enought to find :O

Re: planting like the flintstones

Posted: Mon Jan 20, 2014 5:05 am
by Supergala
the player stops in front of the vessel and the pointer moves in the right direction .... that's okay or should do something else? did not understand the sense to target chest in house .can you help me pla? thanks

i add userfunction and seed...
likely that there is something to be changed and I have not seen?
wp:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>

	<onLoad><![CDATA[
 	PlantCare()
	
	sendMacro("}LoginNextToon=true;a={")
       	sendMacro("Logout();"); 
	waitForLoadingScreen();
        loadPaths("plantcare");	

	]]></onLoad>

</waypoints>
i add this seeds in database

Re: planting like the flintstones

Posted: Thu Jun 05, 2014 2:48 am
by dx876234
I've rewritten the planting script, now you don't need to have the client window in focus and mouse is not touched, all targeting is done in memory.

Its based on the static house record pointer and offset within this, I find it with a pattern in memory.

If possible, these would be nice in include in addresses and update script.

Note, I detect pots by their name containing the string "Pot", I'm not 100% sure if this is valid for all pots (or languages), pls update me if this is an issue.

Regards
DX

Re: planting like the flintstones

Posted: Thu Jun 05, 2014 3:08 am
by lisa
dx876234 wrote:Note, I detect pots by their name containing the string "Pot", I'm not 100% sure if this is valid for all pots (or languages), pls update me if this is an issue.
I started out by doing the exact thing but changed to looking for ID's within a specific range.

Code: Select all

if obj.Id >= 200000 and 210000 >= obj.Id then
Not sure if newer pot Id's are outside of this range now though as it has been a very long time since I did the userfunction.