Plant Frames
Plant Frames
Hi
I have a problem and can anyone of you knows the solution...
How i can open plant frame (in house)
target_Object flowerpot found but dont open plant-frame - skil1,1 not work
but...
if the mouse is over the flowerpot, then the plant-frame opens
Maybe someone knows how to script open a plant-frame? (no mouse use)
Can you advise me something?
greet
I have a problem and can anyone of you knows the solution...
How i can open plant frame (in house)
target_Object flowerpot found but dont open plant-frame - skil1,1 not work
but...
if the mouse is over the flowerpot, then the plant-frame opens
Maybe someone knows how to script open a plant-frame? (no mouse use)
Can you advise me something?
greet
Re: Plant Frames
i dont know the code off the top of my head but you should use the getid.lua to get the ID of the pot first once you have that i would use the harvest on the pot it should open the frame just like a bulletin board .. eg..zbynio wrote:Hi
I have a problem and can anyone of you knows the solution...
How i can open plant frame (in house)
target_Object flowerpot found but dont open plant-frame - skil1,1 not work
but...
if the mouse is over the flowerpot, then the plant-frame opens
Maybe someone knows how to script open a plant-frame? (no mouse use)
Can you advise me something?
greet
Code: Select all
player:harvest(999999) yrest(2000)
don't have a clue how your going to interact with the frame though thats on you bud
Re: Plant Frames
If target_Object doesn't work, neither will harvest.Valleyguy wrote:i dont know the code off the top of my head but you should use the getid.lua to get the ID of the pot first once you have that i would use the harvest on the pot it should open the frame just like a bulletin board .. eg..replace 999999 with the id of your potCode: Select all
player:harvest(999999) yrest(2000)
don't have a clue how your going to interact with the frame though thats on you bud
Actually you should only ever use player:harvest() to harvest resource nodes like herbs, wood and ore. player:harvest(idnumb) is only supported for backward compatibility. You should always use player:target_Object to target other objects.
- 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
Re: Plant Frames
actually i find it works more reiable to use the harvest on a spesfic ID then trying to make sure you type the name right in Object (or can you use item id there as well?)rock5 wrote:If target_Object doesn't work, neither will harvest.Valleyguy wrote:i dont know the code off the top of my head but you should use the getid.lua to get the ID of the pot first once you have that i would use the harvest on the pot it should open the frame just like a bulletin board .. eg..replace 999999 with the id of your potCode: Select all
player:harvest(999999) yrest(2000)
don't have a clue how your going to interact with the frame though thats on you bud
Actually you should only ever use player:harvest() to harvest resource nodes like herbs, wood and ore. player:harvest(idnumb) is only supported for backward compatibility. You should always use player:target_Object to target other objects.
the other thing is he may have more then 1
Code: Select all
target_Object flowerpot
also flowerpots and bulletin boards are not a targetable object (not like a mob or npc) does that not matter i remember a posting earlier about the bulletin board not opening with target Object and had to use harvest on it ....
Re: Plant Frames
You can use ids on target_Object, check this:
Code: Select all
player:target_Object(_objname, _waittime, _harvestall, _donotignore);
This will target an object similarly to target_NPC but this function has more options to cater for the different behaviors of different objects.
_objname = name or id of object to target. Accepts partial names.(Required)
_waittime = time to wait if the object takes time to open in ms. (Optional, default is 0)
_harvestall = true if you wish to collect all in the immediate area.(Default is false ie. opens/collects only once)
_donotignore = By default, when collecting multiple objects with the _harvestall option, the bot will ignore the current node when searching for the next nearest node so it can quickly move on to the next node while the current one is still disappearing. Set this option to 'true' if you don't want to ignore the current node because it requires more than 1 click to collect it. (Default is false).
Re: Plant Frames
Yes you can use id, as you pointed out above.Valleyguy wrote: actually i find it works more reiable to use the harvest on a spesfic ID then trying to make sure you type the name right in Object (or can you use item id there as well?)
?[/quote]If there is more than 1 it will target the closest.Valleyguy wrote:the other thing is he may have more then 1flowerpot so it might be trying to open bothCode: Select all
target_Object flowerpot
With the new memory functions they are all targetable. There was an issue with target_Object, initially, because some items had unusual type numbers but I fixed that in revision 477. Now, as long as the name or id is correct, it will open. And please be aware, harvest and target_Object, at their core, use the same method to open objects.Valleyguy wrote:also flowerpots and bulletin boards are not a targetable object (not like a mob or npc) does that not matter i remember a posting earlier about the bulletin board not opening with target Object and had to use harvest on it ....
- 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
Re: Plant Frames
K thanks more knowledge so there was nothing wrong with how i been opening bulletin boards you have just expanded the process with more functions in target object. gotcha.
Re: Plant Frames
harvest & object with id or name - not work
plant frame no open
plant frame no open
Who is online
Users browsing this forum: Google [Bot] and 0 guests