Full source recovered from SBoT.jar (July 2004) plus the three bundled example scripts (BoneBury, GuildFish, GuildFisher). Class names are the original RSC-era single-letter obfuscation (a.java-z.java); mudclient.java and Script.java kept their real names since those weren't obfuscated.
38 lines
1.0 KiB
Java
38 lines
1.0 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* Script
|
|
* mudclient
|
|
*/
|
|
public class BoneBury
|
|
extends Script {
|
|
public BoneBury(mudclient mudclient2) {
|
|
super(mudclient2);
|
|
}
|
|
|
|
public String[] getCommands() {
|
|
return new String[]{"bones"};
|
|
}
|
|
|
|
public void start(String string, String[] stringArray) {
|
|
while (this.Running()) {
|
|
if (this.Fatigue() > 95 && !this.Sleeping()) {
|
|
this.DisplayMessage("@gre@SBoT: @whi@Sleeping", 3);
|
|
this.Use(this.FindInv(1263));
|
|
this.Wait(5000);
|
|
}
|
|
while (this.GetNearestItem(20) != null && this.InvCount() < 30) {
|
|
int[] nArray = this.GetNearestItem(20);
|
|
this.TakeItem(nArray[0], nArray[1], 20);
|
|
this.Wait(1000);
|
|
}
|
|
while (this.InvCount() > 2) {
|
|
this.Use(this.FindInv(20));
|
|
this.Wait(1000);
|
|
}
|
|
}
|
|
this.DisplayMessage("@red@STOPPED", 3);
|
|
}
|
|
}
|