SBoT 1.0 decompiled with jad 1.5.8e
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.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user