Page 1 of 1

[RoM API] Does funciton Houses_SetFocusFurnishingID() work ?

Posted: Tue Mar 16, 2010 1:49 am
by ctps
Hi all,

I try planting with the bot so I included this function in waypoint file but nothing happens. It seems this function broken.

Code: Select all

RomScript("Houses_SetFocusFurnishingID(1);");
The idea is that we will select all planting pots which have IDs from 1 to 10. With the help of an addon such as GreenThumb, your plants will be watered. Using mouse click function of the bot might work but you will need to arrange your pots exactly the same for your chars. Besides, game camera works abnormally when you are in house --> It's hard to be done this way.

Anyone knows how to use this function or have a good way to do planting with the bot?

Many thanks

Re: [RoM API] Does funciton Houses_SetFocusFurnishingID() wo

Posted: Sun Nov 28, 2010 12:40 pm
by nokirk
I'm also working on this problem but stuck not only on adressing one plant after the other but also using functions of an addon.

I thought about using 5 different types of pots but that doesn't seem very elegant. I also found

Code: Select all

Houses_SetFocusFurnishingID(1);
in an addon but I dont know why it wouldn't take the pot into target. Is there a way to adress the pots one after the other?

And is there a way to adress an addon what to do via rombot?


Hope anybody has an idea or would like to share how this could be done ;)

Thanks a lot.

Re: [RoM API] Does funciton Houses_SetFocusFurnishingID() wo

Posted: Sun Nov 28, 2010 1:22 pm
by Administrator
Don't include the semicolon. You're creating a syntax error.

Re: [RoM API] Does funciton Houses_SetFocusFurnishingID() wo

Posted: Sun Nov 28, 2010 4:28 pm
by nokirk
Alright thank you Administrator! Seems with this command you can change the selected furniture only in the furniture menue - unfortunately it won't open the specific frame :/

Tried it with

Code: Select all

PlantFrame:Show()
but it seems like it only opens the last plant I manually opened, couldn't figure out how to open other plants. Any hints? Many thanks

Re: [RoM API] Does funciton Houses_SetFocusFurnishingID() wo

Posted: Sun Nov 28, 2010 6:51 pm
by rock5
nokirk wrote:And is there a way to address an addon what to do via rombot?
Typically you execute the addons functions. eg. when you click a button, that executes the onclick function so all you have to do to simulate it is to run that function from RoMScript. When entering data you need to find that controls name so you can change its text eg. editcontrolboxname:SetText("new text") or SetValue depending on the control. Again that's via RoMScript. Finding the names can be really hard though.

Hope that gives you ideas.

Re: [RoM API] Does funciton Houses_SetFocusFurnishingID() wo

Posted: Mon Nov 29, 2010 7:50 am
by poulpito
i'm trying to create same kind of waypoint
i've dispatch all pots around the house creating a waypoint near each one

i'm trying to use commands
player:findNearestNameOrId(_objnameorid, _evalFunc)
player:target_Object()