Skip to content

Commit

Permalink
add agatus proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
anjeshshrestha committed Oct 19, 2023
1 parent 0b1271d commit 74d51de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class FacadeManager implements Manager, eu.darkbot.api.API.Singleton {
public final GauntletPlutusProxy plutus;
public final NpcEventProxy npcEventProxy;
public final WorldBossOverviewProxy worldBossOverview;
public final NpcEventProxy agatusEvent;
public final Updatable group;

public FacadeManager(PluginAPI pluginApi) {
Expand All @@ -79,6 +80,7 @@ public FacadeManager(PluginAPI pluginApi) {
this.plutus = registerProxy("plutus", GauntletPlutusProxy.class);
this.npcEventProxy = registerProxy("npc_event", NpcEventProxy.class);
this.worldBossOverview = registerProxy("worldBoss_overview", WorldBossOverviewProxy.class);
this.agatusEvent = registerProxy("agatus_event", NpcEventProxy.class);
this.group = registerProxy("GroupProxy", Updatable.NoOp.class);

registerProxy("dispatch", DispatchProxy.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class NpcEventProxy extends Updatable implements NpcEventAPI {
public double time;
public String eventID;
public String eventName;
public String npcName;
public String eventDescriptionID;
public String eventDescription;
public String npcLeftDescription;
Expand All @@ -23,8 +23,8 @@ public double getRemainingTime() {
}

@Override
public String getEventName() {
return eventName;
public String getNpcName() {
return npcName;
}

@Override
Expand Down Expand Up @@ -70,7 +70,7 @@ public void update() {
this.npcLeftDescription = API.readMemoryString(API.readMemoryLong(data + 0x68));
this.eventDescriptionID = API.readMemoryString(API.readMemoryLong(data + 0x70));
this.eventID = API.readMemoryString(API.readMemoryLong(data + 0x78));
this.eventName = API.readMemoryString(API.readMemoryLong(data + 0x80));
this.npcName = API.readMemoryString(API.readMemoryLong(data + 0x80));
this.npcCount = API.readInt(data + 0x88);
this.bossCount = API.readInt(data + 0x90);
}
Expand Down

0 comments on commit 74d51de

Please sign in to comment.