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

[Plugin] Another auto farming plugin, now with farmID auto assignment!

Never read all posts but did you ever get it to use farms farther apart? Couldn't you just call
GetFarmIds();
Log(farm1id.ToString());
Log(farm2id.ToString());
Log(farm3id.ToString());
after each movetofarm so it gets new id's ? you may have already done this as i only read first 3 or so pages so if so then disregard but if not that would probably make that part work?
Yes you could just move GetFarmIds(); after each movetofarm you do, I've left this out as I imagine most don't need it. Feel free to edit it yourself, you don't need to include the Log bits though (it's just there for debugging).
 
couple questions.

I modified the code to move inside my house when its not farming. you made a good sugestion to use bed... once in front of bed do you have code that i would use to lay down?
also
currently i have to leave my house door open, do you have sample code to open / close door?


I'm assuming that i would have to:
make path points to infront of door and inside door
then have script do following:
go to gps point for in front of door
run open door code
go to gps point for otherside of door
run close door code
walk to bed
run sleep code
run variable timer code

to leave i would reverse door steps.

if there is easier way please share.
 
couple questions.

I modified the code to move inside my house when its not farming. you made a good sugestion to use bed... once in front of bed do you have code that i would use to lay down?
also
currently i have to leave my house door open, do you have sample code to open / close door?


I'm assuming that i would have to:
make path points to infront of door and inside door
then have script do following:
go to gps point for in front of door
run open door code
go to gps point for otherside of door
run close door code
walk to bed
run sleep code
run variable timer code

to leave i would reverse door steps.

if there is easier way please share.
Add this function
Code:
public void UseDoodad(string doodadname) {
           DoodadObject y = getDoodads().FirstOrDefault(x => x.dist(me) <= 5d && x.name == doodadname);
           List<Skill> sList;
           sList = y.getUseSkills();
           UseDoodadSkill(sList[0].id, y, true);
       }
This works for laying down in bed, not sure about door but try it out.
 
d58d55bfc1.png


Broken plug? :)
 
d58d55bfc1.png


Broken plug? :)
Looks like you put in wrong names for farms or maybe they're out of range. The 0's should be the farmId's after you've setup the plugin correctly, and are only there for debugging such as right now :)
Are you playing russian version of game? Another member also had issues on RU client that couldn't be solved.
 
Yes you could just move GetFarmIds(); after each movetofarm you do, I've left this out as I imagine most don't need it. Feel free to edit it yourself, you don't need to include the Log bits though (it's just there for debugging).

But isn't it needed for long distance farming as is gps move to each farm that is in other areas etc? I see in main topic now it says long distance farming is supported but I don't see anywhere that is does either of these things in the code itself atm? Remember I am not a coder and asking questions as I want to use it for long distance farming but not sure what all i would need to edit to do so.
Thanks in advance.
 
But isn't it needed for long distance farming as is gps move to each farm that is in other areas etc? I see in main topic now it says long distance farming is supported but I don't see anywhere that is does either of these things in the code itself atm? Remember I am not a coder and asking questions as I want to use it for long distance farming but not sure what all i would need to edit to do so.
Thanks in advance.
To put it simply:
For farming at multiple locations you would have a separate MoveToFarmXXX(); with each farm's gps point, so after you've added each farm you'll have something like
Code:
public void MoveToFarm1()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms1");                
         }
public void MoveToFarm2()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms2");                
         }
public void MoveToFarm3()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms3");                
         }
etc.....
Then you'd put GetFarmIds(); after each time you have a MoveToFarmXXX(); so that every time your character moves to a different location the plugin will re-scan farms in the area.

Let me know if you have more questions.
 
To put it simply:
For farming at multiple locations you would have a separate MoveToFarmXXX(); with each farm's gps point, so after you've added each farm you'll have something like
Code:
public void MoveToFarm1()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms1");                
         }
public void MoveToFarm2()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms2");                
         }
public void MoveToFarm3()        
        {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + _gpsfile); 
           gps.GpsMove("Farms3");                
         }
etc.....
Then you'd put GetFarmIds(); after each time you have a MoveToFarmXXX(); so that every time your character moves to a different location the plugin will re-scan farms in the area.

Let me know if you have more questions.

OK thanks thats what i thought i would have to do but wanted to make sure is all since it says it has support for it in it i wasn't sure if i missed it in the code or something. Great job btw on this plugin and with the help you give to everyone in here as well it is very appreciated by me and others i am sure.
I bet could also use a dif move to vendor depending on area your in to somehow but not that important i guess.
 
Thanks for sharing! I cannot compile that in the AB editor. Get error about missing "Properties".
...oops. That's leftover from original method I was trying to use for saving settings.
ZIP file updated. Or just delete using Farm.Properties from files.
 
Back
Top