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

Well - Barrel

BBreaker

New Member
Joined
Mar 21, 2015
Messages
48
Reaction score
0
Is it possible to have a plugin that drains huge amounts of water from a farmhouse's water barrel / village well?

i would like to have the farmhouse version, it gives more water each time you drain.
 
Well.. i tried editing CoalCloud's (https://www.thebuddyforum.com/arche...lugins/other/186595-release-gather-water.html)

Code:
using ArcheBuddy.Bot.Classes;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Gather_Water {
    public class Main : Core {
        public static string GetPluginAuthor() {
            return "CoalCloud";
        }

        public static string GetPluginVersion() {
            return "1.0.0.0";
        }

        public static string GetPluginDescription() {
            return "Gather Water";
        }

        public void PluginRun() {
            ClearLogs();
            Log(String.Format("~~ Plug-in start: {0}, {1}", GetPluginDescription(), GetPluginVersion()));

            while (true) {
                DoodadObject water-barrel = getDoodads().FirstOrDefault(x => x.dist(me) <= 5d && x.name == "Water Barrel");

                if (water-barrel == null)
                    return;

                while (me.isCasting || me.isGlobalCooldown) ;

                List<Skill> sList;

                while ((sList = water-barrel.getUseSkills()).Count == 0) ;

                UseDoodadSkill(sList[0].id, water-barrel, true);
            }
        }

        public void PluginStop() {
            Log("~~ Plug-in stop.");
        }
    }
}
would this be correct and working and safe?
 
Watering plants...
Cultivated ginseng for potions for example takes a lot, with water you can shrink times of some hours.
 
Seriously?
Hauler got a "Create Water function in case i need.
I don't own a hauler nor i want to.
I just want to drain water from a water barrel so i can water them one by one.
 
I would add something like this to control the amount of water

Code:
if ( itemCount(15694) < 300 )
{ Do something }
 
Seriously?
Hauler got a "Create Water function in case i need.
I don't own a hauler nor i want to.
I just want to drain water from a water barrel so i can water them one by one.

If you mean from your thatched farmhouse you just use the CollectItems method like this:

Code:
while (itemCount("Water") < 70) { CollectItemsAtFarm("Water Barrel", "Get Water.", FARM ID HERE); }

Just change 70 to however much you want to have each time before attempting to water plants.
 
Back
Top