Travel Weariness with Groovy

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

Moderator: Phades

Travel Weariness with Groovy

Postby Redell » Wed Jul 31, 2013 1:03 am

I was wondering if anyone knew how to make something like:

if(Weariness > 80)
{
drinkWine():
waitHourglass();
Thread.sleep(100):
}
else ...

something like this, I'm not quite sure if "Weariness" is what I'm looking for.
NaoWhut wrote:He didn't realize we can be anywhere in the world because of jorb friendship magic <3

https://www.youtube.com/watch?v=mNR6oKh7-hc
User avatar
Redell
 
Posts: 258
Joined: Thu Aug 20, 2009 6:38 am

Re: Travel Weariness with Groovy

Postby onex » Wed Jul 31, 2013 11:37 am

its bugged.i guess
onex
 
Posts: 8
Joined: Fri Jun 14, 2013 3:56 pm

Re: Travel Weariness with Groovy

Postby Redell » Fri Aug 02, 2013 12:54 am

So I had a really cool guy PM that there is a few missing lines in the code for scripting and to fix it you will need to grab the source code, edit 2 lines of code in ScriptGlobal.java, recompile, and replace your old kthaven.jar with the new haven.jar that is made.

Source: Here
Edit: /src/haven/scripting/ScriptGlobal.java
Around Line 122 make it look like this:
Code: Select all
    public ScriptBuff[] getBuffs() {
        ArrayList<ScriptBuff> list = new ArrayList<ScriptBuff>();
        synchronized(glob().buffs) {
            for (Buff b : glob().buffs.values())
                list.add(new ScriptBuff(b));
        }
        ScriptBuff[] arr = new ScriptBuff[list.size()];
             for(int i=0;i<arr.length;i++){
               arr[i]=list.get(i);
            }
        return arr;
    }

I used Eclipse to recompile using build.xml found out you need JDK 1.6 for it to work.

Credit for this information goes to "Irrek".
NaoWhut wrote:He didn't realize we can be anywhere in the world because of jorb friendship magic <3

https://www.youtube.com/watch?v=mNR6oKh7-hc
User avatar
Redell
 
Posts: 258
Joined: Thu Aug 20, 2009 6:38 am

Re: Travel Weariness with Groovy

Postby onex » Fri Aug 02, 2013 5:51 pm

oh lol
KT kinda old
onex
 
Posts: 8
Joined: Fri Jun 14, 2013 3:56 pm


Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 1 guest