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

Farm Panting

NotPanda

New Member
Joined
Jun 12, 2015
Messages
33
Reaction score
0
Hey just wanted to share something i use.
Plants any animal/seed/sapling in your inventory. not 100% tested.
If its shit tell me, new here.

PHP:
uint[] _farmGroups = { 8, 21, 47, 48, 49, 51, 52, 53, 55 };  
uint[] _farms = { 5938, 5936, 4450 };  //Farm ids
public void Plant(){  
            foreach(var farm in _farms){   
                Log("Planting on farm " + farm);
                foreach (var item in sqlCore.sqlItems)
                {      
                    if(_farmGroups.Contains(item.Value.itemCategorie.id) && itemCount(item.Value.id) > 0 ){   
                        var seedCount = itemCount(item.Value.id);
                        Log("Seed Count: " + item.Value.name + " - " + seedCount); 
                        PlantItemsAtFarm(item.Value.id, farm); 
                        //Log(item.Value.id + " " + item.Value.name + " " + item.Value.itemCategorie.id);
                    }
                }
            }             
        }
 
thx for sharing the code. I am not going to use but i always appreciate it if somebody shares code, keep up the good work. Maybe you can put a try catch in the code so that when something breaks the plugin doesnt crash,
 
This is interesting, i've been holding back on my rebuild of farm monkey for a variety of reasons but i like this and may throw something similar in it as an option.
 
This is interesting, i've been holding back on my rebuild of farm monkey for a variety of reasons but i like this and may throw something similar in it as an option.

I've been working on some stuff slowly to make a script that farms with as little input as possible.

If you come up with anything let me know. I'll post what I have soon.
Been very lazy :P the sql stuff is hard to figure out.
 
Back
Top