// 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); } }