Water management script

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Water management script

Postby gogis » Wed Jul 17, 2013 11:59 pm

Right now water juggling gives me headaches and sweaty nightmares. I figured out how to hotkey waterskin, but constant bucket refill is just too much.

What I want - press a key, which takes any available drinkable container, drink it, and if it's empty - refill it with any available bucket. Quality is totally irrelevant. Should work with any amount of buckets in inventory. Is it even possible? Or even maybe exist already.

Another query - I've seen in some videos highlight of current water container capacity. What is that mod?
And thing that show percentages of finished something - above ovens etc. Maybe I was dreaming though.

Thanks!
gogis
 
Posts: 45
Joined: Tue Jun 25, 2013 9:46 pm

Re: Water management script

Postby Minion » Thu Jul 18, 2013 12:20 am

To answer your question on the water, yes it is possible. Yes it already exists.

To the water capacity, it is a client mod.
And I am unsure about existence of a fuel timer. But i like the idea. Shall look into it. :D
Minion
 
Posts: 71
Joined: Tue Feb 21, 2012 1:23 pm

Re: Water management script

Postby gogis » Thu Jul 18, 2013 12:30 am

Minion wrote:To answer your question on the water, yes it is possible. Yes it already exists.

To the water capacity, it is a client mod.
And I am unsure about existence of a fuel timer. But i like the idea. Shall look into it. :D


Can you share where to look and what to download?
gogis
 
Posts: 45
Joined: Tue Jun 25, 2013 9:46 pm

Re: Water management script

Postby bmjclark » Thu Jul 18, 2013 5:22 am

Last person i saw with a water script dropped their water skin, then dropped their water bucket. Would not recommend.
Cajoes wrote:I was the murder victim your guy aggro'd. And slew. Entirely unprovoked. Rather handily at that. Which prompted the retaliatory party. That you also handily slew.
User avatar
bmjclark
 
Posts: 3986
Joined: Thu Jan 27, 2011 6:40 am
Location: Ontario, Canada

Re: Water management script

Postby NOOBY93 » Thu Jul 18, 2013 9:08 am

Ken Tower client has a bunch of scripts and one of 'em is "drink". It uses right-click drinking (very quickly though) so I only use it to refill, but to drink I use another hotkey.
Good luck!
Jalpha wrote:I believe in my interpretation of things.
User avatar
NOOBY93
 
Posts: 6529
Joined: Tue Aug 09, 2011 1:12 pm

Re: Water management script

Postby Arcanist » Thu Jul 18, 2013 10:06 am

bmjclark wrote:Last person i saw with a water script dropped their water skin, then dropped their water bucket. Would not recommend.


4 waterskins, 4 hotkeys, 5 buckets
User avatar
Arcanist
 
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

Re: Water management script

Postby gogis » Thu Jul 18, 2013 2:15 pm

Arcanist wrote:
bmjclark wrote:Last person i saw with a water script dropped their water skin, then dropped their water bucket. Would not recommend.


4 waterskins, 4 hotkeys, 5 buckets


It wont help with refilling. Also I dont get general attitude in this thread. It's not like I asked for uber bot to ruin your souls.
gogis
 
Posts: 45
Joined: Tue Jun 25, 2013 9:46 pm

Re: Water management script

Postby Arcanist » Thu Jul 18, 2013 2:20 pm

It will. or if you have 5 flasks, and some buckets, you can drink from each of the flasks until they're empty, then empty a bucket into the 5 of them.
User avatar
Arcanist
 
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

Re: Water management script

Postby borka » Thu Jul 18, 2013 2:25 pm

gogis wrote:Another query - I've seen in some videos highlight of current water container capacity. What is that mod?
And thing that show percentages of finished something - above ovens etc. Maybe I was dreaming though.

Thanks!


you might link the videos to get a better clue - i only know about percentage showing of health in a very old client (not sure whether someone put it in a later one)
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Water management script

Postby Arcanist » Thu Jul 18, 2013 2:39 pm

Here is the drink function from apexolog's farmer script:

Code: Select all
function drinkWater() {
   if (jGetStamina() > 80) return;
   inventory = checkInventory();
   var buckets = inventory.getItems("bucket-water");
   if (buckets.length > 0) {
      inventory.sortItems(buckets, "amount", false);
      var bucket = buckets[0];
      var bucket_coord = bucket.coord();
      if (bucket.isActual()) {
         bucket.take();
         jWaitDrag();
         var flasks = inventory.getItems("waterflask", "waterskin");
         if (flasks.length > 0) {
            var flask = flasks[0];
            if (flask.isActual()) {
               flask.itemact(0);
               jSleep(500);
               inventory.drop(bucket_coord);
               jWaitDrop();
            }
         }
      }
   }
 var flasks = inventory.getItems("waterflask", "waterskin");
   if (flasks.length > 0) {
      var flask = flasks[0];
      if (flask.isActual()) {
         flask.iact();
         if (jWaitPopup(actionTimeout)) {
            jSelectContextMenu("Drink");
            jWaitProgress();
         } else {
            // No water
            stopFlag = true;
         }
      }
   }
}   


var flask = flasks[0];
if (flask.isActual()) {
flask.itemact(0);
jSleep(500);
inventory.drop(bucket_coord);
jWaitDrop();
That's the part you need to modify to make it fill all flasks.
I would just repeat the code saying var flask1 = flasks[1] var flask2 = flasks[2] and so forth for how many flasks you want, then remove the drinking part of it.
User avatar
Arcanist
 
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

Next

Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 1 guest