Sign in to follow this  
Windamere

New class NPCFarmer

Recommended Posts

Idea for new class NPCFarmer


 


Using exisitng Npc.class and CreaturePathFinding.class


 


add menu item on tile "Hire Npc" with drop down menu to select what type "farmer" -  "miner" Etc...


 


This tile will be his "HomeTile...


 


Farmer - Use CreaturePathFinding to find closest "Fieldtile" if field tile age > 1 && Farmed < 6 then Farm, if Age == 6 then Harvest


 


Yield == maxYield (should be since you are paying for it :P)


 


if Harvest then create seed, Sow


 


CreaturePathFind Next closest FieldTile repeat until Inventory(Full)


 


return HomeTile


 


deposit FarmYield in if exist (container)


 


 


Set so only Deed Mayor can hire.....can cost different amounts set by Server Dev.


Edited by Windamere
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this