planting like the flintstones

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

planting like the flintstones

#1 Post by lisa » Mon Jul 04, 2011 12:29 pm

Ok had lots of issues with this but here is a working copy with some very specific needs. I'm a little tired so hopefully this all makes sence lol

1. the game NEEDS to be the window in focus, it won't work in the background
2. place your pots in a patern like this image near your door, position character at doorway, the same you would be if you just entered house.
For 10 pots just do another row of 5 so you end up with
OOOOO
OOOOO
pot arrangement
pot arrangement
3. userfunction file needs to go intot he userfunctions folder lol
userfunction_PlantCare.lua
V 2.1
Camera works 100% for me now
(6.02 KiB) Downloaded 418 times
userfunction_PlantCare.lua
V 1.4
Latest and greatest, deals with newbie pet properly and watering after planting new seed refixed. I broke it in v1.3
(5.77 KiB) Downloaded 299 times
4. seeds.xml is a database file and needs to be in rom/database folder
seeds.xml
seeds database
thanks to blackpanzer for the update
(2.87 KiB) Downloaded 288 times
5. last but not least is of course the very basic WP file.
plantcare.xml
(255 Bytes) Downloaded 480 times
6. Make sure you have the autologin addon so it can load next character on account.
7. get the addon, ummm "plantcare" just D/L from curse here
Put everything where it's meant to go, put your pots in the right spot, fill your characters with water, fertilizer and seeds for your pots.

Start bot using the WP
ie
rom/bot path:plantcare

and away she goes.

Note:
It works more reliably if you zoom your camera in to first person view.

Reason I did the pots near door is so that I can use another waypoint to go outside and buy matts, then just come back and enter house. If you set up pots elsewhere then you will need to move closer to the pots. I deliberately made it not move to pots as that messes with where the pot is on the screen.
Last edited by lisa on Thu Jul 07, 2011 11:09 am, edited 3 times in total.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#2 Post by lisa » Mon Jul 04, 2011 11:50 pm

Did some tweaking of the userfunction, added in checks to make sure the mouse is able to click the item.

If you are having trouble with it not clicking pots, then try to rotate the pot, rotating the pot will move the invisible box around.

I attempted to try to tweak the mouse to make it always get the pot but in the end it was more trouble then it was worth.

This does an account with 5 pots each char in less then 15 minutes, depending on the PC speed logging in and out of characters.

I set longcare in the properties of the addon, it just waters/fertilizers to the maximum instead of the recomended, this way I can just run the bot every 12 hours.

ohh yeah, newbie pets are evil, you can't click through them,
I'll have to add in a check for the pet and then use the egg to get rid of it.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: planting like the flintstones

#3 Post by rock5 » Tue Jul 05, 2011 12:59 am

lisa wrote:ohh yeah, newbie pets are evil, you can't click through them,
I'll have to add in a check for the pet and then use the egg to get rid of it.
Is it possible to do a shift-click?
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#4 Post by lisa » Tue Jul 05, 2011 1:21 am

Unfortunately I assumed shift click would go through newbie pet and based the code on that. It seems the newbie pet is considered to be like a portal or such and so holding shift doesn't ignore the newb.

I fixed it now in 1.3 anyway, just about to upload it, also made clicking the pot far more reliable.

This gets rid of the newb, for future reference =)

Code: Select all

	local pet = player:findNearestNameOrId(113199)
	if pet then inventory:useItem(207051); end -- get rid of the annoying newbie pet
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
nerf
Posts: 88
Joined: Thu Jan 27, 2011 10:44 am

Re: planting like the flintstones

#5 Post by nerf » Tue Jul 05, 2011 7:14 am

downloading !

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#6 Post by lisa » Tue Jul 05, 2011 11:47 am

With V1.3 just did full account of 5 pots each character in 12 minutes with no hickups.

I did notice the newbie pet is arriving later on occasion, fortunately it didn't get in the way today. I'll have to add in the newbie pet check a bit later, or maybe include it in the loop so it is checked often.
That is pretty much the only issue I can think of to interfere with this, aslong as the pots are in a good position and char has plenty of water/fertilizer/seeds then it should run smoothly.

Anyone had an issues yet?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#7 Post by lisa » Thu Jul 07, 2011 11:13 am

V1.4 of userfunction file

deals with newbie pet properly
watering after planting new seed refixed. I broke it in v1.3

I am going to leave this to rest here, I have been running an account with 5 pots on each char twice a day for a few days now and not had any issues at all.

Just make sure you have plenty of water, fertilizer and a hand full of seeds in bag.

I keep 20 seeds (same type) and 2 stacks (250 per stack) of water/fertilizer in bags, then few days later top up water/fertilizer.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: planting like the flintstones

#8 Post by rock5 » Thu Jul 07, 2011 8:51 pm

Time to add it to the repository?
  • 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

zin40
Posts: 17
Joined: Tue Jul 13, 2010 7:39 pm

Re: planting like the flintstones

#9 Post by zin40 » Thu Jul 07, 2011 9:21 pm

I do not want to sound negative, but planting is not as usefull as petautocraft. You can get mats higher than the weeping coast mats. The only thing usefull is mats for new moas. I have lvl 60 planters i have not used in 2-3 months because there is no real profit. I did look into this and it seems that it would work ok. When i planted the same seeds manually before this I noticed that I could water and feed only 2-3 times a day and get same result as keeping it full. As long as your % is 86 or higher when harvesting you will get max harvest.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#10 Post by lisa » Thu Jul 07, 2011 10:25 pm

rock5 wrote:Time to add it to the repository?
I keep forgeting that part lol
Done =)
zin40 wrote:I do not want to sound negative, but planting is not as usefull as petautocraft.
Yeah pet crafting for matts is good profit at high lvles, most of my pets are lvl 35+ in a crafting.

I actually have no idea of the usefullness of planting, someone posted asking for a way to bot the plants and so I took up the challenge lol

For comparison purposes though,
pet crafting you need to be online the entire time you want to craft things.
Planting you just need to log on 2-3 times out of 24 hours and takes 1-2 minutes per character.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

nokirk
Posts: 73
Joined: Sat Jul 03, 2010 2:26 pm

Re: planting like the flintstones

#11 Post by nokirk » Fri Jul 08, 2011 8:41 am

don't know why yet but the bot just logs out right away without doing anything :?: Got water, got everything, file is in the userfunctions folder. Are there any language specific things I might need to change? Apart from that, tyvm!

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#12 Post by lisa » Fri Jul 08, 2011 10:33 am

Hmm might need to add in a yrest to the waypoint before starting the function, to make sure you loaded in properly.

As for language aslong as the pot has a name with the word " pot" in it then it should be fine. Seeds are all done with ID's.

I decided not to get all the Id's for pots as it would have taken me to long to get them all. there was over a hundred of them.

If your pots don't have the word " pot" in the name then we can change that in the userfunction easy enough.
line 64 has this

Code: Select all

_pot = normaliseString(" pot")

It searches the names of all the items in the house, including maids and such for the name " pot" you can change that to reflect your language.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

nokirk
Posts: 73
Joined: Sat Jul 03, 2010 2:26 pm

Re: planting like the flintstones

#13 Post by nokirk » Fri Jul 08, 2011 12:02 pm

you were right :)

Planting is working for us with

Code: Select all

_pot = normaliseString("topf")
(without space).

BUT: Don't know why, but

Code: Select all

		yrest(1000)
		RoMScript("HideUIPanel(PlantFrame);")
		yrest(500)
		printf("click it again to feed\n")
		mouseLClick(); 
		yrest(500) 
		mouseLClick();
opening the plant the second time doesn't work for me. I added another

Code: Select all

yrest(500) 
		mouseLClick();
but that didn't help, seems like the click kinda doesn't hit even though the mouse is above the right pot ?!

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#14 Post by lisa » Fri Jul 08, 2011 12:34 pm

in V1.2 and V1.4 it has detach() just before the click. For some reason when I recoded V1.3 to fix other things I left out the detach().

Try V1.4 and should be fine.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

dx876234
Posts: 188
Joined: Sat Jul 24, 2010 6:13 am

Re: planting like the flintstones

#15 Post by dx876234 » Thu Jul 21, 2011 1:38 am

Nice initiative, suddenly I found interest for planting.

I have modified the userfunction slightly by:
  • Added a material database with water/fertilizer
  • Modified the load of seed/material database to be globalized, I needed access in waypoint file and no point in loading multiple times
In addition Ive started on a waypoint for planting with the option to be valid in all zones:
  • Based on the original waypoint
  • Will exit house and walk to NPC to purchase seeds/water/fertilizer
  • Externalized the walk waypoint so its easy to add this for any zone
Outstanding list:
  • Selection of seed to purchase needs work to select optimum
  • Option to produce on one particular level has to be added
  • Option to mail production somewhere when backpack full
userfunction_PlantCare.lua
(6.11 KiB) Downloaded 262 times
plant_materials.xml
(826 Bytes) Downloaded 260 times
gardener.zip
(5.15 KiB) Downloaded 255 times

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#16 Post by lisa » Thu Jul 21, 2011 3:33 am

Cool glad you found it useful

I actually don't plant anymore, purely did it as a challenge ;)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Daehawk
Posts: 1
Joined: Sat Dec 03, 2011 5:22 am

Re: planting like the flintstones

#17 Post by Daehawk » Fri Dec 09, 2011 6:35 am

Is anyone still using this and it works ? I cannot get it to run, keep getting

9:28pm - scripts\rom/bot.lua:464: onLoad error: ...scripts/rom/userfunctions/use
rfunction_PlantCare.lua:64: attempt to call global 'normaliseString' (a nil value)


Dont understand what is wrong, i have the pots set out correctly and the scripts in place

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#18 Post by lisa » Fri Dec 09, 2011 7:05 am

Ahh that is calling a function which is actually in the questbyname userfunction.

If you want you can add it in to this userfunction

Code: Select all

local function normaliseString(_str)
	_str = string.gsub(_str, string.char(45), ".")	-- Delete "-" in string
	_str = string.lower(_str) -- Lower case
	
	return _str
end
after

Code: Select all

local function roundIt(_number)
	if _number > (math.floor(_number) + 0.5) then
		return math.ceil(_number);
	else
		return math.floor(_number);
	end
end
would be a good spot.
So it looks something like this.

Code: Select all

furniture = {}
local function roundIt(_number)
	if _number > (math.floor(_number) + 0.5) then
		return math.ceil(_number);
	else
		return math.floor(_number);
	end
end
local function normaliseString(_str)
	_str = string.gsub(_str, string.char(45), ".")	-- Delete "-" in string
	_str = string.lower(_str) -- Lower case
	
	return _str
end
		
--=== populate seeds to a table ===--
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#19 Post by lisa » Fri Dec 09, 2011 10:13 am

Just tried this again, haven't used it since I made it.
Since the camera has been changed in bot a while back this won't work anymore as need to now reconfigure the camera to be facing the right spot. Took me many hours to get it right last time lol

Updated first post with V2.0 with camera values that work for me.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: planting like the flintstones

#20 Post by lisa » Fri Dec 09, 2011 11:18 pm

V 2.1 camera works properly now, much more reliable.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests