Same SBoT.jar, decompiled with jad instead of CFR for comparison -- jad is the same decompiler the community used on RSC client dumps back in 2004 (see DeobedMC201.rar). A few methods didn't fully resolve (jad is much less capable than CFR on complex control flow); those are marked inline where jad gave up.
47 lines
1.1 KiB
Java
47 lines
1.1 KiB
Java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
|
|
// Jad home page: http://www.geocities.com/kpdus/jad.html
|
|
// Decompiler options: packimports(3)
|
|
// Source File Name: BoneBury.java
|
|
|
|
|
|
public class BoneBury extends Script
|
|
{
|
|
|
|
public BoneBury(mudclient mudclient)
|
|
{
|
|
super(mudclient);
|
|
}
|
|
|
|
public String[] getCommands()
|
|
{
|
|
return (new String[] {
|
|
"bones"
|
|
});
|
|
}
|
|
|
|
public void start(String s, String as[])
|
|
{
|
|
while(Running())
|
|
{
|
|
if(Fatigue() > 95 && !Sleeping())
|
|
{
|
|
DisplayMessage("@gre@SBoT: @whi@Sleeping", 3);
|
|
Use(FindInv(1263));
|
|
Wait(5000);
|
|
}
|
|
for(; GetNearestItem(20) != null && InvCount() < 30; Wait(1000))
|
|
{
|
|
int ai[] = GetNearestItem(20);
|
|
TakeItem(ai[0], ai[1], 20);
|
|
}
|
|
|
|
while(InvCount() > 2)
|
|
{
|
|
Use(FindInv(20));
|
|
Wait(1000);
|
|
}
|
|
}
|
|
DisplayMessage("@red@STOPPED", 3);
|
|
}
|
|
}
|