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

Out: Was the CollectItemsAtFarm function changed?

Status
Not open for further replies.

JoeBobJr

Member
Joined
Oct 25, 2014
Messages
151
Reaction score
0
For some reason I can't get my plugin to pick things up on my farm anymore. It will plant them with no problems but it won't pick them up. Such as this line of code it won't pick up the Azalea it was working till this last update we just got.

CollectItemsAtFarm("Azalea", "Gathering: Spend 1 Labor to gather materials.", "JoeBobJr");
 
Create the method yourself.

Step 1. Loop through all doodads.
Step 2. Locate Doodads where ownedId == me.id
Step 3. MoveTo that doodad
Step 4. Use the doodads skill
 
Create the method yourself.

Step 1. Loop through all doodads.
Step 2. Locate Doodads where ownedId == me.id
Step 3. MoveTo that doodad
Step 4. Use the doodads skill

I'm kind of new with coding so that's way out of my league. I'm only decent at looking at other code and changing it to my needs. I couldn't do that even if I wanted too.
 
Hi, give me result from log with code:
Code:
if (!CollectItemsAtFarm("Azalea", "Gathering: Spend 1 Labor to gather materials.", "JoeBobJr"))
  Log(GetLastError().ToString());
 
No error from that code Out. It just runs the code it skips the collecting part of the code and it only plants. This is the code I am using. The plant items at farm works great it always plants with no problem but since the last update you gave us yesterday the collecting stopped working altogether. It won't collect at all. It just skips the code like its not even there.

public void PluginRun() {
while (true) {
//get Labor points
int labor = me.laborPoints;


//if Labor > 1000
if (labor > 2000) {
//get starting count of seed
var barleystart = itemCount("Azalea");
//Plant farm 1

CollectItemsAtFarm("Azalea", "Gathering: Spend 1 Labor to gather materials.", "JoeBobJr");

if (!CollectItemsAtFarm("Azalea", "Gathering: Spend 1 Labor to gather materials.", "JoeBobJr"))
Log(GetLastError().ToString());

PlantItemsAtFarm("Azalea Seed", 24674);

//get ending count of seed
var barleyend = itemCount("Azalea");
//get seed used and show in log
var used = barleystart - barleyend;
Log(barleyend + " Azalea");


//if Labor < 1000 wait
} else {

PlantItemsAtFarm("Azalea Seed", 25066);

Log("Labor under 2000, waiting to regen");
}


//Jump once
//Jump(true);
//Log("JUMP! JUMP!");
UpdateNoAfkState();
Turn(0.05, true);
Thread.Sleep(200);
//Jump(false);


//Generate random time between 4-5 minutes
Random random = new Random();
var mseconds = random.Next(24, 107) * 1000;
var seconds = mseconds / 1000;
Log("Waiting for " + seconds.ToString() + " seconds");


//sleep for random time
Thread.Sleep(mseconds);
}
}
 
Out I have no idea why but its working today. I had to hit play and stop about 3 times then it just started working. It hasn't worked in two days and today its working again. I didn't change anything on my computer and nothing in the code. I just happen to hit play a couple times and it started working. Weird...
 
UPDATE: I've done some more testing. It works perfectly on the plot around my Thatched house but it does NOT work on large farm at all. I've triple checked the farm ID. I've even used your Scarecrow plugin and the Scarecrow one works but this code doesn't work on the large farm.
 
Something else that I believe should be fixed asap. When planting around a Thatched house it plants some things inside the house. Places that you shouldn't be able to plant at all. I'll attach a screenshot of what I am talking about. All it would take is one person walk by and see that and report it to get banned pretty fast. This should be addressed as soon as possible.

or6Xf.png
 
Something else that I believe should be fixed asap. When planting around a Thatched house it plants some things inside the house. Places that you shouldn't be able to plant at all. I'll attach a screenshot of what I am talking about. All it would take is one person walk by and see that and report it to get banned pretty fast. This should be addressed as soon as possible.

/agree +1
I am planting manually on my Thatched because of this =/
 
UPDATE: I've done even more testing and it works on Azalea Seed Bundle just fine on Thatched house but will only plant on Large farm it will NOT gather on large farm. So I'm not sure what is going on. It will plant on anything without any problem it just won't gather on the large farm. It works great on thatched other then planting in places it shouldn't be.
 
Last edited:
UPDATE: It will sometimes plant bundles and sometimes it will not on both thatched and large farm. I've had it plant large farm full of bundles before and sometimes it plants only 1 bundle then it keeps saying To Close to other objects. It won't ever go past just one bundle when it does that.
 
Give me large farm housingId:
target this scarecrow and run:
Log((me.target as Housing).housingId.ToString());
 
Any luck figuring out why I can't collect Azalea at my large farm Out?
 
Create the method yourself.

Step 1. Loop through all doodads.
Step 2. Locate Doodads where ownedId == me.id
Step 3. MoveTo that doodad
Step 4. Use the doodads skill

Do you have an example codes I can play with to get this working?
 
About script you linked, if you don't have more than 2000 labor it doesn't pick up nothing, but it does plant.
Also change "JoeBobJr" for your farm id, you can easly see it by running scarecrow plugin.
 
About script you linked, if you don't have more than 2000 labor it doesn't pick up nothing, but it does plant.
Also change "JoeBobJr" for your farm id, you can easly see it by running scarecrow plugin.

The planting is not the issue. It plants without any problem. I always have over 2k labor on my character. It will not pick anything up no matter what you set the labor too.
 
The planting is not the issue. It plants without any problem. I always have over 2k labor on my character. It will not pick anything up no matter what you set the labor too.

This last update must have fixed it. Its working again! woot!

EDIT: Never mind it worked 1 time and now it doesn't work again. I turned the plugin on and off about 5 or 6 times and it still won't pick up.
 
Last edited:
Finally resolved my problem although it still needs to be fixed at least I have something that works now. Incase you see this OUT this needs to be fixed. ArcheBuddy isn't reading strings right I am not sure why.

CollectItemsAtFarm(Azalea, "Gathering: Spend 1 Labor to gather materials.", "JoeBobJr"); <--- this does NOT Work
CollectItemsAtFarm(Azalea, "Gathering: Spend 1 Labor to gather materials.", 12354); <--- This works with no issues
 
Status
Not open for further replies.
Back
Top