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.
50 lines
1.3 KiB
Java
50 lines
1.3 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: GuildFish.java
|
|
|
|
|
|
public class GuildFish extends Script
|
|
{
|
|
|
|
public GuildFish(mudclient mudclient)
|
|
{
|
|
super(mudclient);
|
|
}
|
|
|
|
public String[] getCommands()
|
|
{
|
|
return (new String[] {
|
|
"guildfishing"
|
|
});
|
|
}
|
|
|
|
public void start(String s, String s1)
|
|
{
|
|
CheckFighters(false);
|
|
DisplayMessage("@gre@SBoT: @whi@GuildFisher-TrapperJ", 3);
|
|
do
|
|
{
|
|
if(!Running())
|
|
break;
|
|
if(GetY() < 3000 && InvCount(372) > 25)
|
|
{
|
|
WalkEmpty(604, 503, 603, 503);
|
|
Wait(7000);
|
|
long l = System.currentTimeMillis();
|
|
int i = GetNearestNPC(369);
|
|
TalkToNPC(i);
|
|
for(; System.currentTimeMillis() - l <= 5000L && !QuestMenu(); Wait(1));
|
|
Wait(1000);
|
|
Answer(1);
|
|
Wait(1000);
|
|
Answer(1);
|
|
Wait(1000);
|
|
Answer(5);
|
|
Wait(1000);
|
|
}
|
|
} while(true);
|
|
DisplayMessage("@gre@SBoT: @whi@Guild Miner - @red@STOPPED", 3);
|
|
}
|
|
}
|