Files
sbot_archive/GuildFisher.java
T
wes c30e839b64 SBoT 1.0 decompiled with CFR 0.152
Full source recovered from SBoT.jar (July 2004) plus the three bundled
example scripts (BoneBury, GuildFish, GuildFisher). Class names are the
original RSC-era single-letter obfuscation (a.java-z.java); mudclient.java
and Script.java kept their real names since those weren't obfuscated.
2026-08-25 13:11:31 -04:00

75 lines
2.5 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* Script
* mudclient
*/
public class GuildFisher
extends Script {
public GuildFisher(mudclient mudclient2) {
super(mudclient2);
}
public String[] getCommands() {
return new String[]{"guildfish"};
}
public void start(String string, String string2) {
this.DisplayMessage("@gre@SBoT: @whi@GuildFisher - RichyT", 3);
while (this.Running()) {
while (this.InvCount() < 30) {
if (this.Fatigue() > 85 && !this.Sleeping()) {
this.DisplayMessage("@gre@SBoT: @whi@Sleeping", 3);
this.Use(this.FindInv(1263));
this.Wait(5000);
}
if (this.Sleeping()) continue;
this.AtObject(589, 501);
this.Wait(1000);
}
this.Walk(601, 504);
while (this.DoorAt(603, 506, 3) == 1) {
this.Walk(602, 506);
this.OpenDoor(603, 506, 3);
this.Wait(5000);
this.WalkNoWait(603, 505);
this.Wait(2000);
}
this.WalkEmpty(602, 502, 605, 505);
while (this.InvCount(372) > 0) {
long l;
while (!this.QuestMenu()) {
l = System.currentTimeMillis();
int n = this.GetNearestNPC(369);
this.TalkToNPC(n);
while (System.currentTimeMillis() - l <= 5000L && !this.QuestMenu()) {
this.Wait(1);
}
}
l = System.currentTimeMillis();
this.Answer(1);
while (!this.QuestMenu() && System.currentTimeMillis() - l <= 5000L) {
this.Wait(10);
}
l = System.currentTimeMillis();
this.Answer(1);
while (!this.QuestMenu() && System.currentTimeMillis() - l <= 5000L) {
this.Wait(10);
}
this.Answer(4);
this.Wait(2500);
}
while (this.DoorAt(603, 506, 3) == 1) {
this.Walk(604, 506);
this.OpenDoor(603, 506, 3);
this.Wait(5000);
this.WalkNoWait(602, 506);
this.Wait(2000);
}
this.Walk(593, 502);
}
this.DisplayMessage("@red@STOPPED", 3);
}
}