Skip to content

Commit

Permalink
revision 216 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan-Vann committed Aug 16, 2023
1 parent 660be4e commit 20d260f
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 1,204 deletions.
16 changes: 8 additions & 8 deletions src/main/java/com/example/EthanApiPlugin/EthanApiPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ public static WorldPoint playerPosition(){
public static SkullIcon getSkullIcon(Player player) {
Field skullField = null;
try {
skullField = player.getClass().getDeclaredField("ar");
skullField = player.getClass().getDeclaredField("ao");
skullField.setAccessible(true);
} catch (NoSuchFieldException e) {
e.printStackTrace();
return null;
}
int var1 = -1;
try {
var1 = skullField.getInt(player) * -2104548197;
var1 = skullField.getInt(player) * 321608603;
skullField.setAccessible(false);
} catch (IllegalAccessException | NullPointerException e) {
e.printStackTrace();
Expand Down Expand Up @@ -148,27 +148,27 @@ public static boolean isQuickPrayerEnabled() {

@SneakyThrows
public static int getAnimation(NPC npc) {
Field animation = npc.getClass().getSuperclass().getDeclaredField("cv");
Field animation = npc.getClass().getSuperclass().getDeclaredField("ck");
animation.setAccessible(true);
int anim = animation.getInt(npc) * 1584912307;
int anim = animation.getInt(npc) * -1553687919;
animation.setAccessible(false);
return anim;
}

@SneakyThrows
public static int pathLength(NPC npc) {
Field pathLength = npc.getClass().getSuperclass().getDeclaredField("de");
Field pathLength = npc.getClass().getSuperclass().getDeclaredField("dq");
pathLength.setAccessible(true);
int path = pathLength.getInt(npc) * 1557847499;
int path = pathLength.getInt(npc) * -1388670275;
pathLength.setAccessible(false);
return path;
}

@SneakyThrows
public static int pathLength(Player player) {
Field pathLength = player.getClass().getSuperclass().getDeclaredField("de");
Field pathLength = player.getClass().getSuperclass().getDeclaredField("dq");
pathLength.setAccessible(true);
int path = pathLength.getInt(player) * 1557847499;
int path = pathLength.getInt(player) * -1388670275;
pathLength.setAccessible(false);
return path;
}
Expand Down
Loading

0 comments on commit 20d260f

Please sign in to comment.