What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Water Archeum Trees

Status
Not open for further replies.

tictoc

Member
Joined
Sep 21, 2012
Messages
380
Reaction score
5
I want to water Archeum Trees on a farm. Tried it with:
Code:
if (isEqiped("Auroria Mineral Water"))
                        CollectItemsAtFarm("Archeum Tree","Farming: Spend up to 25 Labor to use Auroria Mineral Water.","farmname");

This waters one tree, but then it continues to try to water the next tree and so i do get the error "Not enough Auroria Mineral Water". Is there any way to use it only for one tree?
 
Select the Doodad, and use the skill on the specific Doodad.

Thanks.

Unfortunately this means that i will have to rewrite what is currently in "CollectItemsAtFarm" just to water the trees.
Did anybody already implement such a method and is willing to share that?
 
Thanks.

Unfortunately this means that i will have to rewrite what is currently in "CollectItemsAtFarm" just to water the trees.
Did anybody already implement such a method and is willing to share that?

Loop through all nearby doodads, find the doodads where ownersId == me.uniqueId.

Those are the trees you own, then comeTo(doodad); //move to the doodad

var skills = doodad.getSkills();
for(int i = 0; i < skills.count; i++)
{
useSkill(doodad, skills.id); //something like this to use the skill on the doodad, but be careful this can uproot the tree as well, you need to use the correct skill, like if(skills.name == 'Water tree')
}
 
Got it working, but it's a lot of code for such a simple functionality.
 
Status
Not open for further replies.
Back
Top