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.
Travel Weariness with Groovy
Moderator: Phades
-
Redell
- Posts: 258
- Joined: Thu Aug 20, 2009 6:38 am
Travel Weariness with Groovy
https://www.youtube.com/watch?v=mNR6oKh7-hcNaoWhut wrote:He didn't realize we can be anywhere in the world because of jorb friendship magic <3
-
onex
- Posts: 8
- Joined: Fri Jun 14, 2013 3:56 pm
Re: Travel Weariness with Groovy
its bugged.i guess
-
Redell
- Posts: 258
- Joined: Thu Aug 20, 2009 6:38 am
Re: Travel Weariness with Groovy
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:
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".
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;
}Credit for this information goes to "Irrek".
https://www.youtube.com/watch?v=mNR6oKh7-hcNaoWhut wrote:He didn't realize we can be anywhere in the world because of jorb friendship magic <3
-
onex
- Posts: 8
- Joined: Fri Jun 14, 2013 3:56 pm
Re: Travel Weariness with Groovy
oh lol
KT kinda old
KT kinda old