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.
85 lines
2.4 KiB
Java
85 lines
2.4 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: GuildFisher.java
|
|
|
|
|
|
public class GuildFisher extends Script
|
|
{
|
|
|
|
public GuildFisher(mudclient mudclient)
|
|
{
|
|
super(mudclient);
|
|
}
|
|
|
|
public String[] getCommands()
|
|
{
|
|
return (new String[] {
|
|
"guildfish"
|
|
});
|
|
}
|
|
|
|
public void start(String s, String s1)
|
|
{
|
|
DisplayMessage("@gre@SBoT: @whi@GuildFisher - RichyT", 3);
|
|
for(; Running(); Walk(593, 502))
|
|
{
|
|
do
|
|
{
|
|
if(InvCount() >= 30)
|
|
break;
|
|
if(Fatigue() > 85 && !Sleeping())
|
|
{
|
|
DisplayMessage("@gre@SBoT: @whi@Sleeping", 3);
|
|
Use(FindInv(1263));
|
|
Wait(5000);
|
|
}
|
|
if(!Sleeping())
|
|
{
|
|
AtObject(589, 501);
|
|
Wait(1000);
|
|
}
|
|
} while(true);
|
|
Walk(601, 504);
|
|
for(; DoorAt(603, 506, 3) == 1; Wait(2000))
|
|
{
|
|
Walk(602, 506);
|
|
OpenDoor(603, 506, 3);
|
|
Wait(5000);
|
|
WalkNoWait(603, 505);
|
|
}
|
|
|
|
WalkEmpty(602, 502, 605, 505);
|
|
for(; InvCount(372) > 0; Wait(2500))
|
|
{
|
|
while(!QuestMenu())
|
|
{
|
|
long l = System.currentTimeMillis();
|
|
int i = GetNearestNPC(369);
|
|
TalkToNPC(i);
|
|
while(System.currentTimeMillis() - l <= 5000L && !QuestMenu())
|
|
Wait(1);
|
|
}
|
|
long l1 = System.currentTimeMillis();
|
|
Answer(1);
|
|
for(; !QuestMenu() && System.currentTimeMillis() - l1 <= 5000L; Wait(10));
|
|
l1 = System.currentTimeMillis();
|
|
Answer(1);
|
|
for(; !QuestMenu() && System.currentTimeMillis() - l1 <= 5000L; Wait(10));
|
|
Answer(4);
|
|
}
|
|
|
|
for(; DoorAt(603, 506, 3) == 1; Wait(2000))
|
|
{
|
|
Walk(604, 506);
|
|
OpenDoor(603, 506, 3);
|
|
Wait(5000);
|
|
WalkNoWait(602, 506);
|
|
}
|
|
|
|
}
|
|
|
|
DisplayMessage("@red@STOPPED", 3);
|
|
}
|
|
}
|