diff --git a/.gitignore b/.gitignore index 6708bd52..02eb04a3 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ target/ # Ignore any json files in the server root (should only be config files, the sample file should still be updated) 2006Scape Server/*.json +rsapriv +rsapub + diff --git a/2006Scape Client/pom.xml b/2006Scape Client/pom.xml index 820c3892..0537035f 100644 --- a/2006Scape Client/pom.xml +++ b/2006Scape Client/pom.xml @@ -13,6 +13,20 @@ 1.0 jar + + + net.java.dev.jna + jna + 4.4.0 + + + junit + junit + 4.7 + test + + + diff --git a/2006Scape Client/src/main/java/AndroidHooks.java b/2006Scape Client/src/main/java/AndroidHooks.java index 3876310c..78703493 100644 --- a/2006Scape Client/src/main/java/AndroidHooks.java +++ b/2006Scape Client/src/main/java/AndroidHooks.java @@ -47,4 +47,24 @@ public final class AndroidHooks { public static void showKeyboard() {} public static void hideKeyboard() {} + + public static void drawModernMinimap(Object graphics, int[] minimapPixels, int windowWidth) {} + + public static Object getRenderGraphics(Object screenGraphics) { + return screenGraphics; + } + + public static void flip(Object screenGraphics) {} + + public static void loadExternalDexPlugins(java.io.File file, java.util.List plugins, java.util.List scripts) {} + + public static void showPluginManagerDialog(Game game) {} + + public static void openScriptsFolder() { + try { + java.io.File dir = new java.io.File(Signlink.findcachedir(), "scripts"); + if (!dir.exists()) dir.mkdirs(); + java.awt.Desktop.getDesktop().open(dir); + } catch (Throwable ignored) {} + } } diff --git a/2006Scape Client/src/main/java/Class40.java b/2006Scape Client/src/main/java/Class40.java index 89b5fce5..0dbfd7a2 100644 --- a/2006Scape Client/src/main/java/Class40.java +++ b/2006Scape Client/src/main/java/Class40.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -final class Class40 { +public final class Class40 { public Class40(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int k4, int l4) { aBoolean683 = !(i3 != l2 || i3 != l || i3 != k2); @@ -151,12 +151,14 @@ final class Class40 { anIntArray676 = new int[j7]; anIntArray677 = new int[j7]; anIntArray678 = new int[j7]; + isOverlayFace = new boolean[j7]; if (i1 != -1) { anIntArray682 = new int[j7]; } int l7 = 0; for (int j8 = 0; j8 < j7; j8++) { int l8 = ai3[l7]; + isOverlayFace[j8] = (l8 != 0); int k9 = ai3[l7 + 1]; int i10 = ai3[l7 + 2]; int k10 = ai3[l7 + 3]; @@ -214,21 +216,23 @@ final class Class40 { l9 /= 14; } - final int[] anIntArray673; - final int[] anIntArray674; - final int[] anIntArray675; - final int[] anIntArray676; - final int[] anIntArray677; - final int[] anIntArray678; - final int[] anIntArray679; - final int[] anIntArray680; - final int[] anIntArray681; - int anIntArray682[]; - final boolean aBoolean683; - final int anInt684; - final int anInt685; - final int anInt686; - final int anInt687; + public final int[] anIntArray673; + public final int[] anIntArray674; + public final int[] anIntArray675; + public final int[] anIntArray676; + public final int[] anIntArray677; + public final int[] anIntArray678; + public final int[] anIntArray679; + public final int[] anIntArray680; + public final int[] anIntArray681; + public final boolean[] isOverlayFace; + public int anIntArray682[]; + public final boolean aBoolean683; + public final int anInt684; + public final int anInt685; + public final int anInt686; + public final int anInt687; + public int plane; static final int[] anIntArray688 = new int[6]; static final int[] anIntArray689 = new int[6]; static final int[] anIntArray690 = new int[6]; diff --git a/2006Scape Client/src/main/java/Class43.java b/2006Scape Client/src/main/java/Class43.java index 74d03050..d1a3b3da 100644 --- a/2006Scape Client/src/main/java/Class43.java +++ b/2006Scape Client/src/main/java/Class43.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -final class Class43 { +public final class Class43 { public Class43(int i, int j, int k, int l, int i1, int j1, boolean flag) { aBoolean721 = true; @@ -15,11 +15,12 @@ final class Class43 { aBoolean721 = flag; } - final int anInt716; - final int anInt717; - final int anInt718; - final int anInt719; - final int anInt720; - boolean aBoolean721; - final int anInt722; + public final int anInt716; + public final int anInt717; + public final int anInt718; + public final int anInt719; + public final int anInt720; + public boolean aBoolean721; + public final int anInt722; + public boolean isOverlay = false; } diff --git a/2006Scape Client/src/main/java/ClientArgs.java b/2006Scape Client/src/main/java/ClientArgs.java index 211fb7ed..aacc9d87 100644 --- a/2006Scape Client/src/main/java/ClientArgs.java +++ b/2006Scape Client/src/main/java/ClientArgs.java @@ -36,9 +36,22 @@ public final class ClientArgs { case "-check-crc": ClientSettings.CHECK_CRC = true; break; + case "-resizable": + case "-resize": + if (!ClientSettings.ANDROID) { + ClientSettings.RESIZABLE = true; + ClientSettings.SHOW_NAVBAR = false; + } + break; + case "-hd": + case "-317hd": + ClientSettings.HD_317 = true; + break; case "-qol": case "-fixes": + case "-enable-qol": ClientSettings.CUSTOM_SETTINGS_TAB = true; + ClientSettings.ENABLE_QOL = true; ClientSettings.BILINEAR_MINIMAP_FILTERING = true; ClientSettings.FIX_TRANSPARENCY_OVERFLOW = true; ClientSettings.FULL_512PX_VIEWPORT = true; @@ -46,6 +59,10 @@ public final class ClientArgs { ClientSettings.CONTROL_KEY_ZOOMING = true; } break; + case "-no-qol": + case "-disable-qol": + ClientSettings.ENABLE_QOL = false; + break; case "-no-nav": case "-disable-nav": ClientSettings.SHOW_NAVBAR = false; @@ -111,6 +128,8 @@ public final class ClientArgs { } } } + // Game copies SERVER_IP into Game.server in its constructor, which runs before these args are applied + Game.server = ClientSettings.SERVER_IP; } public static String[] splitArgs(String input) { diff --git a/2006Scape Client/src/main/java/ClientPlugin.java b/2006Scape Client/src/main/java/ClientPlugin.java new file mode 100644 index 00000000..2ac002e6 --- /dev/null +++ b/2006Scape Client/src/main/java/ClientPlugin.java @@ -0,0 +1,114 @@ +import java.util.Collections; +import java.util.List; + +/** + * Base class for RuneLite-style event-driven plugins. + */ +public abstract class ClientPlugin { + + protected PluginContext ctx; + private boolean enabled; + + public abstract String getName(); + + public String getDescription() { + return ""; + } + + public String getAuthor() { + return "2006Scape"; + } + + public String getVersion() { + return "1.0.0"; + } + + public String getMinApiVersion() { + return "1.0.0"; + } + + public final SemVer getSemVer() { + return SemVer.parse(getVersion()); + } + + public boolean isEnabledByDefault() { + return false; + } + + public boolean isEnabled() { + return enabled; + } + + public void setEnabled(boolean enabled) { + this.enabled = enabled; + } + + public List getConfigItems() { + return Collections.emptyList(); + } + + public void onConfigChanged(String key, Object value) { + } + + public void onStart(PluginContext ctx) { + this.ctx = ctx; + } + + public void onStop() { + } + + public void onGameTick() { + } + + /** + * Called before rendering or executing the right-click menu. + * The last entry in the list is the default left-click action. + */ + public void onPreMenuRender(List entries) { + } + + /** + * Called when a menu action is chosen. Return false to consume/block the action. + */ + public boolean onMenuAction(MenuEntry entry) { + return true; + } + + public void onChatMessage(int type, String sender, String message) { + } + + public void onGroundItemSpawn(int itemId, int amount, int worldX, int worldY, int plane) { + } + + public void onGroundItemSpawned(PluginContext.GroundItemWrapper item) { + } + + public void onXpGained(int skillId, int deltaXp) { + } + + public void onAnimationChanged(int animId) { + } + + public void onLogin() { + } + + public void onDisconnect() { + } + + public void onPlayerDeath() { + } + + public void onLogout() { + } + + public void onRenderOverlay(PluginGraphics g) { + } + + public boolean handlesCommandsWhenDisabled() { + return false; + } + + public boolean onCommand(String command, String[] args) { + return false; + } +} diff --git a/2006Scape Client/src/main/java/ClientScript.java b/2006Scape Client/src/main/java/ClientScript.java new file mode 100644 index 00000000..f788ed06 --- /dev/null +++ b/2006Scape Client/src/main/java/ClientScript.java @@ -0,0 +1,293 @@ +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.function.BooleanSupplier; + +/** + * Base class for tick-safe automation scripts. + * Runs deterministically in the client game loop. + */ +public abstract class ClientScript { + + protected PluginContext ctx; + private volatile boolean running; + private volatile boolean paused; + private long nextExecutionTimeMs; + private long startTimeMs; + private long lastProgressTimeMs; + private int lastProgressX = Integer.MIN_VALUE; + private int lastProgressY = Integer.MIN_VALUE; + private BooleanSupplier pendingWaitCondition; + private long pendingWaitDeadlineMs; + private int pendingWaitPollMs = 100; + private boolean lastWaitTimedOut; + private final Map timers = new HashMap<>(); + protected String status = "Idle"; + + public abstract String getName(); + + public String getDescription() { + return ""; + } + + public String getAuthor() { + return "2006Scape"; + } + + public String getCategory() { + return "Automation"; + } + + public String getVersion() { + return "1.0.0"; + } + + public String getMinApiVersion() { + return "1.0.0"; + } + + public final SemVer getSemVer() { + return SemVer.parse(getVersion()); + } + + public List getCommandNames() { + return Collections.emptyList(); + } + + public List getConfigItems() { + return Collections.emptyList(); + } + + public void onConfigChanged(String key, Object value) { + } + + public final void start(PluginContext ctx) { + this.ctx = ctx; + this.running = true; + this.paused = false; + this.startTimeMs = System.currentTimeMillis(); + this.nextExecutionTimeMs = 0; + this.lastProgressTimeMs = this.startTimeMs; + this.lastProgressX = Integer.MIN_VALUE; + this.lastProgressY = Integer.MIN_VALUE; + this.pendingWaitCondition = null; + this.lastWaitTimedOut = false; + this.timers.clear(); + this.status = "Starting"; + ScriptLogger.log(getName(), "Started"); + onStart(ctx); + } + + public final void stop() { + if (!running) return; + this.running = false; + this.paused = false; + this.pendingWaitCondition = null; + this.timers.clear(); + this.status = "Stopped"; + ScriptLogger.log(getName(), "Stopped"); + onStop(); + } + + public final void pause() { + this.paused = true; + this.status = "Paused"; + ScriptLogger.log(getName(), "Paused"); + } + + public final void resume() { + this.paused = false; + this.status = "Running"; + ScriptLogger.log(getName(), "Resumed"); + } + + public boolean isRunning() { + return running; + } + + public boolean isPaused() { + return paused; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + String next = status != null ? status : "Idle"; + if (!next.equals(this.status)) { + ScriptLogger.log(getName(), "Status -> " + next); + } + this.status = next; + } + + public long getRuntimeMs() { + if (!running) return 0; + return System.currentTimeMillis() - startTimeMs; + } + + public String getFormattedRuntime() { + long sec = getRuntimeMs() / 1000; + long h = sec / 3600; + long m = (sec % 3600) / 60; + long s = sec % 60; + return String.format("%02d:%02d:%02d", h, m, s); + } + + /** Formats counts/XP >= 1,000 in compact K/M notation (e.g. 10000 -> 10K, 1500 -> 1.5K). */ + public static String formatCompactNumber(long value) { + if (value < 1000) { + return String.valueOf(value); + } + if (value < 1_000_000) { + long whole = value / 1000; + long tenths = (value % 1000) / 100; + return (tenths > 0 && value < 100_000) ? (whole + "." + tenths + "K") : (whole + "K"); + } + long whole = value / 1_000_000; + long tenths = (value % 1_000_000) / 100_000; + return tenths > 0 ? (whole + "." + tenths + "M") : (whole + "M"); + } + + public final void processTick() { + if (!running || paused) return; + long now = System.currentTimeMillis(); + updateWatchdog(now); + if (now < nextExecutionTimeMs) return; + + try { + if (pendingWaitCondition != null) { + boolean satisfied = pendingWaitCondition.getAsBoolean(); + if (!satisfied && now < pendingWaitDeadlineMs) { + nextExecutionTimeMs = now + pendingWaitPollMs; + return; + } + lastWaitTimedOut = !satisfied; + pendingWaitCondition = null; + } + int delayMs = loop(); + if (delayMs < 0) { + stop(); + } else { + nextExecutionTimeMs = now + Math.max(50, delayMs); + } + } catch (Throwable t) { + System.err.println("Exception in script " + getName() + ": " + t.getMessage()); + t.printStackTrace(); + ScriptLogger.log(getName(), "ERROR: " + t.getClass().getSimpleName() + ": " + t.getMessage()); + status = "Error: " + t.getMessage(); + stop(); + } + } + + private void updateWatchdog(long now) { + if (ctx == null || !ctx.isLoggedIn()) return; + int px = ctx.getPlayerX(); + int py = ctx.getPlayerY(); + if (px != lastProgressX || py != lastProgressY || ctx.getPlayerAnim() > 0) { + lastProgressX = px; + lastProgressY = py; + lastProgressTimeMs = now; + } + } + + /** Resets the idle/stuck watchdog timer to the current time. */ + public final void resetWatchdog() { + lastProgressTimeMs = System.currentTimeMillis(); + if (ctx != null && ctx.isLoggedIn()) { + lastProgressX = ctx.getPlayerX(); + lastProgressY = ctx.getPlayerY(); + } + } + + /** Returns milliseconds elapsed since the player last moved, animated, or reset the watchdog. */ + public final long getTimeSinceProgressMs() { + return Math.max(0L, System.currentTimeMillis() - lastProgressTimeMs); + } + + /** Returns true if no progress has been observed for at least thresholdMs. */ + public final boolean isStuck(long thresholdMs) { + return getTimeSinceProgressMs() >= thresholdMs; + } + + /** Starts a non-blocking condition wait; returns the poll delay for loop(). */ + protected final int waitUntil(BooleanSupplier condition, int timeoutMs) { + return waitUntil(condition, timeoutMs, 100); + } + + /** Starts a non-blocking condition wait with custom poll interval; returns pollMs for loop(). */ + protected final int waitUntil(BooleanSupplier condition, int timeoutMs, int pollMs) { + this.pendingWaitCondition = condition; + this.pendingWaitDeadlineMs = System.currentTimeMillis() + Math.max(50, timeoutMs); + this.pendingWaitPollMs = Math.max(50, pollMs); + this.lastWaitTimedOut = false; + return this.pendingWaitPollMs; + } + + /** Returns true if the most recent waitUntil() exited due to timeout rather than condition success. */ + protected final boolean didWaitTimeout() { + return lastWaitTimedOut; + } + + public final void clearWait() { + this.pendingWaitCondition = null; + } + + /** Records the current timestamp under a named timer key. */ + public final void markTimer(String key) { + timers.put(key, System.currentTimeMillis()); + } + + /** Returns true if at least ms milliseconds have elapsed since markTimer(key) (or if never marked). */ + public final boolean hasElapsed(String key, long ms) { + Long t = timers.get(key); + return t == null || (System.currentTimeMillis() - t) >= ms; + } + + public final void clearTimer(String key) { + timers.remove(key); + } + + /** + * Called when the script starts. + */ + public void onStart(PluginContext ctx) { + } + + /** + * Executed periodically on the game thread. + * @return Delay in milliseconds before next execution, or -1 to stop the script. + */ + public abstract int loop(); + + /** + * Called when the script stops. + */ + public void onStop() { + } + + public void onChatMessage(int type, String sender, String message) { + } + + public void onXpGained(int skillId, int deltaXp) { + } + + public void onAnimationChanged(int animId) { + } + + public void onGroundItemSpawned(PluginContext.GroundItemWrapper item) { + } + + public void onLogin() { + } + + public void onDisconnect() { + } + + public void onPlayerDeath() { + } + + public void onRenderOverlay(PluginGraphics g) { + } +} diff --git a/2006Scape Client/src/main/java/ClientSettings.java b/2006Scape Client/src/main/java/ClientSettings.java index 7437da0e..8b46afb2 100644 --- a/2006Scape Client/src/main/java/ClientSettings.java +++ b/2006Scape Client/src/main/java/ClientSettings.java @@ -13,6 +13,48 @@ public class ClientSettings { */ public static boolean ANDROID = false; + /** + * Flag indicating whether Modern/Resizable display mode is active. + */ + public static boolean RESIZABLE = false; + + /** + * Modern layout active: Android modern mode OR desktop -resizable when expanded beyond original 765x503 size. + */ + public static boolean isModernLayout() { + if (ANDROID) { + return RESIZABLE || VIEWPORT_WIDTH > 512; + } + return isDesktopModern(); + } + + /** + * Click routing uses touchTargetArea (Android, or desktop modern layout). + */ + public static boolean usesTouchTargets() { + return ANDROID || isDesktopModern(); + } + + /** + * Classic hard-coded tab icon hit boxes apply (fixed layout, or desktop modern after coordinate translation). + */ + public static boolean usesClassicTabHitboxes() { + return !isModernLayout() || !ANDROID; + } + + /** + * Desktop modern mode active (enabled via -resizable and window expanded past original 765x503 fixed size). + */ + public static boolean isDesktopModern() { + return !ANDROID && RESIZABLE && (ModernLayout.windowWidth > 765 || ModernLayout.windowHeight > 503); + } + + /** + * Flag indicating whether 317HD / RLHD graphics enhancements are active. + * Strictly gated for Android Mobile clients only. + */ + public static boolean HD_317 = false; + /** * Viewport dimensions for 3D rendering. * Default 512x334 in fixed mode; scaled to native widescreen in resizable mode. @@ -103,9 +145,14 @@ public class ClientSettings { /** * @QoL - * Enables A Custom Tab With Various QoL Changes + * Enables A Custom Tab With Various QoL Changes & Plugin System */ - public static boolean CUSTOM_SETTINGS_TAB = false; + public static boolean CUSTOM_SETTINGS_TAB = true; + /** + * @QoL + * Enables QoL Settings (Player Names, Item Drops, Draw Distance, Exp Tracker, etc.) + */ + public static boolean ENABLE_QOL = false; /** * @QoL * Enables Bilinear Minimap Filtering Which Smooths Out Lines And Sprites On The Minimap @@ -152,7 +199,7 @@ public class ClientSettings { */ public final static int UID = 314268572; - public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443"); - public static final BigInteger RSA_EXPONENT = new BigInteger("65537"); + public static BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443"); + public static BigInteger RSA_EXPONENT = new BigInteger("65537"); } diff --git a/2006Scape Client/src/main/java/DesktopHd317Renderer.java b/2006Scape Client/src/main/java/DesktopHd317Renderer.java new file mode 100644 index 00000000..d753b339 --- /dev/null +++ b/2006Scape Client/src/main/java/DesktopHd317Renderer.java @@ -0,0 +1,1336 @@ +import com.sun.jna.Function; +import com.sun.jna.Library; +import com.sun.jna.Memory; +import com.sun.jna.Native; +import com.sun.jna.NativeLibrary; +import com.sun.jna.Platform; +import com.sun.jna.Pointer; +import com.sun.jna.Structure; +import com.sun.jna.ptr.IntByReference; +import java.nio.Buffer; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.nio.FloatBuffer; +import java.nio.IntBuffer; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Hardware-Accelerated 317HD / RLHD OpenGL Renderer for 2006Scape Desktop Client. + * Supports: + * - Linux / macOS / ANGLE via JNA EGL 1.5 + OpenGL ES 3.0+ (with surfaceless fallback) + * - Windows via JNA WGL (opengl32.dll / gdi32.dll / user32.dll) OpenGL 3.3 Core/Compatibility + * - Pass 1: 2048x2048 Directional Sun Shadow Map Depth FBO + * - Pass 2: Main 317HD Scene FBO (3-vertex height-splatted terrain, Sobel normal mapping, + * 9-tap PCF soft shadows, 317HD water shader, dynamic point lights, distance fog) + * - Pass 3: Post-Process Bloom + Tonemapping + Zero-Copy BGRA readout to DrawingArea.pixels + */ +public final class DesktopHd317Renderer implements HD317Pipeline.HdRendererBackend { + + // OpenGL Constants + private static final int GL_DEPTH_BUFFER_BIT = 0x00000100; + private static final int GL_COLOR_BUFFER_BIT = 0x00004000; + private static final int GL_TRIANGLES = 0x0004; + private static final int GL_TRIANGLE_STRIP = 0x0005; + private static final int GL_SRC_ALPHA = 0x0302; + private static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303; + private static final int GL_NONE = 0; + private static final int GL_LEQUAL = 0x0203; + private static final int GL_DEPTH_TEST = 0x0B71; + private static final int GL_BLEND = 0x0BE2; + private static final int GL_TEXTURE_2D = 0x0DE1; + private static final int GL_UNSIGNED_BYTE = 0x1401; + private static final int GL_UNSIGNED_INT = 0x1405; + private static final int GL_FLOAT = 0x1406; + private static final int GL_DEPTH_COMPONENT = 0x1902; + private static final int GL_RGBA = 0x1908; + private static final int GL_NEAREST = 0x2600; + private static final int GL_LINEAR = 0x2601; + private static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703; + private static final int GL_TEXTURE_MAG_FILTER = 0x2800; + private static final int GL_TEXTURE_MIN_FILTER = 0x2801; + private static final int GL_TEXTURE_WRAP_S = 0x2802; + private static final int GL_TEXTURE_WRAP_T = 0x2803; + private static final int GL_REPEAT = 0x2901; + private static final int GL_POLYGON_OFFSET_FILL = 0x8037; + private static final int GL_RGBA8 = 0x8058; + private static final int GL_CLAMP_TO_EDGE = 0x812F; + private static final int GL_DEPTH_COMPONENT24 = 0x81A6; + private static final int GL_TEXTURE0 = 0x84C0; + private static final int GL_TEXTURE1 = 0x84C1; + private static final int GL_TEXTURE2 = 0x84C2; + private static final int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; + private static final int GL_TEXTURE_COMPARE_MODE = 0x884C; + private static final int GL_TEXTURE_COMPARE_FUNC = 0x884D; + private static final int GL_COMPARE_REF_TO_TEXTURE = 0x884E; + private static final int GL_ARRAY_BUFFER = 0x8892; + private static final int GL_STREAM_DRAW = 0x88E0; + private static final int GL_STATIC_DRAW = 0x88E4; + private static final int GL_FRAGMENT_SHADER = 0x8B30; + private static final int GL_VERTEX_SHADER = 0x8B31; + private static final int GL_COMPILE_STATUS = 0x8B81; + private static final int GL_LINK_STATUS = 0x8B82; + private static final int GL_TEXTURE_2D_ARRAY = 0x8C1A; + private static final int GL_FRAMEBUFFER = 0x8D40; + private static final int GL_RENDERBUFFER = 0x8D41; + private static final int GL_COLOR_ATTACHMENT0 = 0x8CE0; + private static final int GL_DEPTH_ATTACHMENT = 0x8D00; + + private int shadowMapSize = 2048; + + // JNA Interfaces for EGL + GLES3 (Linux / macOS / ANGLE) + public interface EGLLibrary extends Library { + Pointer eglGetDisplay(Pointer display_id); + Pointer eglGetPlatformDisplay(int platform, Pointer native_display, Pointer attrib_list); + boolean eglInitialize(Pointer dpy, int[] major, int[] minor); + boolean eglChooseConfig(Pointer dpy, int[] attrib_list, Pointer[] configs, int config_size, int[] num_config); + Pointer eglCreateContext(Pointer dpy, Pointer config, Pointer share_context, int[] attrib_list); + Pointer eglCreatePbufferSurface(Pointer dpy, Pointer config, int[] attrib_list); + boolean eglMakeCurrent(Pointer dpy, Pointer draw, Pointer read, Pointer ctx); + } + + public interface GLES3Library extends Library { + void glActiveTexture(int texture); + void glAttachShader(int program, int shader); + void glBindBuffer(int target, int buffer); + void glBindFramebuffer(int target, int framebuffer); + void glBindRenderbuffer(int target, int renderbuffer); + void glBindTexture(int target, int texture); + void glBindVertexArray(int array); + void glBlendFunc(int sfactor, int dfactor); + void glBufferData(int target, long size, Buffer data, int usage); + void glBufferSubData(int target, long offset, long size, Buffer data); + void glClear(int mask); + void glClearColor(float red, float green, float blue, float alpha); + void glCompileShader(int shader); + int glCreateProgram(); + int glCreateShader(int type); + void glDeleteFramebuffers(int n, int[] framebuffers); + void glDeleteProgram(int program); + void glDeleteRenderbuffers(int n, int[] renderbuffers); + void glDeleteShader(int shader); + void glDeleteTextures(int n, int[] textures); + void glDepthFunc(int func); + void glDepthMask(boolean flag); + void glDisable(int cap); + void glDisableVertexAttribArray(int index); + void glDrawArrays(int mode, int first, int count); + void glDrawBuffers(int n, int[] bufs); + void glEnable(int cap); + void glEnableVertexAttribArray(int index); + void glFramebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer); + void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level); + void glGenBuffers(int n, int[] buffers); + void glGenFramebuffers(int n, int[] framebuffers); + void glGenRenderbuffers(int n, int[] renderbuffers); + void glGenTextures(int n, int[] textures); + void glGenVertexArrays(int n, int[] arrays); + void glGenerateMipmap(int target); + void glGetProgramInfoLog(int program, int bufSize, int[] length, byte[] infoLog); + void glGetProgramiv(int program, int pname, int[] params); + void glGetShaderInfoLog(int shader, int bufSize, int[] length, byte[] infoLog); + void glGetShaderiv(int shader, int pname, int[] params); + int glGetUniformLocation(int program, String name); + void glLinkProgram(int program); + void glPolygonOffset(float factor, float units); + void glReadBuffer(int src); + void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels); + void glRenderbufferStorage(int target, int internalformat, int width, int height); + void glShaderSource(int shader, int count, String[] string, int[] length); + void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels); + void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, Buffer pixels); + void glTexParameterf(int target, int pname, float param); + void glTexParameteri(int target, int pname, int param); + void glUniform1f(int location, float v0); + void glUniform1i(int location, int v0); + void glUniform2f(int location, float v0, float v1); + void glUniform3f(int location, float v0, float v1, float v2); + void glUniform4fv(int location, int count, float[] value); + void glUniformMatrix4fv(int location, int count, boolean transpose, float[] value); + void glUseProgram(int program); + void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, Pointer pointer); + void glViewport(int x, int y, int width, int height); + } + + // JNA Interfaces for Windows WGL (opengl32.dll / gdi32.dll / user32.dll) + public static class PIXELFORMATDESCRIPTOR extends Structure { + public short nSize; + public short nVersion; + public int dwFlags; + public byte iPixelType; + public byte cColorBits; + public byte cRedBits, cRedShift, cGreenBits, cGreenShift, cBlueBits, cBlueShift, cAlphaBits, cAlphaShift; + public byte cAccumBits, cAccumRedBits, cAccumGreenBits, cAccumBlueBits, cAccumAlphaBits; + public byte cDepthBits; + public byte cStencilBits; + public byte cAuxBuffers; + public byte iLayerType; + public byte bReserved; + public int dwLayerMask, dwVisibleMask, dwDamageMask; + + @Override + protected List getFieldOrder() { + return Arrays.asList( + "nSize", "nVersion", "dwFlags", "iPixelType", "cColorBits", + "cRedBits", "cRedShift", "cGreenBits", "cGreenShift", "cBlueBits", "cBlueShift", "cAlphaBits", "cAlphaShift", + "cAccumBits", "cAccumRedBits", "cAccumGreenBits", "cAccumBlueBits", "cAccumAlphaBits", + "cDepthBits", "cStencilBits", "cAuxBuffers", "iLayerType", "bReserved", + "dwLayerMask", "dwVisibleMask", "dwDamageMask" + ); + } + } + + public interface User32Library extends Library { + Pointer CreateWindowExA(int dwExStyle, String lpClassName, String lpWindowName, int dwStyle, + int x, int y, int nWidth, int nHeight, + Pointer hWndParent, Pointer hMenu, Pointer hInstance, Pointer lpParam); + Pointer GetDC(Pointer hWnd); + } + + public interface Gdi32Library extends Library { + int ChoosePixelFormat(Pointer hdc, PIXELFORMATDESCRIPTOR ppfd); + boolean SetPixelFormat(Pointer hdc, int format, PIXELFORMATDESCRIPTOR ppfd); + } + + public interface WglLibrary extends Library { + Pointer wglCreateContext(Pointer hdc); + boolean wglMakeCurrent(Pointer hdc, Pointer hglrc); + Pointer wglGetProcAddress(String lpszProc); + } + + private final HdProceduralGenerator procGen = new HdProceduralGenerator(); + private final HdSceneUploader sceneUploader = new HdSceneUploader(); + + // Context & backend state + private EGLLibrary eglLib = null; + private GLES3Library gles = null; + private WglLibrary wglLib = null; + private NativeLibrary opengl32Lib = null; + private final Map wglFunctions = new HashMap<>(); + private boolean useDesktopGlsl330 = false; + + private Pointer eglDisplay = Pointer.NULL; + private Pointer eglContext = Pointer.NULL; + private Pointer eglSurface = Pointer.NULL; + private Pointer wglHdc = Pointer.NULL; + private Pointer wglContext = Pointer.NULL; + + private Thread boundThread = null; + private boolean glInitialized = false; + private boolean glFailed = false; + private boolean materialsInitialized = false; + + // Textures & Shader Programs + private int diffuseArrayTex = 0; + private int normalArrayTex = 0; + private int shadowProgram = 0; + private int sceneProgram = 0; + private int postProgram = 0; + private int vaoId = 0; + + // Uniform Locations - Shadow Program + private int uShadowLightViewProj = -1; + private int uShadowDiffuseArray = -1; + + // Uniform Locations - Scene Program + private int uSceneViewProj = -1; + private int uSceneLightViewProj = -1; + private int uSceneDiffuseArray = -1; + private int uSceneNormalArray = -1; + private int uSceneShadowMap = -1; + private int uSceneCameraPos = -1; + private int uSceneSunDir = -1; + private int uSceneSunColor = -1; + private int uSceneAmbientColor = -1; + private int uSceneSkyColor = -1; + private int uSceneFogColor = -1; + private int uSceneFogMin = -1; + private int uSceneFogMax = -1; + private int uSceneTime = -1; + private int uSceneShadowTexelSize = -1; + private int uSceneShadowsEnabled = -1; + private int uSceneShadowSoftPcf = -1; + private int uSceneGroundTextures = -1; + private int uSceneNormalMapping = -1; + private int uSceneWaterShader = -1; + private int uSceneSaturation = -1; + private int uSceneBrightness = -1; + private int uSceneLightCount = -1; + private int uSceneLightPosRad = -1; + private int uSceneLightColorInt = -1; + + // Uniform Locations - Post Program + private int uPostSceneTex = -1; + private int uPostTexelSize = -1; + + // GPU Buffers & Framebuffers + private final int[] terrainVbos = new int[4]; + private final int[] terrainBucketCounts = new int[4]; + private final int[][] staticOpaqueVbos = new int[4][HdSceneUploader.CHUNKS_PER_PLANE]; + private final int[][] staticOpaqueCounts = new int[4][HdSceneUploader.CHUNKS_PER_PLANE]; + private final int[][] staticTransVbos = new int[4][HdSceneUploader.CHUNKS_PER_PLANE]; + private final int[][] staticTransCounts = new int[4][HdSceneUploader.CHUNKS_PER_PLANE]; + private final int[][] uploadedChunkGen = new int[4][HdSceneUploader.CHUNKS_PER_PLANE]; + private final boolean[] chunkVisible = new boolean[HdSceneUploader.CHUNKS_PER_PLANE]; + private int uploadedTerrainGenId = -1; + private int sceneVbo = 0; + private int transVbo = 0; + private int quadVbo = 0; + private long sceneVboCapacity = 0; + private long transVboCapacity = 0; + private int shadowFbo = 0; + private int shadowDepthTex = 0; + private int sceneFbo = 0; + private int sceneColorTex = 0; + private int sceneDepthRbo = 0; + private int postFbo = 0; + private int postColorTex = 0; + + private int fboWidth = 0; + private int fboHeight = 0; + private ByteBuffer readbackByteBuffer = null; + private IntBuffer readbackIntBuffer = null; + + // Camera & Environment State + private int camX, camY, camZ, camPitch, camYaw; + private final float[] viewProjMatrix = new float[16]; + private final float[] lightViewMatrix = new float[16]; + private final float[] lightProjMatrix = new float[16]; + private final float[] lightViewProjMatrix = new float[16]; + + private final float[] sunDir = {-0.52f, -0.74f, -0.42f}; + private final float[] sunColor = {0.88f, 0.84f, 0.76f}; + private final float[] ambientColor = {0.46f, 0.52f, 0.62f}; + private final float[] skyColor = {0.62f, 0.78f, 0.94f}; + private final float[] fogColor = {0.68f, 0.81f, 0.94f}; + private float fogMin = 2100.0f; + private float fogMax = 3500.0f; + + private static final int MAX_ACTIVE_LIGHTS = 16; + private final float[] activeLightPosRad = new float[MAX_ACTIVE_LIGHTS * 4]; + private final float[] activeLightColorInt = new float[MAX_ACTIVE_LIGHTS * 4]; + private int activeLightCount = 0; + + private final long startTimeMs = System.currentTimeMillis(); + private boolean sceneLoaded = false; + private Game lastGame = null; + private ObjectManager lastObjectManager = null; + private WorldController lastWorldController = null; + + public DesktopHd317Renderer() { + float len = (float) Math.sqrt(sunDir[0] * sunDir[0] + sunDir[1] * sunDir[1] + sunDir[2] * sunDir[2]); + sunDir[0] /= len; + sunDir[1] /= len; + sunDir[2] /= len; + } + + @Override + public boolean isGpuReady() { + return !glFailed; + } + + @Override + public synchronized void onSceneLoad(Game game, ObjectManager objectManager, WorldController worldController) { + this.lastGame = game; + this.lastObjectManager = objectManager; + this.lastWorldController = worldController; + try { + procGen.generateSceneData(game, objectManager, worldController); + sceneUploader.setSceneContext(procGen, worldController); + sceneLoaded = true; + } catch (Throwable t) { + t.printStackTrace(); + } + } + + @Override + public void beginFrame(Game game, int xCam, int yCam, int zCam, int pitch, int yaw) { + if (glFailed) return; + + if (!sceneLoaded && game != null && game.worldController != null) { + procGen.generateSceneData(game, lastObjectManager, game.worldController); + sceneUploader.setSceneContext(procGen, game.worldController); + sceneLoaded = true; + } + + this.camX = xCam; + this.camY = yCam; + this.camZ = zCam; + this.camPitch = pitch; + this.camYaw = yaw; + + updateEnvironmentProfile(game); + sceneUploader.resetFrame(); + } + + @Override + public void drawSimpleTile(Class43 tile, int plane, int tileX, int tileZ) { + if (glFailed) return; + sceneUploader.appendSimpleTile(tile, plane, tileX, tileZ); + } + + @Override + public void drawShapedTile(Class40 tile, int plane, int tileX, int tileZ) { + if (glFailed) return; + sceneUploader.appendShapedTile(tile, plane, tileX, tileZ); + } + + @Override + public void drawModel(Model model, int orientation, int sinPitch, int cosPitch, int sinYaw, int cosYaw, + int relX, int relY, int relZ, int uid) { + if (glFailed) return; + sceneUploader.appendModel(model, orientation, relX, relY, relZ, uid); + } + + @Override + public void endFrame(int[] dstPixels, int width, int height) { + if (glFailed || dstPixels == null || width <= 0 || height <= 0) return; + if (dstPixels.length < width * height) return; + + if (!ensureGlContext()) { + return; + } + + if (!materialsInitialized) { + initMaterials(); + } + + ensureFramebuffers(width, height); + + this.camX = WorldController.anInt455; + this.camY = WorldController.anInt456; + this.camZ = WorldController.anInt457; + + if (vaoId != 0) { + gles.glBindVertexArray(vaoId); + } + + sceneUploader.rebuildDirtyChunks(); + + int curTerrainGen = sceneUploader.getTerrainGenerationId(); + if (curTerrainGen != uploadedTerrainGenId) { + for (int b = 0; b < 4; b++) { + int cnt = sceneUploader.getStaticTerrainVertexCount(b); + terrainBucketCounts[b] = cnt; + if (cnt > 0) { + FloatBuffer tb = sceneUploader.prepareStaticTerrainBucket(b); + if (tb != null) { + gles.glBindBuffer(GL_ARRAY_BUFFER, terrainVbos[b]); + gles.glBufferData(GL_ARRAY_BUFFER, (long) cnt * HdSceneUploader.BYTES_PER_VERTEX, tb, GL_STATIC_DRAW); + } + } + } + uploadedTerrainGenId = curTerrainGen; + } + + for (int b = 0; b < 4; b++) { + for (int c = 0; c < HdSceneUploader.CHUNKS_PER_PLANE; c++) { + int gen = sceneUploader.getStaticSceneryChunkGen(b, c); + if (gen != uploadedChunkGen[b][c]) { + uploadedChunkGen[b][c] = gen; + int soCnt = sceneUploader.getStaticSceneryOpaqueCount(b, c); + staticOpaqueCounts[b][c] = soCnt; + if (soCnt > 0) { + FloatBuffer sb = sceneUploader.prepareStaticBuffer(sceneUploader.getStaticSceneryOpaqueBucket(b, c), soCnt); + if (sb != null) { + gles.glBindBuffer(GL_ARRAY_BUFFER, staticOpaqueVbos[b][c]); + gles.glBufferData(GL_ARRAY_BUFFER, (long) soCnt * HdSceneUploader.BYTES_PER_VERTEX, sb, GL_STATIC_DRAW); + } + } + int stCnt = sceneUploader.getStaticSceneryTransCount(b, c); + staticTransCounts[b][c] = stCnt; + if (stCnt > 0) { + FloatBuffer stb = sceneUploader.prepareStaticBuffer(sceneUploader.getStaticSceneryTransBucket(b, c), stCnt); + if (stb != null) { + gles.glBindBuffer(GL_ARRAY_BUFFER, staticTransVbos[b][c]); + gles.glBufferData(GL_ARRAY_BUFFER, (long) stCnt * HdSceneUploader.BYTES_PER_VERTEX, stb, GL_STATIC_DRAW); + } + } + } + } + } + + int opaqueCount = sceneUploader.getOpaqueVertexCount(); + int transCount = sceneUploader.getTransVertexCount(); + if (opaqueCount > 0) { + FloatBuffer vb = sceneUploader.prepareOpaqueBuffer(); + sceneVboCapacity = uploadStreamVbo(sceneVbo, sceneVboCapacity, (long) opaqueCount * HdSceneUploader.BYTES_PER_VERTEX, vb); + } + if (transCount > 0) { + FloatBuffer tvb = sceneUploader.prepareTransBuffer(); + transVboCapacity = uploadStreamVbo(transVbo, transVboCapacity, (long) transCount * HdSceneUploader.BYTES_PER_VERTEX, tvb); + } + + computeCameraAndLightMatrices(width, height); + selectActiveLights(); + + boolean shadowsOn = HD317Pipeline.cfgShadowsEnabled; + int desiredShadowSize = HD317Pipeline.cfgShadowResolution; + if (shadowsOn && desiredShadowSize != shadowMapSize && (desiredShadowSize == 512 || desiredShadowSize == 1024 || desiredShadowSize == 2048)) { + shadowMapSize = desiredShadowSize; + gles.glBindTexture(GL_TEXTURE_2D, shadowDepthTex); + gles.glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24, + shadowMapSize, shadowMapSize, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, null); + } + + int maxPlane = WorldController.hdMaxPlane; + float maxChunkDist = fogMax + HdSceneUploader.CHUNK_RADIUS; + float maxChunkDistSq = maxChunkDist * maxChunkDist; + boolean hasStaticOpaque = false; + boolean hasStaticTrans = false; + for (int c = 0; c < HdSceneUploader.CHUNKS_PER_PLANE; c++) { + int cx = c / HdSceneUploader.CHUNKS_PER_AXIS; + int cz = c % HdSceneUploader.CHUNKS_PER_AXIS; + float centerX = (cx * HdSceneUploader.CHUNK_TILE_SIZE + HdSceneUploader.CHUNK_TILE_SIZE * 0.5f) * 128.0f; + float centerZ = (cz * HdSceneUploader.CHUNK_TILE_SIZE + HdSceneUploader.CHUNK_TILE_SIZE * 0.5f) * 128.0f; + float dx = centerX - camX; + float dz = centerZ - camZ; + boolean vis = (dx * dx + dz * dz) <= maxChunkDistSq; + chunkVisible[c] = vis; + if (vis) { + for (int b = 0; b <= maxPlane; b++) { + if (staticOpaqueCounts[b][c] > 0) hasStaticOpaque = true; + if (staticTransCounts[b][c] > 0) hasStaticTrans = true; + } + } + } + + // ===================================================================== + // PASS 1: Directional Sun Shadow Map Depth Pass (Models Only) + // ===================================================================== + if (shadowsOn && (opaqueCount > 0 || hasStaticOpaque)) { + gles.glBindFramebuffer(GL_FRAMEBUFFER, shadowFbo); + gles.glViewport(0, 0, shadowMapSize, shadowMapSize); + gles.glEnable(GL_DEPTH_TEST); + gles.glDepthFunc(GL_LEQUAL); + gles.glDepthMask(true); + gles.glDisable(GL_BLEND); + gles.glEnable(GL_POLYGON_OFFSET_FILL); + gles.glPolygonOffset(1.5f, 3.0f); + gles.glClear(GL_DEPTH_BUFFER_BIT); + + gles.glUseProgram(shadowProgram); + gles.glUniformMatrix4fv(uShadowLightViewProj, 1, false, lightViewProjMatrix); + + gles.glActiveTexture(GL_TEXTURE0); + gles.glBindTexture(GL_TEXTURE_2D_ARRAY, diffuseArrayTex); + gles.glUniform1i(uShadowDiffuseArray, 0); + + for (int b = 0; b <= maxPlane; b++) { + for (int c = 0; c < HdSceneUploader.CHUNKS_PER_PLANE; c++) { + if (!chunkVisible[c]) continue; + int soCnt = staticOpaqueCounts[b][c]; + if (soCnt > 0) { + gles.glBindBuffer(GL_ARRAY_BUFFER, staticOpaqueVbos[b][c]); + gles.glEnableVertexAttribArray(0); + gles.glVertexAttribPointer(0, 3, GL_FLOAT, false, HdSceneUploader.BYTES_PER_VERTEX, Pointer.createConstant(0)); + gles.glEnableVertexAttribArray(2); + gles.glVertexAttribPointer(2, 2, GL_FLOAT, false, HdSceneUploader.BYTES_PER_VERTEX, Pointer.createConstant(6 * 4)); + gles.glEnableVertexAttribArray(4); + gles.glVertexAttribPointer(4, 4, GL_FLOAT, false, HdSceneUploader.BYTES_PER_VERTEX, Pointer.createConstant(12 * 4)); + gles.glDrawArrays(GL_TRIANGLES, 0, soCnt); + } + } + } + if (opaqueCount > 0) { + gles.glBindBuffer(GL_ARRAY_BUFFER, sceneVbo); + gles.glEnableVertexAttribArray(0); + gles.glVertexAttribPointer(0, 3, GL_FLOAT, false, HdSceneUploader.BYTES_PER_VERTEX, Pointer.createConstant(0)); + gles.glEnableVertexAttribArray(2); + gles.glVertexAttribPointer(2, 2, GL_FLOAT, false, HdSceneUploader.BYTES_PER_VERTEX, Pointer.createConstant(6 * 4)); + gles.glEnableVertexAttribArray(4); + gles.glVertexAttribPointer(4, 4, GL_FLOAT, false, HdSceneUploader.BYTES_PER_VERTEX, Pointer.createConstant(12 * 4)); + gles.glDrawArrays(GL_TRIANGLES, 0, opaqueCount); + } + + gles.glDisableVertexAttribArray(0); + gles.glDisableVertexAttribArray(2); + gles.glDisableVertexAttribArray(4); + gles.glDisable(GL_POLYGON_OFFSET_FILL); + } + + // ===================================================================== + // PASS 2: Main 317HD Scene Render Pass (Terrain + Models + Translucent) + // ===================================================================== + gles.glBindFramebuffer(GL_FRAMEBUFFER, sceneFbo); + gles.glViewport(0, 0, width, height); + gles.glClearColor(fogColor[0], fogColor[1], fogColor[2], 0.0f); + gles.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + gles.glEnable(GL_DEPTH_TEST); + gles.glDepthFunc(GL_LEQUAL); + gles.glDepthMask(true); + + boolean hasTerrain = false; + for (int b = 0; b <= maxPlane; b++) { + if (terrainBucketCounts[b] > 0) { hasTerrain = true; break; } + } + + if (hasTerrain || hasStaticOpaque || hasStaticTrans || opaqueCount > 0 || transCount > 0) { + gles.glEnable(GL_BLEND); + gles.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + + gles.glUseProgram(sceneProgram); + gles.glUniformMatrix4fv(uSceneViewProj, 1, false, viewProjMatrix); + gles.glUniformMatrix4fv(uSceneLightViewProj, 1, false, lightViewProjMatrix); + gles.glUniform3f(uSceneCameraPos, (float) camX, (float) camY, (float) camZ); + gles.glUniform3f(uSceneSunDir, sunDir[0], sunDir[1], sunDir[2]); + gles.glUniform3f(uSceneSunColor, sunColor[0], sunColor[1], sunColor[2]); + gles.glUniform3f(uSceneAmbientColor, ambientColor[0], ambientColor[1], ambientColor[2]); + gles.glUniform3f(uSceneSkyColor, skyColor[0], skyColor[1], skyColor[2]); + gles.glUniform3f(uSceneFogColor, fogColor[0], fogColor[1], fogColor[2]); + gles.glUniform1f(uSceneFogMin, HD317Pipeline.cfgAtmosphericFog ? fogMin : 999999.0f); + gles.glUniform1f(uSceneFogMax, HD317Pipeline.cfgAtmosphericFog ? fogMax : 1000000.0f); + float timeSec = (System.currentTimeMillis() - startTimeMs) * 0.001f; + gles.glUniform1f(uSceneTime, timeSec); + gles.glUniform1f(uSceneShadowTexelSize, 1.0f / shadowMapSize); + gles.glUniform1i(uSceneShadowsEnabled, shadowsOn ? 1 : 0); + gles.glUniform1i(uSceneShadowSoftPcf, HD317Pipeline.cfgShadowSoftPcf ? 1 : 0); + gles.glUniform1i(uSceneGroundTextures, HD317Pipeline.cfgGroundTextures ? 1 : 0); + gles.glUniform1i(uSceneNormalMapping, HD317Pipeline.cfgNormalMapping ? 1 : 0); + gles.glUniform1i(uSceneWaterShader, HD317Pipeline.cfgWaterShader ? 1 : 0); + gles.glUniform1f(uSceneSaturation, HD317Pipeline.cfgSaturation); + gles.glUniform1f(uSceneBrightness, HD317Pipeline.cfgBrightness); + + gles.glUniform1i(uSceneLightCount, activeLightCount); + if (activeLightCount > 0) { + gles.glUniform4fv(uSceneLightPosRad, activeLightCount, activeLightPosRad); + gles.glUniform4fv(uSceneLightColorInt, activeLightCount, activeLightColorInt); + } + + gles.glActiveTexture(GL_TEXTURE0); + gles.glBindTexture(GL_TEXTURE_2D_ARRAY, diffuseArrayTex); + gles.glUniform1i(uSceneDiffuseArray, 0); + + gles.glActiveTexture(GL_TEXTURE1); + gles.glBindTexture(GL_TEXTURE_2D_ARRAY, normalArrayTex); + gles.glUniform1i(uSceneNormalArray, 1); + + gles.glActiveTexture(GL_TEXTURE2); + gles.glBindTexture(GL_TEXTURE_2D, shadowDepthTex); + gles.glUniform1i(uSceneShadowMap, 2); + + gles.glDepthMask(true); + for (int b = 0; b <= maxPlane; b++) { + int cnt = terrainBucketCounts[b]; + if (cnt > 0) { + gles.glBindBuffer(GL_ARRAY_BUFFER, terrainVbos[b]); + bindSceneVertexAttribs(); + gles.glDrawArrays(GL_TRIANGLES, 0, cnt); + } + } + + for (int b = 0; b <= maxPlane; b++) { + for (int c = 0; c < HdSceneUploader.CHUNKS_PER_PLANE; c++) { + if (!chunkVisible[c]) continue; + int soCnt = staticOpaqueCounts[b][c]; + if (soCnt > 0) { + gles.glBindBuffer(GL_ARRAY_BUFFER, staticOpaqueVbos[b][c]); + bindSceneVertexAttribs(); + gles.glDrawArrays(GL_TRIANGLES, 0, soCnt); + } + } + } + + if (opaqueCount > 0) { + gles.glBindBuffer(GL_ARRAY_BUFFER, sceneVbo); + bindSceneVertexAttribs(); + gles.glDepthMask(true); + gles.glDrawArrays(GL_TRIANGLES, 0, opaqueCount); + } + + for (int b = 0; b <= maxPlane; b++) { + for (int c = 0; c < HdSceneUploader.CHUNKS_PER_PLANE; c++) { + if (!chunkVisible[c]) continue; + int stCnt = staticTransCounts[b][c]; + if (stCnt > 0) { + gles.glBindBuffer(GL_ARRAY_BUFFER, staticTransVbos[b][c]); + bindSceneVertexAttribs(); + gles.glDepthMask(false); + gles.glDrawArrays(GL_TRIANGLES, 0, stCnt); + gles.glDepthMask(true); + } + } + } + + if (transCount > 0) { + gles.glBindBuffer(GL_ARRAY_BUFFER, transVbo); + bindSceneVertexAttribs(); + gles.glDepthMask(false); + gles.glDrawArrays(GL_TRIANGLES, 0, transCount); + gles.glDepthMask(true); + } + + unbindSceneVertexAttribs(); + } + + // ===================================================================== + // PASS 3: Post-Process Bloom + Tonemap + Zero-Copy BGRA Readout + // ===================================================================== + gles.glBindFramebuffer(GL_FRAMEBUFFER, postFbo); + gles.glViewport(0, 0, width, height); + gles.glDisable(GL_DEPTH_TEST); + gles.glDisable(GL_BLEND); + + gles.glUseProgram(postProgram); + gles.glActiveTexture(GL_TEXTURE0); + gles.glBindTexture(GL_TEXTURE_2D, sceneColorTex); + gles.glUniform1i(uPostSceneTex, 0); + gles.glUniform2f(uPostTexelSize, 1.0f / width, 1.0f / height); + + gles.glBindBuffer(GL_ARRAY_BUFFER, quadVbo); + gles.glEnableVertexAttribArray(0); + gles.glVertexAttribPointer(0, 2, GL_FLOAT, false, 8, Pointer.createConstant(0)); + gles.glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); + gles.glDisableVertexAttribArray(0); + + ((Buffer) readbackByteBuffer).position(0); + gles.glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, readbackByteBuffer); + ((Buffer) readbackIntBuffer).position(0); + readbackIntBuffer.get(dstPixels, 0, width * height); + } + + @Override + public void onStaticChunkInvalidated(int tileX, int tileZ) { + sceneUploader.invalidateChunk(tileX, tileZ); + } + + @Override + public void onToggle(boolean enabled) { + if (enabled && !sceneLoaded && lastWorldController != null) { + onSceneLoad(lastGame, lastObjectManager, lastWorldController); + } + } + + private long uploadStreamVbo(int vbo, long currentCapacity, long requiredBytes, FloatBuffer buf) { + gles.glBindBuffer(GL_ARRAY_BUFFER, vbo); + if (requiredBytes > currentCapacity) { + long newCap = Math.max(requiredBytes, currentCapacity + (currentCapacity >> 1)); + gles.glBufferData(GL_ARRAY_BUFFER, newCap, null, GL_STREAM_DRAW); + currentCapacity = newCap; + } + gles.glBufferSubData(GL_ARRAY_BUFFER, 0, requiredBytes, buf); + return currentCapacity; + } + + private void bindSceneVertexAttribs() { + final int stride = HdSceneUploader.BYTES_PER_VERTEX; + gles.glEnableVertexAttribArray(0); + gles.glVertexAttribPointer(0, 3, GL_FLOAT, false, stride, Pointer.createConstant(0)); + gles.glEnableVertexAttribArray(1); + gles.glVertexAttribPointer(1, 3, GL_FLOAT, false, stride, Pointer.createConstant(3 * 4)); + gles.glEnableVertexAttribArray(2); + gles.glVertexAttribPointer(2, 2, GL_FLOAT, false, stride, Pointer.createConstant(6 * 4)); + gles.glEnableVertexAttribArray(3); + gles.glVertexAttribPointer(3, 4, GL_FLOAT, false, stride, Pointer.createConstant(8 * 4)); + gles.glEnableVertexAttribArray(4); + gles.glVertexAttribPointer(4, 4, GL_FLOAT, false, stride, Pointer.createConstant(12 * 4)); + } + + private void unbindSceneVertexAttribs() { + gles.glDisableVertexAttribArray(0); + gles.glDisableVertexAttribArray(1); + gles.glDisableVertexAttribArray(2); + gles.glDisableVertexAttribArray(3); + gles.glDisableVertexAttribArray(4); + } + + private void computeCameraAndLightMatrices(int width, int height) { + double yawRad = (camYaw & 2047) * (2.0 * Math.PI / 2048.0); + double pitchRad = (camPitch & 2047) * (2.0 * Math.PI / 2048.0); + + float sinY = (float) Math.sin(yawRad); + float cosY = (float) Math.cos(yawRad); + float sinP = (float) Math.sin(pitchRad); + float cosP = (float) Math.cos(pitchRad); + + float r0x = cosY, r0y = 0.0f, r0z = sinY; + float r1x = sinP * sinY, r1y = cosP, r1z = -sinP * cosY; + float r2x = -cosP * sinY, r2y = sinP, r2z = cosP * cosY; + + float tx = -(r0x * camX + r0y * camY + r0z * camZ); + float ty = -(r1x * camX + r1y * camY + r1z * camZ); + float tz = -(r2x * camX + r2y * camY + r2z * camZ); + + float cx = Texture.textureInt1; + float cy = Texture.textureInt2; + float fov = 512.0f; + + float sx = (2.0f * fov) / width; + float ox = (2.0f * cx / width) - 1.0f; + float sy = (-2.0f * fov) / height; + float oy = 1.0f - (2.0f * cy / height); + + float near = 50.0f; + float far = Math.max(5400.0f, fogMax + 600.0f); + float sz = (far + near) / (far - near); + float oz = -(2.0f * far * near) / (far - near); + + viewProjMatrix[0] = sx * r0x + ox * r2x; + viewProjMatrix[4] = sx * r0y + ox * r2y; + viewProjMatrix[8] = sx * r0z + ox * r2z; + viewProjMatrix[12] = sx * tx + ox * tz; + + viewProjMatrix[1] = sy * r1x + oy * r2x; + viewProjMatrix[5] = sy * r1y + oy * r2y; + viewProjMatrix[9] = sy * r1z + oy * r2z; + viewProjMatrix[13] = sy * ty + oy * tz; + + viewProjMatrix[2] = sz * r2x; + viewProjMatrix[6] = sz * r2y; + viewProjMatrix[10] = sz * r2z; + viewProjMatrix[14] = sz * tz + oz; + + viewProjMatrix[3] = r2x; + viewProjMatrix[7] = r2y; + viewProjMatrix[11] = r2z; + viewProjMatrix[15] = tz; + + float focusDist = 800.0f + Math.max(0, Game.zoom) * 140.0f; + float centerX = (float) Math.floor((camX + r2x * focusDist) / 16.0f) * 16.0f; + float centerY = (float) Math.floor((camY + r2y * focusDist) / 16.0f) * 16.0f; + float centerZ = (float) Math.floor((camZ + r2z * focusDist) / 16.0f) * 16.0f; + + float eyeX = centerX + sunDir[0] * 3600.0f; + float eyeY = centerY + sunDir[1] * 3600.0f; + float eyeZ = centerZ + sunDir[2] * 3600.0f; + + HD317Pipeline.setLookAtM(lightViewMatrix, 0, eyeX, eyeY, eyeZ, centerX, centerY, centerZ, 0.0f, -1.0f, 0.0f); + float orthoHalf = 2600.0f + Math.max(0, Game.zoom) * 180.0f; + HD317Pipeline.orthoM(lightProjMatrix, 0, -orthoHalf, orthoHalf, -orthoHalf, orthoHalf, 100.0f, 7200.0f); + HD317Pipeline.multiplyMM(lightViewProjMatrix, 0, lightProjMatrix, 0, lightViewMatrix, 0); + } + + private void selectActiveLights() { + activeLightCount = 0; + if (!HD317Pipeline.cfgDynamicLights) return; + int total = procGen.sceneLightCount; + if (total <= 0) return; + + float timeSec = (System.currentTimeMillis() - startTimeMs) * 0.001f; + float flicker = 0.94f + 0.06f * (float) Math.sin(timeSec * 9.0); + + for (int i = 0; i < total && activeLightCount < MAX_ACTIVE_LIGHTS; i++) { + int src = i * 4; + float lx = procGen.sceneLightPosRad[src]; + float ly = procGen.sceneLightPosRad[src + 1]; + float lz = procGen.sceneLightPosRad[src + 2]; + float dx = lx - camX; + float dz = lz - camZ; + if (dx * dx + dz * dz < 3200.0f * 3200.0f) { + int dst = activeLightCount * 4; + activeLightPosRad[dst] = lx; + activeLightPosRad[dst + 1] = ly; + activeLightPosRad[dst + 2] = lz; + activeLightPosRad[dst + 3] = procGen.sceneLightPosRad[src + 3]; + + activeLightColorInt[dst] = procGen.sceneLightColorInt[src]; + activeLightColorInt[dst + 1] = procGen.sceneLightColorInt[src + 1]; + activeLightColorInt[dst + 2] = procGen.sceneLightColorInt[src + 2]; + activeLightColorInt[dst + 3] = procGen.sceneLightColorInt[src + 3] * flicker; + activeLightCount++; + } + } + } + + private void updateEnvironmentProfile(Game game) { + float pX = 52.0f * 128.0f; + float pZ = 52.0f * 128.0f; + if (game != null && game.myPlayer != null) { + pX = game.myPlayer.x; + pZ = game.myPlayer.y; + } + float camDistToPlayer = (float) Math.hypot(camX - pX, camZ - pZ); + + float baseDist = WorldController.drawDistance * 144.0f; + fogMax = Math.max(4800.0f, baseDist + camDistToPlayer + Math.max(0, Game.zoom) * 200.0f); + fogMin = fogMax * 0.75f; + + int worldX = 3222; + int worldY = 3218; + if (game != null && game.myPlayer != null) { + worldX = game.baseX + game.myPlayer.smallX[0]; + worldY = game.baseY + game.myPlayer.smallY[0]; + } + + if (worldY >= 6000) { + if ((worldX >= 2360 && worldX <= 2500 && worldY >= 5000 && worldY <= 5200) + || (worldX >= 2800 && worldX <= 2900 && worldY >= 9500)) { + setColors(1.10f, 0.55f, 0.28f, 0.52f, 0.24f, 0.16f, 0.34f, 0.12f, 0.06f); + fogMin = fogMax * 0.55f; + } else { + setColors(0.75f, 0.74f, 0.72f, 0.38f, 0.42f, 0.50f, 0.10f, 0.12f, 0.16f); + fogMin = fogMax * 0.60f; + } + } else if (worldY >= 3520 && worldY <= 4000) { + setColors(0.82f, 0.74f, 0.68f, 0.44f, 0.40f, 0.42f, 0.25f, 0.20f, 0.20f); + } else if (worldX >= 3400 && worldX <= 3600 && worldY >= 3150 && worldY <= 3550) { + setColors(0.78f, 0.84f, 0.72f, 0.38f, 0.48f, 0.42f, 0.22f, 0.28f, 0.23f); + } else { + setColors(1.12f, 1.01f, 0.86f, 0.48f, 0.57f, 0.70f, 0.66f, 0.79f, 0.92f); + } + } + + private void setColors(float sr, float sg, float sb, float ar, float ag, float ab, float fr, float fg, float fb) { + sunColor[0] = sr; sunColor[1] = sg; sunColor[2] = sb; + ambientColor[0] = ar; ambientColor[1] = ag; ambientColor[2] = ab; + fogColor[0] = fr; fogColor[1] = fg; fogColor[2] = fb; + skyColor[0] = fr; skyColor[1] = fg; skyColor[2] = fb; + } + + private boolean ensureGlContext() { + Thread current = Thread.currentThread(); + if (glInitialized && boundThread == current) { + return true; + } + try { + if (Platform.isWindows()) { + if (!ensureWglContext()) { + glFailed = true; + return false; + } + } else { + if (!ensureEglContext()) { + glFailed = true; + return false; + } + } + + boundThread = current; + if (!glInitialized) { + initGlResources(); + glInitialized = !glFailed; + } + return glInitialized; + } catch (Throwable t) { + t.printStackTrace(); + glFailed = true; + return false; + } + } + + private boolean ensureEglContext() { + if (eglLib == null) { + eglLib = (EGLLibrary) Native.loadLibrary("EGL", EGLLibrary.class); + gles = (GLES3Library) Native.loadLibrary("GLESv2", GLES3Library.class); + useDesktopGlsl330 = false; + } + + if (eglDisplay == Pointer.NULL) { + int[] major = new int[1]; + int[] minor = new int[1]; + + Pointer dpy = eglLib.eglGetDisplay(Pointer.NULL); + boolean ok = (dpy != Pointer.NULL) && eglLib.eglInitialize(dpy, major, minor); + if (!ok) { + // Fallback to EGL_PLATFORM_SURFACELESS_MESA (0x31DD) + dpy = eglLib.eglGetPlatformDisplay(0x31DD, Pointer.NULL, Pointer.NULL); + ok = (dpy != Pointer.NULL) && eglLib.eglInitialize(dpy, major, minor); + } + if (!ok) { + return false; + } + eglDisplay = dpy; + + int[] configAttribs = { + 0x3040 /* EGL_RENDERABLE_TYPE */, 0x0040 /* EGL_OPENGL_ES3_BIT_KHR */, + 0x3033 /* EGL_SURFACE_TYPE */, 0x0001 /* EGL_PBUFFER_BIT */, + 0x3024 /* EGL_RED_SIZE */, 8, + 0x3023 /* EGL_GREEN_SIZE */, 8, + 0x3022 /* EGL_BLUE_SIZE */, 8, + 0x3021 /* EGL_ALPHA_SIZE */, 8, + 0x3025 /* EGL_DEPTH_SIZE */, 24, + 0x3038 /* EGL_NONE */ + }; + Pointer[] configs = new Pointer[1]; + int[] numConfigs = new int[1]; + if (!eglLib.eglChooseConfig(eglDisplay, configAttribs, configs, 1, numConfigs) || numConfigs[0] == 0) { + int[] fallbackAttribs = { + 0x3040 /* EGL_RENDERABLE_TYPE */, 0x0040 /* EGL_OPENGL_ES3_BIT_KHR */, + 0x3024 /* EGL_RED_SIZE */, 8, + 0x3023 /* EGL_GREEN_SIZE */, 8, + 0x3022 /* EGL_BLUE_SIZE */, 8, + 0x3025 /* EGL_DEPTH_SIZE */, 24, + 0x3038 /* EGL_NONE */ + }; + if (!eglLib.eglChooseConfig(eglDisplay, fallbackAttribs, configs, 1, numConfigs) || numConfigs[0] == 0) { + return false; + } + } + + int[] ctxAttribs = { + 0x3098 /* EGL_CONTEXT_CLIENT_VERSION */, 3, + 0x3038 /* EGL_NONE */ + }; + eglContext = eglLib.eglCreateContext(eglDisplay, configs[0], Pointer.NULL, ctxAttribs); + if (eglContext == Pointer.NULL) { + return false; + } + + int[] pbufAttribs = { + 0x3057 /* EGL_WIDTH */, 16, + 0x3056 /* EGL_HEIGHT */, 16, + 0x3038 /* EGL_NONE */ + }; + eglSurface = eglLib.eglCreatePbufferSurface(eglDisplay, configs[0], pbufAttribs); + } + + Pointer surf = (eglSurface != null) ? eglSurface : Pointer.NULL; + if (!eglLib.eglMakeCurrent(eglDisplay, surf, surf, eglContext)) { + if (!eglLib.eglMakeCurrent(eglDisplay, Pointer.NULL, Pointer.NULL, eglContext)) { + return false; + } + } + return true; + } + + private boolean ensureWglContext() { + if (wglLib == null) { + User32Library user32 = (User32Library) Native.loadLibrary("user32", User32Library.class); + Gdi32Library gdi32 = (Gdi32Library) Native.loadLibrary("gdi32", Gdi32Library.class); + wglLib = (WglLibrary) Native.loadLibrary("opengl32", WglLibrary.class); + opengl32Lib = NativeLibrary.getInstance("opengl32"); + useDesktopGlsl330 = true; + + Pointer hwnd = user32.CreateWindowExA(0, "STATIC", "2006Scape317HD", 0, 0, 0, 16, 16, + Pointer.NULL, Pointer.NULL, Pointer.NULL, Pointer.NULL); + if (hwnd == Pointer.NULL) return false; + wglHdc = user32.GetDC(hwnd); + if (wglHdc == Pointer.NULL) return false; + + PIXELFORMATDESCRIPTOR pfd = new PIXELFORMATDESCRIPTOR(); + pfd.nSize = (short) pfd.size(); + pfd.nVersion = 1; + pfd.dwFlags = 0x00000004 /* PFD_DRAW_TO_WINDOW */ | 0x00000020 /* PFD_SUPPORT_OPENGL */ | 0x00000001 /* PFD_DOUBLEBUFFER */; + pfd.iPixelType = 0 /* PFD_TYPE_RGBA */; + pfd.cColorBits = 32; + pfd.cDepthBits = 24; + pfd.write(); + + int pf = gdi32.ChoosePixelFormat(wglHdc, pfd); + if (pf == 0 || !gdi32.SetPixelFormat(wglHdc, pf, pfd)) { + return false; + } + + Pointer baseCtx = wglLib.wglCreateContext(wglHdc); + if (baseCtx == Pointer.NULL || !wglLib.wglMakeCurrent(wglHdc, baseCtx)) { + return false; + } + wglContext = baseCtx; + + Pointer createAttribsPtr = wglLib.wglGetProcAddress("wglCreateContextAttribsARB"); + if (createAttribsPtr != null && Pointer.nativeValue(createAttribsPtr) != 0) { + Function createAttribs = Function.getFunction(createAttribsPtr, Function.ALT_CONVENTION); + int[] attribs = { + 0x2091 /* WGL_CONTEXT_MAJOR_VERSION_ARB */, 3, + 0x2092 /* WGL_CONTEXT_MINOR_VERSION_ARB */, 3, + 0 + }; + Pointer coreCtx = (Pointer) createAttribs.invoke(Pointer.class, new Object[]{wglHdc, Pointer.NULL, attribs}); + if (coreCtx != null && Pointer.nativeValue(coreCtx) != 0) { + wglLib.wglMakeCurrent(wglHdc, coreCtx); + wglContext = coreCtx; + } + } + + gles = createWglGlesProxy(); + } + return wglLib.wglMakeCurrent(wglHdc, wglContext); + } + + private Function getWglFunc(String name) { + Function f = wglFunctions.get(name); + if (f != null) return f; + Pointer p = wglLib.wglGetProcAddress(name); + if (p != null && Pointer.nativeValue(p) != 0) { + f = Function.getFunction(p, Function.ALT_CONVENTION); + } else { + f = opengl32Lib.getFunction(name, Function.ALT_CONVENTION); + } + wglFunctions.put(name, f); + return f; + } + + private GLES3Library createWglGlesProxy() { + return (GLES3Library) java.lang.reflect.Proxy.newProxyInstance( + GLES3Library.class.getClassLoader(), + new Class[]{GLES3Library.class}, + (proxy, method, args) -> { + String name = method.getName(); + if ("glShaderSource".equals(name)) { + int shader = (Integer) args[0]; + String[] strs = (String[]) args[2]; + byte[] bytes = (strs[0] + "\0").getBytes("UTF-8"); + Memory mem = new Memory(bytes.length); + mem.write(0, bytes, 0, bytes.length); + Memory ptrArray = new Memory(Native.POINTER_SIZE); + ptrArray.setPointer(0, mem); + getWglFunc(name).invokeVoid(new Object[]{shader, 1, ptrArray, Pointer.NULL}); + return null; + } + Function fn = getWglFunc(name); + Class ret = method.getReturnType(); + if (ret == void.class || ret == Void.class) { + fn.invokeVoid(args); + return null; + } else if (ret == int.class || ret == Integer.class) { + return fn.invokeInt(args); + } + return fn.invoke(ret, args); + } + ); + } + + private void initMaterials() { + if (materialsInitialized) return; + + final int size = HdMaterial.TEX_SIZE; + final int layers = HdMaterial.LAYER_COUNT; + final int layerBytes = size * size * 4; + + ByteBuffer diffuseBuf = ByteBuffer.allocateDirect(layers * layerBytes).order(ByteOrder.nativeOrder()); + ByteBuffer normalBuf = ByteBuffer.allocateDirect(layers * layerBytes).order(ByteOrder.nativeOrder()); + + HdMaterial.populateTextureBuffers(diffuseBuf, normalBuf); + + int[] texIds = new int[2]; + gles.glGenTextures(2, texIds); + diffuseArrayTex = texIds[0]; + normalArrayTex = texIds[1]; + + gles.glBindTexture(GL_TEXTURE_2D_ARRAY, diffuseArrayTex); + gles.glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA8, size, size, layers, 0, GL_RGBA, GL_UNSIGNED_BYTE, diffuseBuf); + gles.glGenerateMipmap(GL_TEXTURE_2D_ARRAY); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_WRAP_S, GL_REPEAT); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_WRAP_T, GL_REPEAT); + gles.glTexParameterf(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_MAX_ANISOTROPY_EXT, 8.0f); + + gles.glBindTexture(GL_TEXTURE_2D_ARRAY, normalArrayTex); + gles.glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA8, size, size, layers, 0, GL_RGBA, GL_UNSIGNED_BYTE, normalBuf); + gles.glGenerateMipmap(GL_TEXTURE_2D_ARRAY); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_WRAP_S, GL_REPEAT); + gles.glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_WRAP_T, GL_REPEAT); + gles.glTexParameterf(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_MAX_ANISOTROPY_EXT, 8.0f); + + gles.glBindTexture(GL_TEXTURE_2D_ARRAY, 0); + materialsInitialized = true; + } + + private int createProgram(String vertSrc, String fragSrc) { + if (useDesktopGlsl330) { + vertSrc = HD317Pipeline.adaptGlslForDesktop330(vertSrc); + fragSrc = HD317Pipeline.adaptGlslForDesktop330(fragSrc); + } + int vs = compileShader(GL_VERTEX_SHADER, vertSrc); + if (vs == 0) return 0; + int fs = compileShader(GL_FRAGMENT_SHADER, fragSrc); + if (fs == 0) { + gles.glDeleteShader(vs); + return 0; + } + int prog = gles.glCreateProgram(); + gles.glAttachShader(prog, vs); + gles.glAttachShader(prog, fs); + gles.glLinkProgram(prog); + + int[] linkStatus = new int[1]; + gles.glGetProgramiv(prog, GL_LINK_STATUS, linkStatus); + gles.glDeleteShader(vs); + gles.glDeleteShader(fs); + + if (linkStatus[0] == 0) { + byte[] logBytes = new byte[2048]; + int[] len = new int[1]; + gles.glGetProgramInfoLog(prog, logBytes.length, len, logBytes); + System.err.println("317HD Program link failed: " + new String(logBytes, 0, Math.max(0, len[0]))); + gles.glDeleteProgram(prog); + return 0; + } + return prog; + } + + private int compileShader(int type, String src) { + int shader = gles.glCreateShader(type); + gles.glShaderSource(shader, 1, new String[]{src}, null); + gles.glCompileShader(shader); + int[] compiled = new int[1]; + gles.glGetShaderiv(shader, GL_COMPILE_STATUS, compiled); + if (compiled[0] == 0) { + byte[] logBytes = new byte[2048]; + int[] len = new int[1]; + gles.glGetShaderInfoLog(shader, logBytes.length, len, logBytes); + System.err.println("317HD Shader compile error: " + new String(logBytes, 0, Math.max(0, len[0]))); + gles.glDeleteShader(shader); + return 0; + } + return shader; + } + + private void initGlResources() { + try { + int[] vaos = new int[1]; + gles.glGenVertexArrays(1, vaos); + vaoId = vaos[0]; + if (vaoId != 0) { + gles.glBindVertexArray(vaoId); + } + } catch (Throwable ignored) { + } + + shadowProgram = createProgram(HD317Pipeline.SHADOW_VERT, HD317Pipeline.SHADOW_FRAG); + sceneProgram = createProgram(HD317Pipeline.SCENE_VERT, HD317Pipeline.SCENE_FRAG); + postProgram = createProgram(HD317Pipeline.POST_VERT, HD317Pipeline.POST_FRAG); + + if (shadowProgram == 0 || sceneProgram == 0 || postProgram == 0) { + glFailed = true; + return; + } + + uShadowLightViewProj = gles.glGetUniformLocation(shadowProgram, "uLightViewProj"); + uShadowDiffuseArray = gles.glGetUniformLocation(shadowProgram, "uDiffuseArray"); + + uSceneViewProj = gles.glGetUniformLocation(sceneProgram, "uViewProj"); + uSceneLightViewProj = gles.glGetUniformLocation(sceneProgram, "uLightViewProj"); + uSceneDiffuseArray = gles.glGetUniformLocation(sceneProgram, "uDiffuseArray"); + uSceneNormalArray = gles.glGetUniformLocation(sceneProgram, "uNormalArray"); + uSceneShadowMap = gles.glGetUniformLocation(sceneProgram, "uShadowMap"); + uSceneCameraPos = gles.glGetUniformLocation(sceneProgram, "uCameraPos"); + uSceneSunDir = gles.glGetUniformLocation(sceneProgram, "uSunDir"); + uSceneSunColor = gles.glGetUniformLocation(sceneProgram, "uSunColor"); + uSceneAmbientColor = gles.glGetUniformLocation(sceneProgram, "uAmbientColor"); + uSceneSkyColor = gles.glGetUniformLocation(sceneProgram, "uSkyColor"); + uSceneFogColor = gles.glGetUniformLocation(sceneProgram, "uFogColor"); + uSceneFogMin = gles.glGetUniformLocation(sceneProgram, "uFogMin"); + uSceneFogMax = gles.glGetUniformLocation(sceneProgram, "uFogMax"); + uSceneTime = gles.glGetUniformLocation(sceneProgram, "uTime"); + uSceneShadowTexelSize = gles.glGetUniformLocation(sceneProgram, "uShadowTexelSize"); + uSceneShadowsEnabled = gles.glGetUniformLocation(sceneProgram, "uShadowsEnabled"); + uSceneShadowSoftPcf = gles.glGetUniformLocation(sceneProgram, "uShadowSoftPcf"); + uSceneGroundTextures = gles.glGetUniformLocation(sceneProgram, "uGroundTextures"); + uSceneNormalMapping = gles.glGetUniformLocation(sceneProgram, "uNormalMapping"); + uSceneWaterShader = gles.glGetUniformLocation(sceneProgram, "uWaterShader"); + uSceneSaturation = gles.glGetUniformLocation(sceneProgram, "uSaturation"); + uSceneBrightness = gles.glGetUniformLocation(sceneProgram, "uBrightness"); + uSceneLightCount = gles.glGetUniformLocation(sceneProgram, "uLightCount"); + uSceneLightPosRad = gles.glGetUniformLocation(sceneProgram, "uLightPosRad"); + uSceneLightColorInt = gles.glGetUniformLocation(sceneProgram, "uLightColorInt"); + + uPostSceneTex = gles.glGetUniformLocation(postProgram, "uSceneTex"); + uPostTexelSize = gles.glGetUniformLocation(postProgram, "uTexelSize"); + + int staticCount = 4 * HdSceneUploader.CHUNKS_PER_PLANE; + int totalVbos = 7 + staticCount * 2; + int[] vbos = new int[totalVbos]; + gles.glGenBuffers(totalVbos, vbos); + terrainVbos[0] = vbos[0]; + terrainVbos[1] = vbos[1]; + terrainVbos[2] = vbos[2]; + terrainVbos[3] = vbos[3]; + sceneVbo = vbos[4]; + transVbo = vbos[5]; + quadVbo = vbos[6]; + int idx = 7; + for (int b = 0; b < 4; b++) { + for (int c = 0; c < HdSceneUploader.CHUNKS_PER_PLANE; c++) { + staticOpaqueVbos[b][c] = vbos[idx++]; + staticTransVbos[b][c] = vbos[idx++]; + } + } + + float[] quadVerts = { + -1.0f, -1.0f, + 1.0f, -1.0f, + -1.0f, 1.0f, + 1.0f, 1.0f + }; + FloatBuffer qBuf = ByteBuffer.allocateDirect(quadVerts.length * 4) + .order(ByteOrder.nativeOrder()).asFloatBuffer(); + qBuf.put(quadVerts); + ((Buffer) qBuf).position(0); + gles.glBindBuffer(GL_ARRAY_BUFFER, quadVbo); + gles.glBufferData(GL_ARRAY_BUFFER, quadVerts.length * 4L, qBuf, GL_STATIC_DRAW); + + int[] fbos = new int[1]; + int[] texs = new int[1]; + gles.glGenFramebuffers(1, fbos); + gles.glGenTextures(1, texs); + shadowFbo = fbos[0]; + shadowDepthTex = texs[0]; + + gles.glBindTexture(GL_TEXTURE_2D, shadowDepthTex); + gles.glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24, + shadowMapSize, shadowMapSize, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, null); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_FUNC, GL_LEQUAL); + + gles.glBindFramebuffer(GL_FRAMEBUFFER, shadowFbo); + gles.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, shadowDepthTex, 0); + gles.glDrawBuffers(1, new int[]{GL_NONE}); + gles.glReadBuffer(GL_NONE); + gles.glBindFramebuffer(GL_FRAMEBUFFER, 0); + } + + private void ensureFramebuffers(int w, int h) { + if (fboWidth == w && fboHeight == h && sceneFbo != 0 && postFbo != 0 && readbackByteBuffer != null) { + return; + } + + if (sceneFbo != 0) { + gles.glDeleteFramebuffers(2, new int[]{sceneFbo, postFbo}); + gles.glDeleteTextures(2, new int[]{sceneColorTex, postColorTex}); + gles.glDeleteRenderbuffers(1, new int[]{sceneDepthRbo}); + } + + fboWidth = w; + fboHeight = h; + + int[] fbos = new int[2]; + int[] texs = new int[2]; + int[] rbos = new int[1]; + gles.glGenFramebuffers(2, fbos); + gles.glGenTextures(2, texs); + gles.glGenRenderbuffers(1, rbos); + + sceneFbo = fbos[0]; + postFbo = fbos[1]; + sceneColorTex = texs[0]; + postColorTex = texs[1]; + sceneDepthRbo = rbos[0]; + + gles.glBindTexture(GL_TEXTURE_2D, sceneColorTex); + gles.glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, null); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + + gles.glBindRenderbuffer(GL_RENDERBUFFER, sceneDepthRbo); + gles.glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, w, h); + + gles.glBindFramebuffer(GL_FRAMEBUFFER, sceneFbo); + gles.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, sceneColorTex, 0); + gles.glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, sceneDepthRbo); + + gles.glBindTexture(GL_TEXTURE_2D, postColorTex); + gles.glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, null); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + gles.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + + gles.glBindFramebuffer(GL_FRAMEBUFFER, postFbo); + gles.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, postColorTex, 0); + + gles.glBindFramebuffer(GL_FRAMEBUFFER, 0); + + readbackByteBuffer = ByteBuffer.allocateDirect(w * h * 4).order(ByteOrder.LITTLE_ENDIAN); + readbackIntBuffer = readbackByteBuffer.asIntBuffer(); + } +} diff --git a/2006Scape Client/src/main/java/DesktopHooks.java b/2006Scape Client/src/main/java/DesktopHooks.java index cbc7b010..1d7d4021 100644 --- a/2006Scape Client/src/main/java/DesktopHooks.java +++ b/2006Scape Client/src/main/java/DesktopHooks.java @@ -16,11 +16,18 @@ import javax.sound.midi.Sequencer; import javax.sound.midi.ShortMessage; import javax.sound.midi.Synthesizer; import javax.swing.JOptionPane; +import javax.swing.SwingUtilities; public final class DesktopHooks { private DesktopHooks() {} + public static void initHdBackend() { + if (!ClientSettings.ANDROID && HD317Pipeline.backend == null) { + HD317Pipeline.backend = new DesktopHd317Renderer(); + } + } + public static void decodeImage(Sprite sprite, byte[] abyte0, Object component) { try { Component comp = (component instanceof Component) ? (Component) component : null; @@ -70,7 +77,11 @@ public final class DesktopHooks { public static void takeScreenshot(Game game, boolean sendMessage, String... subfolders) { try { - Window window = (Window) game.getGameComponent(); + // getGameComponent() is the applet itself, so capture the frame that contains it + Window window = SwingUtilities.getWindowAncestor(game.getGameComponent()); + if (window == null) { + return; + } Point point = window.getLocationOnScreen(); int x = (int) point.getX(); int y = (int) point.getY(); @@ -285,4 +296,274 @@ public final class DesktopHooks { public static void showKeyboard() {} public static void hideKeyboard() {} + + private static BufferedImage modernMinimapBezel = null; + private static BufferedImage modernMinimapHole = null; + private static BufferedImage modernMinimapComposite = null; + private static BufferedImage modernMinimapContent = null; + private static BufferedImage modernChatFrame = null; + private static BufferedImage modernChatComposite = null; + private static BufferedImage modernChatContent = null; + private static BufferedImage modernChatButtons = null; + private static BufferedImage modernTabComposite = null; + private static int[] modernTabPixels = null; + private static boolean[] modernTabMask = null; + private static final Object loginLock = new Object(); + private static BufferedImage loginScreenBuffer = null; + private static BufferedImage offscreenBuffer = null; + private static Graphics2D offscreenGraphics = null; + + public static void updateLoginTile(int[] tilePixels, int fixedX, int fixedY, int width, int height) { + if (tilePixels == null || tilePixels.length < width * height) { + return; + } + synchronized (loginLock) { + if (loginScreenBuffer == null) { + loginScreenBuffer = new BufferedImage(765, 503, BufferedImage.TYPE_INT_RGB); + } + loginScreenBuffer.setRGB(fixedX, fixedY, width, height, tilePixels, 0, width); + } + } + + public static void drawScaledLoginTile(Graphics screenGraphics, int[] tilePixels, int fixedX, int fixedY, int width, int height) { + updateLoginTile(tilePixels, fixedX, fixedY, width, height); + // Only flip once after tile 1111 (right torch). Tile 1110 (left torch) updates buffer only. + if (fixedX == 0 && fixedY == 0 && width == 128 && height == 265) { + return; + } + redrawScaledLoginScreen(screenGraphics); + } + + public static void redrawScaledLoginScreen(Graphics screenGraphics) { + if (screenGraphics == null) { + return; + } + synchronized (loginLock) { + if (loginScreenBuffer == null) { + return; + } + int w = ModernLayout.windowWidth; + int h = ModernLayout.windowHeight; + if (w <= 0 || h <= 0) { + return; + } + if (offscreenBuffer == null || offscreenBuffer.getWidth() != w || offscreenBuffer.getHeight() != h) { + if (offscreenGraphics != null) { + offscreenGraphics.dispose(); + } + offscreenBuffer = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); + offscreenGraphics = offscreenBuffer.createGraphics(); + } + Graphics2D g2d = offscreenGraphics; + int[] bounds = ModernLayout.getScaledScreenBounds(w, h); + g2d.setColor(Color.BLACK); + g2d.fillRect(0, 0, w, h); + g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); + g2d.drawImage(loginScreenBuffer, bounds[0], bounds[1], bounds[2], bounds[3], null); + screenGraphics.drawImage(offscreenBuffer, 0, 0, null); + } + } + + public static void checkResize(Component comp) { + if (ClientSettings.ANDROID || !ClientSettings.RESIZABLE || comp == null) { + return; + } + int w = comp.getWidth(); + int h = comp.getHeight(); + if (w > 0 && h > 0 && (w != ModernLayout.windowWidth || h != ModernLayout.windowHeight)) { + ModernLayout.updateWindowSize(w, h); + ClientSettings.VIEWPORT_WIDTH = ClientSettings.isDesktopModern() ? w : 512; + ClientSettings.VIEWPORT_HEIGHT = ClientSettings.isDesktopModern() ? h : 334; + } + } + + public static Graphics getRenderGraphics(Graphics screenGraphics) { + if (!ClientSettings.isDesktopModern()) { + return screenGraphics; + } + int w = ModernLayout.windowWidth; + int h = ModernLayout.windowHeight; + if (offscreenBuffer == null || offscreenBuffer.getWidth() != w || offscreenBuffer.getHeight() != h) { + if (offscreenGraphics != null) { + offscreenGraphics.dispose(); + } + offscreenBuffer = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); + offscreenGraphics = offscreenBuffer.createGraphics(); + } + return offscreenGraphics; + } + + public static void flip(Graphics screenGraphics) { + if (!ClientSettings.isDesktopModern() || screenGraphics == null || offscreenBuffer == null) { + return; + } + screenGraphics.drawImage(offscreenBuffer, 0, 0, null); + } + + public static void drawModernMinimap(Object graphics, int[] minimapPixels, int windowWidth) { + if (!(graphics instanceof Graphics) || minimapPixels == null) { + return; + } + Graphics g = (Graphics) graphics; + if (modernMinimapBezel == null) { + try { + modernMinimapBezel = ImageIO.read(DesktopHooks.class.getResource("/hud_minimap_bezel.png")); + modernMinimapHole = ImageIO.read(DesktopHooks.class.getResource("/hud_minimap_hole.png")); + modernMinimapComposite = new BufferedImage(249, 168, BufferedImage.TYPE_INT_ARGB); + modernMinimapContent = new BufferedImage(172, 156, BufferedImage.TYPE_INT_RGB); + } catch (Exception e) { + e.printStackTrace(); + } + } + if (modernMinimapBezel == null || modernMinimapHole == null) { + return; + } + + modernMinimapContent.setRGB(0, 0, 172, 156, minimapPixels, 0, 172); + + Graphics2D g2d = modernMinimapComposite.createGraphics(); + g2d.setComposite(AlphaComposite.Clear); + g2d.fillRect(0, 0, 249, 168); + g2d.setComposite(AlphaComposite.SrcOver); + g2d.drawImage(modernMinimapContent, 34, 4, null); + g2d.setComposite(AlphaComposite.DstIn); + g2d.drawImage(modernMinimapHole, 0, 0, null); + g2d.setComposite(AlphaComposite.SrcOver); + g2d.drawImage(modernMinimapBezel, 0, 0, null); + g2d.dispose(); + + g.drawImage(modernMinimapComposite, windowWidth - 249, 0, null); + } + + public static void drawModernChat(Object graphics, int[] chatContentPixels, int[] chatButtonsPixels, int windowHeight) { + if (!(graphics instanceof Graphics)) { + return; + } + Graphics g = (Graphics) graphics; + if (modernChatFrame == null) { + try { + modernChatFrame = ImageIO.read(DesktopHooks.class.getResource("/hud_chat_frame.png")); + modernChatComposite = new BufferedImage(519, 165, BufferedImage.TYPE_INT_ARGB); + modernChatContent = new BufferedImage(479, 96, BufferedImage.TYPE_INT_RGB); + modernChatButtons = new BufferedImage(496, 50, BufferedImage.TYPE_INT_RGB); + } catch (Exception e) { + e.printStackTrace(); + } + } + if (modernChatFrame == null) { + return; + } + + if (chatContentPixels != null && chatContentPixels.length >= 479 * 96) { + modernChatContent.setRGB(0, 0, 479, 96, chatContentPixels, 0, 479); + } + if (chatButtonsPixels != null && chatButtonsPixels.length >= 496 * 50) { + modernChatButtons.setRGB(0, 0, 496, 50, chatButtonsPixels, 0, 496); + } + + Graphics2D g2d = modernChatComposite.createGraphics(); + g2d.setComposite(AlphaComposite.Clear); + g2d.fillRect(0, 0, 519, 165); + g2d.setComposite(AlphaComposite.SrcOver); + g2d.drawImage(modernChatFrame, 0, 0, null); + if (chatContentPixels != null) { + g2d.drawImage(modernChatContent, 17, 19, null); + } + if (chatButtonsPixels != null) { + g2d.drawImage(modernChatButtons, 0, 115, null); + } + g2d.dispose(); + + g.drawImage(modernChatComposite, 0, windowHeight - 165, null); + } + + public static void drawModernTab(Object graphics, + int[] topTabPixels, + int[] leftPillarTopPixels, + int[] leftPillarMidPixels, + int[] leftPillarBotPixels, + int[] tabBodyPixels, + int[] rightPillarPixels, + int[] bottomTabPixels, + int windowWidth, + int windowHeight) { + if (!(graphics instanceof Graphics)) { + return; + } + Graphics g = (Graphics) graphics; + if (modernTabComposite == null) { + modernTabComposite = new BufferedImage(249, 343, BufferedImage.TYPE_INT_ARGB); + modernTabPixels = new int[249 * 343]; + modernTabMask = new boolean[249 * 343]; + for (int y = 0; y < 343; y++) { + for (int x = 0; x < 249; x++) { + modernTabMask[y * 249 + x] = ModernLayout.isInsideTabArea(x, y); + } + } + } + + // 1. Top tabs: 249x45 at y = 0..44 + if (topTabPixels != null && topTabPixels.length >= 249 * 45) { + System.arraycopy(topTabPixels, 0, modernTabPixels, 0, 249 * 45); + } + + // 2. Middle area: y from 45 to 306 (height 261, total width 249) + // Left vertical stone pillar is assembled from 3 fixed-mode producers: + // - backVmidIP2 (37x133 at y = 45..177) + // - backVmidIP2_2 (553x19 at y = 178..196, rightmost 37px starting at x = 516) + // - backVmidIP3 (57x109 at y = 197..305, rightmost 37px starting at x = 20) + if (leftPillarTopPixels != null && leftPillarTopPixels.length >= 37 * 133) { + for (int y = 0; y < 133; y++) { + System.arraycopy(leftPillarTopPixels, y * 37, modernTabPixels, (45 + y) * 249, 37); + } + } + if (leftPillarMidPixels != null && leftPillarMidPixels.length >= 553 * 19) { + for (int y = 0; y < 19; y++) { + System.arraycopy(leftPillarMidPixels, y * 553 + 516, modernTabPixels, (178 + y) * 249, 37); + } + } + if (leftPillarBotPixels != null && leftPillarBotPixels.length >= 57 * 109) { + for (int y = 0; y < 109; y++) { + System.arraycopy(leftPillarBotPixels, y * 57 + 20, modernTabPixels, (197 + y) * 249, 37); + } + } + + // Tab body (inventory/interface): 190x261 at x = 37..226 + if (tabBodyPixels != null && tabBodyPixels.length >= 190 * 261) { + for (int y = 0; y < 261; y++) { + System.arraycopy(tabBodyPixels, y * 190, modernTabPixels, (45 + y) * 249 + 37, 190); + } + } + + // Right pillar: 22x261 at x = 227..248 + if (rightPillarPixels != null && rightPillarPixels.length >= 22 * 261) { + for (int y = 0; y < 261; y++) { + System.arraycopy(rightPillarPixels, y * 22, modernTabPixels, (45 + y) * 249 + 227, 22); + } + } + + // 3. Bottom tabs: 249x37 at y = 306..342 (cropped by 20px on left from 269x37 producer) + if (bottomTabPixels != null && bottomTabPixels.length >= 269 * 37) { + for (int y = 0; y < 37; y++) { + System.arraycopy(bottomTabPixels, y * 269 + 20, modernTabPixels, (306 + y) * 249, 249); + } + } + + // 4. Mask out fixed-mode outer margins and 4 corner triangles to 100% transparent + int total = 249 * 343; + for (int i = 0; i < total; i++) { + modernTabPixels[i] = modernTabMask[i] ? (0xFF000000 | (modernTabPixels[i] & 0xFFFFFF)) : 0x00000000; + } + + modernTabComposite.setRGB(0, 0, 249, 343, modernTabPixels, 0, 249); + g.drawImage(modernTabComposite, windowWidth - 249, windowHeight - 343, null); + } + + public static String httpGet(String url) throws java.io.IOException { return null; } + public static boolean saveExternalScript(String fileName, String content) { return false; } + public static boolean deleteExternalScript(String fileName) { return false; } + public static void yieldUi() {} + public static Object boxReflectValue(Object v, Class declaredType) { return v; } + public static String loadPluginConfig() { return null; } + public static boolean savePluginConfig(String content) { return false; } } diff --git a/2006Scape Client/src/main/java/ExternalPluginLoader.java b/2006Scape Client/src/main/java/ExternalPluginLoader.java new file mode 100644 index 00000000..b4bfe87c --- /dev/null +++ b/2006Scape Client/src/main/java/ExternalPluginLoader.java @@ -0,0 +1,147 @@ +import java.io.*; +import java.net.URL; +import java.net.URLClassLoader; +import java.util.ArrayList; +import java.util.Enumeration; +import java.util.List; +import java.util.jar.JarEntry; +import java.util.jar.JarFile; + +/** + * Loads external plugins and scripts from disk across Desktop and Android. + */ +public class ExternalPluginLoader { + + public static class LoadedContainer { + public final List plugins = new ArrayList<>(); + public final List scripts = new ArrayList<>(); + public final List errors = new ArrayList<>(); + } + + /** + * Loads external plugins and scripts from the specified directory. + */ + public static LoadedContainer loadExternal(File baseDir) { + LoadedContainer container = new LoadedContainer(); + if (baseDir == null) return container; + + File pluginsDir = new File(baseDir, "plugins"); + File scriptsDir = new File(baseDir, "scripts"); + + if (!pluginsDir.exists()) pluginsDir.mkdirs(); + if (!scriptsDir.exists()) scriptsDir.mkdirs(); + + // Load plugins directory + loadDirectory(pluginsDir, "plugin", container); + + // Load scripts directory + loadDirectory(scriptsDir, "script", container); + + return container; + } + + private static void loadDirectory(File dir, String defaultType, LoadedContainer container) { + File[] files = dir.listFiles(); + if (files == null) return; + + for (File f : files) { + if (f.isDirectory()) continue; + String name = f.getName().toLowerCase(); + + try { + if (name.endsWith(".script") || name.endsWith(".bsh") || name.endsWith(".java")) { + loadSourceScript(f, defaultType, container); + } else if (name.endsWith(".jar") || name.endsWith(".dex")) { + loadJarOrDex(f, container); + } + } catch (Throwable t) { + String msg = f.getName() + ": " + (t.getMessage() != null ? t.getMessage() : t.getClass().getSimpleName()); + container.errors.add(msg); + System.err.println("Failed to load external file: " + msg); + t.printStackTrace(); + } + } + } + + private static void loadSourceScript(File file, String defaultType, LoadedContainer container) { + StringBuilder sb = new StringBuilder(); + try (BufferedReader br = new BufferedReader(new FileReader(file))) { + String line; + while ((line = br.readLine()) != null) { + sb.append(line).append("\n"); + } + } catch (IOException e) { + String msg = file.getName() + ": " + e.getMessage(); + container.errors.add(msg); + System.err.println("Could not read script file: " + file.getPath()); + return; + } + + String source = sb.toString(); + ScriptInterpreter.ScriptMetadata meta = ScriptInterpreter.parseMetadata(source); + if ("Example Feather Farmer".equalsIgnoreCase(meta.name)) { + try { + file.delete(); + } catch (Throwable ignored) {} + return; + } + if ("Unnamed Script".equals(meta.name)) { + String cleanName = file.getName(); + int dot = cleanName.lastIndexOf('.'); + if (dot != -1) cleanName = cleanName.substring(0, dot); + meta.name = cleanName.replace('_', ' '); + } + if (meta.type == null || meta.type.isEmpty()) { + meta.type = defaultType; + } + + ScriptInterpreter.Environment env = ScriptInterpreter.compile(source); + + if ("plugin".equalsIgnoreCase(meta.type)) { + container.plugins.add(new ScriptInterpreter.InterpretedPlugin(meta, env)); + System.out.println("Loaded external plugin: " + meta.name + " from " + file.getName()); + } else { + container.scripts.add(new ScriptInterpreter.InterpretedScript(meta, env)); + System.out.println("Loaded external script: " + meta.name + " from " + file.getName()); + } + } + + private static void loadJarOrDex(File file, LoadedContainer container) { + if (ClientSettings.ANDROID) { + // Android uses DexClassLoader via AndroidHooks + AndroidHooks.loadExternalDexPlugins(file, container.plugins, container.scripts); + return; + } + + // Desktop Java URLClassLoader + try { + URL url = file.toURI().toURL(); + URLClassLoader classLoader = new URLClassLoader(new URL[]{url}, ExternalPluginLoader.class.getClassLoader()); + + try (JarFile jar = new JarFile(file)) { + Enumeration entries = jar.entries(); + while (entries.hasMoreElements()) { + JarEntry entry = entries.nextElement(); + if (entry.isDirectory() || !entry.getName().endsWith(".class")) continue; + + String className = entry.getName().replace('/', '.').substring(0, entry.getName().length() - 6); + try { + Class cls = classLoader.loadClass(className); + if (ClientPlugin.class.isAssignableFrom(cls) && !cls.isInterface()) { + ClientPlugin plugin = (ClientPlugin) cls.getDeclaredConstructor().newInstance(); + container.plugins.add(plugin); + System.out.println("Loaded JAR plugin: " + plugin.getName()); + } else if (ClientScript.class.isAssignableFrom(cls) && !cls.isInterface()) { + ClientScript script = (ClientScript) cls.getDeclaredConstructor().newInstance(); + container.scripts.add(script); + System.out.println("Loaded JAR script: " + script.getName()); + } + } catch (Throwable ignored) { + } + } + } + } catch (Throwable t) { + System.err.println("Error loading JAR: " + file.getName() + " - " + t.getMessage()); + } + } +} diff --git a/2006Scape Client/src/main/java/Game.java b/2006Scape Client/src/main/java/Game.java index a790337e..c49afc2a 100644 --- a/2006Scape Client/src/main/java/Game.java +++ b/2006Scape Client/src/main/java/Game.java @@ -21,6 +21,7 @@ import java.text.DecimalFormatSymbols; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; +import java.util.concurrent.atomic.AtomicInteger; import java.util.zip.CRC32; /** @@ -496,7 +497,9 @@ public class Game extends RSApplet { if (menuOpen && menuScreenArea == 2) { drawMenu(); } - aRSImageProducer_1166.drawGraphics(357, super.graphics, 17); + if (!ClientSettings.isDesktopModern()) { + aRSImageProducer_1166.drawGraphics(357, super.graphics, 17); + } if (aRSImageProducer_1165 != null) { aRSImageProducer_1165.initDrawingArea(); Texture.lineOffsets = chatBoxAreaOffsets; @@ -540,6 +543,16 @@ public class Game extends RSApplet { } public boolean processMenuClick() { + if (PluginPanelUI.isModalOpen()) { + PluginPanelUI.processInput(this); + if (super.clickMode3 == 1 || super.clickMode3 == 2) { + PluginPanelUI.handleModalClick(super.saveClickX, super.saveClickY); + super.clickMode3 = 0; + super.saveClickX = -1; + super.saveClickY = -1; + } + return true; + } if (activeInterfaceType != 0) { return false; } @@ -780,6 +793,8 @@ public class Game extends RSApplet { } stream.createFrame(0); objectManager.method171(aClass11Array1230, worldController); + DesktopHooks.initHdBackend(); + HD317Pipeline.onSceneLoad(this, objectManager, worldController); if(aRSImageProducer_1165 != null) { aRSImageProducer_1165.initDrawingArea(); Texture.lineOffsets = chatBoxAreaOffsets; @@ -965,6 +980,11 @@ public class Game extends RSApplet { l *= item.amount + 1; // notifyItemSpawn(item, i + baseX, j + baseY); } + try { + if (PluginManager.get() != null) { + PluginManager.get().onGroundItemSpawn(item.ID, item.amount, i + baseX, j + baseY, plane); + } + } catch (Throwable ignored) {} if (l > k) { k = l; @@ -1071,6 +1091,11 @@ public class Game extends RSApplet { } } if (class9_1.type == 0) { + // Remember the scrollable container under the mouse (scrollbar included) for mouse wheel scrolling, + // set before recursing so a nested scrollable container takes priority over its parent + if (class9_1.scrollMax > class9_1.height && k >= i2 && k < i2 + class9_1.width + 16 && i1 >= j2 && i1 < j2 + class9_1.height) { + wheelScrollTarget = class9_1; + } buildInterfaceMenu(i2, class9_1, k, j2, i1, class9_1.scrollPosition); if (class9_1.scrollMax > class9_1.height) { method65(i2 + class9_1.width, class9_1.height, k, i1, class9_1, j2, true, class9_1.scrollMax); @@ -1278,7 +1303,20 @@ public class Game extends RSApplet { if (k1 < 8) { k1 = 8; } - int l1 = (j - 32 - k1) * k / (j1 - j); + if (k1 > j - 32) { + k1 = j - 32; + } + int trackAvail = j - 32 - k1; + int l1 = 0; + if (trackAvail > 0 && j1 > j) { + l1 = trackAvail * k / (j1 - j); + if (l1 < 0) { + l1 = 0; + } + if (l1 > trackAvail) { + l1 = trackAvail; + } + } DrawingArea.fillArea(k1, l + 16 + l1, anInt1063, 16, i1); DrawingArea.drawVerticalLine(l + 16 + l1, anInt902, k1, i1); DrawingArea.drawVerticalLine(l + 16 + l1, anInt902, k1, i1 + 1); @@ -1318,7 +1356,7 @@ public class Game extends RSApplet { } public void processChatModeClick() { - if (ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH > 512 && touchTargetArea == TARGET_VIEWPORT) { + if (ClientSettings.isModernLayout() && touchTargetArea != TARGET_CHAT) { return; } if (super.clickMode3 == 1) { @@ -1795,11 +1833,30 @@ public class Game extends RSApplet { } } + private Sprite buttonLeftEnabled = null; + private Sprite buttonRightEnabled = null; + private Sprite buttonLeftDisabled = null; + private Sprite buttonRightDisabled = null; + public void drawButton(boolean enabled, int x, int y, int width) { - StreamLoader streamLoader_2 = streamLoaderForName(4, "2d graphics", "media", expectedCRCs[4], 40); - // All these sprites are 30x30 - Sprite buttonLeft = new Sprite(streamLoader_2, "miscgraphics", enabled ? 7 : 4); - Sprite buttonRight = new Sprite(streamLoader_2, "miscgraphics", enabled ? 8 : 6); + if (buttonLeftEnabled == null || buttonRightEnabled == null || buttonLeftDisabled == null || buttonRightDisabled == null) { + try { + StreamLoader streamLoader_2 = streamLoaderForName(4, "2d graphics", "media", expectedCRCs[4], 40); + if (streamLoader_2 != null) { + buttonLeftEnabled = new Sprite(streamLoader_2, "miscgraphics", 7); + buttonRightEnabled = new Sprite(streamLoader_2, "miscgraphics", 8); + buttonLeftDisabled = new Sprite(streamLoader_2, "miscgraphics", 4); + buttonRightDisabled = new Sprite(streamLoader_2, "miscgraphics", 6); + } + } catch (Throwable ignored) {} + } + Sprite buttonLeft = enabled ? buttonLeftEnabled : buttonLeftDisabled; + Sprite buttonRight = enabled ? buttonRightEnabled : buttonRightDisabled; + if (buttonLeft == null || buttonRight == null) { + DrawingArea.fillPixels(y, 30, 0x000000, x, width); + DrawingArea.fillArea(28, y + 1, enabled ? 0x8a2626 : 0x483e32, width - 2, x + 1); + return; + } int curWidth = 30; buttonLeft.drawSprite(x, y); while ((curWidth + 26) < width) { @@ -1810,47 +1867,28 @@ public class Game extends RSApplet { } public void drawCheckbox(boolean enabled, int x, int y) { - StreamLoader streamLoader_2 = streamLoaderForName(4, "2d graphics", "media", expectedCRCs[4], 40); - Sprite checkboxUnchecked = new Sprite(streamLoader_2, "miscgraphics", 10); - Sprite checkboxChecked = new Sprite(streamLoader_2, "miscgraphics", 11); + try { + StreamLoader streamLoader_2 = streamLoaderForName(4, "2d graphics", "media", expectedCRCs[4], 40); + Sprite checkboxUnchecked = new Sprite(streamLoader_2, "miscgraphics", 10); + Sprite checkboxChecked = new Sprite(streamLoader_2, "miscgraphics", 11); + } catch (Throwable ignored) {} } public void drawTabArea() { - aRSImageProducer_1163.initDrawingArea(); + if (aRSImageProducer_1163 == null) { + aRSImageProducer_1163 = new RSImageProducer(190, 261, getGameComponent()); + } + if (aRSImageProducer_1163 != null) { + aRSImageProducer_1163.initDrawingArea(); + } Texture.lineOffsets = tabAreaOffsets; - invBack.method361(0, 0); + if (invBack != null) { + invBack.method361(0, 0); + } if (invOverlayInterfaceID == -1) { if (tabInterfaceIDs[tabID] != -1 || (tabID == 7 && ClientSettings.CUSTOM_SETTINGS_TAB)) { if (tabID == 7 && ClientSettings.CUSTOM_SETTINGS_TAB) { - try { - int centerX = 95; - int currentY = 10; - int textMiddle = 22; - int textTop = 14; - int textBottom = 29; - - drawButton(customSettingVisiblePlayerNames, centerX - 73, currentY, 146); - // buttonLeftDisabled.drawSprite(centerX - 73, currentY); - aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "always visible", currentY + textTop, true); - aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "player names", currentY + textBottom, true); - - drawButton(true, centerX - 73, currentY += 40, 146); - aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "item drops visible", currentY + textTop, true); - aTextDrawingArea_1271.textCenterShadow(RSColors.WHITE, centerX, intToKOrMil(customSettingMinItemValue) + " gp", currentY + textBottom, true); - - drawButton(true, centerX - 73, currentY += 40, 146); - aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "draw distance", currentY + textTop, true); - aTextDrawingArea_1271.textCenterShadow(RSColors.WHITE, centerX, WorldController.drawDistance + " tiles", currentY + textBottom, true); - - drawButton(customSettingShowExperiencePerHour, centerX - 73, currentY += 40, 146); - aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "show exp info", currentY + textMiddle, true); - - drawButton(showInfo, centerX - 73, currentY += 40, 146); - aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "show debug info", currentY + textMiddle, true); - - drawButton(customSettingVisualFixes, centerX - 73, currentY += 40, 146); - aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "visual fixes", currentY + textMiddle, true); - } catch (Exception e) { } + PluginPanelUI.drawTab7(this); } } } @@ -1862,7 +1900,9 @@ public class Game extends RSApplet { if (menuOpen && menuScreenArea == 1) { drawMenu(); } - aRSImageProducer_1163.drawGraphics(205, super.graphics, 553); + if (!ClientSettings.isDesktopModern() && aRSImageProducer_1163 != null) { + aRSImageProducer_1163.drawGraphics(205, super.graphics, 553); + } if (aRSImageProducer_1165 != null) { aRSImageProducer_1165.initDrawingArea(); Texture.lineOffsets = chatBoxAreaOffsets; @@ -2213,6 +2253,10 @@ public class Game extends RSApplet { } socketStream = null; loggedIn = false; + ModernLayout.inGame = false; + if (PluginManager.get() != null) { + PluginManager.get().onLogout(); + } if (ClientSettings.ANDROID) { aRSImageProducer_1107 = null; super.fullGameScreen = null; @@ -2866,6 +2910,24 @@ public class Game extends RSApplet { sprite.drawSprite(382 - sprite.width / 2 - 128, 18); sprite = null; System.gc(); + welcomeScreenRaised = true; + if (!ClientSettings.ANDROID) { + if (ClientSettings.RESIZABLE) { + DesktopHooks.checkResize(getGameComponent()); + } + DesktopHooks.updateLoginTile(aRSImageProducer_1110.anIntArray315, 0, 0, 128, 265); + DesktopHooks.updateLoginTile(aRSImageProducer_1111.anIntArray315, 637, 0, 128, 265); + DesktopHooks.updateLoginTile(aRSImageProducer_1107.anIntArray315, 128, 0, 509, 171); + DesktopHooks.updateLoginTile(aRSImageProducer_1108.anIntArray315, 202, 371, 360, 132); + DesktopHooks.updateLoginTile(aRSImageProducer_1109.anIntArray315, 202, 171, 360, 200); + DesktopHooks.updateLoginTile(aRSImageProducer_1112.anIntArray315, 0, 265, 202, 238); + DesktopHooks.updateLoginTile(aRSImageProducer_1113.anIntArray315, 562, 265, 203, 238); + DesktopHooks.updateLoginTile(aRSImageProducer_1114.anIntArray315, 128, 171, 74, 94); + DesktopHooks.updateLoginTile(aRSImageProducer_1115.anIntArray315, 562, 171, 75, 94); + if (ClientSettings.isDesktopModern()) { + DesktopHooks.redrawScaledLoginScreen(super.graphics); + } + } } @@ -3041,6 +3103,11 @@ public class Game extends RSApplet { if (!loggedIn) { return; } + if (PluginManager.get() != null) { + try { + PluginManager.get().onGameTick(); + } catch (Throwable ignored) {} + } synchronized (mouseDetection.syncObject) { if (flagged) { if (super.clickMode3 != 0 || mouseDetection.coordsIndex >= 40) { @@ -3380,6 +3447,12 @@ public class Game extends RSApplet { } void drawLoadingText(int i, String s) { + if (!loggedIn) { + ModernLayout.inGame = false; + } + if (!ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + DesktopHooks.checkResize(getGameComponent()); + } anInt1079 = i; aString1049 = s; resetImageProducers(); @@ -3412,6 +3485,7 @@ public class Game extends RSApplet { aRSImageProducer_1114.drawGraphics(171, super.graphics, 128); aRSImageProducer_1115.drawGraphics(171, super.graphics, 562); } + DesktopHooks.yieldUi(); } public void method65(int i, int j, int k, int l, RSInterface class9, int i1, boolean flag, int j1) { @@ -3617,6 +3691,7 @@ public class Game extends RSApplet { destX = 0; RSSocket rsSocket = socketStream; loggedIn = false; + ModernLayout.inGame = false; loginFailures = 0; login(myUsername, myPassword, true); if (!loggedIn) { @@ -3685,6 +3760,13 @@ public class Game extends RSApplet { if (i < 0) { return; } + if (PluginManager.get() != null) { + try { + if (!PluginManager.get().onMenuAction(i)) { + return; + } + } catch (Throwable ignored) {} + } if (inputDialogState != 0) { if (!ClientSettings.ANDROID || (super.saveClickX > 516 || super.saveClickY < 357 || super.saveClickY > 467)) { inputDialogState = 0; @@ -4767,6 +4849,9 @@ public class Game extends RSApplet { } socketStream = null; stopMidi(); + if (PluginManager.get() != null) { + PluginManager.get().onLogout(); + } if (mouseDetection != null) { mouseDetection.running = false; } @@ -4815,6 +4900,10 @@ public class Game extends RSApplet { mapBack = null; chatBack = null; backBase1 = null; + buttonLeftEnabled = null; + buttonRightEnabled = null; + buttonLeftDisabled = null; + buttonRightDisabled = null; backBase2 = null; backHmid1 = null; sideIcons = null; @@ -4920,6 +5009,10 @@ public class Game extends RSApplet { if (j == -1) { break; } + if (PluginPanelUI.isSearchFocused()) { + PluginPanelUI.handleKeyChar(j); + continue; + } if (customTabAction == 1 || customTabAction == 2) { if (j >= 48 && j <= 57 && promptInput.length() < 10 && !promptInput.toLowerCase().contains("k") && !promptInput.toLowerCase().contains("m") && !promptInput.toLowerCase().contains("b")) { promptInput += (char) j; @@ -4948,7 +5041,7 @@ public class Game extends RSApplet { } if (customTabAction == 2) { WorldController.drawDistance = Math.max(10, Math.min(100, Integer.parseInt(promptInput))); - zoom = Math.min(zoom, WorldController.drawDistance / 3); + zoom = Math.min(zoom, getMaxZoom()); } } customTabAction = 0; @@ -5087,52 +5180,19 @@ public class Game extends RSApplet { if (j >= 32 && j <= 122 && inputString.length() < 80) { inputString += (char) j; inputTaken = true; - if (inputString.startsWith("::search")) { - String[] args = inputString.split(" "); - inputDialogState = 3; - int searchType = 1; - String searchString = ""; - if (args.length < 2) { - return; - } - try { - searchType = Integer.parseInt(args[1]); - if (args.length >= 3) { - searchString = inputString.substring(inputString.indexOf(args[1]) + args[1].length() + 1); - } - } catch (Exception e) { - searchType = 1; - searchString = inputString.substring(args[0].length() + 1); - } - definitionSearch(searchString, searchType); - } } // deleting characters if (j == 8 && inputString.length() > 0) { inputString = inputString.substring(0, inputString.length() - 1); inputTaken = true; - if (inputString.startsWith("::search")) { - String[] args = inputString.split(" "); - inputDialogState = 3; - int searchType = 1; - String searchString = ""; - if (args.length < 2) { - return; - } - try { - searchType = Integer.parseInt(args[1]); - if (args.length >= 3) { - searchString = inputString.substring(inputString.indexOf(args[1]) + args[1].length() + 1); - } - } catch (Exception e) { - searchType = 1; - searchString = inputString.substring(args[0].length() + 1); - } - definitionSearch(searchString, searchType); - } } // submitted string if ((j == 13 || j == 10) && inputString.length() > 0) { + if (PluginManager.get() != null && PluginManager.get().onCommand(inputString)) { + inputString = ""; + inputTaken = true; + return; + } if (inputString.equals("::gfxtgl") || inputString.equals("::tglgfx") || inputString.equals("::togglerender") || inputString.equals("::togglegfx")) { graphicsEnabled = !graphicsEnabled; } @@ -5189,8 +5249,8 @@ public class Game extends RSApplet { distance = 25; } WorldController.drawDistance = distance; - if (zoom > (WorldController.drawDistance / 3)) - zoom = WorldController.drawDistance / 3; + if (zoom > getMaxZoom()) + zoom = getMaxZoom(); inputString = ""; inputTaken = true; return; @@ -5709,10 +5769,15 @@ public class Game extends RSApplet { chatTypes[0] = i; chatNames[0] = s1; chatMessages[0] = s; + if (PluginManager.get() != null) { + try { + PluginManager.get().onChatMessage(i, s1, s); + } catch (Throwable ignored) {} + } } public void processMinimapActions() { - if (ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH > 512 && touchTargetArea != TARGET_MINIMAP) { + if (ClientSettings.isModernLayout() && touchTargetArea != TARGET_MINIMAP) { return; } int x = super.mouseX; @@ -5734,16 +5799,16 @@ public class Game extends RSApplet { boolean customSettingVisualFixes = true; public void processTabClick() { - if (ClientSettings.ANDROID) { + if (ClientSettings.usesTouchTargets()) { if (touchTargetArea == TARGET_VIEWPORT) { return; } - if (ClientSettings.VIEWPORT_WIDTH > 512 && touchTargetArea != TARGET_TAB) { + if (ClientSettings.isModernLayout() && touchTargetArea != TARGET_TAB) { return; } } if (super.clickMode3 == 1) { - if (!ClientSettings.ANDROID || ClientSettings.VIEWPORT_WIDTH <= 512) { + if (ClientSettings.usesClassicTabHitboxes()) { if (super.saveClickX >= 539 && super.saveClickX <= 573 && super.saveClickY >= 169 && super.saveClickY < 205 && tabInterfaceIDs[0] != -1) { needDrawTabArea = true; tabID = 0; @@ -5829,47 +5894,8 @@ public class Game extends RSApplet { if (invOverlayInterfaceID == -1) { if (tabInterfaceIDs[tabID] != -1 || (tabID == 7 && ClientSettings.CUSTOM_SETTINGS_TAB)) { // Handle our custom tab - if (tabID == 7 && ClientSettings.CUSTOM_SETTINGS_TAB && (ClientSettings.VIEWPORT_WIDTH <= 512 || touchTargetArea == TARGET_TAB) && super.saveClickX >= 575 && super.saveClickX <= 720 && super.saveClickY >= 210 && super.saveClickY <= 465) { - int startY = 217 + 3; - if (super.saveClickY >= startY && super.saveClickY <= (startY + 30)) { - customSettingVisiblePlayerNames = !customSettingVisiblePlayerNames; - } - startY += 40; - if (super.saveClickY >= startY && super.saveClickY <= (startY + 30)) { - inputTaken = true; - inputDialogState = 0; - messagePromptRaised = true; - promptInput = ""; - aString1121 = "Enter minimum item value"; - customTabAction = 1; - } - startY += 40; - if (super.saveClickY >= startY && super.saveClickY <= (startY + 30)) { - inputTaken = true; - inputDialogState = 0; - messagePromptRaised = true; - promptInput = ""; - aString1121 = "Enter new draw distance"; - customTabAction = 2; - } - startY += 40; - if (super.saveClickY >= startY && super.saveClickY <= (startY + 30)) { - customSettingShowExperiencePerHour= !customSettingShowExperiencePerHour; - customSettingShowExperiencePerHourStart = System.currentTimeMillis(); - customSettingShowExperiencePerHourStartExp = calculateTotalExp(); - customSettingShowExperiencePerHourStartLevels = calculateTotalLevels(); - } - startY += 40; - if (super.saveClickY >= startY && super.saveClickY <= (startY + 30)) { - showInfo= !showInfo; - } - startY += 40; - if (super.saveClickY >= startY && super.saveClickY <= (startY + 30)) { - customSettingVisualFixes = !customSettingVisualFixes; - ClientSettings.BILINEAR_MINIMAP_FILTERING = !ClientSettings.BILINEAR_MINIMAP_FILTERING; - ClientSettings.FIX_TRANSPARENCY_OVERFLOW = !ClientSettings.FIX_TRANSPARENCY_OVERFLOW; - ClientSettings.FULL_512PX_VIEWPORT = !ClientSettings.FULL_512PX_VIEWPORT; - } + if (tabID == 7 && ClientSettings.CUSTOM_SETTINGS_TAB && ((!ClientSettings.isModernLayout()) || touchTargetArea == TARGET_TAB) && super.saveClickX >= 575 && super.saveClickX <= 720 && super.saveClickY >= 210 && super.saveClickY <= 465) { + PluginPanelUI.handleTab7Click(this, super.saveClickX, super.saveClickY); } } } @@ -5945,7 +5971,7 @@ public class Game extends RSApplet { } public void resetImageProducers2() { - if (aRSImageProducer_1166 != null && (!ClientSettings.ANDROID || aRSImageProducer_1165 != null)) { + if (aRSImageProducer_1166 != null && ((!ClientSettings.ANDROID && !ClientSettings.isDesktopModern()) || aRSImageProducer_1165 != null)) { return; } nullLoader(); @@ -5975,6 +6001,91 @@ public class Game extends RSApplet { // SignLink.midii.fadeOut(); } + private int currentViewportWidth = -1; + private int currentViewportHeight = -1; + + public synchronized void updateViewportSize(int width, int height) { + if (!ClientSettings.ANDROID && !ClientSettings.RESIZABLE) { + return; + } + if (aRSImageProducer_1165 != null && currentViewportWidth == width && currentViewportHeight == height) { + return; + } + currentViewportWidth = width; + currentViewportHeight = height; + ClientSettings.VIEWPORT_WIDTH = width; + ClientSettings.VIEWPORT_HEIGHT = height; + if (aRSImageProducer_1165 != null) { + aRSImageProducer_1165 = new RSImageProducer(width, height, getGameComponent()); + aRSImageProducer_1165.initDrawingArea(); + } + Texture.method365(width, height); + chatBoxAreaOffsets = Texture.lineOffsets; + int ai[] = new int[9]; + for (int i8 = 0; i8 < 9; i8++) { + int k8 = 128 + i8 * 32 + 15; + int l8 = 600 + k8 * 3; + int i9 = Texture.anIntArray1470[k8]; + ai[i8] = l8 * i9 >> 16; + } + WorldController.method310(500, 800, width, height, ai); + } + + void onResize(int w, int h) { + applyWindowSize(w, h); + } + + public synchronized void switchToFixedLayout() { + currentViewportWidth = 512; + currentViewportHeight = 334; + ClientSettings.VIEWPORT_WIDTH = 512; + ClientSettings.VIEWPORT_HEIGHT = 334; + ModernLayout.updateWindowSize(765, 503); + if (!loggedIn) { + aRSImageProducer_1165 = null; + aRSImageProducer_1166 = null; + resetImageProducers(); + welcomeScreenRaised = true; + return; + } + aRSImageProducer_1165 = null; + aRSImageProducer_1166 = null; + resetImageProducers2(); + Texture.method365(512, 334); + chatBoxAreaOffsets = Texture.lineOffsets; + int ai[] = new int[9]; + for (int i8 = 0; i8 < 9; i8++) { + int k8 = 128 + i8 * 32 + 15; + int l8 = 600 + k8 * 3; + int i9 = Texture.anIntArray1470[k8]; + ai[i8] = l8 * i9 >> 16; + } + WorldController.method310(500, 800, 512, 334, ai); + welcomeScreenRaised = true; + needDrawFrameBorders = true; + needDrawTabArea = true; + inputTaken = true; + tabAreaAltered = true; + aBoolean1233 = true; + } + + public synchronized void applyWindowSize(int w, int h) { + ModernLayout.updateWindowSize(w, h); + int vpW = ClientSettings.isDesktopModern() ? w : 512; + int vpH = ClientSettings.isDesktopModern() ? h : 334; + updateViewportSize(vpW, vpH); + if (!loggedIn && ClientSettings.isDesktopModern()) { + DesktopHooks.redrawScaledLoginScreen(super.graphics); + return; + } + welcomeScreenRaised = true; + needDrawFrameBorders = !ClientSettings.isDesktopModern(); + needDrawTabArea = true; + inputTaken = true; + tabAreaAltered = true; + aBoolean1233 = true; + } + public void method81(Sprite sprite, int y, int x) { int l = x * x + y * y; if (l > 4225 && l < 90000) { @@ -5996,8 +6107,12 @@ public class Game extends RSApplet { public void processRightClick() { if (activeInterfaceType != 0) { + // Drop wheel input while dragging so it does not all apply at once when the drag ends + pendingWheelScrollNotches.set(0); return; } + wheelScrollTarget = null; + wheelScrollChatHistory = false; menuActionName[0] = "Cancel"; menuActionID[0] = 1107; menuActionRow = 1; @@ -6007,23 +6122,27 @@ public class Game extends RSApplet { if (anInt886 != anInt1026) { anInt1026 = anInt886; } + processWheelScrolling(); return; } buildSplitPrivateChatMenu(); anInt886 = 0; boolean inTabArea; boolean inChatArea; - if (ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH > 512) { + boolean inViewportArea; + if (ClientSettings.isModernLayout()) { inTabArea = (touchTargetArea == TARGET_TAB); inChatArea = (touchTargetArea == TARGET_CHAT); + inViewportArea = (touchTargetArea == TARGET_VIEWPORT && super.mouseX > 4 && super.mouseY > 4 && super.mouseX < ClientSettings.VIEWPORT_WIDTH + 4 && super.mouseY < ClientSettings.VIEWPORT_HEIGHT + 4); } else { inTabArea = (super.mouseX > 553 && super.mouseY > 205 && super.mouseX < 743 && super.mouseY < 466); inChatArea = (super.mouseX > 17 && super.mouseY > 357 && super.mouseX < 496 && super.mouseY < 453); + inViewportArea = (!inTabArea && !inChatArea && super.mouseX > 4 && super.mouseY > 4 && super.mouseX < ClientSettings.VIEWPORT_WIDTH + 4 && super.mouseY < ClientSettings.VIEWPORT_HEIGHT + 4); } - if (!inTabArea && !inChatArea && super.mouseX > 4 && super.mouseY > 4 && super.mouseX < ClientSettings.VIEWPORT_WIDTH + 4 && super.mouseY < ClientSettings.VIEWPORT_HEIGHT + 4) { + if (inViewportArea) { if (openInterfaceID != -1) { - int ifX = Math.max(0, (ClientSettings.VIEWPORT_WIDTH - 512) / 2); - int ifY = Math.max(0, (ClientSettings.VIEWPORT_HEIGHT - 334) / 2); + int ifX = (ClientSettings.ANDROID && ClientSettings.RESIZABLE) ? 0 : Math.max(0, (ClientSettings.VIEWPORT_WIDTH - 512) / 2); + int ifY = (ClientSettings.ANDROID && ClientSettings.RESIZABLE) ? 0 : Math.max(0, (ClientSettings.VIEWPORT_HEIGHT - 334) / 2); RSInterface openInt = RSInterface.interfaceCache[openInterfaceID]; int ifW = openInt != null ? openInt.width : 512; int ifH = openInt != null ? openInt.height : 334; @@ -6065,6 +6184,12 @@ public class Game extends RSApplet { inputTaken = true; anInt1039 = anInt886; } + // Chat history is only drawn when no prompt or dialogue is in the chat area (same checks as drawChatArea) + if (!messagePromptRaised && inputDialogState != 1 && inputDialogState != 2 && aString844 == null && backDialogID == -1 && dialogID == -1 + && super.mouseX > 17 && super.mouseY > 357 && super.mouseX < 496 && super.mouseY < 434) { + wheelScrollChatHistory = true; + } + processWheelScrolling(); processMinimapActions(); boolean flag = false; while (!flag) { @@ -6091,6 +6216,11 @@ public class Game extends RSApplet { } } + if (PluginManager.get() != null) { + try { + PluginManager.get().onPostBuildMenu(); + } catch (Throwable ignored) {} + } } public int method83(int i, int j, int k) { @@ -7466,6 +7596,7 @@ public class Game extends RSApplet { Animable_Sub5.clientInstance = this; ObjectDef.clientInstance = this; EntityDef.clientInstance = this; + PluginManager.init(this); if (myUsername != null && !myUsername.isEmpty()) { loginScreenState = 2; @@ -7519,7 +7650,7 @@ public class Game extends RSApplet { if (anInt1021 != 0) { return; } - if (ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH > 512 && touchTargetArea != TARGET_MINIMAP) { + if (ClientSettings.isModernLayout() && touchTargetArea != TARGET_MINIMAP) { return; } if (super.clickMode3 == 1) { @@ -7952,8 +8083,36 @@ public class Game extends RSApplet { } } + public void drawModernDesktopOverlays() { + // Minimap with authentic circular stone/lizard bezel + drawMinimap(); + if (aRSImageProducer_1164 != null) { + DesktopHooks.drawModernMinimap(DesktopHooks.getRenderGraphics(super.graphics), aRSImageProducer_1164.anIntArray315, ModernLayout.windowWidth); + } + + // Tab area: complete unified floating stone tab block + int[] topTab = (aRSImageProducer_1125 != null) ? aRSImageProducer_1125.anIntArray315 : null; + int[] leftPillarTop = (backVmidIP2 != null) ? backVmidIP2.anIntArray315 : null; + int[] leftPillarMid = (backVmidIP2_2 != null) ? backVmidIP2_2.anIntArray315 : null; + int[] leftPillarBot = (backVmidIP3 != null) ? backVmidIP3.anIntArray315 : null; + int[] tabBody = (aRSImageProducer_1163 != null) ? aRSImageProducer_1163.anIntArray315 : null; + int[] rightPillar = (backRightIP2 != null) ? backRightIP2.anIntArray315 : null; + int[] botTab = (aRSImageProducer_1124 != null) ? aRSImageProducer_1124.anIntArray315 : null; + DesktopHooks.drawModernTab(DesktopHooks.getRenderGraphics(super.graphics), topTab, leftPillarTop, leftPillarMid, leftPillarBot, tabBody, rightPillar, botTab, ModernLayout.windowWidth, ModernLayout.windowHeight); + + // Chat area: authentic floating stone chatbox + int[] chatContent = (aRSImageProducer_1166 != null) ? aRSImageProducer_1166.anIntArray315 : null; + int[] chatButtons = (aRSImageProducer_1123 != null) ? aRSImageProducer_1123.anIntArray315 : null; + DesktopHooks.drawModernChat(DesktopHooks.getRenderGraphics(super.graphics), chatContent, chatButtons, ModernLayout.windowHeight); + + if (aRSImageProducer_1165 != null) { + aRSImageProducer_1165.initDrawingArea(); + Texture.lineOffsets = chatBoxAreaOffsets; + } + } + public void drawFixedFrameBorders() { - if (ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH <= 512) { + if (ClientSettings.ANDROID && !ClientSettings.RESIZABLE && ClientSettings.VIEWPORT_WIDTH <= 512) { if (backLeftIP1 != null) backLeftIP1.drawGraphics(4, super.graphics, 0); if (backLeftIP2 != null) backLeftIP2.drawGraphics(357, super.graphics, 0); if (backRightIP1 != null) backRightIP1.drawGraphics(4, super.graphics, 722); @@ -7967,6 +8126,7 @@ public class Game extends RSApplet { } public void drawGameScreen() { + ModernLayout.inGame = (fullScreenInterfaceId == -1); if (ClientSettings.ANDROID) { if (fullScreenInterfaceId != -1) { resetAllImageProducers(); @@ -8007,7 +8167,7 @@ public class Game extends RSApplet { super.fullGameScreen.drawGraphics(0, super.graphics, 0); return; } - if (welcomeScreenRaised || aRSImageProducer_1165 == null || (ClientSettings.VIEWPORT_WIDTH <= 512 && needDrawFrameBorders)) { + if (welcomeScreenRaised || aRSImageProducer_1165 == null || (!ClientSettings.ANDROID && needDrawFrameBorders) || (ClientSettings.ANDROID && !ClientSettings.RESIZABLE && ClientSettings.VIEWPORT_WIDTH <= 512 && needDrawFrameBorders)) { resetImageProducers2(); welcomeScreenRaised = false; needDrawFrameBorders = false; @@ -8151,7 +8311,9 @@ public class Game extends RSApplet { } if (loadingStage == 2) { drawMinimap(); - aRSImageProducer_1164.drawGraphics(4, super.graphics, 550); + if (!ClientSettings.isDesktopModern()) { + aRSImageProducer_1164.drawGraphics(4, super.graphics, 550); + } } if (anInt1054 != -1) { tabAreaAltered = true; @@ -8211,7 +8373,9 @@ public class Game extends RSApplet { sideIcons[6].method361(208, 13); } } - aRSImageProducer_1125.drawGraphics(160, super.graphics, 516); + if (!ClientSettings.isDesktopModern()) { + aRSImageProducer_1125.drawGraphics(160, super.graphics, 516); + } aRSImageProducer_1124.initDrawingArea(); backBase2.method361(0, 0); if (invOverlayInterfaceID == -1) { @@ -8260,7 +8424,9 @@ public class Game extends RSApplet { sideIcons[12].method361(226, 2); } } - aRSImageProducer_1124.drawGraphics(466, super.graphics, 496); + if (!ClientSettings.isDesktopModern()) { + aRSImageProducer_1124.drawGraphics(466, super.graphics, 496); + } if (aRSImageProducer_1165 != null) { aRSImageProducer_1165.initDrawingArea(); Texture.lineOffsets = chatBoxAreaOffsets; @@ -8304,12 +8470,18 @@ public class Game extends RSApplet { aTextDrawingArea_1271.textCenterShadow(0xff0000, 324, "Off", 41, true); } aTextDrawingArea_1271.textCenterShadow(0xffffff, 458, "Report abuse", 33, true); - aRSImageProducer_1123.drawGraphics(453, super.graphics, 0); + if (!ClientSettings.isDesktopModern()) { + aRSImageProducer_1123.drawGraphics(453, super.graphics, 0); + } if (aRSImageProducer_1165 != null) { aRSImageProducer_1165.initDrawingArea(); Texture.lineOffsets = chatBoxAreaOffsets; } } + if (ClientSettings.isDesktopModern()) { + drawModernDesktopOverlays(); + DesktopHooks.flip(super.graphics); + } anInt945 = 0; } @@ -8960,6 +9132,7 @@ public class Game extends RSApplet { anInt1213 = 0; return; } + DesktopHooks.checkResize(this); if (!loggedIn) { drawLoginScreen(false); } else { @@ -9036,9 +9209,49 @@ public class Game extends RSApplet { } if (openInterfaceID != -1) { method119(anInt945, openInterfaceID); - int ifX = Math.max(0, (ClientSettings.VIEWPORT_WIDTH - 512) / 2); - int ifY = Math.max(0, (ClientSettings.VIEWPORT_HEIGHT - 334) / 2); - drawInterface(0, ifX, RSInterface.interfaceCache[openInterfaceID], ifY); + if (ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + if (openInterfaceOffsets == null) { + openInterfaceOffsets = new int[334]; + for (int l = 0; l < 334; l++) { + openInterfaceOffsets[l] = 512 * l; + } + } + if (openInterfaceProducer == null) { + openInterfaceProducer = new RSImageProducer(512, 334, getGameComponent()); + } + openInterfaceProducer.initDrawingArea(); + Texture.lineOffsets = openInterfaceOffsets; + DrawingArea.setAllPixelsToZero(); + drawInterface(0, 0, RSInterface.interfaceCache[openInterfaceID], 0); + openInterfaceProducer.drawGraphics(0, super.graphics, 0); + if (aRSImageProducer_1165 != null) { + aRSImageProducer_1165.initDrawingArea(); + Texture.lineOffsets = chatBoxAreaOffsets; + } + } else { + int ifX = (ClientSettings.ANDROID && ClientSettings.RESIZABLE) ? 0 : Math.max(0, (ClientSettings.VIEWPORT_WIDTH - 512) / 2); + int ifY = (ClientSettings.ANDROID && ClientSettings.RESIZABLE) ? 0 : Math.max(0, (ClientSettings.VIEWPORT_HEIGHT - 334) / 2); + drawInterface(0, ifX, RSInterface.interfaceCache[openInterfaceID], ifY); + } + } else if (PluginPanelUI.isModalOpen() && ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + if (openInterfaceOffsets == null) { + openInterfaceOffsets = new int[334]; + for (int l = 0; l < 334; l++) { + openInterfaceOffsets[l] = 512 * l; + } + } + if (openInterfaceProducer == null) { + openInterfaceProducer = new RSImageProducer(512, 334, getGameComponent()); + } + openInterfaceProducer.initDrawingArea(); + Texture.lineOffsets = openInterfaceOffsets; + DrawingArea.setAllPixelsToZero(); + PluginPanelUI.drawViewportModal(this); + openInterfaceProducer.drawGraphics(0, super.graphics, 0); + if (aRSImageProducer_1165 != null) { + aRSImageProducer_1165.initDrawingArea(); + Texture.lineOffsets = chatBoxAreaOffsets; + } } method70(); if (!menuOpen) { @@ -9199,7 +9412,7 @@ public class Game extends RSApplet { i += 8; int l = 15 * menuActionRow + 21; - if (ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH > 512) { + if (ClientSettings.isModernLayout()) { if (touchTargetArea == TARGET_TAB) { int j1 = super.saveClickX - 553 - i / 2; if (j1 < 0) j1 = 0; @@ -9439,6 +9652,10 @@ public class Game extends RSApplet { int l = Math.max(0, Math.min(103, yCameraPos >> 7)); int i1 = myPlayer.x >> 7; int j1 = myPlayer.y >> 7; + if (ClientSettings.ANDROID) { + k = Math.max(i1 - 5, Math.min(i1 + 5, k)); + l = Math.max(j1 - 5, Math.min(j1 + 5, l)); + } if ((byteGroundArray[plane][k][l] & 4) != 0) { j = plane; } @@ -9706,7 +9923,15 @@ public class Game extends RSApplet { if (menuActionRow > 2) { s = s + "@whi@ / " + (menuActionRow - 2) + " more options"; } - chatTextDrawingArea.method390(ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH > 512 ? 72 : 4, 0xffffff, s, loopCycle / 1000, 15); + boolean isModern = ClientSettings.isModernLayout(); + boolean isPortrait = isModern && (ClientSettings.VIEWPORT_WIDTH < ClientSettings.VIEWPORT_HEIGHT); + int tooltipX = isModern ? (ClientSettings.ANDROID ? (isPortrait ? 16 : 72) : 8) : 4; + int tooltipY = isModern ? (ClientSettings.ANDROID ? 28 : 20) : 15; + if (HD317Pipeline.isGpuActive()) { + chatTextDrawingArea.textLeftShadow(true, tooltipX, 0xffffff, s, tooltipY); + } else { + chatTextDrawingArea.method390(tooltipX, 0xffffff, s, loopCycle / 1000, tooltipY); + } } public void drawMinimap() { @@ -10135,6 +10360,7 @@ public class Game extends RSApplet { } public void drawLoginScreen(boolean flag) { + ModernLayout.inGame = false; resetImageProducers(); aRSImageProducer_1109.initDrawingArea(); aBackground_966.method361(0, 0); @@ -10591,15 +10817,17 @@ public class Game extends RSApplet { } public void processLoginScreenInput() { + int screenWidth = 765; + int screenHeight = 503; if (loginScreenState == 0) { - int i = super.myWidth / 2 - 80; - int l = super.myHeight / 2 + 20; + int i = screenWidth / 2 - 80; + int l = screenHeight / 2 + 20; l += 20; if (super.clickMode3 == 1 && super.saveClickX >= i - 75 && super.saveClickX <= i + 75 && super.saveClickY >= l - 20 && super.saveClickY <= l + 20) { loginScreenState = 3; loginScreenCursorPos = 0; } - i = super.myWidth / 2 + 80; + i = screenWidth / 2 + 80; if (super.clickMode3 == 1 && super.saveClickX >= i - 75 && super.saveClickX <= i + 75 && super.saveClickY >= l - 20 && super.saveClickY <= l + 20) { loginMessage1 = ""; loginMessage2 = "Enter your username & password."; @@ -10608,7 +10836,7 @@ public class Game extends RSApplet { } } else { if (loginScreenState == 2) { - int j = super.myHeight / 2 - 40; + int j = screenHeight / 2 - 40; j += 30; j += 25; if (super.clickMode3 == 1 && super.saveClickY >= j - 15 && super.saveClickY < j) { @@ -10619,8 +10847,8 @@ public class Game extends RSApplet { loginScreenCursorPos = 1; } j += 15; - int i1 = super.myWidth / 2 - 80; - int k1 = super.myHeight / 2 + 50; + int i1 = screenWidth / 2 - 80; + int k1 = screenHeight / 2 + 50; k1 += 20; if (super.clickMode3 == 1 && super.saveClickX >= i1 - 75 && super.saveClickX <= i1 + 75 && super.saveClickY >= k1 - 20 && super.saveClickY <= k1 + 20) { loginFailures = 0; @@ -10629,7 +10857,7 @@ public class Game extends RSApplet { return; } } - i1 = super.myWidth / 2 + 80; + i1 = screenWidth / 2 + 80; if (super.clickMode3 == 1 && super.saveClickX >= i1 - 75 && super.saveClickX <= i1 + 75 && super.saveClickY >= k1 - 20 && super.saveClickY <= k1 + 20) { loginScreenState = 0; // myUsername = ""; @@ -10681,8 +10909,8 @@ public class Game extends RSApplet { return; } if (loginScreenState == 3) { - int k = super.myWidth / 2; - int j1 = super.myHeight / 2 + 50; + int k = screenWidth / 2; + int j1 = screenHeight / 2 + 50; j1 += 20; if (super.clickMode3 == 1 && super.saveClickX >= k - 75 && super.saveClickX <= k + 75 && super.saveClickY >= j1 - 20 && super.saveClickY <= j1 + 20) { loginScreenState = 0; @@ -11003,6 +11231,11 @@ public class Game extends RSApplet { maxStats[skillID] = k20 + 2; } } + if (PluginManager.get() != null) { + try { + PluginManager.get().onSkillUpdate(skillID, experience, level); + } catch (Throwable ignored) {} + } pktType = -1; return true; @@ -12070,6 +12303,9 @@ public class Game extends RSApplet { } public static int zoom = 3; + public static int getMaxZoom() { + return Math.min(12, WorldController.drawDistance / 3); + } public void method146() { anInt1265++; @@ -12129,13 +12365,17 @@ public class Game extends RSApplet { } } - if (ClientSettings.ANDROID) { + if (ClientSettings.ANDROID || ClientSettings.isDesktopModern()) { if (aRSImageProducer_1165 == null) { resetImageProducers2(); } if (aRSImageProducer_1165 != null) { aRSImageProducer_1165.initDrawingArea(); + Texture.lineOffsets = chatBoxAreaOffsets; } + } else if (aRSImageProducer_1165 != null) { + aRSImageProducer_1165.initDrawingArea(); + Texture.lineOffsets = chatBoxAreaOffsets; } int k2 = Texture.anInt1481; @@ -12145,7 +12385,21 @@ public class Game extends RSApplet { Model.anInt1686 = super.mouseY - 4; DrawingArea.setAllPixelsToZero(); if(graphicsEnabled){ + if (ClientSettings.ANDROID || ClientSettings.HD_317) { + DesktopHooks.initHdBackend(); + if (myPlayer != null) { + WorldController.hdPlayerTileX = Math.max(0, Math.min(103, myPlayer.x >> 7)); + WorldController.hdPlayerTileZ = Math.max(0, Math.min(103, myPlayer.y >> 7)); + WorldController.hdCamDistToPlayer = (int) Math.hypot(xCameraPos - myPlayer.x, yCameraPos - myPlayer.y); + } + if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) { + HD317Pipeline.beginFrame(this, xCameraPos, zCameraPos, yCameraPos, yCameraCurve, xCameraCurve); + } + } worldController.method313(xCameraPos, yCameraPos, xCameraCurve, zCameraPos, j, yCameraCurve); + if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) { + HD317Pipeline.endFrame(DrawingArea.pixels, DrawingArea.width, DrawingArea.height); + } worldController.clearObj5Cache(); updateEntities(); drawHeadIcon(); @@ -12157,8 +12411,9 @@ public class Game extends RSApplet { if (showInfo) { int debugX; int debugY; - if (ClientSettings.VIEWPORT_WIDTH > 512) { - debugX = 72; + if (ClientSettings.isModernLayout()) { + int startX = ClientSettings.ANDROID ? ((ClientSettings.VIEWPORT_WIDTH < ClientSettings.VIEWPORT_HEIGHT) ? 16 : 72) : 8; + debugX = startX; debugY = 30; } else { debugX = 0; @@ -12201,8 +12456,9 @@ public class Game extends RSApplet { int debugHeight = 25 + (debugItems * 15); int debugX; int debugY; - if (ClientSettings.VIEWPORT_WIDTH > 512) { - debugX = (showInfo ? 72 + 140 + 8 : 72); + if (ClientSettings.isModernLayout()) { + int startX = ClientSettings.ANDROID ? ((ClientSettings.VIEWPORT_WIDTH < ClientSettings.VIEWPORT_HEIGHT) ? 16 : 72) : 8; + debugX = (showInfo ? startX + 140 + 8 : startX); debugY = 30; } else { debugX = (511 - debugWidth); @@ -12232,9 +12488,19 @@ public class Game extends RSApplet { chatTextDrawingArea.textRightShadow(true, debugX + debugWidth - 4, RSColors.YELLOW, "" + (calculateTotalLevels() - customSettingShowExperiencePerHourStartLevels), debugY); } + // Plugin overlays and modal + if (PluginManager.get() != null) { + try { + PluginManager.get().onRenderOverlays(); + if (!(ClientSettings.ANDROID && ClientSettings.RESIZABLE)) { + PluginPanelUI.drawViewportModal(this); + } + } catch (Throwable ignored) {} + } + // Draw main screen if (aRSImageProducer_1165 != null) { - aRSImageProducer_1165.drawGraphics(4, super.graphics, 4); + aRSImageProducer_1165.drawGraphics(4, DesktopHooks.getRenderGraphics(super.graphics), 4); } if(graphicsEnabled) { @@ -12263,12 +12529,16 @@ public class Game extends RSApplet { if (openInterfaceID != -1) { openInterfaceID = -1; } + if (PluginPanelUI.isModalOpen()) { + PluginPanelUI.closeModal(); + } } public Game() { if (!ClientSettings.ANDROID) { DesktopHooks.checkJavaVersion(); } + PluginManager.init(this); server = ClientSettings.SERVER_IP; anIntArrayArray825 = new int[104][104]; friendsNodeIDs = new int[200]; @@ -12380,6 +12650,7 @@ public class Game extends RSApplet { musicEnabled = true; needDrawTabArea = false; loggedIn = false; + ModernLayout.inGame = false; canMute = false; aBoolean1159 = false; aBoolean1160 = false; @@ -12753,6 +13024,8 @@ public class Game extends RSApplet { public int[] chatAreaOffsets; public int[] tabAreaOffsets; public int[] chatBoxAreaOffsets; + public int[] openInterfaceOffsets; + public RSImageProducer openInterfaceProducer; public byte[][] aByteArrayArray1183; public int anInt1184; public int minimapInt1; @@ -12981,7 +13254,7 @@ public class Game extends RSApplet { } break; case 34: // VK_PAGE_DOWN - if (zoom < (WorldController.drawDistance / 3)) { + if (zoom < getMaxZoom()) { zoom++; if (ClientSettings.SHOW_ZOOM_LEVEL_MESSAGES) { pushMessage("Your zoom level is now: " + zoom, 0, ""); @@ -13020,118 +13293,6 @@ public class Game extends RSApplet { return levels - 4; } - - public void definitionSearch(String name, int type) { - int amount = 0; - int definitionResultsTotal = 0; - int definitionResultIDs[] = new int[352]; - String definitionResults[] = new String[352]; - String sType = ""; - if (type == 1) { - amount = ItemDef.totalItems; - sType = "Item"; - } else if (type == 2) { - amount = EntityDef.totalNPCs; - sType = "NPC"; - } else if (type == 3) { - amount = ObjectDef.totalObjects; - sType = "Object"; - } else { - type = 1; - amount = ItemDef.totalItems; - sType = "Item"; - } - if (type != 1) { - for (int line = 0; line < 100; line++) { - pushMessage("", 0, ""); - } - } - if (name == null || name.length() == 0) { - definitionResultsTotal = 0; - return; - } - - String search = name; - String parts[] = new String[100]; - int found = 0; - do { - int regex = search.indexOf(" "); - if (regex == -1) { - break; - } - String part = search.substring(0, regex).trim(); - if (part.length() > 0) { - parts[found++] = part.toLowerCase(); - } - search = search.substring(regex + 1); - } while (true); - search = search.trim(); - if (search.length() > 0) { - parts[found++] = search.toLowerCase(); - } - definitionResultsTotal = 0; - label0: for (int definition = 0; definition < amount; definition++) { - String result = ""; - if (type == 1) { - ItemDef item = ItemDef.forID(definition); - if (item.certTemplateID != -1 || item.name == null) { - continue; - } - result = item.name + "@bla@ - " + new String(item.description, StandardCharsets.UTF_8); - } else if (type == 2) { - EntityDef npc = EntityDef.forID(definition); - if (npc.name == null) { - continue; - } - result = npc.name; - } else if (type == 3) { - ObjectDef object = ObjectDef.forID(definition); - if (object.name == null) { - continue; - } - result = object.name; - } - for (int index = 0; index < found; index++) { - if (!result.toLowerCase().contains(parts[index])) { - continue label0; - } - } - - if (type != 1) { - pushMessage("@whi@[" + definition + "] @blu@" + result + "", 0, ""); - } - definitionResults[definitionResultsTotal] = result; - definitionResultIDs[definitionResultsTotal] = definition; - definitionResultsTotal++; - if (definitionResultsTotal >= definitionResults.length) { - break; - } - } - - if (type == 1) { - // Open bank interface - needDrawTabArea = true; - int interfaceID = 5382; - RSInterface class9_1 = RSInterface.interfaceCache[interfaceID]; - openInterface(5292); // Bank interface - RSInterface.interfaceCache[5383].disabledText = "Search results for @yel@" + name; // The Bank of Text - - int itemCount = 0; - for (int ID : definitionResultIDs) { - if (ID > 0 && itemCount < class9_1.inv.length) { - class9_1.inv[itemCount] = ID + 1; // Sets item ID; - class9_1.invStackSizes[itemCount++] = 1; // Sets item amoounts - } - } - while (itemCount < class9_1.inv.length) { - class9_1.inv[itemCount] = 0; - class9_1.invStackSizes[itemCount++] = 0; - } - } else { - pushMessage("@blu@" + sType + " @bla@search results for @blu@" + name + "@bla@ displayed above (@blu@" + definitionResultsTotal + "@bla@ results).", 0, ""); - } - } - public void openInterface(int interfaceID) { method60(interfaceID); if (invOverlayInterfaceID != -1) { @@ -13169,7 +13330,62 @@ public class Game extends RSApplet { tabAreaAltered = true; } + /** + * Mouse wheel notches waiting to be applied on the game thread by processWheelScrolling(), positive scrolls down. + * Written from the AWT event thread, hence atomic. + */ + private final AtomicInteger pendingWheelScrollNotches = new AtomicInteger(); + + /** + * Innermost scrollable interface under the mouse, found each frame while processRightClick() builds the menu. + */ + private RSInterface wheelScrollTarget; + + /** + * Whether the mouse is over the chat history this frame, found while processRightClick() builds the menu. + */ + private boolean wheelScrollChatHistory; + + /** + * Pixels scrolled per mouse wheel notch. + */ + private static final int WHEEL_SCROLL_AMOUNT = 30; + + /** + * Applies pending mouse wheel notches to the scrollable interface or chat history under the mouse, otherwise drops them. + */ + private void processWheelScrolling() { + int notches = pendingWheelScrollNotches.getAndSet(0); + if (notches == 0) { + return; + } + int amount = notches * WHEEL_SCROLL_AMOUNT; + if (wheelScrollTarget != null) { + int maxPosition = wheelScrollTarget.scrollMax - wheelScrollTarget.height; + int position = Math.max(0, Math.min(maxPosition, wheelScrollTarget.scrollPosition + amount)); + if (position != wheelScrollTarget.scrollPosition) { + wheelScrollTarget.scrollPosition = position; + // The target can be in the tab area or the chat area, which only redraw when flagged + needDrawTabArea = true; + inputTaken = true; + } + } else if (wheelScrollChatHistory) { + // anInt1089 is how far the chat history is scrolled up from the newest message, anInt1211 is its total height. + // 77 is the visible height of the chat history area (see drawChatArea), so anInt1211 - 77 is the furthest it + // can scroll up, the same limit the chat scrollbar drag code uses + int position = Math.max(0, Math.min(anInt1211 - 77, anInt1089 - amount)); + if (position != anInt1089) { + anInt1089 = position; + inputTaken = true; + } + } + } + public void adjustZoom(int notches) { + if (!ClientSettings.RESIZABLE && !ClientSettings.ENABLE_QOL) { + zoom = 0; + return; + } if (openInterfaceID == -1) { if (notches < 0) { if (zoom > -1) { @@ -13179,7 +13395,7 @@ public class Game extends RSApplet { } } } else { - if (zoom < (WorldController.drawDistance / 3)) { + if (zoom < getMaxZoom()) { zoom++; if (ClientSettings.SHOW_ZOOM_LEVEL_MESSAGES) { pushMessage("Your zoom level is now: " + zoom, 0, ""); @@ -13190,6 +13406,17 @@ public class Game extends RSApplet { } public void handleMouseWheel(int notches, boolean isControlDown) { + if (PluginPanelUI.isModalOpen()) { + PluginPanelUI.handleMouseWheel(notches); + return; + } + // Interface and chat scrolling is applied on the game thread, ignore it while a right click menu is open + if (!menuOpen) { + pendingWheelScrollNotches.addAndGet(notches); + } + if (!ClientSettings.RESIZABLE && !ClientSettings.ENABLE_QOL) { + return; + } if (!ClientSettings.ANDROID && ClientSettings.CONTROL_KEY_ZOOMING && !isControlDown) { return; } @@ -13275,7 +13502,10 @@ public class Game extends RSApplet { if (!loggedIn) { return false; } - if (ClientSettings.ANDROID && ClientSettings.VIEWPORT_WIDTH > 512) { + if (PluginPanelUI.isModalOpen() && PluginPanelUI.isScrollBarAt(x, y)) { + return true; + } + if (ClientSettings.isModernLayout()) { if (touchTargetArea == TARGET_VIEWPORT) { if (fullScreenInterfaceId != -1) { if (checkInterfaceScrollBar(fullScreenInterfaceId, 0, 0, x, y)) { @@ -13283,8 +13513,8 @@ public class Game extends RSApplet { } } if (openInterfaceID != -1) { - int ifX = Math.max(0, (ClientSettings.VIEWPORT_WIDTH - 512) / 2); - int ifY = Math.max(0, (ClientSettings.VIEWPORT_HEIGHT - 334) / 2); + int ifX = (ClientSettings.ANDROID && ClientSettings.RESIZABLE) ? 0 : Math.max(0, (ClientSettings.VIEWPORT_WIDTH - 512) / 2); + int ifY = (ClientSettings.ANDROID && ClientSettings.RESIZABLE) ? 0 : Math.max(0, (ClientSettings.VIEWPORT_HEIGHT - 334) / 2); return checkInterfaceScrollBar(openInterfaceID, ifX + 4, ifY + 4, x, y); } return false; @@ -13415,4 +13645,27 @@ public class Game extends RSApplet { anInt1187 = 0; anInt1184 = 128; } + + public void setHD317Enabled(boolean enabled) { + DesktopHooks.initHdBackend(); + ClientSettings.HD_317 = enabled; + HD317Pipeline.onToggle(enabled); + PluginManager pm = PluginManager.get(); + if (pm != null) { + pm.syncPluginEnabledState("317 HD", enabled); + } + try { + Texture.method367(); + Texture.method372(0.8D); + } catch (Throwable ignored) { + } + } + + public int getOpenInterfaceWidth() { + return 512; + } + + public int getOpenInterfaceHeight() { + return 334; + } } diff --git a/2006Scape Client/src/main/java/GroundItemsOverlayPlugin.java b/2006Scape Client/src/main/java/GroundItemsOverlayPlugin.java new file mode 100644 index 00000000..5c0e0706 --- /dev/null +++ b/2006Scape Client/src/main/java/GroundItemsOverlayPlugin.java @@ -0,0 +1,449 @@ +import java.text.DecimalFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +/** + * RuneLite-style Ground Items Plugin for Revision 377 client. + * Features: + * - Highlighted items with custom magenta/cyan colors and wildcard matching. + * - Hidden items filter (omitted from overlay). + * - Tile collapsing (merges identical items on the same ground tile). + * - Vertical stacked offsets per tile (prevents overlapping labels). + * - Price & value tiers: Common, Low, Medium, High, and Insane value coloring. + * - Radiant 3D lootbeams for high-value and highlighted drops. + * - Deprioritizes left-click 'Take' for hidden ground items below 'Walk here'. + * - Chat commands (::highlight, ::hide, ::unhighlight, ::unhide, ::grounditems). + */ +public class GroundItemsOverlayPlugin extends ClientPlugin { + + // Configurable Settings + private boolean showNames = true; + private boolean showQuantities = true; + private boolean showValues = true; + private boolean collapseEntries = true; + private boolean showLootbeam = true; + private boolean deprioritizeHidden = true; + + private String highlightedItems = "clue scroll*, *whip, rune *, dragon *, dark bow"; + private String hiddenItems = "vial, empty vial, ashes, pot, jug, bucket, bones"; + + private int lowValueThreshold = 1000; + private int mediumValueThreshold = 10000; + private int highValueThreshold = 100000; + private int insaneValueThreshold = 1000000; + + // Opacity & Transparency settings (0 = transparent, 255 = solid) + private int boxOpacity = 100; + private int textOpacity = 200; + + // Color Palette (RuneLite Authentic) + public static final int COLOR_HIGHLIGHT = 0xdc00ff; // Magenta + public static final int COLOR_INSANE = 0xff9810; // Orange/Amber + public static final int COLOR_HIGH = 0xffd700; // Gold/Yellow + public static final int COLOR_MEDIUM = 0x00ffff; // Cyan + public static final int COLOR_LOW = 0x66ff66; // Light Green + public static final int COLOR_COMMON = 0xffffff; // White + + @Override + public String getName() { + return "Ground Items"; + } + + @Override + public String getDescription() { + return "RuneLite-style ground item labels, price tiers, lootbeams, and tile collapsing."; + } + + @Override + public String getAuthor() { + return "2006Scape"; + } + + @Override + public boolean isEnabledByDefault() { + return true; + } + + @Override + public List getConfigItems() { + List list = new ArrayList<>(); + list.add(new PluginConfigItem("showNames", "Show Ground Items", "Render names and values over ground items", showNames)); + list.add(new PluginConfigItem("highlightedItems", "Highlighted Items", "Comma-separated items or wildcards to highlight (e.g. rune *, whip)", highlightedItems)); + list.add(new PluginConfigItem("hiddenItems", "Hidden Items", "Comma-separated items or wildcards to hide (e.g. ashes, vial)", hiddenItems)); + list.add(new PluginConfigItem("collapseEntries", "Collapse Duplicates", "Collapse identical ground items on the same tile", collapseEntries)); + list.add(new PluginConfigItem("showQuantities", "Show Quantities", "Display quantity stack size next to item names", showQuantities)); + list.add(new PluginConfigItem("showValues", "Show Values", "Display store/alch value in gold next to items", showValues)); + list.add(new PluginConfigItem("showLootbeam", "Show Lootbeams", "Display radiant vertical light beams on valuable drops", showLootbeam)); + list.add(new PluginConfigItem("deprioritizeHidden", "Deprioritize Hidden", "Move left-click 'Take' below 'Walk here' for hidden items", deprioritizeHidden)); + list.add(new PluginConfigItem("lowValueThreshold", "Low Value (Green)", "Threshold for low value items (gp)", lowValueThreshold, 0, 1000000)); + list.add(new PluginConfigItem("mediumValueThreshold", "Medium Value (Cyan)", "Threshold for medium value items (gp)", mediumValueThreshold, 0, 10000000)); + list.add(new PluginConfigItem("highValueThreshold", "High Value (Gold)", "Threshold for high value items (gp)", highValueThreshold, 0, 100000000)); + list.add(new PluginConfigItem("insaneValueThreshold", "Insane Value (Orange)", "Threshold for insane value items (gp)", insaneValueThreshold, 0, 2000000000)); + list.add(new PluginConfigItem("boxOpacity", "Box Opacity", "Background pill box opacity (0 = transparent, 255 = solid)", boxOpacity, 0, 255)); + list.add(new PluginConfigItem("textOpacity", "Text Opacity", "Font transparency for item labels (50 = faint, 255 = solid)", textOpacity, 50, 255)); + list.add(new PluginConfigItem("chatCommands", "Chat Commands", "Allow ::highlight / ::unhighlight / ::hide in chat", true)); + return list; + } + + @Override + public void onConfigChanged(String key, Object value) { + if ("showNames".equals(key)) showNames = (Boolean) value; + else if ("highlightedItems".equals(key)) highlightedItems = (String) value; + else if ("hiddenItems".equals(key)) hiddenItems = (String) value; + else if ("collapseEntries".equals(key)) collapseEntries = (Boolean) value; + else if ("showQuantities".equals(key)) showQuantities = (Boolean) value; + else if ("showValues".equals(key)) showValues = (Boolean) value; + else if ("showLootbeam".equals(key)) showLootbeam = (Boolean) value; + else if ("deprioritizeHidden".equals(key)) deprioritizeHidden = (Boolean) value; + else if ("lowValueThreshold".equals(key)) lowValueThreshold = ((Number) value).intValue(); + else if ("mediumValueThreshold".equals(key)) mediumValueThreshold = ((Number) value).intValue(); + else if ("highValueThreshold".equals(key)) highValueThreshold = ((Number) value).intValue(); + else if ("insaneValueThreshold".equals(key)) insaneValueThreshold = ((Number) value).intValue(); + else if ("boxOpacity".equals(key)) boxOpacity = ((Number) value).intValue(); + else if ("textOpacity".equals(key)) textOpacity = ((Number) value).intValue(); + } + + /** + * Grouped item entry for rendering vertically stacked on a tile. + */ + private static class DisplayItem { + final int id; + final String name; + int amount; + final int singleValue; + long totalValue; + final boolean isHighlighted; + final int color; + + DisplayItem(PluginContext.GroundItemWrapper item, boolean isHighlighted, int color) { + this.id = item.id; + this.name = item.name; + this.amount = item.amount; + this.singleValue = item.value; + this.totalValue = item.totalValue; + this.isHighlighted = isHighlighted; + this.color = color; + } + + void addAmount(int add) { + this.amount += add; + this.totalValue = (long) this.singleValue * this.amount; + } + } + + @Override + public void onRenderOverlay(PluginGraphics g) { + if (!showNames || ctx == null || !ctx.isLoggedIn()) return; + + List rawItems = ctx.getGroundItems(); + if (rawItems == null || rawItems.isEmpty()) return; + + // Group items by tile: key = (worldX << 16) | (worldY & 0xffff) + Map> tileMap = new LinkedHashMap<>(); + Map tileCoords = new HashMap<>(); + + for (PluginContext.GroundItemWrapper raw : rawItems) { + if (raw.getDistance() > 20) continue; + + // Check hidden filter + if (isItemHidden(raw.name)) { + continue; + } + + boolean isHl = isItemHighlighted(raw.name); + int color = getItemColor(raw.name, raw.totalValue, isHl); + + long tileKey = (((long) raw.worldX) << 32) | (raw.worldY & 0xffffffffL); + List list = tileMap.computeIfAbsent(tileKey, k -> new ArrayList<>()); + tileCoords.putIfAbsent(tileKey, new int[]{raw.worldX, raw.worldY}); + + if (collapseEntries) { + // Check if identical item already on tile + DisplayItem existing = null; + for (DisplayItem d : list) { + if (d.id == raw.id) { + existing = d; + break; + } + } + if (existing != null) { + existing.addAmount(raw.amount); + continue; + } + } + + list.add(new DisplayItem(raw, isHl, color)); + } + + // Render each tile's stacked items + for (Map.Entry> entry : tileMap.entrySet()) { + long tileKey = entry.getKey(); + List itemsOnTile = entry.getValue(); + if (itemsOnTile.isEmpty()) continue; + + int[] coords = tileCoords.get(tileKey); + int tileX = coords[0]; + int tileY = coords[1]; + + // Sort so most valuable / highlighted items are on top + Collections.sort(itemsOnTile, (a, b) -> { + if (a.isHighlighted != b.isHighlighted) { + return a.isHighlighted ? 1 : -1; + } + return Long.compare(a.totalValue, b.totalValue); + }); + + // Check if tile qualifies for a lootbeam + if (showLootbeam) { + DisplayItem bestItem = itemsOnTile.get(itemsOnTile.size() - 1); + if (bestItem.isHighlighted || bestItem.totalValue >= highValueThreshold) { + g.drawLootbeam(tileX, tileY, bestItem.color); + } + } + + // Project ground coordinates + int[] screen = g.worldToScreen(tileX, tileY, 20); + if (screen == null) continue; + + int baseX = screen[0]; + int baseY = screen[1]; + + // Render items vertically stacked with offset + for (int i = 0; i < itemsOnTile.size(); i++) { + DisplayItem item = itemsOnTile.get(i); + int rowY = baseY - (i * 14); + + String label = buildItemLabel(item); + int textW = g.getTextWidth(label); + int boxX = baseX - (textW / 2) - 3; + int boxY = rowY - 11; + int boxW = textW + 6; + int boxH = 13; + + // Soft translucent background pill box + if (boxOpacity > 0) { + g.fillRect(boxX, boxY, boxW, boxH, 0x000000, boxOpacity); + } + + // Highlighted / Insane items get colored borders + if (item.isHighlighted || item.totalValue >= insaneValueThreshold) { + g.drawRect(boxX, boxY, boxW, boxH, item.color); + } else if (item.totalValue >= highValueThreshold) { + g.drawRect(boxX, boxY, boxW, boxH, 0x4a4338); + } + + // Render text with configured alpha transparency + g.drawCenteredString(label, baseX, rowY - 1, item.color, textOpacity); + } + } + } + + /** + * Deprioritizes left-click Take for hidden items below 'Walk here'. + */ + @Override + public void onPreMenuRender(List entries) { + if (!deprioritizeHidden || entries == null || entries.size() <= 1) return; + + // Default left-click action is at the end of the entries list + int topIdx = entries.size() - 1; + MenuEntry top = entries.get(topIdx); + + if ("Take".equalsIgnoreCase(top.getAction())) { + String targetName = MenuEntry.stripColorTags(top.getTarget()); + if (isItemHidden(targetName)) { + // Find Walk here entry + int walkIdx = -1; + for (int i = 0; i < entries.size(); i++) { + String clean = MenuEntry.stripColorTags(entries.get(i).getRawText()).toLowerCase(); + if (clean.startsWith("walk here") || clean.startsWith("walk")) { + walkIdx = i; + break; + } + } + if (walkIdx != -1 && walkIdx != topIdx) { + // Promote Walk here to the top (default left click) + MenuEntry walk = entries.remove(walkIdx); + entries.add(walk); + } + } + } + } + + private String buildItemLabel(DisplayItem item) { + StringBuilder sb = new StringBuilder(item.name); + if (showQuantities && item.amount > 1) { + sb.append(" (").append(formatQuantity(item.amount)).append(")"); + } + if (showValues && item.totalValue > 0) { + sb.append(" [").append(formatValue(item.totalValue)).append("]"); + } + return sb.toString(); + } + + private int getItemColor(String name, long totalValue, boolean isHighlighted) { + if (isHighlighted) return COLOR_HIGHLIGHT; + if (totalValue >= insaneValueThreshold) return COLOR_INSANE; + if (totalValue >= highValueThreshold) return COLOR_HIGH; + if (totalValue >= mediumValueThreshold) return COLOR_MEDIUM; + if (totalValue >= lowValueThreshold) return COLOR_LOW; + return COLOR_COMMON; + } + + public boolean isItemHighlighted(String name) { + return matchesAnyPattern(name, highlightedItems); + } + + public boolean isItemHidden(String name) { + return matchesAnyPattern(name, hiddenItems); + } + + private static boolean matchesAnyPattern(String text, String commaSeparatedPatterns) { + if (text == null || commaSeparatedPatterns == null || commaSeparatedPatterns.trim().isEmpty()) { + return false; + } + String cleanText = text.trim().toLowerCase(); + String[] patterns = commaSeparatedPatterns.split(","); + for (String p : patterns) { + String pat = p.trim().toLowerCase(); + if (pat.isEmpty()) continue; + if (matchesWildcard(cleanText, pat)) { + return true; + } + } + return false; + } + + private static boolean matchesWildcard(String text, String pattern) { + if ("*".equals(pattern)) return true; + if (pattern.startsWith("*") && pattern.endsWith("*")) { + String mid = pattern.substring(1, pattern.length() - 1); + return text.contains(mid); + } + if (pattern.startsWith("*")) { + return text.endsWith(pattern.substring(1)); + } + if (pattern.endsWith("*")) { + return text.startsWith(pattern.substring(0, pattern.length() - 1)); + } + return text.equals(pattern); + } + + private static String formatQuantity(int amount) { + if (amount >= 10000000) return (amount / 1000000) + "m"; + if (amount >= 100000) return (amount / 1000) + "k"; + if (amount >= 1000) { + DecimalFormat df = new DecimalFormat("#,###"); + return df.format(amount); + } + return String.valueOf(amount); + } + + private static String formatValue(long value) { + if (value >= 10000000) return (value / 1000000) + "M gp"; + if (value >= 1000000) return String.format("%.1fM gp", value / 1000000.0); + if (value >= 1000) return (value / 1000) + "k gp"; + return value + " gp"; + } + + @Override + public boolean onCommand(String command, String[] args) { + String cmd = command.toLowerCase(); + + if ("highlight".equals(cmd) || "hl".equals(cmd)) { + if (args.length > 0) { + String item = joinArgs(args); + highlightedItems = (highlightedItems != null && !highlightedItems.isEmpty()) ? highlightedItems + ", " + item : item; + if (ctx != null) ctx.sendClientMessage("Added to ground item highlights: " + item); + } else if (ctx != null) { + ctx.sendClientMessage("Usage: ::highlight "); + } + return true; + } + + if ("unhighlight".equals(cmd) || "unhl".equals(cmd)) { + if (args.length > 0) { + String item = joinArgs(args); + highlightedItems = removePattern(highlightedItems, item); + if (ctx != null) ctx.sendClientMessage("Removed from ground item highlights: " + item); + } + return true; + } + + if ("hide".equals(cmd)) { + if (args.length > 0) { + String item = joinArgs(args); + hiddenItems = (hiddenItems != null && !hiddenItems.isEmpty()) ? hiddenItems + ", " + item : item; + if (ctx != null) ctx.sendClientMessage("Added to hidden ground items: " + item); + } else if (ctx != null) { + ctx.sendClientMessage("Usage: ::hide "); + } + return true; + } + + if ("unhide".equals(cmd)) { + if (args.length > 0) { + String item = joinArgs(args); + hiddenItems = removePattern(hiddenItems, item); + if (ctx != null) ctx.sendClientMessage("Removed from hidden ground items: " + item); + } + return true; + } + + if ("grounditems".equals(cmd) || "gi".equals(cmd)) { + if (ctx != null) { + ctx.sendClientMessage("Ground Items Config: [Highlighted: " + highlightedItems + "]"); + ctx.sendClientMessage("Hidden: [" + hiddenItems + "]"); + ctx.sendClientMessage("Tiers: Low=" + lowValueThreshold + "gp, Med=" + mediumValueThreshold + "gp, High=" + highValueThreshold + "gp, Insane=" + insaneValueThreshold + "gp"); + } + return true; + } + + return false; + } + + private static String joinArgs(String[] args) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < args.length; i++) { + if (i > 0) sb.append(" "); + sb.append(args[i]); + } + return sb.toString().trim(); + } + + private static String removePattern(String csv, String target) { + if (csv == null || target == null) return csv; + String[] parts = csv.split(","); + StringBuilder sb = new StringBuilder(); + for (String p : parts) { + String trimmed = p.trim(); + if (!trimmed.equalsIgnoreCase(target.trim()) && !trimmed.isEmpty()) { + if (sb.length() > 0) sb.append(", "); + sb.append(trimmed); + } + } + return sb.toString(); + } + + public int getBoxOpacity() { + return boxOpacity; + } + + public void setBoxOpacity(int boxOpacity) { + this.boxOpacity = Math.max(0, Math.min(255, boxOpacity)); + } + + public int getTextOpacity() { + return textOpacity; + } + + public void setTextOpacity(int textOpacity) { + this.textOpacity = Math.max(50, Math.min(255, textOpacity)); + } +} diff --git a/2006Scape Client/src/main/java/HD317Pipeline.java b/2006Scape Client/src/main/java/HD317Pipeline.java new file mode 100644 index 00000000..24ac0835 --- /dev/null +++ b/2006Scape Client/src/main/java/HD317Pipeline.java @@ -0,0 +1,577 @@ +// 317HD / RLHD Pure-Java Bridge & Shared Shader/Matrix Definitions for 2006Scape Client +// Compiles safely across both Desktop and Android targets with zero platform imports. + +public final class HD317Pipeline { + + public interface HdRendererBackend { + boolean isGpuReady(); + void onSceneLoad(Game game, ObjectManager objectManager, WorldController worldController); + void beginFrame(Game game, int xCam, int yCam, int zCam, int pitch, int yaw); + void drawSimpleTile(Class43 tile, int plane, int tileX, int tileZ); + void drawShapedTile(Class40 tile, int plane, int tileX, int tileZ); + void drawModel(Model model, int orientation, int sinPitch, int cosPitch, int sinYaw, int cosYaw, + int relX, int relY, int relZ, int uid); + void endFrame(int[] dstPixels, int width, int height); + void onToggle(boolean enabled); + default void onStaticChunkInvalidated(int tileX, int tileZ) {} + } + + public static volatile HdRendererBackend backend = null; + public static boolean useStaticScenery = true; + public static boolean drawingWall = false; + public static boolean drawingAnimatedObj = false; + public static int drawingPlane = 0; + + // Runtime 317HD Plugin Configuration + public static volatile boolean cfgShadowsEnabled = true; + public static volatile int cfgShadowResolution = 1024; + public static volatile boolean cfgShadowSoftPcf = true; + public static volatile boolean cfgDynamicLights = true; + public static volatile boolean cfgAtmosphericFog = true; + public static volatile boolean cfgGroundTextures = true; + public static volatile boolean cfgNormalMapping = true; + public static volatile boolean cfgWaterShader = true; + public static volatile float cfgSaturation = 1.0f; + public static volatile float cfgBrightness = 1.0f; + public static volatile boolean cfgContrastCurve = true; + + public static boolean isGpuActive() { + return ClientSettings.HD_317 && backend != null && backend.isGpuReady(); + } + + public static void onSceneLoad(Game game, ObjectManager objectManager, WorldController worldController) { + HdRendererBackend b = backend; + if (b != null) { + b.onSceneLoad(game, objectManager, worldController); + } + } + + public static void beginFrame(Game game, int xCam, int yCam, int zCam, int pitch, int yaw) { + if (!ClientSettings.HD_317) return; + HdRendererBackend b = backend; + if (b != null) { + b.beginFrame(game, xCam, yCam, zCam, pitch, yaw); + } + } + + public static void drawSimpleTile(Class43 tile, int plane, int tileX, int tileZ) { + HdRendererBackend b = backend; + if (b != null) { + b.drawSimpleTile(tile, plane, tileX, tileZ); + } + } + + public static void drawShapedTile(Class40 tile, int plane, int tileX, int tileZ) { + HdRendererBackend b = backend; + if (b != null) { + b.drawShapedTile(tile, plane, tileX, tileZ); + } + } + + public static void drawModel(Model model, int orientation, int sinPitch, int cosPitch, int sinYaw, int cosYaw, + int relX, int relY, int relZ, int uid) { + HdRendererBackend b = backend; + if (b != null) { + b.drawModel(model, orientation, sinPitch, cosPitch, sinYaw, cosYaw, relX, relY, relZ, uid); + } + } + + public static void endFrame(int[] dstPixels, int width, int height) { + if (!ClientSettings.HD_317) return; + HdRendererBackend b = backend; + if (b != null) { + b.endFrame(dstPixels, width, height); + } + } + + public static void onToggle(boolean enabled) { + HdRendererBackend b = backend; + if (b != null) { + b.onToggle(enabled); + } + } + + public static void invalidateStaticChunk(int tileX, int tileZ) { + if (!useStaticScenery || !isGpuActive()) return; + HdRendererBackend b = backend; + if (b != null) { + b.onStaticChunkInvalidated(tileX, tileZ); + } + } + + // ========================================================================= + // SHARED GLSL SHADERS (GLSL ES 3.00 / Desktop GLSL 3.30 Core) + // ========================================================================= + + public static final String SHADOW_VERT = + "#version 300 es\n" + + "precision highp float;\n" + + "layout(location = 0) in vec3 aPos;\n" + + "layout(location = 2) in vec2 aUv;\n" + + "layout(location = 4) in vec4 aMatAndBary;\n" + + "uniform mat4 uLightViewProj;\n" + + "out vec2 vUv;\n" + + "flat out float vMatId;\n" + + "void main() {\n" + + " vUv = aUv;\n" + + " vMatId = aMatAndBary.x;\n" + + " gl_Position = uLightViewProj * vec4(aPos, 1.0);\n" + + "}\n"; + + public static final String SHADOW_FRAG = + "#version 300 es\n" + + "precision mediump float;\n" + + "precision mediump sampler2DArray;\n" + + "in vec2 vUv;\n" + + "flat in float vMatId;\n" + + "uniform sampler2DArray uDiffuseArray;\n" + + "void main() {\n" + + " if (vMatId >= 0.0 && vMatId < 49.5) {\n" + + " float a = textureLod(uDiffuseArray, vec3(vUv, floor(vMatId + 0.5)), 0.0).a;\n" + + " if (a < 0.5) discard;\n" + + " }\n" + + "}\n"; + + public static final String SCENE_VERT = + "#version 300 es\n" + + "precision highp float;\n" + + "layout(location = 0) in vec3 aPos;\n" + + "layout(location = 1) in vec3 aNormal;\n" + + "layout(location = 2) in vec2 aUv;\n" + + "layout(location = 3) in vec4 aColor;\n" + + "layout(location = 4) in vec4 aMatAndBary;\n" + + "\n" + + "uniform mat4 uViewProj;\n" + + "uniform mat4 uLightViewProj;\n" + + "\n" + + "out vec3 vWorldPos;\n" + + "out vec3 vNormal;\n" + + "out vec2 vUv;\n" + + "out vec4 vColor;\n" + + "out vec3 vBary;\n" + + "out vec4 vLightSpacePos;\n" + + "flat out vec3 vMatIds;\n" + + "flat out float vSurfType;\n" + + "\n" + + "void main() {\n" + + " vWorldPos = aPos;\n" + + " vNormal = aNormal;\n" + + " vUv = aUv;\n" + + " vColor = aColor;\n" + + " vMatIds = aMatAndBary.xyz;\n" + + " float packedVal = aMatAndBary.w;\n" + + " float intPart = floor(packedVal);\n" + + " float faceBias = packedVal - intPart;\n" + + " float bIdx = mod(intPart, 4.0);\n" + + " float planeAndSurf = floor(intPart / 4.0);\n" + + " float vPlane = floor(planeAndSurf / 8.0);\n" + + " vSurfType = planeAndSurf - vPlane * 8.0;\n" + + " if (bIdx < 0.5) vBary = vec3(1.0, 0.0, 0.0);\n" + + " else if (bIdx < 1.5) vBary = vec3(0.0, 1.0, 0.0);\n" + + " else vBary = vec3(0.0, 0.0, 1.0);\n" + + " vLightSpacePos = uLightViewProj * vec4(aPos, 1.0);\n" + + " vec4 pos = uViewProj * vec4(aPos, 1.0);\n" + + " float worldBias = vPlane * 3.0;\n" + + " if (vSurfType > 3.5) {\n" + + " worldBias += faceBias * 0.4;\n" + + " } else if (vSurfType > 2.5) {\n" + + " worldBias += 1.8 + faceBias * 0.8;\n" + + " } else if (vSurfType > 0.5 && vSurfType < 1.5) {\n" + + " worldBias += 0.5 + faceBias * 1.2;\n" + + " }\n" + + " pos.z -= (worldBias * 100.0) / max(pos.w, 100.0);\n" + + " gl_Position = pos;\n" + + "}\n"; + + public static final String SCENE_FRAG = + "#version 300 es\n" + + "precision highp float;\n" + + "precision highp sampler2DArray;\n" + + "\n" + + "in vec3 vWorldPos;\n" + + "in vec3 vNormal;\n" + + "in vec2 vUv;\n" + + "in vec4 vColor;\n" + + "in vec3 vBary;\n" + + "in vec4 vLightSpacePos;\n" + + "flat in vec3 vMatIds;\n" + + "flat in float vSurfType;\n" + + "\n" + + "uniform sampler2DArray uDiffuseArray;\n" + + "uniform sampler2DArray uNormalArray;\n" + + "uniform sampler2DShadow uShadowMap;\n" + + "\n" + + "uniform vec3 uCameraPos;\n" + + "uniform vec3 uSunDir;\n" + + "uniform vec3 uSunColor;\n" + + "uniform vec3 uAmbientColor;\n" + + "uniform vec3 uSkyColor;\n" + + "uniform vec3 uFogColor;\n" + + "uniform float uFogMin;\n" + + "uniform float uFogMax;\n" + + "uniform float uTime;\n" + + "uniform float uShadowTexelSize;\n" + + "uniform int uShadowsEnabled;\n" + + "uniform int uShadowSoftPcf;\n" + + "uniform int uGroundTextures;\n" + + "uniform int uNormalMapping;\n" + + "uniform int uWaterShader;\n" + + "uniform float uSaturation;\n" + + "uniform float uBrightness;\n" + + "uniform int uContrastCurve;\n" + + "\n" + + "uniform int uLightCount;\n" + + "uniform vec4 uLightPosRad[16];\n" + + "uniform vec4 uLightColorInt[16];\n" + + "\n" + + "out vec4 fragColor;\n" + + "\n" + + "vec3 perturbTerrainNormal(vec3 N, vec3 tsNormal) {\n" + + " vec3 T = normalize(vec3(1.0, 0.0, 0.0) - N * N.x);\n" + + " vec3 B = cross(N, T);\n" + + " return normalize(T * tsNormal.x + B * tsNormal.y + N * tsNormal.z);\n" + + "}\n" + + "\n" + + "vec3 perturbNormalAnalytical(vec3 N, vec3 tsNormal) {\n" + + " vec3 up = abs(N.y) < 0.999 ? vec3(0.0, 1.0, 0.0) : vec3(1.0, 0.0, 0.0);\n" + + " vec3 T = normalize(cross(up, N));\n" + + " vec3 B = cross(N, T);\n" + + " return normalize(T * tsNormal.x + B * tsNormal.y + N * tsNormal.z);\n" + + "}\n" + + "\n" + + "float sampleShadowMap(vec4 lightSpacePos, vec3 geomN) {\n" + + " vec3 projCoords = lightSpacePos.xyz / lightSpacePos.w;\n" + + " projCoords = projCoords * 0.5 + 0.5;\n" + + " if (projCoords.x <= 0.01 || projCoords.x >= 0.99 || projCoords.y <= 0.01 || projCoords.y >= 0.99 || projCoords.z >= 0.999) {\n" + + " return 0.0;\n" + + " }\n" + + " float currentDepth = projCoords.z;\n" + + " float cosTheta = max(dot(geomN, uSunDir), 0.0);\n" + + " float bias = max(0.0016 * (1.0 - cosTheta), 0.0004);\n" + + " float refDepth = currentDepth - bias;\n" + + " float shadow;\n" + + " if (uShadowSoftPcf == 0) {\n" + + " shadow = 1.0 - texture(uShadowMap, vec3(projCoords.xy, refDepth));\n" + + " } else {\n" + + " float r = uShadowTexelSize * 0.75;\n" + + " float lit = texture(uShadowMap, vec3(projCoords.xy + vec2(-r, -r), refDepth));\n" + + " lit += texture(uShadowMap, vec3(projCoords.xy + vec2( r, -r), refDepth));\n" + + " lit += texture(uShadowMap, vec3(projCoords.xy + vec2(-r, r), refDepth));\n" + + " lit += texture(uShadowMap, vec3(projCoords.xy + vec2( r, r), refDepth));\n" + + " shadow = 1.0 - lit * 0.25;\n" + + " }\n" + + " vec2 edgeDist = min(projCoords.xy, 1.0 - projCoords.xy);\n" + + " float edgeFade = smoothstep(0.01, 0.08, min(edgeDist.x, edgeDist.y));\n" + + " return shadow * edgeFade;\n" + + "}\n" + + "\n" + + "void main() {\n" + + " vec3 geomN = length(vNormal) > 1e-4 ? normalize(vNormal) : vec3(0.0, -1.0, 0.0);\n" + + " vec3 viewVec = uCameraPos - vWorldPos;\n" + + " float distToCam = length(viewVec);\n" + + " vec3 V = viewVec / max(distToCam, 1e-4);\n" + + "\n" + + " float texLod = clamp(log2(max(distToCam, 550.0) / 720.0), 0.0, 2.2);\n" + + "\n" + + " vec3 baseAlbedo = vColor.rgb;\n" + + " float outAlpha = vColor.a;\n" + + " vec3 N = geomN;\n" + + " float specStrength = 0.10;\n" + + " float specGloss = 16.0;\n" + + " bool isEmissive = false;\n" + + "\n" + + " if (vSurfType > 1.5 && vSurfType < 2.5) {\n" + + " if (uWaterShader != 0) {\n" + + " vec2 wUv1 = vWorldPos.xz / 160.0 + vec2(uTime * 0.028, uTime * 0.018);\n" + + " vec2 wUv2 = vWorldPos.xz / 120.0 - vec2(uTime * 0.022, -uTime * 0.025);\n" + + " vec3 wn1 = textureLod(uNormalArray, vec3(wUv1, 62.0), texLod).rgb * 2.0 - 1.0;\n" + + " vec3 wn2 = textureLod(uNormalArray, vec3(wUv2, 63.0), texLod).rgb * 2.0 - 1.0;\n" + + " vec3 waveTs = normalize(vec3(wn1.xy + wn2.xy, 1.6));\n" + + " N = perturbNormalAnalytical(geomN, normalize(vec3(waveTs.x * 0.32, waveTs.y * 0.32, waveTs.z)));\n" + + " float fresnel = pow(1.0 - max(dot(N, V), 0.0), 3.0);\n" + + " vec3 deepWater = vec3(0.14, 0.28, 0.42);\n" + + " vec3 shallowWater = vec3(0.24, 0.44, 0.54);\n" + + " baseAlbedo = mix(deepWater, mix(shallowWater, uSkyColor, 0.55), clamp(fresnel * 0.80, 0.0, 0.88));\n" + + " specStrength = 0.45;\n" + + " specGloss = 96.0;\n" + + " } else {\n" + + " baseAlbedo = vec3(0.16, 0.32, 0.48);\n" + + " specStrength = 0.15;\n" + + " specGloss = 32.0;\n" + + " }\n" + + " } else if (vSurfType < 0.5) {\n" + + " if (uGroundTextures != 0) {\n" + + " float mA = floor(vMatIds.x + 0.5);\n" + + " float mB = floor(vMatIds.y + 0.5);\n" + + " float mC = floor(vMatIds.z + 0.5);\n" + + " vec4 dSample;\n" + + " vec4 nSample;\n" + + " if (abs(mA - mB) < 0.1 && abs(mB - mC) < 0.1) {\n" + + " dSample = textureLod(uDiffuseArray, vec3(vUv, max(0.0, mA)), texLod);\n" + + " nSample = (uNormalMapping != 0) ? textureLod(uNormalArray, vec3(vUv, max(0.0, mA)), texLod) : vec4(0.5, 0.5, 1.0, 0.0);\n" + + " } else {\n" + + " vec4 dA = textureLod(uDiffuseArray, vec3(vUv, max(0.0, mA)), texLod);\n" + + " vec4 dB = textureLod(uDiffuseArray, vec3(vUv, max(0.0, mB)), texLod);\n" + + " vec4 dC = textureLod(uDiffuseArray, vec3(vUv, max(0.0, mC)), texLod);\n" + + "\n" + + " float hA = dA.a * 0.90 + vBary.x;\n" + + " float hB = dB.a * 0.90 + vBary.y;\n" + + " float hC = dC.a * 0.90 + vBary.z;\n" + + " float maxH = max(hA, max(hB, hC)) - 0.20;\n" + + " vec3 w = max(vec3(hA, hB, hC) - maxH, 0.0001);\n" + + " w /= (w.x + w.y + w.z);\n" + + " dSample = dA * w.x + dB * w.y + dC * w.z;\n" + + " if (uNormalMapping != 0) {\n" + + " vec4 nA = textureLod(uNormalArray, vec3(vUv, max(0.0, mA)), texLod);\n" + + " vec4 nB = textureLod(uNormalArray, vec3(vUv, max(0.0, mB)), texLod);\n" + + " vec4 nC = textureLod(uNormalArray, vec3(vUv, max(0.0, mC)), texLod);\n" + + " nSample = nA * w.x + nB * w.y + nC * w.z;\n" + + " } else {\n" + + " nSample = vec4(0.5, 0.5, 1.0, 0.0);\n" + + " }\n" + + " }\n" + + "\n" + + " baseAlbedo = vColor.rgb * dSample.rgb;\n" + + " if (uNormalMapping != 0) {\n" + + " vec3 tsN = normalize(nSample.rgb * 2.0 - 1.0);\n" + + " float dominantMat = (vBary.x > vBary.y && vBary.x > vBary.z) ? mA : (vBary.y > vBary.z ? mB : mC);\n" + + " if (dominantMat >= 53.0 && dominantMat <= 57.5) {\n" + + " specStrength = 0.08 * nSample.a;\n" + + " specGloss = 18.0;\n" + + " N = perturbTerrainNormal(geomN, normalize(vec3(tsN.xy * 0.40, tsN.z)));\n" + + " } else {\n" + + " specStrength = 0.02 * nSample.a;\n" + + " specGloss = 10.0;\n" + + " N = perturbTerrainNormal(geomN, normalize(vec3(tsN.xy * 0.25, tsN.z)));\n" + + " }\n" + + " }\n" + + " }\n" + + " } else {\n" + + " float mId = floor(vMatIds.x + 0.5);\n" + + " if (mId >= 0.0) {\n" + + " vec2 modelUv = vUv;\n" + + " bool isWaterDroplet = (mId == 24.0 || mId == 17.0);\n" + + " if (isWaterDroplet) {\n" + + " modelUv.y -= uTime * 0.48;\n" + + " }\n" + + " float modelLod = isWaterDroplet ? 0.0 : texLod;\n" + + " vec4 dSample = textureLod(uDiffuseArray, vec3(modelUv, mId), modelLod);\n" + + " if (isWaterDroplet) {\n" + + " if (dSample.a < 0.25) discard;\n" + + " baseAlbedo = dSample.rgb;\n" + + " outAlpha = clamp(dSample.a * 0.85, 0.0, 0.85) * vColor.a;\n" + + " } else {\n" + + " if (mId < 49.5 && dSample.a < 0.5) discard;\n" + + " baseAlbedo = dSample.rgb * vColor.rgb;\n" + + " }\n" + + " if (uNormalMapping != 0) {\n" + + " vec4 nSample = textureLod(uNormalArray, vec3(modelUv, mId), modelLod);\n" + + " vec3 tsN = normalize(nSample.rgb * 2.0 - 1.0);\n" + + " N = perturbNormalAnalytical(geomN, tsN);\n" + + " specStrength = isWaterDroplet ? 0.45 : (0.12 * nSample.a);\n" + + " specGloss = isWaterDroplet ? 48.0 : 18.0;\n" + + " }\n" + + " isEmissive = (mId == 31.0 || mId == 40.0);\n" + + " }\n" + + " }\n" + + "\n" + + " float wrapDiff = max(0.0, (dot(N, uSunDir) + 0.18) / 1.18);\n" + + " float shadow = (uShadowsEnabled != 0 && !isEmissive && wrapDiff > 0.001) ? sampleShadowMap(vLightSpacePos, geomN) : 0.0;\n" + + " float sunVis = 1.0 - shadow * 0.65;\n" + + "\n" + + " vec3 ambient = uAmbientColor * (0.58 + 0.18 * max(-N.y, 0.0));\n" + + " vec3 direct = uSunColor * wrapDiff * 0.64 * sunVis;\n" + + "\n" + + " vec3 H = normalize(uSunDir + V);\n" + + " float spec = pow(max(dot(N, H), 0.0), specGloss) * specStrength * sunVis;\n" + + " vec3 specColor = uSunColor * spec;\n" + + "\n" + + " vec3 pointLightSum = vec3(0.0);\n" + + " for (int i = 0; i < uLightCount; ++i) {\n" + + " vec3 lVec = uLightPosRad[i].xyz - vWorldPos;\n" + + " float rad = uLightPosRad[i].w;\n" + + " float d2 = dot(lVec, lVec);\n" + + " if (d2 < rad * rad) {\n" + + " float d = sqrt(d2);\n" + + " float atten = 1.0 - (d / rad);\n" + + " atten = atten * atten;\n" + + " vec3 L = lVec / max(d, 1.0);\n" + + " float pDiff = max(dot(N, L), 0.25);\n" + + " pointLightSum += uLightColorInt[i].rgb * (uLightColorInt[i].w * atten * pDiff);\n" + + " }\n" + + " }\n" + + "\n" + + " vec3 litColor = isEmissive ? (baseAlbedo * 1.35) : (baseAlbedo * (ambient + direct + pointLightSum) + specColor);\n" + + "\n" + + " if (distToCam > uFogMin) {\n" + + " float fogT = clamp((distToCam - uFogMin) / max(1.0, uFogMax - uFogMin), 0.0, 1.0);\n" + + " fogT = fogT * fogT * (3.0 - 2.0 * fogT);\n" + + " litColor = mix(litColor, uFogColor, fogT);\n" + + " }\n" + + "\n" + + " litColor *= uBrightness;\n" + + " float luma = dot(litColor, vec3(0.299, 0.587, 0.114));\n" + + " litColor = mix(vec3(luma), litColor, uSaturation);\n" + + "\n" + + " fragColor = vec4(clamp(litColor, 0.0, 1.0), outAlpha);\n" + + "}\n"; + + public static final String SCENE_FRAG_DIRECT = SCENE_FRAG.replace( + " fragColor = vec4(clamp(litColor, 0.0, 1.0), outAlpha);\n", + " vec3 col = clamp(litColor, 0.0, 1.0);\n" + + " if (uContrastCurve != 0) {\n" + + " col = mix(col, col * col * (3.0 - 2.0 * col), 0.12);\n" + + " }\n" + + " fragColor = vec4(col.b, col.g, col.r, outAlpha);\n" + ); + + public static final String POST_VERT = + "#version 300 es\n" + + "precision highp float;\n" + + "layout(location = 0) in vec2 aQuadPos;\n" + + "out vec2 vUv;\n" + + "void main() {\n" + + " vUv = vec2(aQuadPos.x * 0.5 + 0.5, 0.5 - aQuadPos.y * 0.5);\n" + + " gl_Position = vec4(aQuadPos, 0.0, 1.0);\n" + + "}\n"; + + public static final String POST_FRAG = + "#version 300 es\n" + + "precision mediump float;\n" + + "in vec2 vUv;\n" + + "uniform sampler2D uSceneTex;\n" + + "uniform vec2 uTexelSize;\n" + + "out vec4 fragColor;\n" + + "void main() {\n" + + " vec4 scene = texture(uSceneTex, vUv);\n" + + " vec3 col = scene.rgb;\n" + + " if (scene.a < 0.01) {\n" + + " float skyT = clamp((vUv.y - 0.25) * 1.35, 0.0, 1.0);\n" + + " col = mix(col, col * vec3(0.52, 0.72, 0.95), skyT);\n" + + " }\n" + + " vec3 b1 = texture(uSceneTex, vUv + vec2(-2.5, -2.5) * uTexelSize).rgb;\n" + + " vec3 b2 = texture(uSceneTex, vUv + vec2( 2.5, -2.5) * uTexelSize).rgb;\n" + + " vec3 b3 = texture(uSceneTex, vUv + vec2(-2.5, 2.5) * uTexelSize).rgb;\n" + + " vec3 b4 = texture(uSceneTex, vUv + vec2( 2.5, 2.5) * uTexelSize).rgb;\n" + + " vec3 avg = (b1 + b2 + b3 + b4) * 0.25;\n" + + " vec3 bloom = max(avg - 0.88, 0.0) * 0.35;\n" + + " col = clamp(col + bloom, 0.0, 1.0);\n" + + " col = mix(col, col * col * (3.0 - 2.0 * col), 0.12);\n" + + " fragColor = vec4(col.b, col.g, col.r, 1.0);\n" + + "}\n"; + + /** + * Converts a "#version 300 es" shader string to "#version 330 core" for desktop OpenGL 3.3 Core Profile. + */ + public static String adaptGlslForDesktop330(String src) { + return src.replace("#version 300 es\n", "#version 330 core\n") + .replace("precision highp float;\n", "") + .replace("precision mediump float;\n", "") + .replace("precision highp sampler2DArray;\n", "") + .replace("precision mediump sampler2DArray;\n", ""); + } + + // ========================================================================= + // PURE-JAVA 4x4 MATRIX UTILITIES (replaces android.opengl.Matrix) + // ========================================================================= + + public static void setLookAtM(float[] rm, int rmOffset, + float eyeX, float eyeY, float eyeZ, + float centerX, float centerY, float centerZ, + float upX, float upY, float upZ) { + float fx = centerX - eyeX; + float fy = centerY - eyeY; + float fz = centerZ - eyeZ; + float rlf = 1.0f / (float) Math.sqrt(fx * fx + fy * fy + fz * fz); + fx *= rlf; + fy *= rlf; + fz *= rlf; + + float sx = fy * upZ - fz * upY; + float sy = fz * upX - fx * upZ; + float sz = fx * upY - fy * upX; + float rls = 1.0f / (float) Math.sqrt(sx * sx + sy * sy + sz * sz); + sx *= rls; + sy *= rls; + sz *= rls; + + float ux = sy * fz - sz * fy; + float uy = sz * fx - sx * fz; + float uz = sx * fy - sy * fx; + + rm[rmOffset] = sx; + rm[rmOffset + 1] = ux; + rm[rmOffset + 2] = -fx; + rm[rmOffset + 3] = 0.0f; + + rm[rmOffset + 4] = sy; + rm[rmOffset + 5] = uy; + rm[rmOffset + 6] = -fy; + rm[rmOffset + 7] = 0.0f; + + rm[rmOffset + 8] = sz; + rm[rmOffset + 9] = uz; + rm[rmOffset + 10] = -fz; + rm[rmOffset + 11] = 0.0f; + + rm[rmOffset + 12] = -(sx * eyeX + sy * eyeY + sz * eyeZ); + rm[rmOffset + 13] = -(ux * eyeX + uy * eyeY + uz * eyeZ); + rm[rmOffset + 14] = (fx * eyeX + fy * eyeY + fz * eyeZ); + rm[rmOffset + 15] = 1.0f; + } + + public static void orthoM(float[] m, int mOffset, + float left, float right, float bottom, float top, + float near, float far) { + float r_width = 1.0f / (right - left); + float r_height = 1.0f / (top - bottom); + float r_depth = 1.0f / (far - near); + float x = 2.0f * r_width; + float y = 2.0f * r_height; + float z = -2.0f * r_depth; + float tx = -(right + left) * r_width; + float ty = -(top + bottom) * r_height; + float tz = -(far + near) * r_depth; + + m[mOffset] = x; + m[mOffset + 5] = y; + m[mOffset + 10] = z; + m[mOffset + 12] = tx; + m[mOffset + 13] = ty; + m[mOffset + 14] = tz; + m[mOffset + 15] = 1.0f; + m[mOffset + 1] = 0.0f; + m[mOffset + 2] = 0.0f; + m[mOffset + 3] = 0.0f; + m[mOffset + 4] = 0.0f; + m[mOffset + 6] = 0.0f; + m[mOffset + 7] = 0.0f; + m[mOffset + 8] = 0.0f; + m[mOffset + 9] = 0.0f; + m[mOffset + 11] = 0.0f; + } + + public static void multiplyMM(float[] result, int resultOffset, + float[] lhs, int lhsOffset, + float[] rhs, int rhsOffset) { + for (int i = 0; i < 4; i++) { + final float rhs_i0 = rhs[rhsOffset + (i << 2)]; + float ri0 = lhs[lhsOffset] * rhs_i0; + float ri1 = lhs[lhsOffset + 1] * rhs_i0; + float ri2 = lhs[lhsOffset + 2] * rhs_i0; + float ri3 = lhs[lhsOffset + 3] * rhs_i0; + for (int j = 1; j < 4; j++) { + final float rhs_ij = rhs[rhsOffset + (i << 2) + j]; + final int lhsCol = lhsOffset + (j << 2); + ri0 += lhs[lhsCol] * rhs_ij; + ri1 += lhs[lhsCol + 1] * rhs_ij; + ri2 += lhs[lhsCol + 2] * rhs_ij; + ri3 += lhs[lhsCol + 3] * rhs_ij; + } + result[resultOffset + (i << 2)] = ri0; + result[resultOffset + (i << 2) + 1] = ri1; + result[resultOffset + (i << 2) + 2] = ri2; + result[resultOffset + (i << 2) + 3] = ri3; + } + } +} diff --git a/2006Scape Client/src/main/java/Hd317Plugin.java b/2006Scape Client/src/main/java/Hd317Plugin.java new file mode 100644 index 00000000..0dee48ef --- /dev/null +++ b/2006Scape Client/src/main/java/Hd317Plugin.java @@ -0,0 +1,162 @@ +import java.util.ArrayList; +import java.util.List; + +/** + * 317HD / RLHD Hardware-Accelerated Graphics Plugin. + * Exposes 317HD visual & performance settings in the Plugin Hub and synchronizes + * with ClientSettings.HD_317 and HD317Pipeline. + */ +public class Hd317Plugin extends ClientPlugin { + + private boolean shadowsEnabled = true; + private String shadowResolution = "1024"; + private String shadowSoftness = "PCF 4-Tap"; + private boolean dynamicLights = true; + private boolean atmosphericFog = true; + private int drawDistance = 25; + private boolean groundTextures = true; + private boolean normalMapping = true; + private boolean waterShader = true; + private int saturation = 100; + private int brightness = 100; + private boolean contrastCurve = true; + + @Override + public String getName() { + return "317 HD"; + } + + @Override + public String getDescription() { + return "Hardware-accelerated OpenGL 317HD lighting, shadows, water, and textures."; + } + + @Override + public String getAuthor() { + return "2006Scape"; + } + + @Override + public String getVersion() { + return "1.0.0"; + } + + @Override + public boolean isEnabledByDefault() { + return ClientSettings.HD_317; + } + + @Override + public List getConfigItems() { + List list = new ArrayList<>(); + list.add(new PluginConfigItem("shadowsEnabled", "Shadows", "Render directional sun shadows", shadowsEnabled)); + list.add(new PluginConfigItem("shadowResolution", "Shadow Resolution", "Shadow map resolution (higher = sharper, slower)", shadowResolution, new String[]{"512", "1024", "2048"}).setVisibleWhen("shadowsEnabled")); + list.add(new PluginConfigItem("shadowSoftness", "Shadow Quality", "1-Tap bilinear or 4-Tap soft PCF shadows", shadowSoftness, new String[]{"Hard (1-Tap)", "PCF 4-Tap"}).setVisibleWhen("shadowsEnabled")); + list.add(new PluginConfigItem("dynamicLights", "Dynamic Lighting", "Point lights from fires, torches, braziers, and altars", dynamicLights)); + list.add(new PluginConfigItem("atmosphericFog", "Atmospheric Fog", "Distance fog and regional color grading", atmosphericFog)); + list.add(new PluginConfigItem("drawDistance", "Draw Distance", "Maximum render distance in tiles", drawDistance, 15, 55)); + list.add(new PluginConfigItem("groundTextures", "Ground Textures", "Procedural 317HD ground textures and height splatting", groundTextures)); + list.add(new PluginConfigItem("normalMapping", "Normal Mapping", "Surface bump detail and specular highlights", normalMapping)); + list.add(new PluginConfigItem("waterShader", "HD Water Shader", "Animated dual-wave water with Fresnel sky reflection", waterShader)); + list.add(new PluginConfigItem("saturation", "Saturation (%)", "Color saturation percentage", saturation, 50, 150)); + list.add(new PluginConfigItem("brightness", "Brightness (%)", "Scene brightness percentage", brightness, 60, 140)); + list.add(new PluginConfigItem("contrastCurve", "Contrast Tonemapping", "317HD S-curve contrast enhancement", contrastCurve)); + return list; + } + + @Override + public void onConfigChanged(String key, Object value) { + if ("shadowsEnabled".equals(key)) { + shadowsEnabled = (Boolean) value; + HD317Pipeline.cfgShadowsEnabled = shadowsEnabled; + } else if ("shadowResolution".equals(key)) { + shadowResolution = String.valueOf(value); + try { + HD317Pipeline.cfgShadowResolution = Integer.parseInt(shadowResolution); + } catch (NumberFormatException ignored) { + HD317Pipeline.cfgShadowResolution = 1024; + } + } else if ("shadowSoftness".equals(key)) { + shadowSoftness = String.valueOf(value); + HD317Pipeline.cfgShadowSoftPcf = !"Hard (1-Tap)".equals(shadowSoftness); + } else if ("dynamicLights".equals(key)) { + dynamicLights = (Boolean) value; + HD317Pipeline.cfgDynamicLights = dynamicLights; + } else if ("atmosphericFog".equals(key)) { + atmosphericFog = (Boolean) value; + HD317Pipeline.cfgAtmosphericFog = atmosphericFog; + } else if ("drawDistance".equals(key)) { + drawDistance = ((Number) value).intValue(); + WorldController.drawDistance = Math.max(15, Math.min(55, drawDistance)); + } else if ("groundTextures".equals(key)) { + groundTextures = (Boolean) value; + HD317Pipeline.cfgGroundTextures = groundTextures; + } else if ("normalMapping".equals(key)) { + normalMapping = (Boolean) value; + HD317Pipeline.cfgNormalMapping = normalMapping; + } else if ("waterShader".equals(key)) { + waterShader = (Boolean) value; + HD317Pipeline.cfgWaterShader = waterShader; + } else if ("saturation".equals(key)) { + saturation = ((Number) value).intValue(); + HD317Pipeline.cfgSaturation = saturation / 100.0f; + } else if ("brightness".equals(key)) { + brightness = ((Number) value).intValue(); + HD317Pipeline.cfgBrightness = brightness / 100.0f; + } else if ("contrastCurve".equals(key)) { + contrastCurve = (Boolean) value; + HD317Pipeline.cfgContrastCurve = contrastCurve; + } + } + + private void syncAllConfig() { + HD317Pipeline.cfgShadowsEnabled = shadowsEnabled; + try { + HD317Pipeline.cfgShadowResolution = Integer.parseInt(shadowResolution); + } catch (NumberFormatException ignored) { + HD317Pipeline.cfgShadowResolution = 1024; + } + HD317Pipeline.cfgShadowSoftPcf = !"Hard (1-Tap)".equals(shadowSoftness); + HD317Pipeline.cfgDynamicLights = dynamicLights; + HD317Pipeline.cfgAtmosphericFog = atmosphericFog; + WorldController.drawDistance = Math.max(15, Math.min(55, drawDistance)); + HD317Pipeline.cfgGroundTextures = groundTextures; + HD317Pipeline.cfgNormalMapping = normalMapping; + HD317Pipeline.cfgWaterShader = waterShader; + HD317Pipeline.cfgSaturation = saturation / 100.0f; + HD317Pipeline.cfgBrightness = brightness / 100.0f; + HD317Pipeline.cfgContrastCurve = contrastCurve; + } + + @Override + public void onStart(PluginContext ctx) { + super.onStart(ctx); + syncAllConfig(); + if (ctx != null && ctx.getGame() != null && !ClientSettings.HD_317) { + ctx.getGame().setHD317Enabled(true); + } + } + + @Override + public void onStop() { + if (ctx != null && ctx.getGame() != null && ClientSettings.HD_317) { + ctx.getGame().setHD317Enabled(false); + } + } + + @Override + public boolean handlesCommandsWhenDisabled() { + return true; + } + + @Override + public boolean onCommand(String command, String[] args) { + if ("hd".equalsIgnoreCase(command) || "317hd".equalsIgnoreCase(command)) { + if (PluginManager.get() != null) { + PluginManager.get().togglePlugin(this); + } + return true; + } + return false; + } +} diff --git a/2006Scape Client/src/main/java/HdGroundMaterial.java b/2006Scape Client/src/main/java/HdGroundMaterial.java new file mode 100644 index 00000000..dc277d75 --- /dev/null +++ b/2006Scape Client/src/main/java/HdGroundMaterial.java @@ -0,0 +1,114 @@ +/** + * 317HD / RLHD GroundMaterial system. + * Maps 317 Floor IDs (underlays & overlays) and HSL colors to multi-material groups, + * picking deterministic per-vertex materials via spatial hashing so adjacent tiles blend seamlessly. + */ +public enum HdGroundMaterial { + + NONE(HdMaterial.NONE), + OVERWORLD_GRASS(HdMaterial.HD_GRASS_1, HdMaterial.HD_GRASS_2, HdMaterial.HD_GRASS_3), + COBBLESTONE_PATH(HdMaterial.HD_COBBLESTONE_1, HdMaterial.HD_COBBLESTONE_2, HdMaterial.HD_GRAVEL), + GRAVEL_PATH(HdMaterial.HD_GRAVEL), + STONE_PAVERS(HdMaterial.HD_STONE_PAVERS_1, HdMaterial.HD_STONE_PAVERS_2), + VARIED_DIRT(HdMaterial.HD_DIRT_1, HdMaterial.HD_DIRT_2), + SAND_DUNES(HdMaterial.HD_SAND_1), + WOOD_FLOOR(HdMaterial.HD_WOOD_FLOOR); + + private final int[] materials; + + HdGroundMaterial(int... materials) { + this.materials = materials; + } + + /** + * Deterministically selects a material layer for a specific world vertex (plane, worldTileX, worldTileZ). + * Mirrors 317HD's ProceduralGenerator vertex hash so shared vertices across adjacent tiles always match. + */ + public int getMaterialForVertex(int plane, int worldTileX, int worldTileZ) { + if (materials == null || materials.length == 0) { + return HdMaterial.NONE; + } + if (materials.length == 1) { + return materials[0]; + } + long seed = (long) (plane + 1) * 73856093L + ^ (long) worldTileX * 19349663L + ^ (long) worldTileZ * 83492791L; + seed = (seed ^ (seed >>> 30)) * 0xbf58476d1ce4e5b9L; + seed = (seed ^ (seed >>> 27)) * 0x94d049bb133111ebL; + seed = seed ^ (seed >>> 31); + int idx = (int) (Math.abs(seed) % materials.length); + return materials[idx]; + } + + public static HdGroundMaterial resolve(int floorId, int hsl, boolean isOverlay) { + return resolve(0, floorId, hsl, isOverlay); + } + + public static HdGroundMaterial resolve(int plane, int floorId, int hsl, boolean isOverlay) { + if (floorId > 0 && Flo.cache != null && floorId - 1 < Flo.cache.length) { + Flo flo = Flo.cache[floorId - 1]; + if (flo != null) { + if (flo.anInt391 >= 0) { + return NONE; + } + int rgb = flo.anInt390; + if (rgb == 0xFF00FF) { + return NONE; + } + } + } + + int hue = (hsl >> 10) & 0x3F; + int sat = (hsl >> 7) & 0x07; + int lum = hsl & 0x7F; + + if (plane >= 1 && !isOverlay) { + if (sat <= 2) { + if (lum >= 90) return STONE_PAVERS; + return COBBLESTONE_PATH; + } + return COBBLESTONE_PATH; + } + + if (!isOverlay) { + if (sat <= 2) { + if (lum >= 90) { + return STONE_PAVERS; + } + return VARIED_DIRT; + } + if (hue >= 7 && hue <= 38) { + return OVERWORLD_GRASS; + } + if (hue >= 5 && hue <= 14 && lum >= 64 && sat >= 2) { + return SAND_DUNES; + } + if (hue >= 2 && hue <= 6 && sat >= 2) { + return VARIED_DIRT; + } + return OVERWORLD_GRASS; + } + + if (hue >= 7 && hue <= 38 && sat >= 2) { + return OVERWORLD_GRASS; + } + + if (sat <= 2) { + if (lum >= 90) { + return STONE_PAVERS; + } + return COBBLESTONE_PATH; + } + + if (hue >= 5 && hue <= 14 && lum >= 64 && sat >= 2) { + return SAND_DUNES; + } + + if (hue >= 2 && hue <= 6 && sat >= 2) { + return VARIED_DIRT; + } + + return COBBLESTONE_PATH; + } +} diff --git a/2006Scape Client/src/main/java/HdMaterial.java b/2006Scape Client/src/main/java/HdMaterial.java new file mode 100644 index 00000000..62d90d61 --- /dev/null +++ b/2006Scape Client/src/main/java/HdMaterial.java @@ -0,0 +1,558 @@ +import java.nio.Buffer; +import java.nio.ByteBuffer; +import java.util.Random; + +/** + * 317HD / RLHD Material definition and 64-layer 128x128 RGBA texture array generator. + * Layer indices 0..49 correspond to enhanced RS2 cache textures; + * Layer indices 50..63 correspond to dedicated 317HD procedural PBR materials. + */ +public final class HdMaterial { + + public static final int LAYER_COUNT = 64; + public static final int TEX_SIZE = 128; + + // Dedicated 317HD Material Layer IDs (50..63) + public static final int NONE = -1; + public static final int HD_GRASS_1 = 50; + public static final int HD_GRASS_2 = 51; + public static final int HD_GRASS_3 = 52; + public static final int HD_COBBLESTONE_1 = 53; + public static final int HD_COBBLESTONE_2 = 54; + public static final int HD_GRAVEL = 55; + public static final int HD_STONE_PAVERS_1 = 56; + public static final int HD_STONE_PAVERS_2 = 57; + public static final int HD_DIRT_1 = 58; + public static final int HD_DIRT_2 = 59; + public static final int HD_SAND_1 = 60; + public static final int HD_WOOD_FLOOR = 61; + public static final int HD_WATER_WAVE_1 = 62; + public static final int HD_WATER_WAVE_2 = 63; + + public final int layerId; + public final float specularStrength; + public final float specularGloss; + public final float normalStrength; + public final float uvScale; + public final boolean isWater; + public final boolean isEmissive; + + public static final HdMaterial[] MATERIALS = new HdMaterial[LAYER_COUNT]; + + static { + // Initialize default cache texture slots (0..49) + for (int i = 0; i < 50; i++) { + boolean water = (i == 1 || i == 17 || i == 24 || i == 34); + boolean emissive = (i == 31 || i == 40); + float spec = 0.12f; + float gloss = 14.0f; + float norm = 0.75f; + if (water) { + spec = 0.90f; + gloss = 72.0f; + norm = 1.0f; + } else if (i == 2 || i == 11 || i == 23) { + // Castle stone masonry walls + spec = 0.25f; + gloss = 18.0f; + norm = 1.15f; + } else if (i == 5 || i == 16) { + // Roof shingles + spec = 0.28f; + gloss = 22.0f; + norm = 1.05f; + } else if (i == 3 || i == 4 || i == 0) { + // Wood planks + spec = 0.16f; + gloss = 12.0f; + norm = 0.85f; + } + MATERIALS[i] = new HdMaterial(i, spec, gloss, norm, 1.0f, water, emissive); + } + + // Initialize 317HD Ground & Architectural Materials (50..63) + MATERIALS[HD_GRASS_1] = new HdMaterial(HD_GRASS_1, 0.08f, 10.0f, 0.70f, 1.0f, false, false); + MATERIALS[HD_GRASS_2] = new HdMaterial(HD_GRASS_2, 0.08f, 10.0f, 0.75f, 1.0f, false, false); + MATERIALS[HD_GRASS_3] = new HdMaterial(HD_GRASS_3, 0.10f, 12.0f, 0.70f, 1.0f, false, false); + MATERIALS[HD_COBBLESTONE_1] = new HdMaterial(HD_COBBLESTONE_1, 0.28f, 22.0f, 0.75f, 1.0f, false, false); + MATERIALS[HD_COBBLESTONE_2] = new HdMaterial(HD_COBBLESTONE_2, 0.26f, 20.0f, 0.70f, 1.0f, false, false); + MATERIALS[HD_GRAVEL] = new HdMaterial(HD_GRAVEL, 0.20f, 16.0f, 0.65f, 1.0f, false, false); + MATERIALS[HD_STONE_PAVERS_1] = new HdMaterial(HD_STONE_PAVERS_1, 0.35f, 28.0f, 1.10f, 1.0f, false, false); + MATERIALS[HD_STONE_PAVERS_2] = new HdMaterial(HD_STONE_PAVERS_2, 0.30f, 24.0f, 1.05f, 1.0f, false, false); + MATERIALS[HD_DIRT_1] = new HdMaterial(HD_DIRT_1, 0.10f, 10.0f, 0.90f, 1.0f, false, false); + MATERIALS[HD_DIRT_2] = new HdMaterial(HD_DIRT_2, 0.14f, 12.0f, 0.95f, 1.0f, false, false); + MATERIALS[HD_SAND_1] = new HdMaterial(HD_SAND_1, 0.20f, 18.0f, 0.80f, 1.0f, false, false); + MATERIALS[HD_WOOD_FLOOR] = new HdMaterial(HD_WOOD_FLOOR, 0.22f, 18.0f, 0.85f, 1.0f, false, false); + MATERIALS[HD_WATER_WAVE_1] = new HdMaterial(HD_WATER_WAVE_1, 0.95f, 80.0f, 1.0f, 1.0f, true, false); + MATERIALS[HD_WATER_WAVE_2] = new HdMaterial(HD_WATER_WAVE_2, 0.95f, 80.0f, 1.0f, 1.0f, true, false); + } + + public HdMaterial(int layerId, float specularStrength, float specularGloss, float normalStrength, + float uvScale, boolean isWater, boolean isEmissive) { + this.layerId = layerId; + this.specularStrength = specularStrength; + this.specularGloss = specularGloss; + this.normalStrength = normalStrength; + this.uvScale = uvScale; + this.isWater = isWater; + this.isEmissive = isEmissive; + } + + public static HdMaterial get(int layerId) { + if (layerId >= 0 && layerId < LAYER_COUNT) { + return MATERIALS[layerId]; + } + return MATERIALS[HD_COBBLESTONE_1]; + } + + /** + * Populates the 64-layer 128x128 RGBA8 diffuse+heightfield and Sobel normal+specular buffers. + */ + public static void populateTextureBuffers(ByteBuffer diffuseBuf, ByteBuffer normalBuf) { + final int size = TEX_SIZE; + final int layers = LAYER_COUNT; + final int layerPixels = size * size; + + float[] heightField = new float[layerPixels]; + int[] rgbField = new int[layerPixels]; + boolean[] cutoutField = new boolean[layerPixels]; + + // 1. Build Layers 0..49 from RS2 Cache Textures + 317HD Architectural Enhancements + for (int texId = 0; texId < 50; texId++) { + buildCacheTextureLayer(texId, rgbField, heightField, cutoutField); + writeLayerToBuffers(texId, rgbField, heightField, cutoutField, get(texId).normalStrength, diffuseBuf, normalBuf); + } + + // 2. Build Layers 50..63 (Dedicated 317HD Procedural PBR Materials) + for (int matId = 50; matId < layers; matId++) { + buildProceduralHdLayer(matId, rgbField, heightField, cutoutField); + writeLayerToBuffers(matId, rgbField, heightField, cutoutField, get(matId).normalStrength, diffuseBuf, normalBuf); + } + + ((Buffer) diffuseBuf).position(0); + ((Buffer) normalBuf).position(0); + } + + private static void buildCacheTextureLayer(int texId, int[] rgbField, float[] heightField, boolean[] cutoutField) { + int[] srcPixels = null; + try { + srcPixels = Texture.method371(texId); + } catch (Throwable ignored) { + } + + Background bg = (Texture.aBackgroundArray1474s != null && texId < Texture.aBackgroundArray1474s.length) + ? Texture.aBackgroundArray1474s[texId] : null; + int[] palette = (Texture.anIntArrayArray1483 != null && texId < Texture.anIntArrayArray1483.length) + ? Texture.anIntArrayArray1483[texId] : null; + + // Upsample 64x64 cache textures with bilinear filtering while preserving cutout transparency + if (bg != null && palette != null && bg.aByteArray1450 != null && bg.anInt1452 == 64 && bg.anInt1453 == 64) { + byte[] raw = bg.aByteArray1450; + for (int y = 0; y < 128; y++) { + int sy0 = y >> 1; + int sy1 = (sy0 + 1) & 63; + int wy1 = (y & 1) * 128; + int wy0 = 256 - wy1; + for (int x = 0; x < 128; x++) { + int sx0 = x >> 1; + int sx1 = (sx0 + 1) & 63; + int wx1 = (x & 1) * 128; + int wx0 = 256 - wx1; + + int i00 = raw[(sy0 << 6) + sx0] & 0xFF; + int i10 = raw[(sy0 << 6) + sx1] & 0xFF; + int i01 = raw[(sy1 << 6) + sx0] & 0xFF; + int i11 = raw[(sy1 << 6) + sx1] & 0xFF; + + int idx = (y << 7) | x; + if (i00 == 0 || i10 == 0 || i01 == 0 || i11 == 0) { + int c = palette[i00]; + cutoutField[idx] = (i00 == 0 || c == 0); + rgbField[idx] = c; + heightField[idx] = cutoutField[idx] ? 0f : 0.5f; + continue; + } + + int c00 = palette[i00]; + int c10 = palette[i10]; + int c01 = palette[i01]; + int c11 = palette[i11]; + + int r = (((c00 >> 16 & 0xFF) * wx0 + (c10 >> 16 & 0xFF) * wx1) * wy0 + + ((c01 >> 16 & 0xFF) * wx0 + (c11 >> 16 & 0xFF) * wx1) * wy1) >> 16; + int g = (((c00 >> 8 & 0xFF) * wx0 + (c10 >> 8 & 0xFF) * wx1) * wy0 + + ((c01 >> 8 & 0xFF) * wx0 + (c11 >> 8 & 0xFF) * wx1) * wy1) >> 16; + int b = (((c00 & 0xFF) * wx0 + (c10 & 0xFF) * wx1) * wy0 + + ((c01 & 0xFF) * wx0 + (c11 & 0xFF) * wx1) * wy1) >> 16; + + cutoutField[idx] = false; + rgbField[idx] = (r << 16) | (g << 8) | b; + float lum = (r * 0.299f + g * 0.587f + b * 0.114f) / 255.0f; + heightField[idx] = Math.max(0.08f, Math.min(0.95f, lum)); + } + } + } else if (srcPixels != null && srcPixels.length >= 16384) { + for (int i = 0; i < 16384; i++) { + int c = srcPixels[i]; + if (c == 0) { + cutoutField[i] = true; + rgbField[i] = 0; + heightField[i] = 0f; + } else { + cutoutField[i] = false; + rgbField[i] = c & 0xFFFFFF; + int r = (c >> 16) & 0xFF; + int g = (c >> 8) & 0xFF; + int b = c & 0xFF; + float lum = (r * 0.299f + g * 0.587f + b * 0.114f) / 255.0f; + heightField[i] = Math.max(0.08f, Math.min(0.95f, lum)); + } + } + } else { + for (int i = 0; i < 16384; i++) { + cutoutField[i] = false; + rgbField[i] = 0x808080; + heightField[i] = 0.5f; + } + } + + // Dilate opaque neighbor RGB into transparent cutout pixels (4 passes) so GL_LINEAR never bleeds black + for (int pass = 0; pass < 4; pass++) { + for (int y = 0; y < 128; y++) { + int ym1 = (y - 1) & 127; + int yp1 = (y + 1) & 127; + for (int x = 0; x < 128; x++) { + int idx = (y << 7) | x; + if (rgbField[idx] != 0) continue; + int xm1 = (x - 1) & 127; + int xp1 = (x + 1) & 127; + int n1 = rgbField[(ym1 << 7) | x]; + int n2 = rgbField[(yp1 << 7) | x]; + int n3 = rgbField[(y << 7) | xm1]; + int n4 = rgbField[(y << 7) | xp1]; + if (n1 != 0) rgbField[idx] = n1; + else if (n2 != 0) rgbField[idx] = n2; + else if (n3 != 0) rgbField[idx] = n3; + else if (n4 != 0) rgbField[idx] = n4; + } + } + } + } + + private static void buildProceduralHdLayer(int matId, int[] rgbField, float[] heightField, boolean[] cutoutField) { + for (int i = 0; i < 16384; i++) { + cutoutField[i] = false; + } + + if (matId == HD_GRASS_1 || matId == HD_GRASS_2 || matId == HD_GRASS_3) { + int variant = matId - HD_GRASS_1; + Random rnd = new Random(5001L + variant * 313L); + float[] noise = new float[16384]; + for (int i = 0; i < 16384; i++) { + noise[i] = rnd.nextFloat(); + } + for (int y = 0; y < 128; y++) { + int ym1 = (y - 1) & 127; + int yp1 = (y + 1) & 127; + double ny = y * 2.0 * Math.PI / 128.0; + for (int x = 0; x < 128; x++) { + int xm1 = (x - 1) & 127; + int xp1 = (x + 1) & 127; + double nx = x * 2.0 * Math.PI / 128.0; + + float fine = (noise[(y << 7) | x] * 0.40f + + noise[(ym1 << 7) | x] * 0.15f + + noise[(yp1 << 7) | x] * 0.15f + + noise[(y << 7) | xm1] * 0.15f + + noise[(y << 7) | xp1] * 0.15f); + float patch = (float) (Math.sin(nx * 2.0 + variant) * Math.cos(ny * 2.0 - variant) * 0.5 + 0.5); + float blade = fine * 0.72f + patch * 0.28f; + float h = Math.max(0.24f, Math.min(0.68f, 0.28f + blade * 0.34f)); + + int modV = clampByte((int) (222 + blade * 28)); + int idx = (y << 7) | x; + rgbField[idx] = (modV << 16) | (modV << 8) | modV; + heightField[idx] = h; + } + } + } else if (matId == HD_COBBLESTONE_1 || matId == HD_COBBLESTONE_2 || matId == HD_GRAVEL) { + int gridN = (matId == HD_GRAVEL) ? 13 : (matId == HD_COBBLESTONE_1 ? 10 : 11); + double cellSize = 128.0 / gridN; + int numCells = gridN * gridN; + double[] cx = new double[numCells]; + double[] cy = new double[numCells]; + int[] stoneTintR = new int[numCells]; + int[] stoneTintG = new int[numCells]; + int[] stoneTintB = new int[numCells]; + + Random rnd = new Random(11700L + matId * 97L); + for (int gy = 0; gy < gridN; gy++) { + for (int gx = 0; gx < gridN; gx++) { + int ci = gy * gridN + gx; + cx[ci] = (gx + 0.5 + (rnd.nextDouble() - 0.5) * 0.65) * cellSize; + cy[ci] = (gy + 0.5 + (rnd.nextDouble() - 0.5) * 0.65) * cellSize; + int shade = 224 + rnd.nextInt(20) - 10; + stoneTintR[ci] = shade; + stoneTintG[ci] = shade; + stoneTintB[ci] = shade; + } + } + + double stoneRadius = cellSize * 0.54; + for (int y = 0; y < 128; y++) { + for (int x = 0; x < 128; x++) { + double minD = 999.0; + double secD = 999.0; + int closestCell = 0; + + for (int c = 0; c < numCells; c++) { + double dx = Math.abs(x - cx[c]); + if (dx > 64.0) dx = 128.0 - dx; + double dy = Math.abs(y - cy[c]); + if (dy > 64.0) dy = 128.0 - dy; + double d = Math.sqrt(dx * dx + dy * dy); + if (d < minD) { + secD = minD; + minD = d; + closestCell = c; + } else if (d < secD) { + secD = d; + } + } + + double edge = secD - minD; + int idx = (y << 7) | x; + + if (edge < 1.35) { + float t = (float) (edge / 1.35); + int v = clampByte((int) (182 + t * 28)); + rgbField[idx] = (v << 16) | (v << 8) | v; + heightField[idx] = 0.28f + t * 0.22f; + } else { + double normD = Math.min(1.0, minD / stoneRadius); + float dome = (float) Math.cos(normD * Math.PI * 0.42); + float scale = 0.90f + dome * 0.14f; + int r = clampByte((int) (stoneTintR[closestCell] * scale)); + int g = clampByte((int) (stoneTintG[closestCell] * scale)); + int b = clampByte((int) (stoneTintB[closestCell] * scale)); + rgbField[idx] = (r << 16) | (g << 8) | b; + heightField[idx] = Math.max(0.55f, Math.min(0.92f, 0.58f + dome * 0.32f)); + } + } + } + } else if (matId == HD_STONE_PAVERS_1 || matId == HD_STONE_PAVERS_2) { + if (matId == HD_STONE_PAVERS_2) { + // Smooth, honed indoor architectural stone/marble floor (no sub-tile mortar grid or cobble bumps, + // preserving crisp 1x1 castle checkerboard squares and authentic tile colors) + Random rnd = new Random(6401L); + for (int y = 0; y < 128; y++) { + for (int x = 0; x < 128; x++) { + int idx = (y << 7) | x; + int fine = (int) ((rnd.nextFloat() - 0.5f) * 6.0f); + int v = clampByte(244 + fine); + rgbField[idx] = (v << 16) | (v << 8) | v; + heightField[idx] = 0.75f + fine * 0.002f; + } + } + } else { + int tileW = 32; + int tileH = 32; + for (int y = 0; y < 128; y++) { + int row = y / tileH; + int shiftX = (row % 2 == 1) ? (tileW / 2) : 0; + int cy = y % tileH; + for (int x = 0; x < 128; x++) { + int cx = (x + shiftX) % tileW; + int idx = (y << 7) | x; + int grain = (((x * 17 + y * 31) ^ (x * 5)) & 15) - 8; + if (cx == 0 || cy == 0) { + rgbField[idx] = 0xC8C8C8; + heightField[idx] = 0.45f; + } else { + int v = clampByte(238 + grain / 2); + rgbField[idx] = (v << 16) | (v << 8) | v; + heightField[idx] = 0.80f + grain * 0.003f; + } + } + } + } + } else if (matId == HD_DIRT_1 || matId == HD_DIRT_2) { + int variant = matId - HD_DIRT_1; + Random rnd = new Random(7301L + variant * 443L); + float[] dNoise = new float[16384]; + for (int i = 0; i < 16384; i++) { + dNoise[i] = rnd.nextFloat(); + } + float[] blurred = new float[16384]; + for (int pass = 0; pass < 2; pass++) { + float[] src = (pass == 0) ? dNoise : blurred; + for (int y = 0; y < 128; y++) { + int ym1 = (y - 1) & 127, yp1 = (y + 1) & 127; + for (int x = 0; x < 128; x++) { + int xm1 = (x - 1) & 127, xp1 = (x + 1) & 127; + blurred[(y << 7) | x] = src[(y << 7) | x] * 0.40f + + (src[(ym1 << 7) | x] + src[(yp1 << 7) | x] + + src[(y << 7) | xm1] + src[(y << 7) | xp1]) * 0.15f; + } + } + } + for (int y = 0; y < 128; y++) { + double ny = y * 2.0 * Math.PI / 128.0; + for (int x = 0; x < 128; x++) { + double nx = x * 2.0 * Math.PI / 128.0; + float soilLobe = (float) (Math.sin(nx + variant) * Math.cos(ny - variant) * 0.5 + 0.5); + float fineGrain = (dNoise[(y << 7) | x] - 0.5f) * 14.0f; + float soilVal = blurred[(y << 7) | x] * 0.70f + soilLobe * 0.30f; + // Hue-neutral detail multiplier so gray rock/stone never shifts toward muddy brown + int v = clampByte((int) (220 + soilVal * 26 + fineGrain)); + int idx = (y << 7) | x; + rgbField[idx] = (v << 16) | (v << 8) | v; + heightField[idx] = Math.max(0.20f, Math.min(0.75f, 0.32f + soilVal * 0.38f)); + } + } + } else if (matId == HD_SAND_1) { + Random rnd = new Random(9901L); + for (int y = 0; y < 128; y++) { + double ny = y * 2.0 * Math.PI / 128.0; + for (int x = 0; x < 128; x++) { + double nx = x * 2.0 * Math.PI / 128.0; + double gentleDune = Math.sin(nx * 3.0 + Math.sin(ny * 2.0) * 0.8) * 0.5 + 0.5; + float fineGrain = (rnd.nextFloat() - 0.5f) * 10.0f; + int v = clampByte((int) (228 + gentleDune * 16 + fineGrain)); + int idx = (y << 7) | x; + rgbField[idx] = (v << 16) | (v << 8) | v; + heightField[idx] = (float) (0.35 + gentleDune * 0.30); + } + } + } else if (matId == HD_WATER_WAVE_1 || matId == HD_WATER_WAVE_2) { + int variant = matId - HD_WATER_WAVE_1; + Random rnd = new Random(8821L + variant * 7919L); + float[] wNoise = new float[16384]; + for (int i = 0; i < 16384; i++) { + wNoise[i] = rnd.nextFloat(); + } + float[] blurred = new float[16384]; + for (int pass = 0; pass < 2; pass++) { + float[] src = (pass == 0) ? wNoise : blurred; + for (int y = 0; y < 128; y++) { + int ym1 = (y - 1) & 127, yp1 = (y + 1) & 127; + for (int x = 0; x < 128; x++) { + int xm1 = (x - 1) & 127, xp1 = (x + 1) & 127; + blurred[(y << 7) | x] = src[(y << 7) | x] * 0.40f + + (src[(ym1 << 7) | x] + src[(yp1 << 7) | x] + + src[(y << 7) | xm1] + src[(y << 7) | xp1]) * 0.15f; + } + } + } + for (int y = 0; y < 128; y++) { + double ny = y * 2.0 * Math.PI / 128.0; + for (int x = 0; x < 128; x++) { + double nx = x * 2.0 * Math.PI / 128.0; + double wave = Math.sin(nx * 2.0 + ny * 1.0 + variant) * 0.35 + + Math.sin(-nx * 1.0 + ny * 3.0 - variant * 1.5) * 0.30 + + Math.cos(nx * 3.0 - ny * 2.0 + variant * 2.0) * 0.20; + float noiseVal = blurred[(y << 7) | x]; + float h = (float) (0.50 + wave * 0.22 + (noiseVal - 0.5) * 0.28); + int idx = (y << 7) | x; + rgbField[idx] = 0x2A6296; + heightField[idx] = Math.max(0.10f, Math.min(0.90f, h)); + } + } + } else { + for (int y = 0; y < 128; y++) { + for (int x = 0; x < 128; x++) { + int idx = (y << 7) | x; + int px = x % 32; + int grain = ((y * 13 + x * 7) & 7) - 4; + if (px == 0) { + rgbField[idx] = 0x705840; + heightField[idx] = 0.20f; + } else { + int v = clampByte(224 + grain); + rgbField[idx] = (v << 16) | (clampByte(v - 12) << 8) | clampByte(v - 24); + heightField[idx] = 0.65f; + } + } + } + } + } + + private static void writeLayerToBuffers(int layerId, int[] rgbField, float[] heightField, boolean[] cutoutField, + float normalStrength, ByteBuffer diffuseBuf, ByteBuffer normalBuf) { + final int size = TEX_SIZE; + final int mask = size - 1; + int baseOffset = layerId * size * size * 4; + + ((Buffer) diffuseBuf).position(baseOffset); + ((Buffer) normalBuf).position(baseOffset); + + for (int y = 0; y < size; y++) { + int ym1 = (y - 1) & mask; + int yp1 = (y + 1) & mask; + for (int x = 0; x < size; x++) { + int xm1 = (x - 1) & mask; + int xp1 = (x + 1) & mask; + int idx = (y << 7) | x; + + int c = rgbField[idx]; + int r = (c >> 16) & 0xFF; + int g = (c >> 8) & 0xFF; + int b = c & 0xFF; + int a; + if (layerId == 24 || layerId == 17) { + if (cutoutField[idx]) { + a = 0; + } else { + a = Math.max(0, Math.min(255, (int) (heightField[idx] * 255.0f))); + } + } else if (cutoutField[idx]) { + a = 0; + } else if (layerId < 50) { + a = 255; + } else { + a = Math.max(8, Math.min(255, (int) (heightField[idx] * 255.0f))); + } + + diffuseBuf.put((byte) r); + diffuseBuf.put((byte) g); + diffuseBuf.put((byte) b); + diffuseBuf.put((byte) a); + + // Wrapped 3x3 Sobel normal calculation from heightField + float hTL = heightField[(ym1 << 7) | xm1]; + float hT = heightField[(ym1 << 7) | x]; + float hTR = heightField[(ym1 << 7) | xp1]; + float hL = heightField[(y << 7) | xm1]; + float hR = heightField[(y << 7) | xp1]; + float hBL = heightField[(yp1 << 7) | xm1]; + float hB = heightField[(yp1 << 7) | x]; + float hBR = heightField[(yp1 << 7) | xp1]; + + float dX = (hTR + 2.0f * hR + hBR) - (hTL + 2.0f * hL + hBL); + float dY = (hBL + 2.0f * hB + hBR) - (hTL + 2.0f * hT + hTR); + + float nx = -dX * normalStrength * 2.2f; + float ny = -dY * normalStrength * 2.2f; + float nz = 1.0f; + float invLen = (float) (1.0 / Math.sqrt(nx * nx + ny * ny + nz * nz)); + nx *= invLen; + ny *= invLen; + nz *= invLen; + + int nR = clampByte((int) ((nx * 0.5f + 0.5f) * 255.0f)); + int nG = clampByte((int) ((ny * 0.5f + 0.5f) * 255.0f)); + int nB = clampByte((int) ((nz * 0.5f + 0.5f) * 255.0f)); + int specMask = Math.max(0, Math.min(255, (int) (heightField[idx] * 255.0f))); + + normalBuf.put((byte) nR); + normalBuf.put((byte) nG); + normalBuf.put((byte) nB); + normalBuf.put((byte) specMask); + } + } + } + + private static int clampByte(int val) { + return val < 0 ? 0 : (val > 255 ? 255 : val); + } +} diff --git a/2006Scape Client/src/main/java/HdProceduralGenerator.java b/2006Scape Client/src/main/java/HdProceduralGenerator.java new file mode 100644 index 00000000..f5092a15 --- /dev/null +++ b/2006Scape Client/src/main/java/HdProceduralGenerator.java @@ -0,0 +1,282 @@ +/** + * Direct port of 317HD / RLHD's ProceduralGenerator: + * - Computes smooth 3D terrain normals across the 105x105 heightmap grid. + * - Resolves per-tile & per-vertex 317HD GroundMaterials from 317 Floor IDs and HSL colors. + * - Computes cross-tile vertex material splatting so cobblestone paths, gravel, dirt, and grass + * blend organically via height-map displacement across tile boundaries. + * - Extracts dynamic point light emitters from world objects. + */ +public final class HdProceduralGenerator { + + // Smooth terrain normals: [plane][vx][vz][0..2 (nx, ny, nz)] + public final float[][][][] tileNormals = new float[4][105][105][3]; + + // Resolved material layer per tile: [plane][tx][tz] + public final int[][][] tileUnderlayMat = new int[4][104][104]; + public final int[][][] tileOverlayMat = new int[4][104][104]; + public final boolean[][][] tileHasOverlay = new boolean[4][104][104]; + public final boolean[][][] tileIsIndoor = new boolean[4][104][104]; + + // Per-corner blended material on the 105x105 vertex grid for seamless cross-tile splatting + public final int[][][] cornerBlendMat = new int[4][105][105]; + public final int[][][] cornerBlendColor = new int[4][105][105]; + + // Dynamic Point Lights extracted from the scene (x, y, z, radius, r, g, b, intensity) + public static final int MAX_SCENE_LIGHTS = 128; + public final float[] sceneLightPosRad = new float[MAX_SCENE_LIGHTS * 4]; + public final float[] sceneLightColorInt = new float[MAX_SCENE_LIGHTS * 4]; + public int sceneLightCount = 0; + public int baseX = 3200; + public int baseZ = 3200; + + public HdProceduralGenerator() { + for (int p = 0; p < 4; p++) { + for (int vx = 0; vx < 105; vx++) { + for (int vz = 0; vz < 105; vz++) { + tileNormals[p][vx][vz][0] = 0.0f; + tileNormals[p][vx][vz][1] = -1.0f; + tileNormals[p][vx][vz][2] = 0.0f; + cornerBlendMat[p][vx][vz] = HdMaterial.HD_GRASS_1; + } + } + for (int x = 0; x < 104; x++) { + for (int z = 0; z < 104; z++) { + tileUnderlayMat[p][x][z] = HdMaterial.HD_GRASS_1; + tileOverlayMat[p][x][z] = HdMaterial.HD_COBBLESTONE_1; + } + } + } + } + + public void generateSceneData(Game game, ObjectManager om, WorldController wc) { + if (wc == null) return; + + int baseX = (game != null) ? game.baseX : 3200; + int baseZ = (game != null) ? game.baseY : 3200; + this.baseX = baseX; + this.baseZ = baseZ; + + int[][][] heights = (om != null && om.anIntArrayArrayArray129 != null) + ? om.anIntArrayArrayArray129 : wc.anIntArrayArrayArray440; + if (heights == null) return; + + byte[][][] underlays = (om != null) ? om.aByteArrayArrayArray142 : null; + byte[][][] overlays = (om != null) ? om.aByteArrayArrayArray130 : null; + byte[][][] shapes = (om != null) ? om.aByteArrayArrayArray136 : null; + byte[][][] tileFlags = (om != null && om.aByteArrayArrayArray149 != null) + ? om.aByteArrayArrayArray149 + : ((game != null) ? game.byteGroundArray : null); + + // 0. Detect indoor/roofed building tiles (RS2 roof flag bit 4 in byteGroundArray) + for (int p = 0; p < 4; p++) { + for (int x = 0; x < 104; x++) { + for (int z = 0; z < 104; z++) { + boolean indoor = false; + if (tileFlags != null && ((tileFlags[p][x][z] & 4) != 0 || (tileFlags[0][x][z] & 4) != 0)) { + indoor = true; + // Open-air archways / gatehouses (unroofed on both opposite sides within 4 tiles with no blocking wall) + // should keep their outdoor ground/cobblestone material instead of indoor marble. + if (p == 0 && (isOpenAirPassThrough(tileFlags, wc, x, z, 1, 0) || isOpenAirPassThrough(tileFlags, wc, x, z, 0, 1))) { + indoor = false; + } + } + tileIsIndoor[p][x][z] = indoor; + } + } + } + + // 1. Compute smooth per-vertex terrain normals from central height differences + for (int p = 0; p < 4; p++) { + for (int vx = 0; vx < 105; vx++) { + int xm1 = Math.max(0, vx - 1); + int xp1 = Math.min(104, vx + 1); + for (int vz = 0; vz < 105; vz++) { + int zm1 = Math.max(0, vz - 1); + int zp1 = Math.min(104, vz + 1); + + float dhDx = (float) (heights[p][xp1][vz] - heights[p][xm1][vz]); + float dhDz = (float) (heights[p][vx][zp1] - heights[p][vx][zm1]); + // In RS2 coords: +X is East, -Y is Up, +Z is North; 2 tiles = 256 units + float nx = dhDx; + float ny = -256.0f; + float nz = dhDz; + float invLen = (float) (1.0 / Math.sqrt(nx * nx + ny * ny + nz * nz)); + tileNormals[p][vx][vz][0] = nx * invLen; + tileNormals[p][vx][vz][1] = ny * invLen; + tileNormals[p][vx][vz][2] = nz * invLen; + } + } + } + + // 2. Resolve per-tile Underlay & Overlay 317HD Materials + for (int p = 0; p < 4; p++) { + for (int x = 0; x < 104; x++) { + for (int z = 0; z < 104; z++) { + int uId = (underlays != null) ? (underlays[p][x][z] & 0xFF) : 0; + int oId = (overlays != null) ? (overlays[p][x][z] & 0xFF) : 0; + Ground g = wc.groundArray[p][x][z]; + + int uHsl = (20 << 10) | (4 << 7) | 40; // default grass HSL + int oHsl = (8 << 10) | (1 << 7) | 48; // default stone/cobble HSL + + if (g != null) { + if (g.aClass43_1311 != null) { + int c = g.aClass43_1311.anInt716; + if (c != 0xbc614e && c >= 0) { + if (oId > 0 || g.aClass43_1311.isOverlay) oHsl = c; + else uHsl = c; + } + } else if (g.aClass40_1312 != null) { + Class40 ct = g.aClass40_1312; + for (int f = 0; f < ct.anIntArray676.length; f++) { + if (ct.isOverlayFace != null && ct.isOverlayFace[f]) { + if (ct.anIntArray676[f] != 0xbc614e) oHsl = ct.anIntArray676[f]; + } else { + if (ct.anIntArray676[f] != 0xbc614e) uHsl = ct.anIntArray676[f]; + } + } + } + } + + HdGroundMaterial uGroup = HdGroundMaterial.resolve(p, uId, uHsl, false); + tileUnderlayMat[p][x][z] = uGroup.getMaterialForVertex(p, baseX + x, baseZ + z); + + if (oId > 0 || (g != null && g.aClass43_1311 != null && g.aClass43_1311.isOverlay)) { + HdGroundMaterial oGroup = HdGroundMaterial.resolve(p, oId, oHsl, true); + int oMat = oGroup.getMaterialForVertex(p, baseX + x, baseZ + z); + tileOverlayMat[p][x][z] = oMat; + tileHasOverlay[p][x][z] = (oMat != HdMaterial.NONE); + } else { + tileOverlayMat[p][x][z] = HdMaterial.NONE; + tileHasOverlay[p][x][z] = false; + } + } + } + } + + // 3. Compute Per-Corner Blended Material & Color on the 105x105 Grid + for (int p = 0; p < 4; p++) { + for (int vx = 0; vx < 105; vx++) { + for (int vz = 0; vz < 105; vz++) { + int chosenMat = HdMaterial.HD_GRASS_1; + int chosenHsl = -1; + boolean foundOverlayPath = false; + + for (int dx = -1; dx <= 0; dx++) { + for (int dz = -1; dz <= 0; dz++) { + int tx = vx + dx; + int tz = vz + dz; + if (tx < 0 || tx >= 104 || tz < 0 || tz >= 104) continue; + + Ground g = wc.groundArray[p][tx][tz]; + if (g == null) continue; + + int shape = (shapes != null) ? (shapes[p][tx][tz] & 0xFF) : 0; + if (tileHasOverlay[p][tx][tz] && (g.aClass43_1311 != null || shape == 0)) { + chosenMat = tileOverlayMat[p][tx][tz]; + if (g.aClass43_1311 != null && g.aClass43_1311.anInt716 != 0xbc614e) { + chosenHsl = g.aClass43_1311.anInt716; + } + foundOverlayPath = true; + } else if (!foundOverlayPath) { + chosenMat = tileUnderlayMat[p][tx][tz]; + if (g.aClass43_1311 != null && g.aClass43_1311.anInt716 != 0xbc614e) { + chosenHsl = g.aClass43_1311.anInt716; + } + } + } + } + + cornerBlendMat[p][vx][vz] = chosenMat; + cornerBlendColor[p][vx][vz] = chosenHsl; + } + } + } + + // 4. Extract Dynamic Point Lights from Light-Emitting Scene Objects + sceneLightCount = 0; + for (int p = 0; p < 4 && sceneLightCount < MAX_SCENE_LIGHTS; p++) { + for (int x = 0; x < 104 && sceneLightCount < MAX_SCENE_LIGHTS; x++) { + for (int z = 0; z < 104 && sceneLightCount < MAX_SCENE_LIGHTS; z++) { + Ground g = wc.groundArray[p][x][z]; + if (g == null) continue; + + if (g.obj1 != null) { + checkAndAddObjectLight(g.obj1.uid, g.obj1.anInt274, g.obj1.anInt273, g.obj1.anInt275); + } + if (g.obj2 != null) { + checkAndAddObjectLight(g.obj2.uid, g.obj2.anInt500, g.obj2.anInt499, g.obj2.anInt501); + } + for (int i = 0; i < g.anInt1317 && sceneLightCount < MAX_SCENE_LIGHTS; i++) { + Object5 o5 = g.obj5Array[i]; + if (o5 != null && o5.anInt523 == x && o5.anInt525 == z) { + checkAndAddObjectLight(o5.uid, o5.anInt519, o5.anInt518, o5.anInt520); + } + } + } + } + } + } + + private static boolean isOpenAirPassThrough(byte[][][] tileFlags, WorldController wc, int x, int z, int dx, int dz) { + return reachesUnroofed(tileFlags, wc, x, z, dx, dz) && reachesUnroofed(tileFlags, wc, x, z, -dx, -dz); + } + + private static boolean reachesUnroofed(byte[][][] tileFlags, WorldController wc, int x, int z, int dx, int dz) { + for (int step = 1; step <= 4; step++) { + int nx = x + dx * step; + int nz = z + dz * step; + if (nx < 0 || nx >= 104 || nz < 0 || nz >= 104) return false; + Ground g = wc.groundArray[0][nx][nz]; + if (g != null && g.obj1 != null) return false; + if ((tileFlags[0][nx][nz] & 4) == 0) return true; + } + return false; + } + + private void checkAndAddObjectLight(int uid, int worldX, int worldY, int worldZ) { + if (uid == 0 || sceneLightCount >= MAX_SCENE_LIGHTS) return; + int objId = (uid >> 14) & 0x7FFF; + if (objId <= 0) return; + + boolean isFireOrTorch = false; + boolean isMagicOrWaterLight = false; + try { + ObjectDef def = ObjectDef.forID(objId); + if (def != null && def.name != null) { + String n = def.name.toLowerCase(); + if (n.contains("fire") || n.contains("torch") || n.contains("lamp") || n.contains("candle") + || n.contains("furnace") || n.contains("brazier") || n.contains("lantern") + || n.contains("stove") || n.contains("range") || n.contains("lava")) { + isFireOrTorch = true; + } else if (n.contains("altar") || n.contains("portal") || n.contains("fountain") || n.contains("crystal")) { + isMagicOrWaterLight = true; + } + } + } catch (Throwable ignored) { + } + + if (!isFireOrTorch && !isMagicOrWaterLight) { + return; + } + + int base = sceneLightCount * 4; + sceneLightPosRad[base] = worldX; + sceneLightPosRad[base + 1] = worldY - 90.0f; + sceneLightPosRad[base + 2] = worldZ; + if (isFireOrTorch) { + sceneLightPosRad[base + 3] = 640.0f; + sceneLightColorInt[base] = 1.00f; + sceneLightColorInt[base + 1] = 0.68f; + sceneLightColorInt[base + 2] = 0.28f; + sceneLightColorInt[base + 3] = 1.35f; + } else { + sceneLightPosRad[base + 3] = 512.0f; + sceneLightColorInt[base] = 0.65f; + sceneLightColorInt[base + 1] = 0.85f; + sceneLightColorInt[base + 2] = 1.00f; + sceneLightColorInt[base + 3] = 0.75f; + } + sceneLightCount++; + } +} diff --git a/2006Scape Client/src/main/java/HdSceneUploader.java b/2006Scape Client/src/main/java/HdSceneUploader.java new file mode 100644 index 00000000..49caed74 --- /dev/null +++ b/2006Scape Client/src/main/java/HdSceneUploader.java @@ -0,0 +1,1052 @@ +import java.nio.Buffer; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.nio.FloatBuffer; +import java.util.Arrays; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * Direct port of 317HD / RLHD's SceneUploader: + * - Separates Opaque (shadow-casting, depth-writing) and Translucent (depth-tested, non-shadow-casting) geometry. + * - Converts visible RS2 ground tiles (Class43 & Class40) into 3D GPU vertices with + * smooth terrain normals, 3-vertex multi-material IDs (matA, matB, matC) for height-splatting, + * and world-space UVs. + * - Converts 3D Models (walls, roofs, trees, bushes, fountains, players, NPCs) into GPU vertices + * using uncorrupted hdVertexNormals and exact (P, M, N) texture triangle UV projection. + */ +public final class HdSceneUploader { + + // 16 floats (64 bytes, cache-line aligned) per vertex: + // [0..2] vec3 aPos (worldX, worldY, worldZ) + // [3..5] vec3 aNormal (nx, ny, nz) + // [6..7] vec2 aUv (u, v) + // [8..11] vec4 aColor (r, g, b, alpha) + // [12..15]vec4 aMatAndBary (matA, matB, matC, baryIndex + surfaceType * 4.0) + public static final int FLOATS_PER_VERTEX = 16; + public static final int BYTES_PER_VERTEX = FLOATS_PER_VERTEX * 4; + + // Surface type constants encoded into aMatAndBary.w = baryIndex + surfaceType * 4.0 + public static final int SURF_TERRAIN = 0; + public static final int SURF_MODEL = 1; + public static final int SURF_WATER = 2; + public static final int SURF_ACTOR = 3; + public static final int SURF_WALL = 4; + + private static final float[] WATER_NORMAL = {0.0f, -1.0f, 0.0f}; + + private static final int MAX_TERRAIN_VERTICES = 120000; + private static final int MAX_OPAQUE_VERTICES = 400000; + private static final int MAX_TRANS_VERTICES = 80000; + private static final int MAX_CACHED_MODEL_FLOATS = 2000000; // 8 MB hard cap + + private static final class CachedModel { + float[] opaque; + int opaqueVerts; + float[] trans; + int transVerts; + int surfType; + int version; + int totalFloats; + } + + private final LinkedHashMap modelCache = new LinkedHashMap<>(256, 0.75f, true); + private int cachedModelFloats = 0; + + private final float[] terrainStaging = new float[MAX_TERRAIN_VERTICES * FLOATS_PER_VERTEX]; + private final float[] opaqueStaging = new float[MAX_OPAQUE_VERTICES * FLOATS_PER_VERTEX]; + private final float[] transStaging = new float[MAX_TRANS_VERTICES * FLOATS_PER_VERTEX]; + private final FloatBuffer terrainBuffer; + private final FloatBuffer opaqueBuffer; + private final FloatBuffer transBuffer; + private int terrainVertexCount = 0; + private int opaqueVertexCount = 0; + private int transVertexCount = 0; + + private final boolean[] vertexTouchesUnderlay = new boolean[16]; + private final boolean[] vertexTouchesOverlay = new boolean[16]; + + private HdProceduralGenerator procGen; + private WorldController worldController; + + public HdSceneUploader() { + this.terrainBuffer = ByteBuffer.allocateDirect(MAX_TERRAIN_VERTICES * BYTES_PER_VERTEX) + .order(ByteOrder.nativeOrder()).asFloatBuffer(); + this.opaqueBuffer = ByteBuffer.allocateDirect(MAX_OPAQUE_VERTICES * BYTES_PER_VERTEX) + .order(ByteOrder.nativeOrder()).asFloatBuffer(); + this.transBuffer = ByteBuffer.allocateDirect(MAX_TRANS_VERTICES * BYTES_PER_VERTEX) + .order(ByteOrder.nativeOrder()).asFloatBuffer(); + } + + public static final int CHUNKS_PER_AXIS = 4; + public static final int CHUNKS_PER_PLANE = CHUNKS_PER_AXIS * CHUNKS_PER_AXIS; // 16 chunks (26x26 tiles each) + public static final int CHUNK_TILE_SIZE = 26; + public static final float CHUNK_RADIUS = 19.0f * 128.0f; + + private final float[][] staticTerrainBuckets = new float[4][]; + private final int[] staticTerrainVertCount = new int[4]; + private final float[][][] staticSceneryOpaqueBuckets = new float[4][CHUNKS_PER_PLANE][]; + private final int[][] staticSceneryOpaqueVertCount = new int[4][CHUNKS_PER_PLANE]; + private final float[][][] staticSceneryTransBuckets = new float[4][CHUNKS_PER_PLANE][]; + private final int[][] staticSceneryTransVertCount = new int[4][CHUNKS_PER_PLANE]; + private final int[][] staticSceneryChunkGen = new int[4][CHUNKS_PER_PLANE]; + private final boolean[] dirtyChunks = new boolean[CHUNKS_PER_PLANE]; + private int terrainGenerationId = 0; + private boolean staticTerrainBuilt = false; + private boolean staticSceneryBuilt = false; + private boolean buildingStaticScenery = false; + + public void setSceneContext(HdProceduralGenerator procGen, WorldController worldController) { + this.procGen = procGen; + this.worldController = worldController; + clearModelCache(); + buildStaticTerrain(); + } + + public int getTerrainGenerationId() { + return terrainGenerationId; + } + + public int getStaticTerrainVertexCount(int bucket) { + return (bucket >= 0 && bucket < 4) ? staticTerrainVertCount[bucket] : 0; + } + + public float[] getStaticTerrainBucket(int bucket) { + return (bucket >= 0 && bucket < 4) ? staticTerrainBuckets[bucket] : null; + } + + public float[] getOpaqueStaging() { + return opaqueStaging; + } + + public float[] getTransStaging() { + return transStaging; + } + + public int getStaticSceneryOpaqueCount(int bucket, int chunk) { + return (bucket >= 0 && bucket < 4 && chunk >= 0 && chunk < CHUNKS_PER_PLANE) ? staticSceneryOpaqueVertCount[bucket][chunk] : 0; + } + + public int getStaticSceneryTransCount(int bucket, int chunk) { + return (bucket >= 0 && bucket < 4 && chunk >= 0 && chunk < CHUNKS_PER_PLANE) ? staticSceneryTransVertCount[bucket][chunk] : 0; + } + + public float[] getStaticSceneryOpaqueBucket(int bucket, int chunk) { + return (bucket >= 0 && bucket < 4 && chunk >= 0 && chunk < CHUNKS_PER_PLANE) ? staticSceneryOpaqueBuckets[bucket][chunk] : null; + } + + public float[] getStaticSceneryTransBucket(int bucket, int chunk) { + return (bucket >= 0 && bucket < 4 && chunk >= 0 && chunk < CHUNKS_PER_PLANE) ? staticSceneryTransBuckets[bucket][chunk] : null; + } + + public int getStaticSceneryChunkGen(int bucket, int chunk) { + return (bucket >= 0 && bucket < 4 && chunk >= 0 && chunk < CHUNKS_PER_PLANE) ? staticSceneryChunkGen[bucket][chunk] : 0; + } + + public void invalidateChunk(int tx, int tz) { + if (!staticSceneryBuilt || tx < 0 || tz < 0 || tx >= 104 || tz >= 104) return; + int cx = Math.min(CHUNKS_PER_AXIS - 1, tx / CHUNK_TILE_SIZE); + int cz = Math.min(CHUNKS_PER_AXIS - 1, tz / CHUNK_TILE_SIZE); + dirtyChunks[cx * CHUNKS_PER_AXIS + cz] = true; + } + + public void rebuildDirtyChunks() { + if (!staticSceneryBuilt || worldController == null || worldController.groundArray == null) return; + for (int c = 0; c < CHUNKS_PER_PLANE; c++) { + if (dirtyChunks[c]) { + dirtyChunks[c] = false; + buildSingleSceneryChunk(c); + } + } + } + + public FloatBuffer prepareStaticBuffer(float[] data, int vertexCount) { + if (data == null || vertexCount <= 0) return null; + int floatCount = vertexCount * FLOATS_PER_VERTEX; + FloatBuffer fb = ByteBuffer.allocateDirect(floatCount * 4).order(ByteOrder.nativeOrder()).asFloatBuffer(); + fb.put(data, 0, floatCount); + ((Buffer) fb).position(0); + return fb; + } + + public FloatBuffer prepareStaticTerrainBucket(int bucket) { + int count = getStaticTerrainVertexCount(bucket); + if (count <= 0 || staticTerrainBuckets[bucket] == null) return null; + ((Buffer) terrainBuffer).position(0); + terrainBuffer.put(staticTerrainBuckets[bucket], 0, count * FLOATS_PER_VERTEX); + ((Buffer) terrainBuffer).position(0); + return terrainBuffer; + } + + private void buildStaticTerrain() { + staticTerrainBuilt = false; + if (procGen == null || worldController == null || worldController.groundArray == null) { + for (int b = 0; b < 4; b++) { + staticTerrainBuckets[b] = null; + staticTerrainVertCount[b] = 0; + } + terrainGenerationId++; + return; + } + for (int bucket = 0; bucket < 4; bucket++) { + terrainVertexCount = 0; + for (int p = 0; p < 4; p++) { + Ground[][] planeGrid = worldController.groundArray[p]; + if (planeGrid == null) continue; + for (int tx = 0; tx < 104; tx++) { + for (int tz = 0; tz < 104; tz++) { + Ground g = planeGrid[tx][tz]; + if (g == null) continue; + int minVis = Math.max(0, Math.min(3, g.anInt1321)); + if (minVis != bucket) continue; + if (g.aClass30_Sub3_1329 != null) { + Ground bridge = g.aClass30_Sub3_1329; + HD317Pipeline.drawingPlane = 0; + if (bridge.aClass43_1311 != null) { + appendSimpleTileInternal(bridge.aClass43_1311, 0, tx, tz); + } else if (bridge.aClass40_1312 != null) { + appendShapedTileInternal(bridge.aClass40_1312, 0, tx, tz); + } + } + HD317Pipeline.drawingPlane = g.anInt1310; + if (g.aClass43_1311 != null) { + appendSimpleTileInternal(g.aClass43_1311, g.anInt1310, tx, tz); + } else if (g.aClass40_1312 != null) { + appendShapedTileInternal(g.aClass40_1312, g.anInt1310, tx, tz); + } + } + } + } + staticTerrainVertCount[bucket] = terrainVertexCount; + staticTerrainBuckets[bucket] = (terrainVertexCount > 0) + ? Arrays.copyOf(terrainStaging, terrainVertexCount * FLOATS_PER_VERTEX) + : null; + } + terrainVertexCount = 0; + staticTerrainBuilt = true; + if (HD317Pipeline.useStaticScenery) { + buildStaticScenery(); + } + terrainGenerationId++; + } + + private void buildStaticScenery() { + staticSceneryBuilt = false; + for (int c = 0; c < CHUNKS_PER_PLANE; c++) { + dirtyChunks[c] = false; + } + if (worldController == null || worldController.groundArray == null) { + for (int b = 0; b < 4; b++) { + for (int c = 0; c < CHUNKS_PER_PLANE; c++) { + staticSceneryOpaqueBuckets[b][c] = null; + staticSceneryOpaqueVertCount[b][c] = 0; + staticSceneryTransBuckets[b][c] = null; + staticSceneryTransVertCount[b][c] = 0; + staticSceneryChunkGen[b][c]++; + } + } + return; + } + for (int c = 0; c < CHUNKS_PER_PLANE; c++) { + buildSingleSceneryChunk(c); + } + staticSceneryBuilt = true; + } + + private void buildSingleSceneryChunk(int chunkIdx) { + int cx = chunkIdx / CHUNKS_PER_AXIS; + int cz = chunkIdx % CHUNKS_PER_AXIS; + int startX = cx * CHUNK_TILE_SIZE; + int endX = (cx == CHUNKS_PER_AXIS - 1) ? 104 : startX + CHUNK_TILE_SIZE; + int startZ = cz * CHUNK_TILE_SIZE; + int endZ = (cz == CHUNKS_PER_AXIS - 1) ? 104 : startZ + CHUNK_TILE_SIZE; + + buildingStaticScenery = true; + java.util.HashSet seenObj5 = new java.util.HashSet<>(); + int camX = WorldController.anInt455; + int camY = WorldController.anInt456; + int camZ = WorldController.anInt457; + java.util.ArrayList opaqueChunks = new java.util.ArrayList<>(); + java.util.ArrayList transChunks = new java.util.ArrayList<>(); + + for (int bucket = 0; bucket < 4; bucket++) { + opaqueVertexCount = 0; + transVertexCount = 0; + opaqueChunks.clear(); + transChunks.clear(); + for (int p = 0; p < 4; p++) { + Ground[][] planeGrid = worldController.groundArray[p]; + if (planeGrid == null) continue; + for (int tx = startX; tx < endX; tx++) { + for (int tz = startZ; tz < endZ; tz++) { + Ground g = planeGrid[tx][tz]; + if (g == null) continue; + int minVis = Math.max(0, Math.min(3, g.anInt1321)); + if (minVis != bucket) continue; + + if (g.aClass30_Sub3_1329 != null) { + appendTileScenery(g.aClass30_Sub3_1329, 0, camX, camY, camZ, seenObj5, startX, endX, startZ, endZ); + } + appendTileScenery(g, g.anInt1310, camX, camY, camZ, seenObj5, startX, endX, startZ, endZ); + + if (opaqueVertexCount >= MAX_OPAQUE_VERTICES - 20000) { + opaqueChunks.add(Arrays.copyOf(opaqueStaging, opaqueVertexCount * FLOATS_PER_VERTEX)); + opaqueVertexCount = 0; + } + if (transVertexCount >= MAX_TRANS_VERTICES - 10000) { + transChunks.add(Arrays.copyOf(transStaging, transVertexCount * FLOATS_PER_VERTEX)); + transVertexCount = 0; + } + } + } + } + staticSceneryOpaqueBuckets[bucket][chunkIdx] = mergeChunks(opaqueChunks, opaqueStaging, opaqueVertexCount); + staticSceneryOpaqueVertCount[bucket][chunkIdx] = (staticSceneryOpaqueBuckets[bucket][chunkIdx] != null) + ? staticSceneryOpaqueBuckets[bucket][chunkIdx].length / FLOATS_PER_VERTEX : 0; + staticSceneryTransBuckets[bucket][chunkIdx] = mergeChunks(transChunks, transStaging, transVertexCount); + staticSceneryTransVertCount[bucket][chunkIdx] = (staticSceneryTransBuckets[bucket][chunkIdx] != null) + ? staticSceneryTransBuckets[bucket][chunkIdx].length / FLOATS_PER_VERTEX : 0; + staticSceneryChunkGen[bucket][chunkIdx]++; + } + opaqueVertexCount = 0; + transVertexCount = 0; + buildingStaticScenery = false; + } + + private void appendTileScenery(Ground g, int plane, int camX, int camY, int camZ, java.util.HashSet seenObj5, + int startX, int endX, int startZ, int endZ) { + HD317Pipeline.drawingPlane = plane; + if (g.obj1 != null) { + Object1 o1 = g.obj1; + HD317Pipeline.drawingWall = true; + if (o1.aClass30_Sub2_Sub4_278 instanceof Model) { + appendModel((Model) o1.aClass30_Sub2_Sub4_278, 0, o1.anInt274 - camX, o1.anInt273 - camY, o1.anInt275 - camZ, o1.uid); + } + if (o1.aClass30_Sub2_Sub4_279 instanceof Model) { + appendModel((Model) o1.aClass30_Sub2_Sub4_279, 0, o1.anInt274 - camX, o1.anInt273 - camY, o1.anInt275 - camZ, o1.uid); + } + HD317Pipeline.drawingWall = false; + } + if (g.obj2 != null && g.obj2.aClass30_Sub2_Sub4_504 instanceof Model && (g.obj2.anInt502 & 0x300) == 0) { + Object2 o2 = g.obj2; + appendModel((Model) o2.aClass30_Sub2_Sub4_504, o2.anInt503, o2.anInt500 - camX, o2.anInt499 - camY, o2.anInt501 - camZ, o2.uid); + } + if (g.obj3 != null && g.obj3.aClass30_Sub2_Sub4_814 instanceof Model) { + Object3 o3 = g.obj3; + appendModel((Model) o3.aClass30_Sub2_Sub4_814, 0, o3.anInt812 - camX, o3.anInt811 - camY, o3.anInt813 - camZ, o3.uid); + } + for (int i = 0; i < g.anInt1317; i++) { + Object5 o5 = g.obj5Array[i]; + if (o5 != null && o5.aClass30_Sub2_Sub4_521 instanceof Model + && o5.anInt523 >= startX && o5.anInt523 < endX + && o5.anInt525 >= startZ && o5.anInt525 < endZ + && seenObj5.add(o5)) { + appendModel((Model) o5.aClass30_Sub2_Sub4_521, o5.anInt522, o5.anInt519 - camX, o5.anInt518 - camY, o5.anInt520 - camZ, o5.uid); + } + } + } + + private static float[] mergeChunks(java.util.ArrayList chunks, float[] tail, int tailVerts) { + int totalFloats = tailVerts * FLOATS_PER_VERTEX; + for (int i = 0; i < chunks.size(); i++) { + totalFloats += chunks.get(i).length; + } + if (totalFloats <= 0) return null; + float[] merged = new float[totalFloats]; + int pos = 0; + for (int i = 0; i < chunks.size(); i++) { + float[] c = chunks.get(i); + System.arraycopy(c, 0, merged, pos, c.length); + pos += c.length; + } + if (tailVerts > 0) { + System.arraycopy(tail, 0, merged, pos, tailVerts * FLOATS_PER_VERTEX); + } + return merged; + } + + public void clearModelCache() { + modelCache.clear(); + cachedModelFloats = 0; + } + + public void resetFrame() { + terrainVertexCount = 0; + opaqueVertexCount = 0; + transVertexCount = 0; + } + + public int getTerrainVertexCount() { + return terrainVertexCount; + } + + public int getOpaqueVertexCount() { + return opaqueVertexCount; + } + + public int getTransVertexCount() { + return transVertexCount; + } + + public FloatBuffer prepareTerrainBuffer() { + ((Buffer) terrainBuffer).position(0); + terrainBuffer.put(terrainStaging, 0, terrainVertexCount * FLOATS_PER_VERTEX); + ((Buffer) terrainBuffer).position(0); + return terrainBuffer; + } + + public FloatBuffer prepareOpaqueBuffer() { + ((Buffer) opaqueBuffer).position(0); + opaqueBuffer.put(opaqueStaging, 0, opaqueVertexCount * FLOATS_PER_VERTEX); + ((Buffer) opaqueBuffer).position(0); + return opaqueBuffer; + } + + public FloatBuffer prepareTransBuffer() { + ((Buffer) transBuffer).position(0); + transBuffer.put(transStaging, 0, transVertexCount * FLOATS_PER_VERTEX); + ((Buffer) transBuffer).position(0); + return transBuffer; + } + + private int resolveVertexGroundMaterial(int plane, int vx, int vz, int hsl, boolean isOverlay) { + HdGroundMaterial group = HdGroundMaterial.resolve(plane, 0, hsl, isOverlay); + int wX = (procGen != null ? procGen.baseX : 3200) + vx; + int wZ = (procGen != null ? procGen.baseZ : 3200) + vz; + int mat = group.getMaterialForVertex(plane, wX, wZ); + return (mat >= 0) ? mat : HdMaterial.HD_GRASS_1; + } + + public void appendSimpleTile(Class43 tile, int plane, int tileX, int tileZ) { + if (staticTerrainBuilt) return; + appendSimpleTileInternal(tile, plane, tileX, tileZ); + } + + private void appendSimpleTileInternal(Class43 tile, int plane, int tileX, int tileZ) { + if (tile == null || worldController == null || procGen == null) return; + if (tileX < 0 || tileX >= 104 || tileZ < 0 || tileZ >= 104) return; + if (terrainVertexCount + 6 > MAX_TERRAIN_VERTICES) return; + + int[][][] heights = worldController.anIntArrayArrayArray440; + float x0 = tileX * 128.0f; + float x1 = (tileX + 1) * 128.0f; + float z0 = tileZ * 128.0f; + float z1 = (tileZ + 1) * 128.0f; + + float y00 = heights[plane][tileX][tileZ]; + float y10 = heights[plane][tileX + 1][tileZ]; + float y11 = heights[plane][tileX + 1][tileZ + 1]; + float y01 = heights[plane][tileX][tileZ + 1]; + + float[] n00 = procGen.tileNormals[plane][tileX][tileZ]; + float[] n10 = procGen.tileNormals[plane][tileX + 1][tileZ]; + float[] n11 = procGen.tileNormals[plane][tileX + 1][tileZ + 1]; + float[] n01 = procGen.tileNormals[plane][tileX][tileZ + 1]; + + int texId = tile.anInt720; + boolean isWater = (texId == 1 || texId == 34); + int surfType = isWater ? SURF_WATER : SURF_TERRAIN; + + if (isWater) { + n00 = n10 = n11 = n01 = WATER_NORMAL; + } + + int m00, m10, m11, m01; + if (texId >= 0) { + m00 = m10 = m11 = m01 = texId; + } else if (procGen.tileIsIndoor[plane][tileX][tileZ]) { + // Indoor architectural flooring (e.g. Varrock Castle checkered marble/stone floors): + // Use uniform smooth honed stone without outdoor Voronoi cobblestone or dirt splatting + m00 = m10 = m11 = m01 = HdMaterial.HD_STONE_PAVERS_2; + } else { + boolean hasOv = tile.isOverlay; + if (plane >= 1) { + hasOv = true; + } + m00 = resolveVertexGroundMaterial(plane, tileX, tileZ, tile.anInt716, hasOv); + m10 = resolveVertexGroundMaterial(plane, tileX + 1, tileZ, tile.anInt717, hasOv); + m11 = resolveVertexGroundMaterial(plane, tileX + 1, tileZ + 1, tile.anInt718, hasOv); + m01 = resolveVertexGroundMaterial(plane, tileX, tileZ + 1, tile.anInt719, hasOv); + } + + float uvScale = (texId >= 0) ? 128.0f : 192.0f; + boolean drawTri1 = (tile.anInt718 != 0xbc614e); + boolean drawTri2 = (tile.anInt716 != 0xbc614e); + if (!drawTri1 && !drawTri2) return; + + int cSE = isWater ? 0x808080 : resolveGroundRgb(tile.anInt717, texId, m10); + int cNW = isWater ? 0x808080 : resolveGroundRgb(tile.anInt719, texId, m01); + + if (drawTri1) { + int cNE = isWater ? 0x808080 : resolveGroundRgb(tile.anInt718, texId, m11); + + putTerrainVertex(x1, y11, z1, n11[0], n11[1], n11[2], x1 / uvScale, z1 / uvScale, cNE, 1.0f, m11, m01, m10, 0, surfType); + putTerrainVertex(x0, y01, z1, n01[0], n01[1], n01[2], x0 / uvScale, z1 / uvScale, cNW, 1.0f, m11, m01, m10, 1, surfType); + putTerrainVertex(x1, y10, z0, n10[0], n10[1], n10[2], x1 / uvScale, z0 / uvScale, cSE, 1.0f, m11, m01, m10, 2, surfType); + } + + if (drawTri2) { + int cSW = isWater ? 0x808080 : resolveGroundRgb(tile.anInt716, texId, m00); + + putTerrainVertex(x0, y00, z0, n00[0], n00[1], n00[2], x0 / uvScale, z0 / uvScale, cSW, 1.0f, m00, m10, m01, 0, surfType); + putTerrainVertex(x1, y10, z0, n10[0], n10[1], n10[2], x1 / uvScale, z0 / uvScale, cSE, 1.0f, m00, m10, m01, 1, surfType); + putTerrainVertex(x0, y01, z1, n01[0], n01[1], n01[2], x0 / uvScale, z1 / uvScale, cNW, 1.0f, m00, m10, m01, 2, surfType); + } + } + + public void appendShapedTile(Class40 tile, int plane, int tileX, int tileZ) { + if (staticTerrainBuilt) return; + appendShapedTileInternal(tile, plane, tileX, tileZ); + } + + private void appendShapedTileInternal(Class40 tile, int plane, int tileX, int tileZ) { + if (tile == null || procGen == null) return; + if (tileX < 0 || tileX >= 104 || tileZ < 0 || tileZ >= 104) return; + + int faceCount = tile.anIntArray679.length; + if (terrainVertexCount + faceCount * 3 > MAX_TERRAIN_VERTICES) return; + + int vertCount = Math.min(16, tile.anIntArray673.length); + for (int v = 0; v < vertCount; v++) { + vertexTouchesUnderlay[v] = false; + vertexTouchesOverlay[v] = false; + } + int sampleUnderlayHsl = (20 << 10) | (4 << 7) | 40; + int sampleOverlayHsl = (8 << 10) | (1 << 7) | 48; + + boolean hasUntexturedOverlay = false; + for (int f = 0; f < faceCount; f++) { + boolean ov = tile.isOverlayFace != null && tile.isOverlayFace[f]; + int a = tile.anIntArray679[f]; + int b = tile.anIntArray680[f]; + int c = tile.anIntArray681[f]; + int fTex = (tile.anIntArray682 != null) ? tile.anIntArray682[f] : -1; + if (ov) { + if (fTex < 0 && tile.anIntArray676[f] != 0xbc614e) { + sampleOverlayHsl = tile.anIntArray676[f]; + hasUntexturedOverlay = true; + } + if (a < vertCount) vertexTouchesOverlay[a] = true; + if (b < vertCount) vertexTouchesOverlay[b] = true; + if (c < vertCount) vertexTouchesOverlay[c] = true; + } else { + if (fTex < 0 && tile.anIntArray676[f] != 0xbc614e) { + sampleUnderlayHsl = tile.anIntArray676[f]; + } + if (a < vertCount) vertexTouchesUnderlay[a] = true; + if (b < vertCount) vertexTouchesUnderlay[b] = true; + if (c < vertCount) vertexTouchesUnderlay[c] = true; + } + } + + boolean isIndoorTile = procGen.tileIsIndoor[plane][tileX][tileZ]; + int uMat = isIndoorTile ? HdMaterial.HD_STONE_PAVERS_2 : resolveVertexGroundMaterial(plane, tileX, tileZ, sampleUnderlayHsl, false); + int oMat = hasUntexturedOverlay + ? (isIndoorTile ? HdMaterial.HD_STONE_PAVERS_2 : resolveVertexGroundMaterial(plane, tileX, tileZ, sampleOverlayHsl, true)) + : HdMaterial.NONE; + + float[] nSW = procGen.tileNormals[plane][tileX][tileZ]; + float[] nSE = procGen.tileNormals[plane][tileX + 1][tileZ]; + float[] nNE = procGen.tileNormals[plane][tileX + 1][tileZ + 1]; + float[] nNW = procGen.tileNormals[plane][tileX][tileZ + 1]; + + float baseTileX = tileX * 128.0f; + float baseTileZ = tileZ * 128.0f; + + boolean isBridgeTile = plane >= 1 + || (worldController != null + && worldController.groundArray[0][tileX][tileZ] != null + && worldController.groundArray[0][tileX][tileZ].aClass30_Sub3_1329 != null); + + for (int f = 0; f < faceCount; f++) { + int colA = tile.anIntArray676[f]; + if (colA == 0xbc614e) continue; + int colB = tile.anIntArray677[f]; + int colC = tile.anIntArray678[f]; + + int iA = tile.anIntArray679[f]; + int iB = tile.anIntArray680[f]; + int iC = tile.anIntArray681[f]; + + float xA = tile.anIntArray673[iA], yA = tile.anIntArray674[iA], zA = tile.anIntArray675[iA]; + float xB = tile.anIntArray673[iB], yB = tile.anIntArray674[iB], zB = tile.anIntArray675[iB]; + float xC = tile.anIntArray673[iC], yC = tile.anIntArray674[iC], zC = tile.anIntArray675[iC]; + + int texId = (tile.anIntArray682 != null) ? tile.anIntArray682[f] : -1; + boolean isWater = (texId == 1 || texId == 34); + int surfType = isWater ? SURF_WATER : SURF_TERRAIN; + + boolean isOv = tile.isOverlayFace != null && tile.isOverlayFace[f]; + boolean isBridgeOrRamp = isBridgeTile && hasUntexturedOverlay && (oMat >= HdMaterial.HD_COBBLESTONE_1 && oMat <= HdMaterial.HD_STONE_PAVERS_2); + if (!isOv && isBridgeOrRamp) { + int oHue = (sampleOverlayHsl >> 10) & 0x3F; + int oSat = (sampleOverlayHsl >> 7) & 0x07; + colA = (oHue << 10) | (oSat << 7) | (colA & 0x7F); + colB = (oHue << 10) | (oSat << 7) | (colB & 0x7F); + colC = (oHue << 10) | (oSat << 7) | (colC & 0x7F); + isOv = true; + } + int faceMat = (texId >= 0) ? texId : (isOv ? oMat : uMat); + int mA = faceMat, mB = faceMat, mC = faceMat; + + int rgbA = isWater ? 0x808080 : resolveGroundRgb(colA, texId, mA); + int rgbB = isWater ? 0x808080 : resolveGroundRgb(colB, texId, mB); + int rgbC = isWater ? 0x808080 : resolveGroundRgb(colC, texId, mC); + + float[] normA, normB, normC; + if (isWater) { + normA = normB = normC = WATER_NORMAL; + } else { + normA = interpolateTileNormal((xA - baseTileX) / 128.0f, (zA - baseTileZ) / 128.0f, nSW, nSE, nNE, nNW); + normB = interpolateTileNormal((xB - baseTileX) / 128.0f, (zB - baseTileZ) / 128.0f, nSW, nSE, nNE, nNW); + normC = interpolateTileNormal((xC - baseTileX) / 128.0f, (zC - baseTileZ) / 128.0f, nSW, nSE, nNE, nNW); + } + + float uvScale = (texId >= 0) ? 128.0f : 192.0f; + putTerrainVertex(xA, yA, zA, normA[0], normA[1], normA[2], xA / uvScale, zA / uvScale, rgbA, 1.0f, mA, mB, mC, 0, surfType); + putTerrainVertex(xB, yB, zB, normB[0], normB[1], normB[2], xB / uvScale, zB / uvScale, rgbB, 1.0f, mA, mB, mC, 1, surfType); + putTerrainVertex(xC, yC, zC, normC[0], normC[1], normC[2], xC / uvScale, zC / uvScale, rgbC, 1.0f, mA, mB, mC, 2, surfType); + } + } + + public void appendModel(Model model, int orientation, int relX, int relY, int relZ, int uid) { + if (model == null || model.anInt1630 <= 0) return; + + boolean isStaticScenery = (uid != -1) && !HD317Pipeline.drawingAnimatedObj && (uid == 0 || ((uid >>> 29) & 3) == 2); + if (HD317Pipeline.useStaticScenery && staticSceneryBuilt && !buildingStaticScenery && isStaticScenery) { + return; + } + int baseSurfType = HD317Pipeline.drawingWall ? SURF_WALL : (isStaticScenery ? SURF_MODEL : SURF_ACTOR); + + int faceCount = model.anInt1630; + float modelWorldX = relX + WorldController.anInt455; + float modelWorldY = relY + WorldController.anInt456 - (isStaticScenery ? 0.0f : 3.5f); + float modelWorldZ = relZ + WorldController.anInt457; + + int sin = 0; + int cos = 65536; + if (orientation != 0 && Model.modelIntArray1 != null && Model.modelIntArray2 != null) { + sin = Model.modelIntArray1[orientation & 2047]; + cos = Model.modelIntArray2[orientation & 2047]; + } + + int plane = Math.max(0, Math.min(3, HD317Pipeline.drawingPlane)); + int cacheTypeKey = baseSurfType + plane * 8; + CachedModel cached = modelCache.get(model); + if (cached != null && cached.version == model.hdCacheVersion && cached.surfType == cacheTypeKey) { + emitCachedModel(cached, orientation, sin, cos, modelWorldX, modelWorldY, modelWorldZ); + return; + } + if (cached != null) { + modelCache.remove(model); + cachedModelFloats -= cached.totalFloats; + } + + Class33[] normals = model.hdVertexNormals; + if (normals == null) { + normals = (model.aClass33Array1660 != null) ? model.aClass33Array1660 : model.aClass33Array1425; + } + int[] palette = Texture.anIntArray1482; + if (palette == null) return; + + boolean buildCache = false; + int cacheStartOpaque = opaqueVertexCount; + int cacheStartTrans = transVertexCount; + model.hdCleanFrames++; + if (model.hdCleanFrames >= 2 + && faceCount * 3 * FLOATS_PER_VERTEX <= 200000 + && opaqueVertexCount + faceCount * 3 <= MAX_OPAQUE_VERTICES + && transVertexCount + faceCount * 3 <= MAX_TRANS_VERTICES) { + buildCache = true; + } + + int effOrientation = buildCache ? 0 : orientation; + float effWorldX = buildCache ? 0.0f : modelWorldX; + float effWorldY = buildCache ? 0.0f : modelWorldY; + float effWorldZ = buildCache ? 0.0f : modelWorldZ; + + for (int f = 0; f < faceCount; f++) { + int drawType = (model.anIntArray1637 != null) ? model.anIntArray1637[f] : 0; + if (drawType == -1) continue; + + int cA = model.anIntArray1634[f]; + int cB = model.anIntArray1635[f]; + int cC = model.anIntArray1636[f]; + if (cC == -2) continue; + + boolean isTextured = (drawType & 2) != 0; + boolean isFlat = (drawType & 1) != 0 || cC == -1; + + float alpha = 1.0f; + if (model.anIntArray1639 != null && model.anIntArray1639[f] > 0) { + alpha = Math.max(0.05f, (255 - (model.anIntArray1639[f] & 0xFF)) / 255.0f); + } + + if (!isTextured && alpha < 0.88f) { + int lumA = cA & 0x7F; + int satA = (cA >> 7) & 0x07; + if (lumA <= 20 && satA <= 1) { + continue; + } + } + + int vA = model.anIntArray1631[f]; + int vB = model.anIntArray1632[f]; + int vC = model.anIntArray1633[f]; + + int vxA = model.anIntArray1627[vA], vyA = model.anIntArray1628[vA], vzA = model.anIntArray1629[vA]; + int vxB = model.anIntArray1627[vB], vyB = model.anIntArray1628[vB], vzB = model.anIntArray1629[vB]; + int vxC = model.anIntArray1627[vC], vyC = model.anIntArray1628[vC], vzC = model.anIntArray1629[vC]; + + if (effOrientation != 0) { + int t = vzA * sin + vxA * cos >> 16; + vzA = vzA * cos - vxA * sin >> 16; + vxA = t; + + t = vzB * sin + vxB * cos >> 16; + vzB = vzB * cos - vxB * sin >> 16; + vxB = t; + + t = vzC * sin + vxC * cos >> 16; + vzC = vzC * cos - vxC * sin >> 16; + vxC = t; + } + + float wxA = vxA + effWorldX, wyA = vyA + effWorldY, wzA = vzA + effWorldZ; + float wxB = vxB + effWorldX, wyB = vyB + effWorldY, wzB = vzB + effWorldZ; + float wxC = vxC + effWorldX, wyC = vyC + effWorldY, wzC = vzC + effWorldZ; + + boolean isHorizontalFace = (vyA == vyB && vyB == vyC); + float nxA, nyA, nzA, nxB, nyB, nzB, nxC, nyC, nzC; + if (isHorizontalFace) { + // Flat horizontal polygons (rugs, carpets, tabletops) use a pure vertical normal + // so perimeter side-skirts never bend the lighting into a curved pillow gradient + nxA = nxB = nxC = 0.0f; + nyA = nyB = nyC = -1.0f; + nzA = nzB = nzC = 0.0f; + } else if (!isFlat && normals != null + && vA < normals.length && vB < normals.length && vC < normals.length + && normals[vA] != null && normals[vB] != null && normals[vC] != null + && normals[vA].anInt605 > 0 && normals[vB].anInt605 > 0 && normals[vC].anInt605 > 0) { + Class33 nA = normals[vA], nB = normals[vB], nC = normals[vC]; + if (effOrientation != 0) { + nxA = (nA.anInt604 * sin + nA.anInt602 * cos) >> 16; + nyA = nA.anInt603; + nzA = (nA.anInt604 * cos - nA.anInt602 * sin) >> 16; + + nxB = (nB.anInt604 * sin + nB.anInt602 * cos) >> 16; + nyB = nB.anInt603; + nzB = (nB.anInt604 * cos - nB.anInt602 * sin) >> 16; + + nxC = (nC.anInt604 * sin + nC.anInt602 * cos) >> 16; + nyC = nC.anInt603; + nzC = (nC.anInt604 * cos - nC.anInt602 * sin) >> 16; + } else { + nxA = nA.anInt602; nyA = nA.anInt603; nzA = nA.anInt604; + nxB = nB.anInt602; nyB = nB.anInt603; nzB = nB.anInt604; + nxC = nC.anInt602; nyC = nC.anInt603; nzC = nC.anInt604; + } + } else { + float e1x = wxB - wxA, e1y = wyB - wyA, e1z = wzB - wzA; + float e2x = wxC - wxA, e2y = wyC - wyA, e2z = wzC - wzA; + float fnx = e1y * e2z - e1z * e2y; + float fny = e1z * e2x - e1x * e2z; + float fnz = e1x * e2y - e1y * e2x; + nxA = nxB = nxC = fnx; + nyA = nyB = nyC = fny; + nzA = nzB = nzC = fnz; + } + + int matId = HdMaterial.NONE; + float uA = 0f, vUvA = 0f, uB = 1f, vUvB = 0f, uC = 0f, vUvC = 1f; + int rgbA, rgbB, rgbC; + int surfType = baseSurfType; + + if (isTextured && model.anIntArray1640 != null) { + matId = model.anIntArray1640[f]; + + int tIdx = drawType >> 2; + int pIdx = vA, mIdx = vB, nIdx = vC; + if (model.anIntArray1643 != null && tIdx >= 0 && tIdx < model.anIntArray1643.length) { + pIdx = model.anIntArray1643[tIdx]; + mIdx = model.anIntArray1644[tIdx]; + nIdx = model.anIntArray1645[tIdx]; + } + + float px = model.anIntArray1627[pIdx], py = model.anIntArray1628[pIdx], pz = model.anIntArray1629[pIdx]; + float mx = model.anIntArray1627[mIdx] - px, my = model.anIntArray1628[mIdx] - py, mz = model.anIntArray1629[mIdx] - pz; + float nx = model.anIntArray1627[nIdx] - px, ny = model.anIntArray1628[nIdx] - py, nz = model.anIntArray1629[nIdx] - pz; + + float wx = my * nz - mz * ny; + float wy = mz * nx - mx * nz; + float wz = mx * ny - my * nx; + + float uPerpX = ny * wz - nz * wy; + float uPerpY = nz * wx - nx * wz; + float uPerpZ = nx * wy - ny * wx; + float uDenom = uPerpX * mx + uPerpY * my + uPerpZ * mz; + if (Math.abs(uDenom) < 1e-4f) uDenom = 1.0f; + + float vPerpX = wy * mz - wz * my; + float vPerpY = wz * mx - wx * mz; + float vPerpZ = wx * my - wy * mx; + float vDenom = vPerpX * nx + vPerpY * ny + vPerpZ * nz; + if (Math.abs(vDenom) < 1e-4f) vDenom = 1.0f; + + float dxA = model.anIntArray1627[vA] - px, dyA = model.anIntArray1628[vA] - py, dzA = model.anIntArray1629[vA] - pz; + float dxB = model.anIntArray1627[vB] - px, dyB = model.anIntArray1628[vB] - py, dzB = model.anIntArray1629[vB] - pz; + float dxC = model.anIntArray1627[vC] - px, dyC = model.anIntArray1628[vC] - py, dzC = model.anIntArray1629[vC] - pz; + + uA = (uPerpX * dxA + uPerpY * dyA + uPerpZ * dzA) / uDenom; + vUvA = (vPerpX * dxA + vPerpY * dyA + vPerpZ * dzA) / vDenom; + uB = (uPerpX * dxB + uPerpY * dyB + uPerpZ * dzB) / uDenom; + vUvB = (vPerpX * dxB + vPerpY * dyB + vPerpZ * dzB) / vDenom; + uC = (uPerpX * dxC + uPerpY * dyC + uPerpZ * dzC) / uDenom; + vUvC = (vPerpX * dxC + vPerpY * dyC + vPerpZ * dzC) / vDenom; + + if (matId == 24 || matId == 17 || matId == 1 || matId == 34) { + rgbA = 0xFFFFFF; + rgbB = 0xFFFFFF; + rgbC = 0xFFFFFF; + } else { + int sA = Math.max(115, Math.min(250, 115 + (127 - (cA & 0x7F)) * 135 / 127)); + int sB = isFlat ? sA : Math.max(115, Math.min(250, 115 + (127 - (cB & 0x7F)) * 135 / 127)); + int sC = isFlat ? sA : Math.max(115, Math.min(250, 115 + (127 - (cC & 0x7F)) * 135 / 127)); + rgbA = (sA << 16) | (sA << 8) | sA; + rgbB = (sB << 16) | (sB << 8) | sB; + rgbC = (sC << 16) | (sC << 8) | sC; + } + } else { + int unlitHsl = (model.anIntArray1640 != null) ? model.anIntArray1640[f] : cA; + rgbA = resolveModelVertexRgb(unlitHsl, cA, palette); + rgbB = isFlat ? rgbA : resolveModelVertexRgb(unlitHsl, cB, palette); + rgbC = isFlat ? rgbA : resolveModelVertexRgb(unlitHsl, cC, palette); + } + + // Encode monotonic face priority (0..11) + face order (f / faceCount) into [0.0, 0.9375] + // so stacked coplanar model faces (e.g. rug base -> gold border -> inner rug -> white stars) + // always pass the hardware depth test in exact RS2 painter's order! + int prio = (model.anIntArray1638 != null) ? (model.anIntArray1638[f] & 0xFF) : model.anInt1641; + float faceOrder = (faceCount > 1) ? ((float) f / (float) faceCount) : 0.0f; + float faceBias = Math.min(0.9375f, (Math.min(11, Math.max(0, prio)) + faceOrder * 0.95f) / 12.8f); + + boolean isWaterDroplet = (matId == 24 || matId == 17 || matId == 1 || matId == 34); + if (alpha >= 0.95f && !isWaterDroplet) { + if (opaqueVertexCount + 3 <= MAX_OPAQUE_VERTICES) { + putOpaqueVertex(wxA, wyA, wzA, nxA, nyA, nzA, uA, vUvA, rgbA, alpha, matId, matId, matId, 0, surfType, faceBias); + putOpaqueVertex(wxB, wyB, wzB, nxB, nyB, nzB, uB, vUvB, rgbB, alpha, matId, matId, matId, 1, surfType, faceBias); + putOpaqueVertex(wxC, wyC, wzC, nxC, nyC, nzC, uC, vUvC, rgbC, alpha, matId, matId, matId, 2, surfType, faceBias); + } + } else { + if (transVertexCount + 3 <= MAX_TRANS_VERTICES) { + putTransVertex(wxA, wyA, wzA, nxA, nyA, nzA, uA, vUvA, rgbA, alpha, matId, matId, matId, 0, surfType, faceBias); + putTransVertex(wxB, wyB, wzB, nxB, nyB, nzB, uB, vUvB, rgbB, alpha, matId, matId, matId, 1, surfType, faceBias); + putTransVertex(wxC, wyC, wzC, nxC, nyC, nzC, uC, vUvC, rgbC, alpha, matId, matId, matId, 2, surfType, faceBias); + } + } + } + + if (buildCache) { + int oVerts = opaqueVertexCount - cacheStartOpaque; + int tVerts = transVertexCount - cacheStartTrans; + int totalFloats = (oVerts + tVerts) * FLOATS_PER_VERTEX; + if (totalFloats > 0 && totalFloats <= MAX_CACHED_MODEL_FLOATS) { + while (cachedModelFloats + totalFloats > MAX_CACHED_MODEL_FLOATS && !modelCache.isEmpty()) { + Iterator> it = modelCache.entrySet().iterator(); + if (!it.hasNext()) break; + CachedModel evicted = it.next().getValue(); + it.remove(); + cachedModelFloats -= evicted.totalFloats; + } + CachedModel entry = new CachedModel(); + entry.opaqueVerts = oVerts; + entry.opaque = (oVerts > 0) + ? Arrays.copyOfRange(opaqueStaging, cacheStartOpaque * FLOATS_PER_VERTEX, opaqueVertexCount * FLOATS_PER_VERTEX) + : null; + entry.transVerts = tVerts; + entry.trans = (tVerts > 0) + ? Arrays.copyOfRange(transStaging, cacheStartTrans * FLOATS_PER_VERTEX, transVertexCount * FLOATS_PER_VERTEX) + : null; + entry.surfType = cacheTypeKey; + entry.version = model.hdCacheVersion; + entry.totalFloats = totalFloats; + modelCache.put(model, entry); + cachedModelFloats += totalFloats; + + opaqueVertexCount = cacheStartOpaque; + transVertexCount = cacheStartTrans; + emitCachedModel(entry, orientation, sin, cos, modelWorldX, modelWorldY, modelWorldZ); + } + } + } + + private void emitCachedModel(CachedModel cached, int orientation, int sin, int cos, + float worldX, float worldY, float worldZ) { + int oVerts = cached.opaqueVerts; + if (oVerts > 0 && opaqueVertexCount + oVerts <= MAX_OPAQUE_VERTICES) { + emitCachedArray(cached.opaque, oVerts, opaqueStaging, opaqueVertexCount, orientation, sin, cos, worldX, worldY, worldZ); + opaqueVertexCount += oVerts; + } + int tVerts = cached.transVerts; + if (tVerts > 0 && transVertexCount + tVerts <= MAX_TRANS_VERTICES) { + emitCachedArray(cached.trans, tVerts, transStaging, transVertexCount, orientation, sin, cos, worldX, worldY, worldZ); + transVertexCount += tVerts; + } + } + + private static void emitCachedArray(float[] src, int vertCount, float[] dst, int dstVertOffset, + int orientation, int sin, int cos, + float worldX, float worldY, float worldZ) { + int floatCount = vertCount * FLOATS_PER_VERTEX; + int dstBase = dstVertOffset * FLOATS_PER_VERTEX; + System.arraycopy(src, 0, dst, dstBase, floatCount); + int end = dstBase + floatCount; + if (orientation == 0) { + for (int i = dstBase; i < end; i += FLOATS_PER_VERTEX) { + dst[i] += worldX; + dst[i + 1] += worldY; + dst[i + 2] += worldZ; + } + } else { + float fSin = sin / 65536.0f; + float fCos = cos / 65536.0f; + for (int i = dstBase; i < end; i += FLOATS_PER_VERTEX) { + float lx = dst[i]; + float lz = dst[i + 2]; + dst[i] = (lz * fSin + lx * fCos) + worldX; + dst[i + 1] += worldY; + dst[i + 2] = (lz * fCos - lx * fSin) + worldZ; + + float lnx = dst[i + 3]; + float lnz = dst[i + 5]; + dst[i + 3] = lnz * fSin + lnx * fCos; + dst[i + 5] = lnz * fCos - lnx * fSin; + } + } + } + + private int resolveGroundRgb(int hsl, int texId, int matId) { + if (texId >= 0) { + int shade = Math.max(95, Math.min(255, (127 - (hsl & 0x7F)) * 2)); + return (shade << 16) | (shade << 8) | shade; + } + int[] palette = Texture.anIntArray1482; + if (palette == null || hsl < 0 || hsl >= palette.length) { + return 0x808080; + } + + int hue = (hsl >> 10) & 0x3F; + int sat = (hsl >> 7) & 0x07; + int lum = hsl & 0x7F; + + if (lum < 16) { + int liftedLum = Math.max(16, 10 + (lum * 6) / 16); + int liftedHsl = (hue << 10) | (sat << 7) | liftedLum; + if (liftedHsl >= 0 && liftedHsl < palette.length) { + return palette[liftedHsl]; + } + } + + return palette[hsl]; + } + + private int resolveModelVertexRgb(int unlitHsl, int litHsl, int[] palette) { + if (litHsl < 0 || litHsl >= palette.length) return 0x808080; + if (unlitHsl <= 0 || unlitHsl >= palette.length) { + return palette[litHsl]; + } + int hs = unlitHsl & 0xFF80; + int baseLum = unlitHsl & 0x7F; + int litLum = litHsl & 0x7F; + int neutralLum = Math.max(12, Math.min(124, (baseLum * 9 + litLum * 11) / 20)); + return palette[hs | neutralLum]; + } + + private final float[] tempInterpNorm = new float[3]; + + private float[] interpolateTileNormal(float tx, float tz, float[] n00, float[] n10, float[] n11, float[] n01) { + tx = Math.max(0f, Math.min(1f, tx)); + tz = Math.max(0f, Math.min(1f, tz)); + float nx = (n00[0] * (1f - tx) + n10[0] * tx) * (1f - tz) + (n01[0] * (1f - tx) + n11[0] * tx) * tz; + float ny = (n00[1] * (1f - tx) + n10[1] * tx) * (1f - tz) + (n01[1] * (1f - tx) + n11[1] * tx) * tz; + float nz = (n00[2] * (1f - tx) + n10[2] * tx) * (1f - tz) + (n01[2] * (1f - tx) + n11[2] * tx) * tz; + float inv = (float) (1.0 / Math.sqrt(nx * nx + ny * ny + nz * nz + 1e-6)); + tempInterpNorm[0] = nx * inv; + tempInterpNorm[1] = ny * inv; + tempInterpNorm[2] = nz * inv; + return tempInterpNorm; + } + + private void putTerrainVertex(float x, float y, float z, + float nx, float ny, float nz, + float u, float v, + int rgb, float alpha, + int matA, int matB, int matC, + int baryIndex, int surfType) { + int base = terrainVertexCount * FLOATS_PER_VERTEX; + writeVertexTo(terrainStaging, base, x, y, z, nx, ny, nz, u, v, rgb, alpha, matA, matB, matC, baryIndex, surfType, 0.0f, HD317Pipeline.drawingPlane); + terrainVertexCount++; + } + + private void putOpaqueVertex(float x, float y, float z, + float nx, float ny, float nz, + float u, float v, + int rgb, float alpha, + int matA, int matB, int matC, + int baryIndex, int surfType) { + putOpaqueVertex(x, y, z, nx, ny, nz, u, v, rgb, alpha, matA, matB, matC, baryIndex, surfType, 0.0f); + } + + private void putOpaqueVertex(float x, float y, float z, + float nx, float ny, float nz, + float u, float v, + int rgb, float alpha, + int matA, int matB, int matC, + int baryIndex, int surfType, float faceBias) { + int base = opaqueVertexCount * FLOATS_PER_VERTEX; + writeVertexTo(opaqueStaging, base, x, y, z, nx, ny, nz, u, v, rgb, alpha, matA, matB, matC, baryIndex, surfType, faceBias, HD317Pipeline.drawingPlane); + opaqueVertexCount++; + } + + private void putTransVertex(float x, float y, float z, + float nx, float ny, float nz, + float u, float v, + int rgb, float alpha, + int matA, int matB, int matC, + int baryIndex, int surfType, float faceBias) { + int base = transVertexCount * FLOATS_PER_VERTEX; + writeVertexTo(transStaging, base, x, y, z, nx, ny, nz, u, v, rgb, alpha, matA, matB, matC, baryIndex, surfType, faceBias, HD317Pipeline.drawingPlane); + transVertexCount++; + } + + private static void writeVertexTo(float[] arr, int base, + float x, float y, float z, + float nx, float ny, float nz, + float u, float v, + int rgb, float alpha, + int matA, int matB, int matC, + int baryIndex, int surfType, float faceBias, int plane) { + arr[base] = x; + arr[base + 1] = y; + arr[base + 2] = z; + + arr[base + 3] = nx; + arr[base + 4] = ny; + arr[base + 5] = nz; + + arr[base + 6] = u; + arr[base + 7] = v; + + arr[base + 8] = ((rgb >> 16) & 0xFF) / 255.0f; + arr[base + 9] = ((rgb >> 8) & 0xFF) / 255.0f; + arr[base + 10] = (rgb & 0xFF) / 255.0f; + arr[base + 11] = alpha; + + arr[base + 12] = (float) matA; + arr[base + 13] = (float) matB; + arr[base + 14] = (float) matC; + int p = Math.max(0, Math.min(3, plane)); + arr[base + 15] = (float) (baryIndex + surfType * 4 + p * 32) + faceBias; + } +} diff --git a/2006Scape Client/src/main/java/ItemID.java b/2006Scape Client/src/main/java/ItemID.java new file mode 100644 index 00000000..0490189c --- /dev/null +++ b/2006Scape Client/src/main/java/ItemID.java @@ -0,0 +1,6 @@ +/** + * Item ID constants for the 2006Scape Client Plugin & Script API. + * Inherits all item constants from StaticItemList. + */ +public class ItemID extends StaticItemList { +} diff --git a/2006Scape Client/src/main/java/MenuEntry.java b/2006Scape Client/src/main/java/MenuEntry.java new file mode 100644 index 00000000..4ca930d0 --- /dev/null +++ b/2006Scape Client/src/main/java/MenuEntry.java @@ -0,0 +1,165 @@ +import java.util.Objects; + +/** + * Represents a single right-click or left-click menu entry in the game. + */ +public class MenuEntry { + + private String rawText; + private int actionId; + private int cmd1; + private int cmd2; + private int cmd3; + + public MenuEntry() { + } + + public MenuEntry(String rawText, int actionId, int cmd1, int cmd2, int cmd3) { + this.rawText = rawText; + this.actionId = actionId; + this.cmd1 = cmd1; + this.cmd2 = cmd2; + this.cmd3 = cmd3; + } + + public String getRawText() { + return rawText != null ? rawText : ""; + } + + public void setRawText(String rawText) { + this.rawText = rawText; + } + + public int getActionId() { + return actionId; + } + + public void setActionId(int actionId) { + this.actionId = actionId; + } + + public int getCmd1() { + return cmd1; + } + + public void setCmd1(int cmd1) { + this.cmd1 = cmd1; + } + + public int getCmd2() { + return cmd2; + } + + public void setCmd2(int cmd2) { + this.cmd2 = cmd2; + } + + public int getCmd3() { + return cmd3; + } + + public void setCmd3(int cmd3) { + this.cmd3 = cmd3; + } + + /** + * Strips RS color tags like @yel@, @whi@, @gre@, etc. + */ + public static String stripColorTags(String text) { + if (text == null) { + return ""; + } + StringBuilder sb = new StringBuilder(text.length()); + boolean inTag = false; + for (int i = 0; i < text.length(); i++) { + char c = text.charAt(i); + if (c == '@' && !inTag) { + // Check if closing '@' exists within next 5 chars + int closingIndex = text.indexOf('@', i + 1); + if (closingIndex > i && closingIndex - i <= 5) { + i = closingIndex; + continue; + } + } + sb.append(c); + } + return sb.toString().trim(); + } + + /** + * Returns the verb / action prefix (e.g. "Talk-to", "Attack", "Take", "Bank", "Examine"). + */ + public String getAction() { + String clean = stripColorTags(rawText); + int spaceIndex = clean.indexOf(' '); + if (spaceIndex != -1) { + return clean.substring(0, spaceIndex).trim(); + } + return clean.trim(); + } + + /** + * Returns the target name without action or color tags (e.g. "Man", "Chicken", "Feather"). + */ + public String getTarget() { + String clean = stripColorTags(rawText); + int spaceIndex = clean.indexOf(' '); + if (spaceIndex != -1) { + String target = clean.substring(spaceIndex + 1).trim(); + // If combat level is attached: e.g. "Chicken (level-1)", strip combat level if desired or keep + return target; + } + return ""; + } + + /** + * Case-insensitive match check for action and target patterns. + * Empty or null pattern acts as wildcard "*". + */ + public boolean matches(String actionPattern, String targetPattern) { + String act = getAction(); + String tgt = getTarget(); + + if (actionPattern != null && !actionPattern.isEmpty() && !actionPattern.equals("*")) { + if (!act.equalsIgnoreCase(actionPattern)) { + return false; + } + } + if (targetPattern != null && !targetPattern.isEmpty() && !targetPattern.equals("*")) { + if (!tgt.toLowerCase().contains(targetPattern.toLowerCase())) { + return false; + } + } + return true; + } + + @Override + public String toString() { + return "MenuEntry{" + + "action='" + getAction() + '\'' + + ", target='" + getTarget() + '\'' + + ", raw='" + rawText + '\'' + + ", id=" + actionId + + ", cmd1=" + cmd1 + + ", cmd2=" + cmd2 + + ", cmd3=" + cmd3 + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (!(o instanceof MenuEntry)) return false; + MenuEntry menuEntry = (MenuEntry) o; + return actionId == menuEntry.actionId && + cmd1 == menuEntry.cmd1 && + cmd2 == menuEntry.cmd2 && + cmd3 == menuEntry.cmd3 && + Objects.equals(rawText, menuEntry.rawText); + } + + @Override + public int hashCode() { + return Objects.hash(rawText, actionId, cmd1, cmd2, cmd3); + } +} diff --git a/2006Scape Client/src/main/java/MenuEntrySwapperPlugin.java b/2006Scape Client/src/main/java/MenuEntrySwapperPlugin.java new file mode 100644 index 00000000..a2666843 --- /dev/null +++ b/2006Scape Client/src/main/java/MenuEntrySwapperPlugin.java @@ -0,0 +1,156 @@ +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * RuneLite-style Menu Entry Swapper Plugin. + * Allows left-click swapping for NPCs, objects, ground items, and custom rules. + */ +public class MenuEntrySwapperPlugin extends ClientPlugin { + + private boolean swapBank = true; + private boolean swapTrade = true; + private boolean swapPickpocket = true; + private boolean swapTravel = true; + private boolean chatCommands = true; + private String customRules = ""; + + @Override + public String getName() { + return "Menu Entry Swapper"; + } + + @Override + public String getDescription() { + return "Swaps default left-click actions for Bank, Pickpocket, Trade, and custom rules."; + } + + @Override + public String getAuthor() { + return "2006Scape"; + } + + @Override + public boolean isEnabledByDefault() { + return true; + } + + @Override + public List getConfigItems() { + List list = new ArrayList<>(); + list.add(new PluginConfigItem("swapBank", "Swap Bank", "Promote 'Bank' over 'Talk-to' on bankers", swapBank)); + list.add(new PluginConfigItem("swapTrade", "Swap Trade", "Promote 'Trade' over 'Talk-to' on shopkeepers", swapTrade)); + list.add(new PluginConfigItem("swapPickpocket", "Swap Pickpocket", "Promote 'Pickpocket' on NPCs", swapPickpocket)); + list.add(new PluginConfigItem("swapTravel", "Swap Travel", "Promote 'Travel'/'Pay-fare' on captains", swapTravel)); + list.add(new PluginConfigItem("customRules", "Custom Rules", "Comma-separated Option:Target pairs (e.g. Bury:Bones)", customRules)); + list.add(new PluginConfigItem("chatCommands", "Chat Commands", "Allow ::swap / ::swapper in chat", chatCommands)); + return list; + } + + @Override + public void onConfigChanged(String key, Object value) { + if ("swapBank".equals(key)) swapBank = (Boolean) value; + else if ("swapTrade".equals(key)) swapTrade = (Boolean) value; + else if ("swapPickpocket".equals(key)) swapPickpocket = (Boolean) value; + else if ("swapTravel".equals(key)) swapTravel = (Boolean) value; + else if ("chatCommands".equals(key)) chatCommands = (Boolean) value; + else if ("customRules".equals(key)) customRules = (String) value; + } + + @Override + public void onPreMenuRender(List entries) { + if (entries == null || entries.size() <= 1) { + return; + } + + // Apply custom swap rules first + if (customRules != null && !customRules.trim().isEmpty()) { + String[] rules = customRules.split(","); + for (String rule : rules) { + String[] parts = rule.trim().split(":"); + if (parts.length >= 2) { + String action = parts[0].trim(); + String target = parts[1].trim(); + if (promoteEntry(entries, action, target)) { + return; + } + } + } + } + + // Built-in Bank swap (Banker, Bank booth, Bank chest) + if (swapBank) { + if (promoteEntry(entries, "Bank", "*") || promoteEntry(entries, "Open", "Bank")) { + return; + } + } + + // Built-in Pickpocket swap + if (swapPickpocket) { + if (promoteEntry(entries, "Pickpocket", "*")) { + return; + } + } + + // Built-in Trade swap + if (swapTrade) { + if (promoteEntry(entries, "Trade", "*")) { + return; + } + } + + // Built-in Travel / Pay-fare swap + if (swapTravel) { + if (promoteEntry(entries, "Pay-fare", "*") || + promoteEntry(entries, "Travel", "*") || + promoteEntry(entries, "Charter", "*") || + promoteEntry(entries, "Teleport", "*")) { + return; + } + } + } + + private boolean promoteEntry(List entries, String action, String target) { + int foundIdx = -1; + for (int i = 0; i < entries.size(); i++) { + MenuEntry e = entries.get(i); + if (e.matches(action, target)) { + foundIdx = i; + break; + } + } + if (foundIdx != -1 && foundIdx != entries.size() - 1) { + MenuEntry targetEntry = entries.remove(foundIdx); + entries.add(targetEntry); // Top of menu (left-click) + return true; + } + return false; + } + + @Override + public boolean onCommand(String command, String[] args) { + if ("swap".equalsIgnoreCase(command) || "swapper".equalsIgnoreCase(command)) { + if (args.length >= 2 && "add".equalsIgnoreCase(args[0])) { + String newRule = args[1].trim(); + customRules = (customRules != null && !customRules.isEmpty()) ? customRules + "," + newRule : newRule; + if (ctx != null) { + ctx.sendClientMessage("Added swap rule: " + newRule); + } + return true; + } else if (args.length >= 1 && "clear".equalsIgnoreCase(args[0])) { + customRules = ""; + if (ctx != null) { + ctx.sendClientMessage("Custom swap rules cleared."); + } + return true; + } else { + if (ctx != null) { + ctx.sendClientMessage("Menu Swapper Rules: " + customRules); + ctx.sendClientMessage("Usage: ::swap add : or ::swap clear"); + } + return true; + } + } + return false; + } +} diff --git a/2006Scape Client/src/main/java/Model.java b/2006Scape Client/src/main/java/Model.java index 53d5efe3..fe5880b1 100644 --- a/2006Scape Client/src/main/java/Model.java +++ b/2006Scape Client/src/main/java/Model.java @@ -625,6 +625,7 @@ public final class Model extends Animable { anIntArray1636 = model.anIntArray1636; anIntArray1637 = model.anIntArray1637; } + hdVertexNormals = model.hdVertexNormals; anIntArray1627 = model.anIntArray1627; anIntArray1629 = model.anIntArray1629; anIntArray1640 = model.anIntArray1640; @@ -649,6 +650,7 @@ public final class Model extends Animable { } public void method464(Model model, boolean flag) { + invalidateHdCache(); anInt1626 = model.anInt1626; anInt1630 = model.anInt1630; anInt1642 = model.anInt1642; @@ -698,6 +700,9 @@ public final class Model extends Animable { anIntArray1643 = model.anIntArray1643; anIntArray1644 = model.anIntArray1644; anIntArray1645 = model.anIntArray1645; + aClass33Array1660 = model.aClass33Array1660; + super.aClass33Array1425 = model.aClass33Array1425; + hdVertexNormals = model.hdVertexNormals; } private int method465(Model model, int i) { @@ -859,6 +864,7 @@ public final class Model extends Animable { } public void method470(int i) { + invalidateHdCache(); if (anIntArrayArray1657 == null) { return; } @@ -881,6 +887,7 @@ public final class Model extends Animable { } public void method471(int ai[], int j, int k) { + invalidateHdCache(); if (k == -1) { return; } @@ -1070,6 +1077,7 @@ public final class Model extends Animable { } public void method473() { + invalidateHdCache(); for (int j = 0; j < anInt1626; j++) { int k = anIntArray1627[j]; anIntArray1627[j] = anIntArray1629[j]; @@ -1079,6 +1087,7 @@ public final class Model extends Animable { } public void method474(int i) { + invalidateHdCache(); int k = modelIntArray1[i]; int l = modelIntArray2[i]; for (int i1 = 0; i1 < anInt1626; i1++) { @@ -1089,6 +1098,7 @@ public final class Model extends Animable { } public void method475(int i, int j, int l) { + invalidateHdCache(); for (int i1 = 0; i1 < anInt1626; i1++) { anIntArray1627[i1] += i; anIntArray1628[i1] += j; @@ -1098,6 +1108,7 @@ public final class Model extends Animable { } public void method476(int i, int j) { + invalidateHdCache(); for (int k = 0; k < anInt1630; k++) { if (anIntArray1640[k] == i) { anIntArray1640[k] = j; @@ -1107,6 +1118,7 @@ public final class Model extends Animable { } public void method477() { + invalidateHdCache(); for (int j = 0; j < anInt1626; j++) { anIntArray1629[j] = -anIntArray1629[j]; } @@ -1119,6 +1131,7 @@ public final class Model extends Animable { } public void method478(int i, int j, int l) { + invalidateHdCache(); for (int i1 = 0; i1 < anInt1626; i1++) { anIntArray1627[i1] = anIntArray1627[i1] * i / 128; anIntArray1628[i1] = anIntArray1628[i1] * l / 128; @@ -1128,6 +1141,7 @@ public final class Model extends Animable { } public void method479(int i, int j, int k, int l, int i1, boolean flag) { + invalidateHdCache(); int j1 = (int) Math.sqrt(k * k + l * l + i1 * i1); int k1 = j * j1 >> 8; if (anIntArray1634 == null) { @@ -1201,6 +1215,7 @@ public final class Model extends Animable { class33_1.anInt604 = class33.anInt604; class33_1.anInt605 = class33.anInt605; } + hdVertexNormals = aClass33Array1660; } if (flag) { @@ -1211,6 +1226,7 @@ public final class Model extends Animable { } public void method480(int i, int j, int k, int l, int i1) { + invalidateHdCache(); for (int j1 = 0; j1 < anInt1630; j1++) { int k1 = anIntArray1631[j1]; int i2 = anIntArray1632[j1]; @@ -1241,19 +1257,23 @@ public final class Model extends Animable { } } + if (super.aClass33Array1425 != null) { + hdVertexNormals = new Class33[anInt1626]; + for (int k2 = 0; k2 < anInt1626; k2++) { + Class33 src = super.aClass33Array1425[k2]; + if (src != null) { + Class33 dst = hdVertexNormals[k2] = new Class33(); + dst.anInt602 = src.anInt602; + dst.anInt603 = src.anInt603; + dst.anInt604 = src.anInt604; + dst.anInt605 = src.anInt605; + } + } + } super.aClass33Array1425 = null; aClass33Array1660 = null; anIntArray1655 = null; anIntArray1656 = null; - if (anIntArray1637 != null) { - for (int l1 = 0; l1 < anInt1630; l1++) { - if ((anIntArray1637[l1] & 2) == 2) { - return; - } - } - - } - anIntArray1640 = null; } private static int method481(int i, int j, int k) { @@ -1335,30 +1355,49 @@ public final class Model extends Animable { int k2 = k1 * j + j2 * k >> 16; int l2 = anInt1650 * k >> 16; int i3 = k2 + l2; - // Check distance of model to camera for rendering (default 3500) - int distance = WorldController.drawDistance * 256; - distance *= 1 + (Game.zoom / 10); - if (i3 <= 50 || k2 >= distance) { + boolean hdActive = ClientSettings.HD_317 && HD317Pipeline.isGpuActive(); + // Check distance of model to camera for rendering + int distance; + if (hdActive) { + distance = Math.max(4800, (WorldController.effectiveDrawDist + 16) * 128); + } else if (ClientSettings.ANDROID) { + // In software mode, strictly synchronize model culling distance with ground terrain bounds + distance = WorldController.effectiveDrawDist * 128 + 128; + } else { + distance = WorldController.drawDistance * 256; + distance *= 1 + (Game.zoom / 10); + } + if (i3 <= ((ClientSettings.ANDROID || hdActive) ? 20 : 50) || k2 >= distance) { return; } + + int boundX = DrawingArea.centerY; + int boundY = DrawingArea.anInt1387; + if (hdActive) { + int w = DrawingArea.width > 0 ? DrawingArea.width : 1024; + int h = DrawingArea.height > 0 ? DrawingArea.height : 768; + int minDim = Math.max(1, Math.min(w, h)); + boundX = (w * 360) / minDim + 180; + boundY = (h * 450) / minDim + 180; + } int j3 = l1 * l + j1 * i1 >> 16; int k3 = j3 - anInt1650 << 9; - if (k3 / i3 >= DrawingArea.centerY) { + if (k3 / i3 >= boundX) { return; } int l3 = j3 + anInt1650 << 9; - if (l3 / i3 <= -DrawingArea.centerY) { + if (l3 / i3 <= -boundX) { return; } int i4 = k1 * k - j2 * j >> 16; int j4 = anInt1650 * j >> 16; int k4 = i4 + j4 << 9; - if (k4 / i3 <= -DrawingArea.anInt1387) { + if (k4 / i3 <= -boundY) { return; } int l4 = j4 + (super.modelHeight * k >> 16); int i5 = i4 - l4 << 9; - if (i5 / i3 >= DrawingArea.anInt1387) { + if (i5 / i3 >= boundY) { return; } int j5 = l2 + (super.modelHeight * j >> 16); @@ -1396,6 +1435,10 @@ public final class Model extends Animable { } } } + if (hdActive && !flag1) { + HD317Pipeline.drawModel(this, i, j, k, l, i1, j1, k1, l1, i2); + return; + } int l5 = Texture.textureInt1; int j6 = Texture.textureInt2; int l6 = 0; @@ -1437,6 +1480,28 @@ public final class Model extends Animable { } } + if (hdActive) { + if (flag1) { + for (int k7 = 0; k7 < anInt1630; k7++) { + if (anIntArray1637 == null || anIntArray1637[k7] != -1) { + int vA = anIntArray1631[k7]; + int vB = anIntArray1632[k7]; + int vC = anIntArray1633[k7]; + int xA = anIntArray1665[vA]; + int xB = anIntArray1665[vB]; + int xC = anIntArray1665[vC]; + if ((!flag || (xA != -5000 && xB != -5000 && xC != -5000)) + && method486(anInt1685, anInt1686, anIntArray1666[vA], anIntArray1666[vB], anIntArray1666[vC], xA, xB, xC)) { + anIntArray1688[anInt1687++] = i2; + break; + } + } + } + } + HD317Pipeline.drawModel(this, i, j, k, l, i1, j1, k1, l1, i2); + return; + } + try { method483(flag, flag1, i2); } catch (Exception _ex) { @@ -1829,18 +1894,18 @@ public final class Model extends Animable { public int anIntArray1631[]; public int anIntArray1632[]; public int anIntArray1633[]; - private int[] anIntArray1634; - private int[] anIntArray1635; - private int[] anIntArray1636; + public int[] anIntArray1634; + public int[] anIntArray1635; + public int[] anIntArray1636; public int anIntArray1637[]; - private int[] anIntArray1638; - private int[] anIntArray1639; + public int[] anIntArray1638; + public int[] anIntArray1639; public int anIntArray1640[]; - private int anInt1641; - private int anInt1642; - private int[] anIntArray1643; - private int[] anIntArray1644; - private int[] anIntArray1645; + public int anInt1641; + public int anInt1642; + public int[] anIntArray1643; + public int[] anIntArray1644; + public int[] anIntArray1645; public int anInt1646; public int anInt1647; public int anInt1648; @@ -1855,7 +1920,15 @@ public final class Model extends Animable { public int anIntArrayArray1657[][]; public int anIntArrayArray1658[][]; public boolean aBoolean1659; - Class33 aClass33Array1660[]; + public Class33 aClass33Array1660[]; + public Class33 hdVertexNormals[]; + public int hdCacheVersion = 0; + public int hdCleanFrames = 0; + + public void invalidateHdCache() { + hdCacheVersion++; + hdCleanFrames = 0; + } private static Class21[] aClass21Array1661; private static OnDemandFetcherParent aOnDemandFetcherParent_1662; private static boolean[] aBooleanArray1663 = new boolean[4096]; diff --git a/2006Scape Client/src/main/java/ModernLayout.java b/2006Scape Client/src/main/java/ModernLayout.java new file mode 100644 index 00000000..54f195bf --- /dev/null +++ b/2006Scape Client/src/main/java/ModernLayout.java @@ -0,0 +1,201 @@ +/** + * ModernLayout + * + * Coordinates and hit-testing for the modern resizable layout. + * Pure Java: no java.awt or android.* imports, allowing 100% shared code + * between Desktop and Android. + */ +public final class ModernLayout { + + public static final int TARGET_DEFAULT = 0; + public static final int TARGET_VIEWPORT = 1; + public static final int TARGET_TAB = 2; + public static final int TARGET_CHAT = 3; + public static final int TARGET_MINIMAP = 4; + + public static int windowWidth = 765; + public static int windowHeight = 503; + public static boolean inGame = false; + + private ModernLayout() {} + + public static void updateWindowSize(int w, int h) { + if (w < 765) w = 765; + if (h < 503) h = 503; + windowWidth = w; + windowHeight = h; + } + + public static int hit(int x, int y) { + if (!ClientSettings.isModernLayout() || !inGame) { + return TARGET_DEFAULT; + } + int w = windowWidth; + int h = windowHeight; + + // Minimap: top right (from w - 249 to w, y from 0 to 168) + if (x >= w - 249 && y <= 168) { + int localX = x - (w - 249); + int localY = y; + if (isInsideMinimap(localX, localY)) { + return TARGET_MINIMAP; + } + } + + // Tab block: bottom right (from w - 249 to w, y from h - 343 to h) + if (x >= w - 249 && y >= h - 343) { + int localX = x - (w - 249); + int localY = y - (h - 343); + if (isInsideTabArea(localX, localY)) { + return TARGET_TAB; + } + } + + // Chatbox: bottom left (from 0 to 519, y from h - 165 to h) + if (x <= 519 && y >= h - 165) { + return TARGET_CHAT; + } + + return TARGET_VIEWPORT; + } + + // Symmetrical corner inset profile for dy = 0..33 from top (sy=0) or bottom (sy=334) of the 234x335 stone ring + private static final int[] TAB_CORNER_DX = { + 234, // dy = 0 (outermost 1px row is transparent) + 28, 26, 24, 22, 20, 19, 17, + 14, 13, 11, 10, 9, 8, 8, + 7, 7, 7, 7, 6, 6, 6, + 5, 5, 5, 5, 4, 4, 3, + 3, 3, 3, 2, 2 + }; + + public static boolean isInsideTabArea(int localX, int localY) { + int sx = localX - 15; + int sy = localY - 8; + if (sx <= 0 || sx >= 233 || sy <= 0 || sy >= 334) { + return false; + } + int dy = Math.min(sy, 334 - sy); + int dx = (dy < TAB_CORNER_DX.length) ? TAB_CORNER_DX[dy] : 1; + return sx >= dx && sx <= (233 - dx); + } + + public static boolean isInsideMinimap(int localX, int localY) { + // 1. Compass circular area (centered at (16, 16), radius 16) + int cDx = localX - 16; + int cDy = localY - 16; + if (cDx * cDx + cDy * cDy <= 16 * 16) { + return true; + } + + // 2. Minimap elliptical walking area (centered at (132, 84), Rx=76, Ry=78) + float mDx = (localX - 132) / 76f; + float mDy = (localY - 84) / 78f; + return (mDx * mDx + mDy * mDy) <= 1.0f; + } + + /** + * Computes aspect-ratio-preserved scaled bounds { originX, originY, scaledW, scaledH } + * for a 765x503 canvas (login/title screen or welcome screen) inside window (w, h), + * matching the Android client's welcomeScale behavior. + */ + public static int[] getScaledScreenBounds(int w, int h) { + float scale = Math.min((float) w / 765f, (float) h / 503f); + int scaledW = Math.round(765 * scale); + int scaledH = Math.round(503 * scale); + int originX = Math.max(0, (w - scaledW) / 2); + int originY = Math.max(0, (h - scaledH) / 2); + return new int[] { originX, originY, scaledW, scaledH }; + } + + /** + * Maps window coordinates (x, y) to fixed-layout game coordinates (used by input processing). + */ + public static int[] toGameCoords(int area, int x, int y) { + if (!ClientSettings.isModernLayout()) { + return new int[] { x, y }; + } + int w = windowWidth; + int h = windowHeight; + + if (!inGame) { + int[] b = getScaledScreenBounds(w, h); + int gx = ((x - b[0]) * 765) / Math.max(1, b[2]); + int gy = ((y - b[1]) * 503) / Math.max(1, b[3]); + return new int[] { gx, gy }; + } + + switch (area) { + case TARGET_MINIMAP: + return new int[] { x - (w - 765), y }; + case TARGET_TAB: + return new int[] { x - (w - 765), y - (h - 503) }; + case TARGET_CHAT: + return new int[] { x, y - (h - 503) }; + case TARGET_VIEWPORT: + default: + return new int[] { x, y }; + } + } + + /** + * Maps classic fixed coordinates (fixedX, fixedY) of a UI element/producer to window coordinates. + * Returns null if the element should be hidden/skipped in modern layout (e.g. fixed outer border frames). + */ + public static int[] toWindow(int fixedX, int fixedY, int width, int height) { + if (!ClientSettings.isModernLayout()) { + return new int[] { fixedX, fixedY }; + } + int w = windowWidth; + int h = windowHeight; + + if (!inGame || (width == 765 && height == 503 && fixedX == 0 && fixedY == 0)) { + int[] b = getScaledScreenBounds(w, h); + int x0 = b[0] + (fixedX * b[2]) / 765; + int y0 = b[1] + (fixedY * b[3]) / 503; + int x1 = b[0] + ((fixedX + width) * b[2]) / 765; + int y1 = b[1] + ((fixedY + height) * b[3]) / 503; + return new int[] { x0, y0, x1 - x0, y1 - y0 }; + } + + // 3D Viewport: (4, 4) in fixed mode -> (0, 0) edge-to-edge in modern mode + if (fixedX == 4 && fixedY == 4) { + return new int[] { 0, 0 }; + } + + // Minimap and top-right stone border pieces: + // Handled cleanly via modern minimap composite in desktop overlays; suppress raw legacy pieces + if (fixedX >= 516 && fixedY < 160) { + return null; + } + + // Chatbox outer stone borders and raw producers: + // backVmidIP2_2 top border (fixedX = 0, fixedY = 338) + // backLeftIP2 left border (fixedX = 0, fixedY = 357) + // backVmidIP3 right border (fixedX = 496, fixedY = 357) + // Parchment 1166 (fixedX = 17, fixedY = 357) + // Buttons 1123 (fixedX = 0, fixedY = 453) + // All handled cleanly via modern chat composite in DesktopHooks.drawModernChat + if (fixedX == 0 && fixedY == 338) { + return null; + } + if ((fixedX == 0 || fixedX == 496 || fixedX == 17) && fixedY == 357) { + return null; + } + if (fixedX == 0 && fixedY == 453) { + return null; + } + + // Tab block elements: + // top bar 1125 (516, 160), left pillar backVmidIP2 (516, 205), + // tab body 1163 (553, 205), right pillar backRightIP2 (743, 205), + // bottom bar 1124 (496, 466) + // All handled cleanly via unified modern tab composite in DesktopHooks.drawModernTab + if (fixedX >= 496 && fixedY >= 160) { + return null; + } + + // Fixed outer frame borders that should not be drawn in modern layout + return null; + } +} diff --git a/2006Scape Client/src/main/java/NpcID.java b/2006Scape Client/src/main/java/NpcID.java new file mode 100644 index 00000000..824af39e --- /dev/null +++ b/2006Scape Client/src/main/java/NpcID.java @@ -0,0 +1,6 @@ +/** + * NPC ID constants for the 2006Scape Client Plugin & Script API. + * Inherits all NPC constants from StaticNpcList. + */ +public class NpcID extends StaticNpcList { +} diff --git a/2006Scape Client/src/main/java/ObjectID.java b/2006Scape Client/src/main/java/ObjectID.java new file mode 100644 index 00000000..9b475512 --- /dev/null +++ b/2006Scape Client/src/main/java/ObjectID.java @@ -0,0 +1,6 @@ +/** + * Object ID constants for the 2006Scape Client Plugin & Script API. + * Inherits all scene object constants from StaticObjectList. + */ +public class ObjectID extends StaticObjectList { +} diff --git a/2006Scape Client/src/main/java/ObjectManager.java b/2006Scape Client/src/main/java/ObjectManager.java index 25895efa..255b17d0 100644 --- a/2006Scape Client/src/main/java/ObjectManager.java +++ b/2006Scape Client/src/main/java/ObjectManager.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -final class ObjectManager { +public final class ObjectManager { public ObjectManager(byte abyte0[][][], int ai[][][]) { anInt145 = 99; @@ -146,7 +146,10 @@ final class ObjectManager { k15 -= anIntArray127[k18]; k16 -= anIntArray128[k18]; } - if (k17 >= 1 && k17 < anInt147 - 1 && ((!hideBuggyVarrockSwordShopSnow && !hideRoofs && !lowMem) || (aByteArrayArrayArray149[0][l6][k17] & 2) != 0 || (aByteArrayArrayArray149[l][l6][k17] & 0x10) == 0 && method182(k17, l, l6) == anInt131)) { + boolean roofGate = ClientSettings.ANDROID + ? (!hideRoofs && !lowMem) + : (!hideBuggyVarrockSwordShopSnow && !hideRoofs && !lowMem); + if (k17 >= 1 && k17 < anInt147 - 1 && (roofGate || (aByteArrayArrayArray149[0][l6][k17] & 2) != 0 || (aByteArrayArrayArray149[l][l6][k17] & 0x10) == 0 && method182(k17, l, l6) == anInt131)) { if (l < anInt145) { anInt145 = l; } @@ -1337,23 +1340,23 @@ final class ObjectManager { private final int[] anIntArray126; private final int[] anIntArray127; private final int[] anIntArray128; - private final int[][][] anIntArrayArrayArray129; - private final byte[][][] aByteArrayArrayArray130; + public final int[][][] anIntArrayArrayArray129; + public final byte[][][] aByteArrayArrayArray130; static int anInt131; private static int anInt133 = (int) (Math.random() * 33D) - 16; - private final byte[][][] aByteArrayArrayArray134; - private final int[][][] anIntArrayArrayArray135; - private final byte[][][] aByteArrayArrayArray136; + public final byte[][][] aByteArrayArrayArray134; + public final int[][][] anIntArrayArrayArray135; + public final byte[][][] aByteArrayArrayArray136; private static final int anIntArray137[] = {1, 0, -1, 0}; - private final int[][] anIntArrayArray139; + public final int[][] anIntArrayArray139; private static final int anIntArray140[] = {16, 32, 64, 128}; - private final byte[][][] aByteArrayArrayArray142; + public final byte[][][] aByteArrayArrayArray142; private static final int anIntArray144[] = {0, -1, 0, 1}; static int anInt145 = 99; private final int anInt146; private final int anInt147; - private final byte[][][] aByteArrayArrayArray148; - private final byte[][][] aByteArrayArrayArray149; + public final byte[][][] aByteArrayArrayArray148; + public final byte[][][] aByteArrayArrayArray149; static boolean lowMem = true; static boolean hideRoofs = ClientSettings.HIDE_ROOFS; diff --git a/2006Scape Client/src/main/java/PluginConfigItem.java b/2006Scape Client/src/main/java/PluginConfigItem.java new file mode 100644 index 00000000..bbe9be6f --- /dev/null +++ b/2006Scape Client/src/main/java/PluginConfigItem.java @@ -0,0 +1,102 @@ +import java.util.Arrays; + +/** + * Defines a metadata item for configuring a plugin or script. + */ +public class PluginConfigItem { + + public enum Type { + BOOLEAN, + INTEGER, + STRING, + CHOICE + } + + private final String key; + private final String label; + private final String description; + private final Type type; + private final Object defaultValue; + private final String[] choices; + private final int minValue; + private final int maxValue; + private String visibleWhen; + + public PluginConfigItem(String key, String label, String description, boolean defaultValue) { + this(key, label, description, Type.BOOLEAN, defaultValue, null, 0, 0); + } + + public PluginConfigItem(String key, String label, String description, int defaultValue, int minValue, int maxValue) { + this(key, label, description, Type.INTEGER, defaultValue, null, minValue, maxValue); + } + + public PluginConfigItem(String key, String label, String description, String defaultValue) { + this(key, label, description, Type.STRING, defaultValue, null, 0, 0); + } + + public PluginConfigItem(String key, String label, String description, String defaultValue, String[] choices) { + this(key, label, description, Type.CHOICE, defaultValue, choices, 0, 0); + } + + public PluginConfigItem(String key, String label, String description, Type type, Object defaultValue, String[] choices, int minValue, int maxValue) { + this.key = key; + this.label = label; + this.description = description; + this.type = type; + this.defaultValue = defaultValue; + this.choices = choices; + this.minValue = minValue; + this.maxValue = maxValue; + } + + public String getKey() { + return key; + } + + public String getLabel() { + return label; + } + + public String getDescription() { + return description; + } + + public Type getType() { + return type; + } + + public Object getDefaultValue() { + return defaultValue; + } + + public String[] getChoices() { + return choices != null ? choices.clone() : new String[0]; + } + + public int getMinValue() { + return minValue; + } + + public int getMaxValue() { + return maxValue; + } + + public PluginConfigItem setVisibleWhen(String key) { + this.visibleWhen = key; + return this; + } + + public String getVisibleWhen() { + return visibleWhen; + } + + @Override + public String toString() { + return "PluginConfigItem{" + + "key='" + key + '\'' + + ", label='" + label + '\'' + + ", type=" + type + + ", default=" + defaultValue + + '}'; + } +} diff --git a/2006Scape Client/src/main/java/PluginContext.java b/2006Scape Client/src/main/java/PluginContext.java new file mode 100644 index 00000000..596395a2 --- /dev/null +++ b/2006Scape Client/src/main/java/PluginContext.java @@ -0,0 +1,2891 @@ +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import java.util.function.Predicate; + +/** + * High-level game API facade for plugins and scripts. + */ +public class PluginContext { + + private final Game game; + + public PluginContext(Game game) { + this.game = game; + } + + public Game getGame() { + return game; + } + + // ========================================================================= + // Player State Queries + // ========================================================================= + + public boolean isLoggedIn() { + return game != null && game.loggedIn && game.myPlayer != null; + } + + public int getPlane() { + return game.plane; + } + + public int getBaseX() { + return game.baseX; + } + + public int getBaseY() { + return game.baseY; + } + + public int getPlayerX() { + return game.myPlayer != null ? (game.myPlayer.x >> 7) + game.baseX : 0; + } + + public int getPlayerY() { + return game.myPlayer != null ? (game.myPlayer.y >> 7) + game.baseY : 0; + } + + public int getPlayerLocalX() { + return game.myPlayer != null ? (game.myPlayer.x >> 7) : 0; + } + + public int getPlayerLocalY() { + return game.myPlayer != null ? (game.myPlayer.y >> 7) : 0; + } + + public String getPlayerName() { + return game.myPlayer != null ? game.myPlayer.name : ""; + } + + public int getPlayerAnim() { + return game.myPlayer != null ? game.myPlayer.anim : -1; + } + + public int getPlayerCombatLevel() { + return game.myPlayer != null ? game.myPlayer.combatLevel : 3; + } + + public int getPlayerInteractingIndex() { + return game.myPlayer != null ? game.myPlayer.interactingEntity : -1; + } + + public boolean isPlayerMoving() { + return game.myPlayer != null && (game.myPlayer.anInt1517 != -1 && game.myPlayer.anInt1517 != game.myPlayer.anInt1511); + } + + public boolean isPlayerInCombat() { + if (game.myPlayer == null) return false; + NpcWrapper interactingNpc = getPlayerInteractingNpc(); + if (interactingNpc != null && !interactingNpc.isDead() && interactingNpc.combatLevel > 0) { + return true; + } + NpcWrapper attacker = getNpcAttackingPlayer(); + if (attacker != null && !attacker.isDead()) { + return true; + } + return false; + } + + public NpcWrapper getPlayerInteractingNpc() { + if (game.myPlayer == null) return null; + int idx = game.myPlayer.interactingEntity; + if (idx >= 0 && idx < 32768 && idx < game.npcArray.length) { + NPC npc = game.npcArray[idx]; + if (npc != null && npc.desc != null && npc.isVisible()) { + return new NpcWrapper(idx, npc, game.baseX, game.baseY, getPlayerX(), getPlayerY(), game.unknownInt10, game.myPlayerIndex); + } + } + return null; + } + + public NpcWrapper getNpcAttackingPlayer() { + if (game.myPlayer == null) return null; + for (int i = 0; i < game.npcCount; i++) { + int idx = game.npcIndices[i]; + NPC npc = game.npcArray[idx]; + if (npc != null && npc.desc != null && npc.isVisible()) { + NpcWrapper wrapper = new NpcWrapper(idx, npc, game.baseX, game.baseY, getPlayerX(), getPlayerY(), game.unknownInt10, game.myPlayerIndex); + if (wrapper.isAttackingPlayer && !wrapper.isDead()) { + return wrapper; + } + } + } + return null; + } + + public boolean isPlayerIdle() { + if (game.myPlayer == null) return false; + return game.myPlayer.anim == -1 && !isPlayerMoving() && !isPlayerInCombat(); + } + + public int getSkillLevel(int skillId) { + if (skillId >= 0 && skillId < game.currentExp.length) { + return game.currentStats[skillId]; + } + return 1; + } + + public int getSkillMaxLevel(int skillId) { + if (skillId >= 0 && skillId < game.maxStats.length) { + return game.maxStats[skillId]; + } + return 1; + } + + public int getSkillXp(int skillId) { + if (skillId >= 0 && skillId < game.currentExp.length) { + return game.currentExp[skillId]; + } + return 0; + } + + public int getEnergy() { + return game.energy; + } + + public int getPlayerHp() { + return isLoggedIn() ? getSkillLevel(SkillID.HITPOINTS) : 0; + } + + public int getPlayerMaxHp() { + return isLoggedIn() ? getSkillMaxLevel(SkillID.HITPOINTS) : 1; + } + + public int getPlayerHpPercent() { + if (!isLoggedIn()) return 100; + int max = getPlayerMaxHp(); + if (max <= 0) return 100; + return Math.max(0, Math.min(100, (getPlayerHp() * 100) / max)); + } + + public InventoryItemWrapper findFood() { + if (!isLoggedIn()) return null; + InventoryItemWrapper edible = inventory().hasAction("Eat").first(); + if (edible != null) return edible; + return inventory() + .named("meat", "shrimp", "trout", "salmon", "tuna", "lobster", + "swordfish", "shark", "monkfish", "bread", "cake", "pie", + "stew", "anchovies", "sardine", "herring", "pike", "bass", "karambwan") + .first(); + } + + public boolean eatAnyFood() { + InventoryItemWrapper food = findFood(); + return food != null && interactInventoryItem(food.slot, "Eat"); + } + + public boolean emergencyTeleport(Spell teleportSpell, int minHpPercent) { + if (!isLoggedIn() || teleportSpell == null) return false; + if (getPlayerHpPercent() <= minHpPercent) { + return castSpell(teleportSpell); + } + return false; + } + + public int distanceTo(int worldX, int worldY) { + int dx = getPlayerX() - worldX; + int dy = getPlayerY() - worldY; + return (int) Math.sqrt(dx * dx + dy * dy); + } + + public boolean isRunEnabled() { + return game.variousSettings != null && 173 < game.variousSettings.length && game.variousSettings[173] == 1; + } + + public boolean setRunEnabled(boolean enabled) { + if (!isLoggedIn()) return false; + if (isRunEnabled() == enabled) return true; + if (enabled && getEnergy() <= 0) return false; + invokeMenuAction("Toggle Run", 315, 0, 0, 19136); + return true; + } + + public boolean ensureRunEnabled(int minEnergy) { + if (!isRunEnabled() && getEnergy() >= minEnergy) { + return setRunEnabled(true); + } + return false; + } + + public boolean isInArea(int minX, int minY, int maxX, int maxY) { + int px = getPlayerX(); + int py = getPlayerY(); + return px >= minX && px <= maxX && py >= minY && py <= maxY; + } + + public boolean isInArea(WorldArea area) { + return area != null && area.contains(getPlayerX(), getPlayerY(), getPlane()); + } + + public boolean isAt(int worldX, int worldY, int radius) { + return distanceTo(worldX, worldY) <= Math.max(0, radius); + } + + public static final class WorldArea { + public final int minX; + public final int minY; + public final int maxX; + public final int maxY; + public final int plane; + + public WorldArea(int x1, int y1, int x2, int y2) { + this(x1, y1, x2, y2, 0); + } + + public WorldArea(int x1, int y1, int x2, int y2, int plane) { + this.minX = Math.min(x1, x2); + this.minY = Math.min(y1, y2); + this.maxX = Math.max(x1, x2); + this.maxY = Math.max(y1, y2); + this.plane = plane; + } + + public boolean contains(int worldX, int worldY) { + return worldX >= minX && worldX <= maxX && worldY >= minY && worldY <= maxY; + } + + public boolean contains(int worldX, int worldY, int worldPlane) { + return plane == worldPlane && contains(worldX, worldY); + } + + public int centerX() { + return (minX + maxX) / 2; + } + + public int centerY() { + return (minY + maxY) / 2; + } + } + + // ========================================================================= + // Entity Wrappers + // ========================================================================= + + public static class NpcWrapper { + public final int index; + public final int id; + public final String name; + public final int combatLevel; + public final int worldX; + public final int worldY; + public final int localX; + public final int localY; + public final int anim; + public final int interactingEntity; + public final int currentHealth; + public final int maxHealth; + public final String[] actions; + public final boolean isAttackingPlayer; + private final int playerDist; + + public NpcWrapper(int index, NPC npc, int baseX, int baseY, int px, int py, int myPlayerId, int myPlayerIdx) { + this.index = index; + this.id = npc.desc != null ? (int) npc.desc.type : -1; + this.name = npc.desc != null && npc.desc.name != null ? MenuEntry.stripColorTags(npc.desc.name) : ""; + this.combatLevel = npc.desc != null ? npc.desc.combatLevel : 0; + this.localX = npc.x >> 7; + this.localY = npc.y >> 7; + this.worldX = localX + baseX; + this.worldY = localY + baseY; + this.anim = npc.anim; + this.interactingEntity = npc.interactingEntity; + this.currentHealth = npc.currentHealth; + this.maxHealth = npc.maxHealth; + this.actions = npc.desc != null && npc.desc.actions != null ? npc.desc.actions.clone() : new String[0]; + int dx = worldX - px; + int dy = worldY - py; + this.playerDist = (int) Math.sqrt(dx * dx + dy * dy); + + int target = (interactingEntity >= 32768) ? (interactingEntity - 32768) : interactingEntity; + this.isAttackingPlayer = (interactingEntity != -1) && (target == myPlayerId || target == myPlayerIdx); + } + + public int getDistance() { + return playerDist; + } + + public boolean isUnderAttack() { + return interactingEntity != -1; + } + + public boolean isUnderAttackByOther() { + return interactingEntity != -1 && !isAttackingPlayer; + } + + public boolean isDead() { + if (maxHealth > 0 && currentHealth <= 0) return true; + if (anim == 5389 || anim == 57 || anim == 58) return true; // Chicken, Rooster, and Cow death emotes + return false; + } + + @Override + public String toString() { + return name + " (lvl-" + combatLevel + ") @ (" + worldX + ", " + worldY + ") dist=" + playerDist; + } + } + + public static class PlayerWrapper { + public final int index; + public final String name; + public final int combatLevel; + public final int worldX; + public final int worldY; + public final int localX; + public final int localY; + public final int anim; + public final int interactingEntity; + public final int currentHealth; + public final int maxHealth; + public final int skullIcon; + public final int headIcon; + public final int team; + public final boolean isLocalPlayer; + private final int playerDist; + + public PlayerWrapper(int index, Player p, int baseX, int baseY, int px, int py, boolean isLocalPlayer) { + this.index = index; + this.name = p.name != null ? MenuEntry.stripColorTags(p.name) : ""; + this.combatLevel = p.combatLevel; + this.localX = (p.smallX != null && p.smallX.length > 0) ? p.smallX[0] : 0; + this.localY = (p.smallY != null && p.smallY.length > 0) ? p.smallY[0] : 0; + this.worldX = this.localX + baseX; + this.worldY = this.localY + baseY; + this.anim = p.anim; + this.interactingEntity = p.interactingEntity; + this.currentHealth = p.currentHealth; + this.maxHealth = p.maxHealth; + this.skullIcon = p.skullIcon; + this.headIcon = p.headIcon; + this.team = p.team; + this.isLocalPlayer = isLocalPlayer; + this.playerDist = Math.max(Math.abs(px - worldX), Math.abs(py - worldY)); + } + + public int getDistance() { + return playerDist; + } + + public boolean isInCombat() { + return interactingEntity != -1; + } + + @Override + public String toString() { + return name + " (lvl-" + combatLevel + ") @ (" + worldX + ", " + worldY + ") dist=" + playerDist; + } + } + + public static class GroundItemWrapper { + public final int id; + public final String name; + public final int amount; + public final int value; + public final long totalValue; + public final int worldX; + public final int worldY; + public final int localX; + public final int localY; + public final int plane; + private final int playerDist; + + public GroundItemWrapper(Item item, int lx, int ly, int plane, int baseX, int baseY, int px, int py) { + this(item.ID, item.amount, lx + baseX, ly + baseY, plane, baseX, baseY, px, py); + } + + public GroundItemWrapper(int itemId, int amount, int worldX, int worldY, int plane, int baseX, int baseY, int px, int py) { + this.id = itemId; + ItemDef def = null; + try { + def = ItemDef.forID(itemId); + } catch (Throwable ignored) {} + this.name = def != null && def.name != null ? MenuEntry.stripColorTags(def.name) : "Item " + itemId; + this.amount = amount; + this.value = def != null ? Math.max(1, def.value) : 1; + this.totalValue = (long) this.value * Math.max(1, amount); + this.worldX = worldX; + this.worldY = worldY; + this.localX = worldX - baseX; + this.localY = worldY - baseY; + this.plane = plane; + int dx = worldX - px; + int dy = worldY - py; + this.playerDist = (int) Math.sqrt(dx * dx + dy * dy); + } + + public int getDistance() { + return playerDist; + } + + @Override + public String toString() { + return name + " x" + amount + " @ (" + worldX + ", " + worldY + ") dist=" + playerDist; + } + } + + public static class SceneObjectWrapper { + public final int uid; + public final int id; + public final String name; + public final int worldX; + public final int worldY; + public final int localX; + public final int localY; + public final int plane; + public final int category; // 1: Wall/Door, 2: WallDeco, 3: GroundDeco, 5: Interactive + public final String[] actions; + private final int playerDist; + + public SceneObjectWrapper(int uid, int lx, int ly, int plane, int category, int baseX, int baseY, int px, int py) { + this.uid = uid; + this.id = uid >> 14 & 0x7fff; + int anchorLx = uid & 0x7f; + int anchorLy = (uid >> 7) & 0x7f; + this.localX = anchorLx; + this.localY = anchorLy; + this.worldX = anchorLx + baseX; + this.worldY = anchorLy + baseY; + this.plane = plane; + this.category = category; + + ObjectDef def = null; + try { + def = ObjectDef.forID(this.id); + if (def != null && def.childrenIDs != null) { + ObjectDef morphed = def.method580(); + if (morphed != null) { + def = morphed; + } + } + } catch (Throwable ignored) {} + this.name = def != null && def.name != null ? MenuEntry.stripColorTags(def.name) : "Object " + this.id; + this.actions = def != null && def.actions != null ? def.actions.clone() : new String[0]; + + int dx = worldX - px; + int dy = worldY - py; + this.playerDist = (int) Math.sqrt(dx * dx + dy * dy); + } + + public int getDistance() { + return playerDist; + } + + @Override + public String toString() { + return name + " [id=" + id + "] @ (" + worldX + ", " + worldY + ") dist=" + playerDist; + } + } + + public static class InventoryItemWrapper { + public final int slot; + public final int id; + public final String name; + public final int amount; + public final String[] actions; + + public InventoryItemWrapper(int slot, int rawId, int amount) { + this.slot = slot; + this.id = rawId - 1; + this.amount = amount; + ItemDef def = null; + try { + def = ItemDef.forID(this.id); + } catch (Throwable ignored) {} + this.name = def != null && def.name != null ? MenuEntry.stripColorTags(def.name) : ""; + this.actions = def != null && def.actions != null ? def.actions.clone() : new String[0]; + } + + public InventoryItemWrapper(int slot, int id, String name, int amount, String[] actions) { + this.slot = slot; + this.id = id; + this.name = name != null ? name : ""; + this.amount = amount; + this.actions = actions != null ? actions.clone() : new String[0]; + } + + @Override + public String toString() { + return name + " [slot=" + slot + ", amount=" + amount + "]"; + } + } + + // ========================================================================= + // Entity Finders + // ========================================================================= + + public List getNpcs() { + if (!isLoggedIn()) return Collections.emptyList(); + List list = new ArrayList<>(); + int px = getPlayerX(); + int py = getPlayerY(); + for (int i = 0; i < game.npcCount; i++) { + int idx = game.npcIndices[i]; + NPC npc = game.npcArray[idx]; + if (npc != null && npc.isVisible()) { + list.add(new NpcWrapper(idx, npc, game.baseX, game.baseY, px, py, game.unknownInt10, game.myPlayerIndex)); + } + } + list.sort(Comparator.comparingInt(NpcWrapper::getDistance)); + return list; + } + + public NpcWrapper getNpcByIndex(int index) { + if (!isLoggedIn() || index < 0 || index >= game.npcArray.length) return null; + NPC npc = game.npcArray[index]; + if (npc == null || npc.desc == null || !npc.isVisible()) return null; + return new NpcWrapper(index, npc, game.baseX, game.baseY, getPlayerX(), getPlayerY(), game.unknownInt10, game.myPlayerIndex); + } + + public NpcWrapper findNearestNpc(String... names) { + List npcs = getNpcs(); + for (NpcWrapper npc : npcs) { + for (String n : names) { + if (npc.name.equalsIgnoreCase(n) || npc.name.toLowerCase().contains(n.toLowerCase())) { + return npc; + } + } + } + return null; + } + + public NpcWrapper findNearestNpcById(int... ids) { + List npcs = getNpcs(); + for (NpcWrapper npc : npcs) { + for (int id : ids) { + if (npc.id == id) { + return npc; + } + } + } + return null; + } + + public NpcWrapper findNearestAttackableNpc(String... names) { + List npcs = getNpcs(); + for (NpcWrapper npc : npcs) { + if (npc.isDead()) continue; + // Skip NPCs in combat with someone else + if (npc.isUnderAttackByOther()) { + continue; + } + for (String n : names) { + if (npc.name.equalsIgnoreCase(n) || npc.name.toLowerCase().contains(n.toLowerCase())) { + return npc; + } + } + } + return null; + } + + public List getGroundItems() { + if (!isLoggedIn()) return Collections.emptyList(); + List list = new ArrayList<>(); + int p = game.plane; + int px = getPlayerX(); + int py = getPlayerY(); + + for (int x = 0; x < 104; x++) { + for (int y = 0; y < 104; y++) { + NodeList nodeList = game.groundArray[p][x][y]; + if (nodeList != null) { + for (Item item = (Item) nodeList.getFirst(); item != null; item = (Item) nodeList.getNext()) { + list.add(new GroundItemWrapper(item, x, y, p, game.baseX, game.baseY, px, py)); + } + } + } + } + list.sort(Comparator.comparingInt(GroundItemWrapper::getDistance)); + return list; + } + + public GroundItemWrapper findNearestGroundItem(String... names) { + List items = getGroundItems(); + for (GroundItemWrapper item : items) { + for (String n : names) { + if (item.name.equalsIgnoreCase(n) || item.name.toLowerCase().contains(n.toLowerCase())) { + return item; + } + } + } + return null; + } + + public GroundItemWrapper findNearestGroundItemById(int... ids) { + List items = getGroundItems(); + for (GroundItemWrapper item : items) { + for (int id : ids) { + if (item.id == id) { + return item; + } + } + } + return null; + } + + public List getSceneObjects(int radius) { + if (!isLoggedIn() || game.worldController == null) return Collections.emptyList(); + List list = new ArrayList<>(); + int p = game.plane; + int plx = getPlayerLocalX(); + int ply = getPlayerLocalY(); + int px = getPlayerX(); + int py = getPlayerY(); + + int minX = Math.max(0, plx - radius); + int maxX = Math.min(103, plx + radius); + int minY = Math.max(0, ply - radius); + int maxY = Math.min(103, ply + radius); + + Ground[][][] grounds = game.worldController.groundArray; + if (grounds == null) return Collections.emptyList(); + java.util.Set seenUids = new java.util.HashSet<>(); + + for (int x = minX; x <= maxX; x++) { + for (int y = minY; y <= maxY; y++) { + Ground g = grounds[p][x][y]; + if (g == null) continue; + + // Wall / Doors + if (g.obj1 != null && g.obj1.uid > 0 && seenUids.add(g.obj1.uid)) { + list.add(new SceneObjectWrapper(g.obj1.uid, x, y, p, 1, game.baseX, game.baseY, px, py)); + } + // Wall Decor + if (g.obj2 != null && g.obj2.uid > 0 && seenUids.add(g.obj2.uid)) { + list.add(new SceneObjectWrapper(g.obj2.uid, x, y, p, 2, game.baseX, game.baseY, px, py)); + } + // Ground Decor + if (g.obj3 != null && g.obj3.uid > 0 && seenUids.add(g.obj3.uid)) { + list.add(new SceneObjectWrapper(g.obj3.uid, x, y, p, 3, game.baseX, game.baseY, px, py)); + } + // Interactive Scene Objects (obj5Array) + for (int o = 0; o < g.anInt1317; o++) { + Object5 obj5 = g.obj5Array[o]; + if (obj5 != null && obj5.uid > 0 && seenUids.add(obj5.uid)) { + list.add(new SceneObjectWrapper(obj5.uid, x, y, p, 5, game.baseX, game.baseY, px, py)); + } + } + } + } + list.sort(Comparator.comparingInt(SceneObjectWrapper::getDistance)); + return list; + } + + public SceneObjectWrapper findNearestObject(String... names) { + List objs = getSceneObjects(25); + for (SceneObjectWrapper obj : objs) { + for (String n : names) { + if (obj.name.equalsIgnoreCase(n) || obj.name.toLowerCase().contains(n.toLowerCase())) { + return obj; + } + } + } + return null; + } + + public SceneObjectWrapper findNearestObjectWithAction(String action, String... names) { + if (action == null) return null; + List objs = getSceneObjects(25); + for (SceneObjectWrapper obj : objs) { + if (!hasAction(obj, action)) continue; + for (String n : names) { + if (obj.name.equalsIgnoreCase(n) || obj.name.toLowerCase().contains(n.toLowerCase())) { + return obj; + } + } + } + return null; + } + + public boolean hasAction(SceneObjectWrapper obj, String action) { + if (obj == null || obj.actions == null || action == null) return false; + for (String act : obj.actions) { + if (act != null && act.trim().equalsIgnoreCase(action.trim())) { + return true; + } + } + return false; + } + + private boolean isTollGate(SceneObjectWrapper obj) { + if (obj == null || obj.actions == null) return false; + for (String act : obj.actions) { + if (act != null && act.toLowerCase().contains("pay-toll")) { + return true; + } + } + return false; + } + + public static boolean isOpenGateOrDoor(SceneObjectWrapper obj) { + if (obj == null) return false; + int id = obj.id; + // Known open gate IDs in Revision 377 / 2006Scape GateHandler + if (id == StaticObjectList.GATE_1552 || id == StaticObjectList.GATE_1556 || id == StaticObjectList.GATE_1560 + || id == StaticObjectList.GATE_1561 || id == StaticObjectList.GATE_7051 || id == StaticObjectList.GATE_7052 + || id == StaticObjectList.GATE_12988 || id == StaticObjectList.GATE_12989 || id == StaticObjectList.GATE_3727 + || id == StaticObjectList.GATE_3728 || id == StaticObjectList.GATE_8812 || id == StaticObjectList.GATE_8813) { + return true; + } + if (obj.actions != null) { + for (String act : obj.actions) { + if (act != null && "Close".equalsIgnoreCase(act.trim())) { + return true; + } + } + } + return false; + } + + /** + * Checks if any gate within maxDistance is currently open. + */ + public boolean isAnyGateOpenNearby(int maxDistance) { + List objs = getSceneObjects(maxDistance); + for (SceneObjectWrapper obj : objs) { + if (obj.name != null && obj.name.toLowerCase().contains("gate") && isOpenGateOrDoor(obj)) { + return true; + } + } + return false; + } + + /** + * Checks if any gate or door within maxDistance is currently open. + */ + public boolean isAnyGateOrDoorOpenNearby(int maxDistance) { + List objs = getSceneObjects(maxDistance); + for (SceneObjectWrapper obj : objs) { + if (obj.name != null && (obj.name.toLowerCase().contains("gate") || obj.name.toLowerCase().contains("door")) && isOpenGateOrDoor(obj)) { + return true; + } + } + return false; + } + + public SceneObjectWrapper findNearestObjectById(int... ids) { + List objs = getSceneObjects(25); + for (SceneObjectWrapper obj : objs) { + for (int id : ids) { + if (obj.id == id) { + return obj; + } + } + } + return null; + } + + // ========================================================================= + // Collision, Line-of-Sight & Reachability API + // ========================================================================= + + public static final int MASK_BLOCK_NORTH = 0x1280120; + public static final int MASK_BLOCK_EAST = 0x1280180; + public static final int MASK_BLOCK_SOUTH = 0x1280102; + public static final int MASK_BLOCK_WEST = 0x1280108; + + public static final int MASK_BLOCK_NORTH_WEST = 0x1280138; + public static final int MASK_BLOCK_NORTH_EAST = 0x12801e0; + public static final int MASK_BLOCK_SOUTH_WEST = 0x128010e; + public static final int MASK_BLOCK_SOUTH_EAST = 0x1280183; + + public int getClipping(int worldX, int worldY) { + if (!isLoggedIn() || game == null || game.aClass11Array1230 == null) return 0xffffff; + int p = game.plane; + if (p < 0 || p >= game.aClass11Array1230.length || game.aClass11Array1230[p] == null) return 0xffffff; + int lx = worldX - game.baseX; + int ly = worldY - game.baseY; + if (lx < 0 || lx >= 104 || ly < 0 || ly >= 104) return 0xffffff; + int[][] flags = game.aClass11Array1230[p].anIntArrayArray294; + if (flags == null) return 0xffffff; + return flags[lx][ly]; + } + + public boolean isTileWalkable(int worldX, int worldY) { + int clip = getClipping(worldX, worldY); + return (clip & 0x1280100) == 0; + } + + public boolean canStep(int fromX, int fromY, int toX, int toY) { + int dx = toX - fromX; + int dy = toY - fromY; + if (dx == 0 && dy == 0) return true; + if (Math.abs(dx) > 1 || Math.abs(dy) > 1) return false; + + int fromClip = getClipping(fromX, fromY); + int toClip = getClipping(toX, toY); + + // Destination tile must not be solid blocked + if ((toClip & 0x1280100) != 0) { + return false; + } + + if (dx == 0 && dy == 1) { // North + return (fromClip & 2) == 0 && (toClip & MASK_BLOCK_NORTH) == 0; + } else if (dx == 0 && dy == -1) { // South + return (fromClip & 0x20) == 0 && (toClip & MASK_BLOCK_SOUTH) == 0; + } else if (dx == 1 && dy == 0) { // East + return (fromClip & 8) == 0 && (toClip & MASK_BLOCK_EAST) == 0; + } else if (dx == -1 && dy == 0) { // West + return (fromClip & 0x80) == 0 && (toClip & MASK_BLOCK_WEST) == 0; + } else if (dx == 1 && dy == 1) { // North-East + return canStep(fromX, fromY, fromX + 1, fromY) + && canStep(fromX, fromY, fromX, fromY + 1) + && (toClip & MASK_BLOCK_NORTH_EAST) == 0; + } else if (dx == -1 && dy == 1) { // North-West + return canStep(fromX, fromY, fromX - 1, fromY) + && canStep(fromX, fromY, fromX, fromY + 1) + && (toClip & MASK_BLOCK_NORTH_WEST) == 0; + } else if (dx == 1 && dy == -1) { // South-East + return canStep(fromX, fromY, fromX + 1, fromY) + && canStep(fromX, fromY, fromX, fromY - 1) + && (toClip & MASK_BLOCK_SOUTH_EAST) == 0; + } else if (dx == -1 && dy == -1) { // South-West + return canStep(fromX, fromY, fromX - 1, fromY) + && canStep(fromX, fromY, fromX, fromY - 1) + && (toClip & MASK_BLOCK_SOUTH_WEST) == 0; + } + return false; + } + + public boolean canMeleeReach(int px, int py, int npcX, int npcY, int npcSize) { + if (px >= npcX && px <= npcX + npcSize - 1 && py >= npcY && py <= npcY + npcSize - 1) { + return false; // Standing on top of NPC + } + int pClip = getClipping(px, py); + int nClip = getClipping(npcX, npcY); + + // West + if (px == npcX - 1 && py >= npcY && py <= npcY + npcSize - 1) { + return (pClip & 8) == 0 && (nClip & 0x80) == 0; + } + // East + if (px == npcX + npcSize && py >= npcY && py <= npcY + npcSize - 1) { + return (pClip & 0x80) == 0 && (nClip & 8) == 0; + } + // South + if (py == npcY - 1 && px >= npcX && px <= npcX + npcSize - 1) { + return (pClip & 2) == 0 && (nClip & 0x20) == 0; + } + // North + if (py == npcY + npcSize && px >= npcX && px <= npcX + npcSize - 1) { + return (pClip & 0x20) == 0 && (nClip & 2) == 0; + } + return false; + } + + public boolean hasLineOfSight(int startX, int startY, int endX, int endY) { + if (startX == endX && startY == endY) return true; + int dx = Math.abs(endX - startX); + int dy = Math.abs(endY - startY); + int sx = startX < endX ? 1 : -1; + int sy = startY < endY ? 1 : -1; + int err = dx - dy; + + int curX = startX; + int curY = startY; + + while (curX != endX || curY != endY) { + int e2 = 2 * err; + int nextX = curX; + int nextY = curY; + + if (e2 > -dy) { + err -= dy; + nextX += sx; + } + if (e2 < dx) { + err += dx; + nextY += sy; + } + + if (!canStep(curX, curY, nextX, nextY)) { + if (nextX == endX && nextY == endY) { + return true; + } + return false; + } + curX = nextX; + curY = nextY; + } + return true; + } + + public boolean hasLineOfSight(NpcWrapper npc) { + if (npc == null || !isLoggedIn()) return false; + return hasLineOfSight(getPlayerX(), getPlayerY(), npc.worldX, npc.worldY); + } + + public boolean hasLineOfSight(GroundItemWrapper item) { + if (item == null || !isLoggedIn()) return false; + return hasLineOfSight(getPlayerX(), getPlayerY(), item.worldX, item.worldY); + } + + public boolean canReach(int targetWorldX, int targetWorldY, int maxDistance, boolean isNpc, int npcSize) { + if (!isLoggedIn()) return false; + int px = getPlayerX(); + int py = getPlayerY(); + if (px == targetWorldX && py == targetWorldY) return true; + int dist = distanceTo(targetWorldX, targetWorldY); + if (dist > maxDistance) return false; + + if (isNpc && dist <= 1) { + if (canMeleeReach(px, py, targetWorldX, targetWorldY, npcSize)) { + return true; + } + } else if (!isNpc && dist <= 1 && canStep(px, py, targetWorldX, targetWorldY)) { + return true; + } + + int startLx = getPlayerLocalX(); + int startLy = getPlayerLocalY(); + int targetLx = targetWorldX - game.baseX; + int targetLy = targetWorldY - game.baseY; + + if (startLx < 0 || startLx >= 104 || startLy < 0 || startLy >= 104) return false; + if (targetLx < 0 || targetLx >= 104 || targetLy < 0 || targetLy >= 104) return false; + + int rad = Math.min(52, maxDistance); + int minX = Math.max(0, startLx - rad); + int maxX = Math.min(103, startLx + rad); + int minY = Math.max(0, startLy - rad); + int maxY = Math.min(103, startLy + rad); + + boolean[][] visited = new boolean[104][104]; + int[] queueX = new int[104 * 104]; + int[] queueY = new int[104 * 104]; + int head = 0; + int tail = 0; + + queueX[tail] = startLx; + queueY[tail] = startLy; + tail = (tail + 1) % queueX.length; + visited[startLx][startLy] = true; + + int iterations = 0; + int[][] directions = { + {0, 1}, {0, -1}, {1, 0}, {-1, 0}, + {1, 1}, {-1, 1}, {1, -1}, {-1, -1} + }; + + int maxIterations = Math.max(6000, (rad * 2 + 1) * (rad * 2 + 1)); + while (head != tail && iterations++ < maxIterations) { + int cx = queueX[head]; + int cy = queueY[head]; + head = (head + 1) % queueX.length; + + int cWorldX = cx + game.baseX; + int cWorldY = cy + game.baseY; + + if (isNpc) { + if (canMeleeReach(cWorldX, cWorldY, targetWorldX, targetWorldY, npcSize)) { + return true; + } + } else { + if (cx == targetLx && cy == targetLy) { + return true; + } + } + + for (int[] d : directions) { + int nx = cx + d[0]; + int ny = cy + d[1]; + if (nx < minX || nx > maxX || ny < minY || ny > maxY) continue; + if (visited[nx][ny]) continue; + + if (canStep(cWorldX, cWorldY, nx + game.baseX, ny + game.baseY)) { + visited[nx][ny] = true; + queueX[tail] = nx; + queueY[tail] = ny; + tail = (tail + 1) % queueX.length; + if (tail == head) { + break; + } + } + } + } + return false; + } + + public boolean canReach(int targetWorldX, int targetWorldY, int maxDistance, boolean isNpc) { + return canReach(targetWorldX, targetWorldY, maxDistance, isNpc, 1); + } + + public boolean canReach(int targetWorldX, int targetWorldY) { + return canReach(targetWorldX, targetWorldY, 20, false, 1); + } + + public boolean canReach(NpcWrapper npc) { + if (npc == null || !isLoggedIn()) return false; + return canReach(npc.worldX, npc.worldY, 20, true, 1); + } + + public boolean canReach(GroundItemWrapper item) { + if (item == null || !isLoggedIn()) return false; + return canReach(item.worldX, item.worldY, 20, false, 1); + } + + public boolean canReach(SceneObjectWrapper obj) { + if (obj == null || !isLoggedIn()) return false; + return canReach(obj.worldX, obj.worldY, 20, true, 1); + } + + /** + * Generates a human-like Gaussian random delay between minMs and maxMs. + */ + public int randomDelay(int minMs, int maxMs) { + if (minMs >= maxMs) return minMs; + double r = (Math.random() + Math.random() + Math.random()) / 3.0; + return (int) (minMs + r * (maxMs - minMs)); + } + + // ========================================================================= + // Inventory Queries + // ========================================================================= + + public List getInventoryItems() { + if (!isLoggedIn()) return Collections.emptyList(); + // Inventory interface ID in 317 is typically 3214 + RSInterface invInterface = RSInterface.interfaceCache[3214]; + if (invInterface == null || invInterface.inv == null) { + return Collections.emptyList(); + } + List list = new ArrayList<>(); + for (int i = 0; i < invInterface.inv.length && i < 28; i++) { + if (invInterface.inv[i] > 0) { + int amount = (invInterface.invStackSizes != null && i < invInterface.invStackSizes.length) + ? invInterface.invStackSizes[i] : 1; + list.add(new InventoryItemWrapper(i, invInterface.inv[i], amount)); + } + } + return list; + } + + public int getInventoryCount() { + return getInventoryItems().size(); + } + + public int getEmptySlots() { + return 28 - getInventoryCount(); + } + + public boolean isInventoryFull() { + return getInventoryCount() >= 28; + } + + public boolean hasInventoryItem(int id) { + for (InventoryItemWrapper item : getInventoryItems()) { + if (item.id == id) return true; + } + return false; + } + + public boolean hasInventoryItem(String name) { + for (InventoryItemWrapper item : getInventoryItems()) { + if (item.name.equalsIgnoreCase(name) || item.name.toLowerCase().contains(name.toLowerCase())) { + return true; + } + } + return false; + } + + public int getInventoryItemCount(int id) { + int count = 0; + for (InventoryItemWrapper item : getInventoryItems()) { + if (item.id == id) { + count += item.amount; + } + } + return count; + } + + // ========================================================================= + // Actions & Interaction Dispatch + // ========================================================================= + + /** + * Walks to a target world coordinate safely via client pathfinder. + */ + public boolean walkTo(int worldX, int worldY) { + if (!isLoggedIn()) return false; + int destLx = worldX - game.baseX; + int destLy = worldY - game.baseY; + if (destLx < 0 || destLx >= 104 || destLy < 0 || destLy >= 104) { + return false; + } + if (!suppressWalkToPathUpdate) { + List preview = findPath(worldX, worldY, 20, true, false); + if (preview.isEmpty()) { + lastComputedPath = Collections.singletonList(new int[] { worldX, worldY }); + } + } + int myLx = getPlayerLocalX(); + int myLy = getPlayerLocalY(); + boolean ok = game.doWalkTo(0, 0, 0, 0, myLy, 0, 0, destLy, myLx, true, destLx); + ScriptLogger.logActiveAction("walkTo(" + worldX + ", " + worldY + ") -> " + ok); + return ok; + } + + /** + * Interacts with an NPC using a specified action (e.g. "Attack", "Talk-to", "Pickpocket"). + */ + public boolean interactNpc(NpcWrapper npc, String action) { + if (npc == null || !isLoggedIn()) return false; + int actionId; + if ("Attack".equalsIgnoreCase(action)) { + actionId = 412; // Hardcoded in 317 Game.java for Attack NPC (packet 72) + } else if ("Examine".equalsIgnoreCase(action)) { + actionId = 1025; + } else { + int optIndex = -1; + for (int i = 0; i < npc.actions.length; i++) { + if (npc.actions[i] != null && npc.actions[i].equalsIgnoreCase(action)) { + optIndex = i; + break; + } + } + if (optIndex == -1) { + return false; + } + switch (optIndex) { + case 0: actionId = 20; break; // First click / Talk-to (packet 155) + case 1: actionId = 225; break; // Second click (packet 17) + case 2: actionId = 965; break; // Third click (packet 21) + case 3: actionId = 478; break; // Fourth click (packet 18) + default: actionId = 20; break; + } + } + invokeMenuAction(action + " " + npc.name, actionId, npc.index, npc.localX, npc.localY); + return true; + } + + /** + * Loots a ground item. + */ + public boolean takeGroundItem(GroundItemWrapper item) { + if (item == null || !isLoggedIn()) return false; + invokeMenuAction("Take " + item.name, 234, item.id, item.localX, item.localY); + return true; + } + + /** + * Interacts with a scene object (e.g. "Open" door, "Climb-up" ladder, "Bank" booth). + */ + public boolean interactObject(SceneObjectWrapper obj, String action) { + if (obj == null || !isLoggedIn() || action == null) return false; + int optIndex = -1; + for (int i = 0; i < obj.actions.length; i++) { + if (obj.actions[i] != null && obj.actions[i].equalsIgnoreCase(action)) { + optIndex = i; + break; + } + } + if (optIndex == -1) { + return false; + } + int actionId; + switch (optIndex) { + case 0: actionId = 502; break; + case 1: actionId = 900; break; + case 2: actionId = 113; break; + case 3: actionId = 872; break; + case 4: actionId = 1062; break; + default: actionId = 502; break; + } + invokeMenuAction(action + " " + obj.name, actionId, obj.uid, obj.uid & 0x7f, (obj.uid >> 7) & 0x7f); + return true; + } + + /** + * Interacts with an inventory item (e.g. "Bury", "Eat", "Drop"). + */ + public boolean interactInventoryItem(int slot, String action) { + if (!isLoggedIn() || slot < 0 || slot >= 28) return false; + RSInterface invInterface = RSInterface.interfaceCache[3214]; + if (invInterface == null || invInterface.inv == null || slot >= invInterface.inv.length) return false; + int rawId = invInterface.inv[slot]; + if (rawId <= 0) return false; + int itemId = rawId - 1; + + if (action.equalsIgnoreCase("Drop")) { + invokeMenuAction("Drop", 847, itemId, slot, 3214); + return true; + } else if (action.equalsIgnoreCase("Bury") || action.equalsIgnoreCase("Eat") || action.equalsIgnoreCase("Wear") || action.equalsIgnoreCase("Wield")) { + invokeMenuAction(action, 74, itemId, slot, 3214); + return true; + } else { + invokeMenuAction(action, 493, itemId, slot, 3214); + return true; + } + } + + public boolean dropInventoryItem(int slot) { + return interactInventoryItem(slot, "Drop"); + } + + public boolean buryInventoryItem(int slot) { + return interactInventoryItem(slot, "Bury"); + } + + /** + * Uses one inventory item on another inventory item (e.g. tinderbox on logs, chisel on gem). + */ + public boolean useItemOnItem(int slotA, int slotB) { + if (!isLoggedIn() || slotA < 0 || slotA >= 28 || slotB < 0 || slotB >= 28 || slotA == slotB) { + return false; + } + RSInterface invInterface = RSInterface.interfaceCache[3214]; + if (invInterface == null || invInterface.inv == null) return false; + int rawA = invInterface.inv[slotA]; + int rawB = invInterface.inv[slotB]; + if (rawA <= 0 || rawB <= 0) return false; + invokeMenuAction("Use", 447, rawA - 1, slotA, 3214); + invokeMenuAction("Use", 870, rawB - 1, slotB, 3214); + return true; + } + + /** + * Uses an inventory item on a scene object (e.g. raw food on range/fire, ore on furnace, bones on altar). + */ + public boolean useItemOnObject(int slot, SceneObjectWrapper obj) { + if (!isLoggedIn() || obj == null || slot < 0 || slot >= 28) return false; + RSInterface invInterface = RSInterface.interfaceCache[3214]; + if (invInterface == null || invInterface.inv == null) return false; + int rawId = invInterface.inv[slot]; + if (rawId <= 0) return false; + invokeMenuAction("Use", 447, rawId - 1, slot, 3214); + invokeMenuAction("Use", 62, obj.uid, obj.localX, obj.localY); + return true; + } + + // ========================================================================= + // Equipment, Combat Style, Special Attack, Prayer & Magic API + // ========================================================================= + + public static final int EQUIPMENT_INTERFACE_ID = 1688; + + public List getEquipment() { + if (!isLoggedIn()) return Collections.emptyList(); + RSInterface equip = RSInterface.interfaceCache[EQUIPMENT_INTERFACE_ID]; + if (equip == null || equip.inv == null) { + return Collections.emptyList(); + } + List list = new ArrayList<>(); + for (int i = 0; i < equip.inv.length; i++) { + if (equip.inv[i] > 0) { + int amount = (equip.invStackSizes != null && i < equip.invStackSizes.length) + ? equip.invStackSizes[i] : 1; + list.add(new InventoryItemWrapper(i, equip.inv[i], amount)); + } + } + return list; + } + + public boolean isWearing(int id) { + for (InventoryItemWrapper item : getEquipment()) { + if (item.id == id) return true; + } + return false; + } + + public boolean isWearing(String... names) { + for (InventoryItemWrapper item : getEquipment()) { + if (matchesName(item.name, names)) return true; + } + return false; + } + + public boolean equipItem(int invSlot) { + return interactInventoryItem(invSlot, "Wear") + || interactInventoryItem(invSlot, "Wield") + || interactInventoryItem(invSlot, "Equip"); + } + + public boolean unequipItem(int equipSlot) { + if (!isLoggedIn() || equipSlot < 0) return false; + RSInterface equip = RSInterface.interfaceCache[EQUIPMENT_INTERFACE_ID]; + if (equip == null || equip.inv == null || equipSlot >= equip.inv.length) return false; + int rawId = equip.inv[equipSlot]; + if (rawId <= 0) return false; + invokeMenuAction("Remove", 632, rawId - 1, equipSlot, EQUIPMENT_INTERFACE_ID); + return true; + } + + public int getAttackStyle() { + return (game.variousSettings != null && 43 < game.variousSettings.length) + ? game.variousSettings[43] : -1; + } + + private void collectWidgetsByType(RSInterface parent, int widgetType, List out) { + if (parent == null || parent.children == null) return; + for (int childId : parent.children) { + if (childId < 0 || childId >= RSInterface.interfaceCache.length) continue; + RSInterface child = RSInterface.interfaceCache[childId]; + if (child == null) continue; + if (child.type == widgetType) { + out.add(child); + } + if (child.children != null) { + collectWidgetsByType(child, widgetType, out); + } + } + } + + private RSInterface findSpecialBarTextWidget() { + if (!isLoggedIn()) return null; + int tabId = (game.tabInterfaceIDs != null && game.tabInterfaceIDs.length > 0) ? game.tabInterfaceIDs[0] : -1; + if (tabId <= 0 || tabId >= RSInterface.interfaceCache.length) return null; + RSInterface tabRoot = RSInterface.interfaceCache[tabId]; + List labels = new ArrayList<>(); + collectWidgetsByType(tabRoot, 4, labels); + for (RSInterface lbl : labels) { + if (lbl.disabledText == null) continue; + String txt = MenuEntry.stripColorTags(lbl.disabledText).toLowerCase(); + if (txt.contains("special") || txt.contains("s p")) { + return lbl; + } + } + return null; + } + + /** Returns special attack energy from 0 to 100. */ + public int getSpecialEnergy() { + if (game.variousSettings != null && 300 < game.variousSettings.length && game.variousSettings[300] > 0) { + return Math.max(0, Math.min(100, game.variousSettings[300] / 10)); + } + RSInterface bar = findSpecialBarTextWidget(); + if (bar != null) { + int filled = 0; + for (int i = 1; i <= 10; i++) { + int segId = bar.id - i; + if (segId >= 0 && segId < RSInterface.interfaceCache.length + && RSInterface.interfaceCache[segId] != null + && RSInterface.interfaceCache[segId].anInt263 != 0) { + filled++; + } + } + return filled * 10; + } + return 0; + } + + public boolean isSpecialAttackActive() { + if (game.variousSettings != null && 301 < game.variousSettings.length && game.variousSettings[301] == 1) { + return true; + } + RSInterface bar = findSpecialBarTextWidget(); + return bar != null && bar.disabledText != null && bar.disabledText.contains("@yel@"); + } + + public boolean toggleSpecialAttack() { + if (!isLoggedIn()) return false; + int tabId = (game.tabInterfaceIDs != null && game.tabInterfaceIDs.length > 0) ? game.tabInterfaceIDs[0] : -1; + if (tabId > 0 && tabId < RSInterface.interfaceCache.length) { + RSInterface tabRoot = RSInterface.interfaceCache[tabId]; + int[] specButtonIds = {7462, 7487, 7537, 7562, 7587, 7612, 7637, 7662, 7687, 7712, 7737, 7812, 8481, 12311}; + for (int id : specButtonIds) { + if (id < RSInterface.interfaceCache.length && RSInterface.interfaceCache[id] != null && containsChildId(tabRoot, id)) { + invokeMenuAction("Use Special Attack", 315, 0, 0, id); + return true; + } + } + List buttons = new ArrayList<>(); + collectDialogChildren(tabRoot, 1, buttons); + collectDialogChildren(tabRoot, 5, buttons); + for (RSInterface btn : buttons) { + String tip = btn.tooltip != null ? MenuEntry.stripColorTags(btn.tooltip).toLowerCase() : ""; + String txt = btn.disabledText != null ? MenuEntry.stripColorTags(btn.disabledText).toLowerCase() : ""; + String enTxt = btn.enabledText != null ? MenuEntry.stripColorTags(btn.enabledText).toLowerCase() : ""; + if (tip.contains("special") || txt.contains("special") || enTxt.contains("special") || hasAction(btn.actions, "Use")) { + invokeMenuAction("Use Special Attack", 315, 0, 0, btn.id); + return true; + } + } + } + ScriptLogger.logActiveAction("toggleSpecialAttack() -> false (tabId=" + tabId + ", energy=" + getSpecialEnergy() + ", active=" + isSpecialAttackActive() + ")"); + return false; + } + + private boolean containsChildId(RSInterface parent, int targetId) { + if (parent == null || parent.children == null) return false; + for (int childId : parent.children) { + if (childId == targetId) return true; + if (childId >= 0 && childId < RSInterface.interfaceCache.length + && containsChildId(RSInterface.interfaceCache[childId], targetId)) { + return true; + } + } + return false; + } + + public boolean setSpecialAttack(boolean active) { + if (!isLoggedIn()) return false; + if (isSpecialAttackActive() == active) return true; + return toggleSpecialAttack(); + } + + public boolean setAttackStyle(int styleIndex) { + if (!isLoggedIn() || styleIndex < 0 || styleIndex > 3) return false; + int tabId = (game.tabInterfaceIDs != null && game.tabInterfaceIDs.length > 0) ? game.tabInterfaceIDs[0] : -1; + if (tabId <= 0 || tabId >= RSInterface.interfaceCache.length) return false; + List buttons = new ArrayList<>(); + collectDialogChildren(RSInterface.interfaceCache[tabId], 1, buttons); + List styleButtons = new ArrayList<>(); + for (RSInterface btn : buttons) { + String tip = btn.tooltip != null ? MenuEntry.stripColorTags(btn.tooltip).toLowerCase() : ""; + if (tip.contains("special") || tip.contains("retaliate") || tip.contains("autocast")) continue; + styleButtons.add(btn); + } + if (styleIndex < styleButtons.size()) { + invokeMenuAction("Select", 315, 0, 0, styleButtons.get(styleIndex).id); + return true; + } + return false; + } + + public enum Prayer { + THICK_SKIN(5609, 83), + BURST_OF_STRENGTH(5610, 84), + CLARITY_OF_THOUGHT(5611, 85), + SHARP_EYE(18000, 601), + MYSTIC_WILL(18002, 602), + ROCK_SKIN(5612, 86), + SUPERHUMAN_STRENGTH(5613, 87), + IMPROVED_REFLEXES(5614, 88), + RAPID_RESTORE(5615, 89), + RAPID_HEAL(5616, 90), + PROTECT_ITEM(5617, 91), + HAWK_EYE(18004, 603), + MYSTIC_LORE(18006, 604), + STEEL_SKIN(5618, 92), + ULTIMATE_STRENGTH(5619, 93), + INCREDIBLE_REFLEXES(5620, 94), + PROTECT_FROM_MAGIC(5621, 95), + PROTECT_FROM_MISSILES(5622, 96), + PROTECT_FROM_MELEE(5623, 97), + EAGLE_EYE(18008, 605), + MYSTIC_MIGHT(18010, 606), + RETRIBUTION(683, 98), + REDEMPTION(684, 99), + SMITE(685, 100), + CHIVALRY(18012, 607), + PIETY(18014, 608); + + public final int widgetId; + public final int varpId; + + Prayer(int widgetId, int varpId) { + this.widgetId = widgetId; + this.varpId = varpId; + } + } + + public boolean isPrayerActive(Prayer prayer) { + if (prayer == null || game.variousSettings == null || prayer.varpId >= game.variousSettings.length) { + return false; + } + return game.variousSettings[prayer.varpId] == 1; + } + + public boolean togglePrayer(Prayer prayer) { + if (prayer == null || !isLoggedIn()) return false; + invokeMenuAction("Activate", 315, 0, 0, prayer.widgetId); + return true; + } + + public boolean setPrayer(Prayer prayer, boolean active) { + if (prayer == null || !isLoggedIn()) return false; + if (isPrayerActive(prayer) == active) return true; + return togglePrayer(prayer); + } + + public enum Spell { + WIND_STRIKE(1152), + CONFUSE(1153), + WATER_STRIKE(1154), + EARTH_STRIKE(1156), + WEAKEN(1157), + FIRE_STRIKE(1158), + BONES_TO_BANANAS(1159), + WIND_BOLT(1160), + CURSE(1161), + LOW_LEVEL_ALCHEMY(1162), + WATER_BOLT(1163), + VARROCK_TELEPORT(1164), + EARTH_BOLT(1166), + LUMBRIDGE_TELEPORT(1167), + TELEKINETIC_GRAB(1168), + FIRE_BOLT(1169), + FALADOR_TELEPORT(1170), + CRUMBLE_UNDEAD(1171), + WIND_BLAST(1172), + SUPERHEAT_ITEM(1173), + CAMELOT_TELEPORT(1174), + WATER_BLAST(1175), + EARTH_BLAST(1177), + HIGH_LEVEL_ALCHEMY(1178), + FIRE_BLAST(1181), + WIND_WAVE(1183), + WATER_WAVE(1185), + EARTH_WAVE(1188), + FIRE_WAVE(1189), + IBAN_BLAST(1539), + ARDOUGNE_TELEPORT(1540), + WATCHTOWER_TELEPORT(1541), + BIND(1572), + SNARE(1582), + ENTANGLE(1592), + TROLLHEIM_TELEPORT(7455), + MAGIC_DART(12037), + APE_ATOLL_TELEPORT(18470); + + public final int widgetId; + + Spell(int widgetId) { + this.widgetId = widgetId; + } + } + + public boolean castSpell(int spellWidgetId) { + return clickWidget(spellWidgetId); + } + + public boolean castSpell(Spell spell) { + return spell != null && castSpell(spell.widgetId); + } + + public boolean castSpellOnNpc(int spellWidgetId, NpcWrapper npc) { + if (!isLoggedIn() || npc == null || spellWidgetId < 0 || spellWidgetId >= RSInterface.interfaceCache.length) { + return false; + } + if (RSInterface.interfaceCache[spellWidgetId] == null) return false; + invokeMenuAction("Cast", 626, 0, 0, spellWidgetId); + invokeMenuAction("Cast", 413, npc.index, 0, 0); + return true; + } + + public boolean castSpellOnNpc(Spell spell, NpcWrapper npc) { + return spell != null && castSpellOnNpc(spell.widgetId, npc); + } + + public boolean castSpellOnItem(int spellWidgetId, int invSlot) { + if (!isLoggedIn() || invSlot < 0 || invSlot >= 28 || spellWidgetId < 0 || spellWidgetId >= RSInterface.interfaceCache.length) { + return false; + } + if (RSInterface.interfaceCache[spellWidgetId] == null) return false; + RSInterface invInterface = RSInterface.interfaceCache[3214]; + if (invInterface == null || invInterface.inv == null) return false; + int rawId = invInterface.inv[invSlot]; + if (rawId <= 0) return false; + invokeMenuAction("Cast", 626, 0, 0, spellWidgetId); + invokeMenuAction("Cast", 543, rawId - 1, invSlot, 3214); + return true; + } + + public boolean castSpellOnItem(Spell spell, int invSlot) { + return spell != null && castSpellOnItem(spell.widgetId, invSlot); + } + + /** + * Executes an authentic client menu action. + */ + public void invokeMenuAction(String name, int actionId, int cmd1, int cmd2, int cmd3) { + if (!isLoggedIn()) return; + // Inject into the next available menu action slot or temporary row + int slot = game.menuActionRow; + if (slot >= 490) { + slot = 490; + } + game.menuActionName[slot] = name; + game.menuActionID[slot] = actionId; + game.menuActionCmd1[slot] = cmd1; + game.menuActionCmd2[slot] = cmd2; + game.menuActionCmd3[slot] = cmd3; + game.menuActionRow = slot + 1; + game.doAction(slot); + ScriptLogger.logActiveAction("menuAction('" + name + "', id=" + actionId + ", cmd1=" + cmd1 + ", cmd2=" + cmd2 + ", cmd3=" + cmd3 + ")"); + } + + // ========================================================================= + // Menu Manipulation (For Swappers & Hooks) + // ========================================================================= + + public List getMenuEntries() { + int count = game.menuActionRow; + if (count <= 0) return new ArrayList<>(); + List entries = new ArrayList<>(count); + for (int i = 0; i < count; i++) { + entries.add(new MenuEntry( + game.menuActionName[i], + game.menuActionID[i], + game.menuActionCmd1[i], + game.menuActionCmd2[i], + game.menuActionCmd3[i] + )); + } + return entries; + } + + public void setMenuEntries(List entries) { + if (entries == null) return; + int count = Math.min(entries.size(), 495); + for (int i = 0; i < count; i++) { + MenuEntry e = entries.get(i); + game.menuActionName[i] = e.getRawText(); + game.menuActionID[i] = e.getActionId(); + game.menuActionCmd1[i] = e.getCmd1(); + game.menuActionCmd2[i] = e.getCmd2(); + game.menuActionCmd3[i] = e.getCmd3(); + } + game.menuActionRow = count; + } + + /** + * Moves a menu entry matching action and target pattern to the top (left-click position). + */ + public boolean promoteMenuEntry(String actionPattern, String targetPattern) { + List entries = getMenuEntries(); + if (entries.size() <= 1) return false; + + int foundIdx = -1; + for (int i = 0; i < entries.size(); i++) { + MenuEntry e = entries.get(i); + if (e.matches(actionPattern, targetPattern)) { + foundIdx = i; + break; + } + } + if (foundIdx != -1 && foundIdx != entries.size() - 1) { + MenuEntry target = entries.remove(foundIdx); + entries.add(target); // Add to end (top priority) + setMenuEntries(entries); + return true; + } + return false; + } + + // ========================================================================= + // Utilities & Configuration + // ========================================================================= + + public void sendClientMessage(String msg) { + if (game != null && msg != null) { + game.pushMessage(msg, 0, ""); + } + } + + public void switchTab(int tabId) { + if (game != null) { + game.switchTab(tabId); + } + } + + public int getOpenInterfaceId() { + return game.openInterfaceID; + } + + public void closeInterfaces() { + if (game != null) { + game.closeOpenInterfaces(); + } + } + + // ========================================================================= + // Fluent Entity & Inventory Query API + // ========================================================================= + + private static boolean matchesName(String actual, String... names) { + if (actual == null || names == null || names.length == 0) return false; + String lowerActual = actual.toLowerCase(); + for (String n : names) { + if (n != null && (actual.equalsIgnoreCase(n) || lowerActual.contains(n.toLowerCase()))) { + return true; + } + } + return false; + } + + private static boolean matchesId(int actual, int... ids) { + if (ids == null) return false; + for (int id : ids) { + if (actual == id) return true; + } + return false; + } + + public static boolean hasAction(String[] actions, String action) { + if (actions == null || action == null) return false; + String trimmed = action.trim(); + for (String act : actions) { + if (act != null && act.trim().equalsIgnoreCase(trimmed)) { + return true; + } + } + return false; + } + + /** + * Generic chainable query builder backed by a pre-sorted or raw entity list. + */ + public static class Query> { + protected final List source; + protected Predicate predicate = item -> true; + + public Query(List source) { + this.source = source != null ? source : Collections.emptyList(); + } + + @SuppressWarnings("unchecked") + protected final Q self() { + return (Q) this; + } + + public Q filter(Predicate extra) { + if (extra != null) { + this.predicate = this.predicate.and(extra); + } + return self(); + } + + public List all() { + List results = new ArrayList<>(); + for (T item : source) { + if (item != null && predicate.test(item)) { + results.add(item); + } + } + return results; + } + + public T first() { + for (T item : source) { + if (item != null && predicate.test(item)) { + return item; + } + } + return null; + } + + public T nearest() { + return first(); + } + + public int count() { + int c = 0; + for (T item : source) { + if (item != null && predicate.test(item)) { + c++; + } + } + return c; + } + + public boolean exists() { + return first() != null; + } + } + + public final class NpcQuery extends Query { + private NpcQuery(List source) { + super(source); + } + + public NpcQuery named(String... names) { + return filter(npc -> matchesName(npc.name, names)); + } + + public NpcQuery id(int... ids) { + return filter(npc -> matchesId(npc.id, ids)); + } + + public NpcQuery within(int maxDistance) { + return filter(npc -> npc.getDistance() <= maxDistance); + } + + public NpcQuery alive() { + return filter(npc -> !npc.isDead()); + } + + public NpcQuery attackable() { + return filter(npc -> !npc.isDead() && !npc.isUnderAttackByOther()); + } + + public NpcQuery hasAction(String action) { + return filter(npc -> PluginContext.hasAction(npc.actions, action)); + } + + public NpcQuery reachable() { + return filter(PluginContext.this::canReach); + } + + public NpcQuery hasLineOfSight() { + return filter(PluginContext.this::hasLineOfSight); + } + } + + public final class GroundItemQuery extends Query { + private GroundItemQuery(List source) { + super(source); + } + + public GroundItemQuery named(String... names) { + return filter(item -> matchesName(item.name, names)); + } + + public GroundItemQuery id(int... ids) { + return filter(item -> matchesId(item.id, ids)); + } + + public GroundItemQuery within(int maxDistance) { + return filter(item -> item.getDistance() <= maxDistance); + } + + public GroundItemQuery minValue(long minTotalValue) { + return filter(item -> item.totalValue >= minTotalValue); + } + + public GroundItemQuery reachable() { + return filter(PluginContext.this::canReach); + } + + public GroundItemQuery hasLineOfSight() { + return filter(PluginContext.this::hasLineOfSight); + } + } + + public final class ObjectQuery extends Query { + private ObjectQuery(List source) { + super(source); + } + + public ObjectQuery named(String... names) { + return filter(obj -> matchesName(obj.name, names)); + } + + public ObjectQuery id(int... ids) { + return filter(obj -> matchesId(obj.id, ids)); + } + + public ObjectQuery within(int maxDistance) { + return filter(obj -> obj.getDistance() <= maxDistance); + } + + public ObjectQuery hasAction(String action) { + return filter(obj -> PluginContext.hasAction(obj.actions, action)); + } + + public ObjectQuery reachable() { + return filter(PluginContext.this::canReach); + } + } + + public final class InventoryQuery extends Query { + private InventoryQuery(List source) { + super(source); + } + + public InventoryQuery named(String... names) { + return filter(item -> matchesName(item.name, names)); + } + + public InventoryQuery id(int... ids) { + return filter(item -> matchesId(item.id, ids)); + } + + public InventoryQuery hasAction(String action) { + return filter(item -> PluginContext.hasAction(item.actions, action)); + } + } + + public NpcQuery npcs() { + return new NpcQuery(getNpcs()); + } + + public NpcQuery queryNpcs(List source) { + return new NpcQuery(source); + } + + public GroundItemQuery groundItems() { + return new GroundItemQuery(getGroundItems()); + } + + public GroundItemQuery queryGroundItems(List source) { + return new GroundItemQuery(source); + } + + public ObjectQuery objects() { + return new ObjectQuery(getSceneObjects(25)); + } + + public ObjectQuery objects(int radius) { + return new ObjectQuery(getSceneObjects(radius)); + } + + public ObjectQuery queryObjects(List source) { + return new ObjectQuery(source); + } + + public InventoryQuery inventory() { + return new InventoryQuery(getInventoryItems()); + } + + public InventoryQuery queryInventory(List source) { + return new InventoryQuery(source); + } + + public List getPlayers() { + return getPlayers(false); + } + + public List getPlayers(boolean includeSelf) { + if (!isLoggedIn()) return Collections.emptyList(); + List list = new ArrayList<>(); + int baseX = game.baseX; + int baseY = game.baseY; + int px = getPlayerX(); + int py = getPlayerY(); + int count = Math.min(game.playerCount, game.playerIndices != null ? game.playerIndices.length : 0); + for (int i = 0; i < count; i++) { + int idx = game.playerIndices[i]; + if (idx < 0 || game.playerArray == null || idx >= game.playerArray.length) continue; + Player p = game.playerArray[idx]; + if (p == null) continue; + boolean isSelf = (idx == game.myPlayerIndex || p == game.myPlayer); + if (!includeSelf && isSelf) continue; + list.add(new PlayerWrapper(idx, p, baseX, baseY, px, py, isSelf)); + } + list.sort(Comparator.comparingInt(PlayerWrapper::getDistance)); + return list; + } + + public final class PlayerQuery extends Query { + private PlayerQuery(List source) { + super(source); + } + + public PlayerQuery named(String... names) { + return filter(p -> matchesName(p.name, names)); + } + + public PlayerQuery within(int maxDistance) { + return filter(p -> p.getDistance() <= maxDistance); + } + + public PlayerQuery combatLevel(int minLevel, int maxLevel) { + return filter(p -> p.combatLevel >= minLevel && p.combatLevel <= maxLevel); + } + + public PlayerQuery skulled() { + return filter(p -> p.skullIcon >= 0); + } + + public PlayerQuery reachable() { + return filter(p -> canReach(p.worldX, p.worldY, 20, true)); + } + + public PlayerQuery hasLineOfSight() { + return filter(p -> PluginContext.this.hasLineOfSight(getPlayerX(), getPlayerY(), p.worldX, p.worldY)); + } + } + + public PlayerQuery players() { + return new PlayerQuery(getPlayers(false)); + } + + public PlayerQuery queryPlayers(List source) { + return new PlayerQuery(source); + } + + public boolean isPlayerNearby(int maxDistance) { + return players().within(maxDistance).exists(); + } + + // ========================================================================= + // Dialogue & Widget API + // ========================================================================= + + public int getActiveDialogId() { + if (!isLoggedIn()) return -1; + if (game.backDialogID != -1) return game.backDialogID; + return game.dialogID; + } + + public boolean isDialogueOpen() { + return getActiveDialogId() != -1; + } + + private void collectDialogChildren(RSInterface parent, int actionType, List out) { + if (parent == null || parent.children == null) return; + for (int childId : parent.children) { + if (childId < 0 || childId >= RSInterface.interfaceCache.length) continue; + RSInterface child = RSInterface.interfaceCache[childId]; + if (child == null) continue; + if (child.atActionType == actionType) { + out.add(child); + } + if (child.children != null) { + collectDialogChildren(child, actionType, out); + } + } + } + + private List getActiveDialogChildren(int actionType) { + int id = getActiveDialogId(); + if (id < 0 || id >= RSInterface.interfaceCache.length) return Collections.emptyList(); + List list = new ArrayList<>(); + collectDialogChildren(RSInterface.interfaceCache[id], actionType, list); + return list; + } + + public boolean canContinueDialogue() { + boolean res = !getActiveDialogChildren(6).isEmpty(); + if (res) { + System.out.println("[PC] canContinueDialogue=true backDialogID=" + game.backDialogID + " dialogID=" + game.dialogID); + } + return res; + } + + public boolean continueDialogue() { + if (!isLoggedIn() || game.aBoolean1149) return false; + List continues = getActiveDialogChildren(6); + if (continues.isEmpty()) return false; + invokeMenuAction("Continue", 679, 0, 0, continues.get(0).id); + return true; + } + + public int getDialogueOptionCount() { + return getActiveDialogChildren(1).size(); + } + + public List getDialogueOptions() { + List options = getActiveDialogChildren(1); + List texts = new ArrayList<>(options.size()); + for (RSInterface opt : options) { + texts.add(opt.disabledText != null ? MenuEntry.stripColorTags(opt.disabledText) : ""); + } + return texts; + } + + public boolean selectDialogueOption(int optionIndex) { + if (!isLoggedIn() || optionIndex < 0) return false; + List options = getActiveDialogChildren(1); + if (optionIndex >= options.size()) return false; + invokeMenuAction("Select", 315, 0, 0, options.get(optionIndex).id); + return true; + } + + public boolean selectDialogueOption(String text) { + if (!isLoggedIn() || text == null || text.isEmpty()) return false; + String needle = text.toLowerCase(); + List options = getActiveDialogChildren(1); + for (RSInterface opt : options) { + String optText = opt.disabledText != null ? MenuEntry.stripColorTags(opt.disabledText).toLowerCase() : ""; + if (optText.contains(needle)) { + invokeMenuAction("Select", 315, 0, 0, opt.id); + return true; + } + } + return false; + } + + public String getWidgetText(int widgetId) { + if (widgetId < 0 || widgetId >= RSInterface.interfaceCache.length) return ""; + RSInterface widget = RSInterface.interfaceCache[widgetId]; + return (widget != null && widget.disabledText != null) ? widget.disabledText : ""; + } + + public int getWidgetColor(int widgetId) { + if (widgetId < 0 || widgetId >= RSInterface.interfaceCache.length) return 0; + RSInterface widget = RSInterface.interfaceCache[widgetId]; + return widget != null ? widget.textColor : 0; + } + + public int getVarp(int varpId) { + if (game == null || game.variousSettings == null || varpId < 0 || varpId >= game.variousSettings.length) { + return 0; + } + return game.variousSettings[varpId]; + } + + public boolean clickWidget(int widgetId) { + if (!isLoggedIn() || widgetId < 0 || widgetId >= RSInterface.interfaceCache.length) return false; + if (RSInterface.interfaceCache[widgetId] == null) return false; + invokeMenuAction("Click", 315, 0, 0, widgetId); + return true; + } + + // ========================================================================= + // Banking & Container API + // ========================================================================= + + public static final int BANK_INTERFACE_ID = 5292; + public static final int BANK_INVENTORY_ID = 5064; + public static final int BANK_ITEMS_ID = 5382; + + public boolean isBankOpen() { + return isLoggedIn() && game.openInterfaceID == BANK_INTERFACE_ID; + } + + public boolean closeBank() { + if (!isBankOpen()) return false; + closeInterfaces(); + return true; + } + + public boolean openNearestBank() { + if (!isLoggedIn()) return false; + if (isBankOpen()) return true; + SceneObjectWrapper booth = objects(20) + .named("Bank booth", "Bank chest") + .filter(o -> hasAction(o, "Bank") || hasAction(o, "Use-quickly")) + .reachable() + .nearest(); + if (booth == null) { + booth = objects(10) + .named("Bank booth", "Bank chest") + .filter(o -> hasAction(o, "Bank") || hasAction(o, "Use-quickly")) + .nearest(); + } + if (booth != null) { + String act = hasAction(booth, "Bank") ? "Bank" : "Use-quickly"; + return interactObject(booth, act); + } + NpcWrapper banker = npcs() + .named("Banker") + .hasAction("Bank") + .within(20) + .reachable() + .nearest(); + return banker != null && interactNpc(banker, "Bank"); + } + + public List getBankItems() { + if (!isLoggedIn()) return Collections.emptyList(); + RSInterface bankInterface = RSInterface.interfaceCache[BANK_ITEMS_ID]; + if (bankInterface == null || bankInterface.inv == null) { + return Collections.emptyList(); + } + List list = new ArrayList<>(); + for (int i = 0; i < bankInterface.inv.length; i++) { + if (bankInterface.inv[i] > 0) { + int amt = (bankInterface.invStackSizes != null && i < bankInterface.invStackSizes.length) + ? bankInterface.invStackSizes[i] : 1; + list.add(new InventoryItemWrapper(i, bankInterface.inv[i], amt)); + } + } + return list; + } + + public boolean hasBankItem(int id) { + return getBankItemCount(id) > 0; + } + + public int getBankItemCount(int id) { + int total = 0; + for (InventoryItemWrapper item : getBankItems()) { + if (item.id == id) { + total += Math.max(1, item.amount); + } + } + return total; + } + + private boolean interactContainerItem(int containerId, int itemId, int amount, boolean isWithdraw) { + if (!isBankOpen() || containerId < 0 || containerId >= RSInterface.interfaceCache.length) return false; + RSInterface container = RSInterface.interfaceCache[containerId]; + if (container == null || container.inv == null) return false; + + int slot = -1; + int slotAmount = 0; + for (int i = 0; i < container.inv.length; i++) { + if (container.inv[i] - 1 == itemId) { + slot = i; + slotAmount = (container.invStackSizes != null && i < container.invStackSizes.length) + ? container.invStackSizes[i] : 1; + break; + } + } + if (slot == -1) return false; + + if (amount <= 0 || amount >= Integer.MAX_VALUE || (amount != 1 && amount != 5 && amount != 10 && amount >= slotAmount)) { + invokeMenuAction(isWithdraw ? "Withdraw" : "Deposit", 431, itemId, slot, containerId); + return true; + } + if (amount == 1) { + invokeMenuAction(isWithdraw ? "Withdraw" : "Deposit", 632, itemId, slot, containerId); + return true; + } + if (amount == 5) { + invokeMenuAction(isWithdraw ? "Withdraw" : "Deposit", 78, itemId, slot, containerId); + return true; + } + if (amount == 10) { + invokeMenuAction(isWithdraw ? "Withdraw" : "Deposit", 867, itemId, slot, containerId); + return true; + } + + // Exact custom amount (< slotAmount, not 1/5/10): use Withdraw-X / Deposit-X (action 53 -> packet 208) + if (isEnterAmountOpen()) { + return submitAmount(amount); + } + invokeMenuAction(isWithdraw ? "Withdraw X" : "Deposit X", 53, itemId, slot, containerId); + return true; + } + + public boolean isEnterAmountOpen() { + return isLoggedIn() && game.inputDialogState == 1; + } + + public boolean submitAmount(int amount) { + if (!isLoggedIn() || amount <= 0) return false; + game.stream.createFrame(208); + game.stream.writeDWord(amount); + game.inputDialogState = 0; + game.inputTaken = true; + if (ClientSettings.ANDROID) { + AndroidHooks.hideKeyboard(); + } + return true; + } + + public boolean setWithdrawAsNote(boolean noted) { + if (!isBankOpen()) return false; + invokeMenuAction(noted ? "Note" : "Item", 315, 0, 0, noted ? 5386 : 5387); + return true; + } + + public boolean depositItem(int id, int amount) { + return interactContainerItem(BANK_INVENTORY_ID, id, amount, false); + } + + public boolean depositAll() { + return depositAllExcept(new int[0]); + } + + public boolean depositAllExcept(int... keepIds) { + if (!isBankOpen()) return false; + List deposited = new ArrayList<>(); + boolean any = false; + for (InventoryItemWrapper item : getInventoryItems()) { + if (matchesId(item.id, keepIds) || deposited.contains(item.id)) continue; + if (depositItem(item.id, Integer.MAX_VALUE)) { + deposited.add(item.id); + any = true; + } + } + return any; + } + + public boolean depositAllExcept(String... keepNames) { + if (!isBankOpen()) return false; + List deposited = new ArrayList<>(); + boolean any = false; + for (InventoryItemWrapper item : getInventoryItems()) { + if (matchesName(item.name, keepNames) || deposited.contains(item.id)) continue; + if (depositItem(item.id, Integer.MAX_VALUE)) { + deposited.add(item.id); + any = true; + } + } + return any; + } + + public boolean withdrawItem(int id, int amount) { + return interactContainerItem(BANK_ITEMS_ID, id, amount, true); + } + + // ========================================================================= + // Shop & Make-X Skilling API + // ========================================================================= + + public static final int SHOP_INTERFACE_ID = 3824; + public static final int SHOP_INVENTORY_ID = 3823; + public static final int SHOP_ITEMS_ID = 3900; + + public boolean isShopOpen() { + return isLoggedIn() && game.openInterfaceID == SHOP_INTERFACE_ID; + } + + public boolean closeShop() { + if (!isShopOpen()) return false; + closeInterfaces(); + return true; + } + + public List getShopItems() { + if (!isLoggedIn()) return Collections.emptyList(); + RSInterface shopInterface = RSInterface.interfaceCache[SHOP_ITEMS_ID]; + if (shopInterface == null || shopInterface.inv == null) { + return Collections.emptyList(); + } + List list = new ArrayList<>(); + for (int i = 0; i < shopInterface.inv.length; i++) { + if (shopInterface.inv[i] > 0) { + int amt = (shopInterface.invStackSizes != null && i < shopInterface.invStackSizes.length) + ? shopInterface.invStackSizes[i] : 1; + list.add(new InventoryItemWrapper(i, shopInterface.inv[i], amt)); + } + } + return list; + } + + public int getShopItemCount(int id) { + int total = 0; + for (InventoryItemWrapper item : getShopItems()) { + if (item.id == id) { + total += Math.max(0, item.amount); + } + } + return total; + } + + private boolean interactShopContainer(int containerId, int itemId, int amount, boolean isBuy) { + if (!isShopOpen() || containerId < 0 || containerId >= RSInterface.interfaceCache.length) return false; + RSInterface container = RSInterface.interfaceCache[containerId]; + if (container == null || container.inv == null) return false; + + int slot = -1; + for (int i = 0; i < container.inv.length; i++) { + if (container.inv[i] - 1 == itemId) { + slot = i; + break; + } + } + if (slot == -1) return false; + + String label = isBuy ? "Buy" : "Sell"; + if (amount == 1) { + invokeMenuAction(label + " 1", 78, itemId, slot, containerId); + return true; + } + if (amount == 10) { + invokeMenuAction(label + " 10", 867, itemId, slot, containerId); + return true; + } + if (isEnterAmountOpen()) { + return submitAmount(amount); + } + invokeMenuAction(label + " X", 431, itemId, slot, containerId); + return true; + } + + public boolean buyItem(int id, int amount) { + return interactShopContainer(SHOP_ITEMS_ID, id, amount, true); + } + + public boolean sellItem(int id, int amount) { + return interactShopContainer(SHOP_INVENTORY_ID, id, amount, false); + } + + /** + * Selects a quantity on the standard cooking Make-1/5/10/All dialogue (13720..13717). + */ + public boolean makeCookingAmount(int amount) { + if (!isLoggedIn()) return false; + if (amount == 1) return clickWidget(13720); + if (amount == 5) return clickWidget(13719); + if (amount == 10) return clickWidget(13718); + return clickWidget(13717); + } + + /** + * Clicks a skilling/dialogue child button whose text or tooltip contains the given text. + */ + public boolean clickMakeOption(String text) { + if (!isLoggedIn() || text == null || text.isEmpty()) return false; + String needle = text.toLowerCase(); + int[] parents = {getActiveDialogId(), game.openInterfaceID}; + for (int parentId : parents) { + if (parentId < 0 || parentId >= RSInterface.interfaceCache.length) continue; + List children = new ArrayList<>(); + collectDialogChildren(RSInterface.interfaceCache[parentId], 1, children); + collectDialogChildren(RSInterface.interfaceCache[parentId], 4, children); + collectDialogChildren(RSInterface.interfaceCache[parentId], 5, children); + for (RSInterface child : children) { + String label = child.disabledText != null ? MenuEntry.stripColorTags(child.disabledText).toLowerCase() : ""; + String tip = child.tooltip != null ? MenuEntry.stripColorTags(child.tooltip).toLowerCase() : ""; + if (label.contains(needle) || tip.contains(needle)) { + invokeMenuAction("Make", 315, 0, 0, child.id); + return true; + } + } + } + return false; + } + + // ========================================================================= + // Long-Distance Waypoint Path Walking + // ========================================================================= + + private int[][] lastWalkPathWaypoints; + private int lastWalkPathIndex; + + /** + * Walks along a sequence of world-coordinate waypoints ({x, y}). + * @return true if a walk step was issued, false if already within arrivalRadius of the final waypoint. + */ + public boolean walkPath(int arrivalRadius, int[]... waypoints) { + if (!isLoggedIn() || waypoints == null || waypoints.length == 0) return false; + int[] last = waypoints[waypoints.length - 1]; + if (last == null || last.length < 2) return false; + if (distanceTo(last[0], last[1]) <= Math.max(0, arrivalRadius)) { + lastWalkPathWaypoints = null; + lastWalkPathIndex = 0; + return false; + } + + if (waypoints != lastWalkPathWaypoints) { + lastWalkPathWaypoints = waypoints; + lastWalkPathIndex = 0; + } else if (lastWalkPathIndex >= waypoints.length + || waypoints[lastWalkPathIndex] == null + || waypoints[lastWalkPathIndex].length < 2 + || distanceTo(waypoints[lastWalkPathIndex][0], waypoints[lastWalkPathIndex][1]) > 24) { + lastWalkPathIndex = 0; + } + + // Find closest waypoint at or after lastWalkPathIndex so we never walk backwards + int closestIdx = lastWalkPathIndex; + int closestDist = Integer.MAX_VALUE; + for (int i = lastWalkPathIndex; i < waypoints.length; i++) { + int[] wp = waypoints[i]; + if (wp == null || wp.length < 2) continue; + int dist = distanceTo(wp[0], wp[1]); + if (dist < closestDist) { + closestDist = dist; + closestIdx = i; + } + } + + // Advance past closestIdx if we are already close to it + int minIdx = (closestDist <= 3 && closestIdx + 1 < waypoints.length) ? (closestIdx + 1) : closestIdx; + lastWalkPathIndex = Math.max(lastWalkPathIndex, minIdx); + + // Pick the furthest reachable waypoint ahead within local pathing range (16 tiles) + for (int i = waypoints.length - 1; i >= lastWalkPathIndex; i--) { + int[] wp = waypoints[i]; + if (wp == null || wp.length < 2) continue; + int dist = distanceTo(wp[0], wp[1]); + if (dist <= 16 && dist > 1 && canReach(wp[0], wp[1], 18, false)) { + updateWalkPathOverlay(waypoints, i); + suppressWalkToPathUpdate = true; + try { + return walkTo(wp[0], wp[1]); + } finally { + suppressWalkToPathUpdate = false; + } + } + } + + // Fallback: pick furthest forward waypoint within 16 tiles, or next waypoint ahead + for (int i = waypoints.length - 1; i >= lastWalkPathIndex; i--) { + int[] wp = waypoints[i]; + if (wp == null || wp.length < 2) continue; + int dist = distanceTo(wp[0], wp[1]); + if (dist <= 16 && dist > 1) { + updateWalkPathOverlay(waypoints, i); + suppressWalkToPathUpdate = true; + try { + return walkTo(wp[0], wp[1]); + } finally { + suppressWalkToPathUpdate = false; + } + } + } + + int[] nextWp = waypoints[lastWalkPathIndex]; + return nextWp != null && nextWp.length >= 2 && walkToSmart(nextWp[0], nextWp[1]); + } + + private void updateWalkPathOverlay(int[][] waypoints, int startIdx) { + List path = new ArrayList<>(); + if (startIdx >= 0 && startIdx < waypoints.length && waypoints[startIdx] != null && waypoints[startIdx].length >= 2) { + List local = findPath(waypoints[startIdx][0], waypoints[startIdx][1], 18, true, false); + path.addAll(local); + } + for (int i = Math.max(0, startIdx + (path.isEmpty() ? 0 : 1)); i < waypoints.length; i++) { + int[] wp = waypoints[i]; + if (wp != null && wp.length >= 2) { + path.add(new int[] { wp[0], wp[1] }); + } + } + lastComputedPath = path.isEmpty() ? Collections.emptyList() : Collections.unmodifiableList(path); + } + + public WorldArea createArea(int x1, int y1, int x2, int y2) { + return new WorldArea(x1, y1, x2, y2); + } + + public boolean walkPathCoords(int arrivalRadius, int... coords) { + if (coords == null || coords.length < 2) return false; + int count = coords.length / 2; + int[][] waypoints = new int[count][2]; + for (int i = 0; i < count; i++) { + waypoints[i][0] = coords[i * 2]; + waypoints[i][1] = coords[i * 2 + 1]; + } + return walkPath(arrivalRadius, waypoints); + } + + public boolean walkPath(int[]... waypoints) { + return walkPath(2, waypoints); + } + + /** + * Computes a collision-aware BFS path of world {x, y} tiles from the player to the target. + */ + public List findPath(int targetWorldX, int targetWorldY, int maxSearchRadius) { + return findPath(targetWorldX, targetWorldY, maxSearchRadius, false, false); + } + + /** + * Computes a collision-aware BFS path, optionally returning the closest reachable partial path + * when the target is outside the search radius or blocked by an obstacle. + */ + public List findPath(int targetWorldX, int targetWorldY, int maxSearchRadius, boolean allowPartial) { + return findPath(targetWorldX, targetWorldY, maxSearchRadius, allowPartial, false); + } + + /** + * Computes a collision-aware BFS path, optionally allowing cardinal steps through closed doors/gates. + */ + public List findPath(int targetWorldX, int targetWorldY, int maxSearchRadius, boolean allowPartial, boolean passThroughDoors) { + if (!isLoggedIn()) return Collections.emptyList(); + int startLx = getPlayerLocalX(); + int startLy = getPlayerLocalY(); + int targetLx = targetWorldX - game.baseX; + int targetLy = targetWorldY - game.baseY; + if (startLx < 0 || startLx >= 104 || startLy < 0 || startLy >= 104) return Collections.emptyList(); + if (!allowPartial && (targetLx < 0 || targetLx >= 104 || targetLy < 0 || targetLy >= 104)) { + return Collections.emptyList(); + } + if (startLx == targetLx && startLy == targetLy) return Collections.emptyList(); + + int rad = Math.max(5, Math.min(55, maxSearchRadius)); + int minX = Math.max(0, startLx - rad); + int maxX = Math.min(103, startLx + rad); + int minY = Math.max(0, startLy - rad); + int maxY = Math.min(103, startLy + rad); + if (!allowPartial && (targetLx < minX || targetLx > maxX || targetLy < minY || targetLy > maxY)) { + return Collections.emptyList(); + } + + boolean[][] doorTile = null; + if (passThroughDoors) { + doorTile = new boolean[104][104]; + for (SceneObjectWrapper obj : getSceneObjects(55)) { + if (obj.name == null) continue; + String lower = obj.name.toLowerCase(); + if (!lower.contains("door") && !lower.contains("gate")) continue; + if (!hasAction(obj, "Open") || isTollGate(obj)) continue; + int lx = obj.worldX - game.baseX; + int ly = obj.worldY - game.baseY; + if (lx >= 0 && lx < 104 && ly >= 0 && ly < 104) { + doorTile[lx][ly] = true; + } + } + } + + boolean[][] visited = new boolean[104][104]; + int[][] parentX = new int[104][104]; + int[][] parentY = new int[104][104]; + for (int x = minX; x <= maxX; x++) { + for (int y = minY; y <= maxY; y++) { + parentX[x][y] = -1; + parentY[x][y] = -1; + } + } + + int[] queueX = new int[104 * 104]; + int[] queueY = new int[104 * 104]; + int head = 0; + int tail = 0; + queueX[tail] = startLx; + queueY[tail] = startLy; + tail++; + visited[startLx][startLy] = true; + + int[][] directions = { + {0, 1}, {0, -1}, {1, 0}, {-1, 0}, + {1, 1}, {-1, 1}, {1, -1}, {-1, -1} + }; + + boolean found = false; + int bestX = startLx; + int bestY = startLy; + long bestDistSq = (long) (startLx - targetLx) * (startLx - targetLx) + + (long) (startLy - targetLy) * (startLy - targetLy); + int iterations = 0; + while (head != tail && iterations++ < 104 * 104) { + int cx = queueX[head]; + int cy = queueY[head]; + head = (head + 1) % queueX.length; + + if (cx == targetLx && cy == targetLy) { + found = true; + bestX = cx; + bestY = cy; + break; + } + + long distSq = (long) (cx - targetLx) * (cx - targetLx) + + (long) (cy - targetLy) * (cy - targetLy); + if (distSq < bestDistSq) { + bestDistSq = distSq; + bestX = cx; + bestY = cy; + } + + int cWorldX = cx + game.baseX; + int cWorldY = cy + game.baseY; + for (int[] d : directions) { + int nx = cx + d[0]; + int ny = cy + d[1]; + if (nx < minX || nx > maxX || ny < minY || ny > maxY || visited[nx][ny]) continue; + boolean stepOk = canStep(cWorldX, cWorldY, nx + game.baseX, ny + game.baseY); + if (!stepOk && doorTile != null && (d[0] == 0 || d[1] == 0)) { + if (doorTile[cx][cy] || doorTile[nx][ny]) { + stepOk = true; + } + } + if (stepOk) { + visited[nx][ny] = true; + parentX[nx][ny] = cx; + parentY[nx][ny] = cy; + queueX[tail] = nx; + queueY[tail] = ny; + tail = (tail + 1) % queueX.length; + if (tail == head) break; + } + } + } + + if (!found && (!allowPartial || (bestX == startLx && bestY == startLy))) { + return Collections.emptyList(); + } + + List reversed = new ArrayList<>(); + int curX = found ? targetLx : bestX; + int curY = found ? targetLy : bestY; + while (curX != startLx || curY != startLy) { + reversed.add(new int[]{curX + game.baseX, curY + game.baseY}); + int px = parentX[curX][curY]; + int py = parentY[curX][curY]; + if (px == -1 || py == -1) break; + curX = px; + curY = py; + } + Collections.reverse(reversed); + lastComputedPath = Collections.unmodifiableList(reversed); + return reversed; + } + + private volatile List lastComputedPath = Collections.emptyList(); + private boolean suppressWalkToPathUpdate = false; + private long lastAutoDoorTime = 0; + private int committedGoalX = -1; + private int committedGoalY = -1; + private int committedTargetX = -1; + private int committedTargetY = -1; + private long committedGoalTimeMs = 0; + private int committedLastPlayerX = -1; + private int committedLastPlayerY = -1; + private List activeWebRoute = Collections.emptyList(); + private int activeWebRouteIndex = 0; + private int activeWebTargetX = -1; + private int activeWebTargetY = -1; + + public List getLastComputedPath() { + return lastComputedPath; + } + + /** + * Walks toward a destination using local collision-aware BFS to route around obstacles, + * stepping in 14-tile chunks when the destination is far away or outside the local region. + */ + public boolean walkToSmart(int targetWorldX, int targetWorldY) { + return walkToSmartInternal(targetWorldX, targetWorldY, false); + } + + private boolean isDoorReachable(SceneObjectWrapper door, int maxDistance) { + if (door == null) return false; + if (distanceTo(door.worldX, door.worldY) <= 1) return true; + if (canReach(door)) return true; + int[][] dirs = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}}; + for (int[] d : dirs) { + if (canReach(door.worldX + d[0], door.worldY + d[1], maxDistance + 2, false)) { + return true; + } + } + return false; + } + + /** + * Opens the nearest reachable closed non-toll door or gate within maxDistance. + */ + public boolean openNearestClosedDoor(int maxDistance) { + if (!isLoggedIn()) return false; + int searchDist = Math.max(4, maxDistance); + SceneObjectWrapper door = objects(searchDist) + .named("Door", "Gate", "Large door", "Wooden door") + .hasAction("Open") + .filter(o -> !isOpenGateOrDoor(o) && !isTollGate(o)) + .filter(o -> isDoorReachable(o, searchDist)) + .nearest(); + if (door != null) { + lastAutoDoorTime = System.currentTimeMillis(); + return interactObject(door, "Open"); + } + return false; + } + + /** + * Walks toward a destination using BFS, automatically opening closed doors/gates if blocked. + */ + public boolean walkToSmartOrOpenDoors(int targetWorldX, int targetWorldY) { + return walkToSmartInternal(targetWorldX, targetWorldY, true); + } + + private boolean walkToSmartInternal(int targetWorldX, int targetWorldY, boolean openDoors) { + if (!isLoggedIn()) return false; + int dist = distanceTo(targetWorldX, targetWorldY); + if (dist <= 16 && canReach(targetWorldX, targetWorldY, 18, false)) { + committedGoalX = -1; + activeWebRoute = Collections.emptyList(); + return walkTo(targetWorldX, targetWorldY); + } + + // For long-distance or cross-river routes, follow a sticky F2P road/bridge route monotonically + int effectiveTargetX = targetWorldX; + int effectiveTargetY = targetWorldY; + if ((dist > 35 && !canReach(targetWorldX, targetWorldY, 38, false)) + || findPath(targetWorldX, targetWorldY, 50, false, openDoors).isEmpty()) { + if (activeWebRoute.isEmpty() || activeWebTargetX != targetWorldX || activeWebTargetY != targetWorldY) { + activeWebRoute = WorldWebWalker.findRoute(this, getPlayerX(), getPlayerY(), targetWorldX, targetWorldY); + activeWebRouteIndex = 0; + activeWebTargetX = targetWorldX; + activeWebTargetY = targetWorldY; + } + if (!activeWebRoute.isEmpty()) { + int curX = getPlayerX(); + int curY = getPlayerY(); + while (activeWebRouteIndex < activeWebRoute.size()) { + int[] wp = activeWebRoute.get(activeWebRouteIndex); + int wpDist = distanceTo(wp[0], wp[1]); + if (wpDist <= 8) { + activeWebRouteIndex++; + continue; + } + if (activeWebRouteIndex + 1 < activeWebRoute.size() && wpDist < 25 + && canReach(wp[0], wp[1], 25, false)) { + int[] next = activeWebRoute.get(activeWebRouteIndex + 1); + long dot = (long) (curX - wp[0]) * (next[0] - wp[0]) + + (long) (curY - wp[1]) * (next[1] - wp[1]); + if (dot > 0) { + activeWebRouteIndex++; + continue; + } + } + break; + } + if (activeWebRouteIndex < activeWebRoute.size()) { + effectiveTargetX = activeWebRoute.get(activeWebRouteIndex)[0]; + effectiveTargetY = activeWebRoute.get(activeWebRouteIndex)[1]; + } + } + } else { + activeWebRoute = Collections.emptyList(); + } + + // Hysteresis: keep walking toward committed partial goal while making progress to avoid oscillation + long now = System.currentTimeMillis(); + int px = getPlayerX(); + int py = getPlayerY(); + if (committedGoalX != -1 + && committedTargetX == targetWorldX && committedTargetY == targetWorldY + && (now - committedGoalTimeMs) < 4500 + && distanceTo(committedGoalX, committedGoalY) > 3 + && (px != committedLastPlayerX || py != committedLastPlayerY)) { + committedLastPlayerX = px; + committedLastPlayerY = py; + if (isPlayerMoving()) { + return true; + } + return walkTo(committedGoalX, committedGoalY); + } + + // Local/partial BFS up to 50 tiles + List path = findPath(effectiveTargetX, effectiveTargetY, 50, true, openDoors); + if (!path.isEmpty()) { + int[] end = path.get(path.size() - 1); + boolean reachedEndOfPartial = (end[0] != effectiveTargetX || end[1] != effectiveTargetY) + && distanceTo(end[0], end[1]) <= 2; + if (reachedEndOfPartial) { + if (openDoors && (now - lastAutoDoorTime) > 2500) { + if (openNearestClosedDoor(8)) { + return true; + } + } + if (distanceTo(effectiveTargetX, effectiveTargetY) <= 16 + && canReach(effectiveTargetX, effectiveTargetY, 18, false)) { + committedGoalX = -1; + return walkTo(effectiveTargetX, effectiveTargetY); + } + } + int[] best = path.get(0); + for (int[] step : path) { + if (distanceTo(step[0], step[1]) <= 14) { + best = step; + } else { + break; + } + } + boolean sameGoal = best[0] == committedGoalX && best[1] == committedGoalY + && (px != committedLastPlayerX || py != committedLastPlayerY); + committedGoalX = best[0]; + committedGoalY = best[1]; + committedTargetX = targetWorldX; + committedTargetY = targetWorldY; + committedGoalTimeMs = now; + committedLastPlayerX = px; + committedLastPlayerY = py; + if (sameGoal && isPlayerMoving()) { + return true; + } + return walkTo(best[0], best[1]); + } + + if (openDoors && (now - lastAutoDoorTime) > 2500) { + if (openNearestClosedDoor(dist <= 25 ? 12 : 6)) { + return true; + } + } + return walkTo(effectiveTargetX, effectiveTargetY); + } + + public boolean climb(String action) { + if (!isLoggedIn() || action == null || action.isEmpty()) return false; + SceneObjectWrapper obj = objects(15) + .hasAction(action) + .reachable() + .nearest(); + return obj != null && interactObject(obj, action); + } + + public boolean climbUp() { + return climb("Climb-up"); + } + + public boolean climbDown() { + return climb("Climb-down"); + } + + public boolean navigateToPlane(int targetPlane) { + if (!isLoggedIn()) return false; + int cur = getPlane(); + if (cur < targetPlane) return climbUp(); + if (cur > targetPlane) return climbDown(); + return false; + } +} diff --git a/2006Scape Client/src/main/java/PluginGraphics.java b/2006Scape Client/src/main/java/PluginGraphics.java new file mode 100644 index 00000000..d6417509 --- /dev/null +++ b/2006Scape Client/src/main/java/PluginGraphics.java @@ -0,0 +1,253 @@ +/** + * 2D & 3D projected overlay rendering utilities for plugins and scripts. + * Renders directly into the current DrawingArea buffer. + */ +public class PluginGraphics { + + private final Game game; + + public PluginGraphics(Game game) { + this.game = game; + } + + public int getViewportWidth() { + return DrawingArea.width; + } + + public int getViewportHeight() { + return DrawingArea.height; + } + + public void fillRect(int x, int y, int w, int h, int rgb, int alpha) { + if (alpha >= 255) { + DrawingArea.fillArea(h, y, rgb, w, x); + } else if (alpha > 0) { + DrawingArea.fillArea(rgb, y, w, h, alpha, x); + } + } + + public void drawRect(int x, int y, int w, int h, int rgb) { + DrawingArea.fillPixels(y, h, rgb, x, w); + } + + public void drawHorizontalLine(int x, int y, int length, int rgb) { + DrawingArea.drawHorizontalLine(y, rgb, length, x); + } + + public void drawVerticalLine(int x, int y, int length, int rgb) { + DrawingArea.drawVerticalLine(y, rgb, length, x); + } + + /** + * Draws a RuneLite-style RS translucent panel with border and optional header. + */ + public void drawPanel(int x, int y, int w, int h, String title) { + // Dark translucent background + fillRect(x, y, w, h, 0x121212, 190); + // Outer dark stone border + drawRect(x, y, w, h, 0x5a5243); + drawRect(x + 1, y + 1, w - 2, h - 2, 0x2b271f); + + if (title != null && !title.isEmpty()) { + fillRect(x + 2, y + 2, w - 4, 18, 0x2b271f, 220); + drawHorizontalLine(x + 1, y + 20, w - 2, 0x5a5243); + if (game.aTextDrawingArea_1271 != null) { + game.aTextDrawingArea_1271.textLeft(RSColors.WHITE_DARKER, title, y + 15, x + 6); + } + } + } + + public void drawString(String text, int x, int y, int rgb, boolean shadow) { + if (text == null || text.isEmpty() || game == null) return; + TextDrawingArea font = game.aTextDrawingArea_1270 != null ? game.aTextDrawingArea_1270 : game.aTextDrawingArea_1271; + if (font != null) { + if (shadow) { + font.textLeftShadow(true, x, rgb, text, y); + } else { + font.textLeft(rgb, text, y, x); + } + } + } + + public void drawStringBold(String text, int x, int y, int rgb, boolean shadow) { + if (text == null || text.isEmpty() || game == null) return; + TextDrawingArea font = game.aTextDrawingArea_1271 != null ? game.aTextDrawingArea_1271 : game.aTextDrawingArea_1270; + if (font != null) { + if (shadow) { + font.textLeftShadow(true, x, rgb, text, y); + } else { + font.textLeft(rgb, text, y, x); + } + } + } + + public void drawCenteredString(String text, int x, int y, int rgb) { + drawCenteredString(text, x, y, rgb, 255); + } + + public void drawCenteredString(String text, int x, int y, int rgb, int alpha) { + if (text == null || text.isEmpty() || game == null || alpha <= 0) return; + TextDrawingArea font = game.aTextDrawingArea_1270 != null ? game.aTextDrawingArea_1270 : game.aTextDrawingArea_1271; + if (font != null) { + if (alpha >= 255) { + font.textCenter(rgb, text, y, x); + } else { + font.textCenterAlpha(rgb, text, y, x, alpha, false); + } + } + } + + public void drawRightString(String text, int rightX, int y, int rgb) { + if (text == null || text.isEmpty() || game == null) return; + TextDrawingArea font = game.aTextDrawingArea_1270 != null ? game.aTextDrawingArea_1270 : game.aTextDrawingArea_1271; + if (font != null) { + font.textRight(rgb, text, y, rightX); + } + } + + public int getTextWidth(String text) { + if (text == null || text.isEmpty()) return 0; + if (game == null) return text.length() * 6; + TextDrawingArea font = game.aTextDrawingArea_1270 != null ? game.aTextDrawingArea_1270 : game.aTextDrawingArea_1271; + return font != null ? font.getTextWidth(text) : text.length() * 6; + } + + public int getTextWidthBold(String text) { + if (text == null || text.isEmpty()) return 0; + if (game == null) return text.length() * 7; + TextDrawingArea font = game.aTextDrawingArea_1271 != null ? game.aTextDrawingArea_1271 : game.aTextDrawingArea_1270; + return font != null ? font.getTextWidth(text) : text.length() * 7; + } + + public void drawStringTruncated(String text, int x, int y, int maxWidth, int rgb, boolean shadow) { + if (text == null || text.isEmpty() || maxWidth <= 0) return; + if (getTextWidth(text) <= maxWidth) { + drawString(text, x, y, rgb, shadow); + return; + } + String ellipsis = "..."; + int ellipsisW = getTextWidth(ellipsis); + if (maxWidth <= ellipsisW) return; + int targetW = maxWidth - ellipsisW; + + int len = text.length(); + while (len > 0 && getTextWidth(text.substring(0, len)) > targetW) { + len--; + } + if (len > 0) { + drawString(text.substring(0, len).trim() + ellipsis, x, y, rgb, shadow); + } + } + + public void drawStringBoldTruncated(String text, int x, int y, int maxWidth, int rgb, boolean shadow) { + if (text == null || text.isEmpty() || maxWidth <= 0) return; + if (getTextWidthBold(text) <= maxWidth) { + drawStringBold(text, x, y, rgb, shadow); + return; + } + String ellipsis = "..."; + int ellipsisW = getTextWidthBold(ellipsis); + if (maxWidth <= ellipsisW) return; + int targetW = maxWidth - ellipsisW; + + int len = text.length(); + while (len > 0 && getTextWidthBold(text.substring(0, len)) > targetW) { + len--; + } + if (len > 0) { + drawStringBold(text.substring(0, len).trim() + ellipsis, x, y, rgb, shadow); + } + } + + /** + * Projects world coordinate to screen (viewport) coordinate. + * @return int[] {screenX, screenY} or null if not on screen. + */ + public int[] worldToScreen(int worldX, int worldY, int heightOffset) { + int localX = worldX - game.baseX; + int localY = worldY - game.baseY; + if (localX < 0 || localX >= 104 || localY < 0 || localY >= 104) { + return null; + } + int sceneX = localX * 128 + 64; + int sceneY = localY * 128 + 64; + game.calcEntityScreenPos(sceneX, heightOffset, sceneY); + if (game.spriteDrawX < 0 || game.spriteDrawY < 0) { + return null; + } + return new int[]{game.spriteDrawX, game.spriteDrawY}; + } + + /** + * Draws a tile highlight marker and label in the 3D world. + */ + public void drawTileOverlay(int worldX, int worldY, int rgb, String label) { + int[] center = worldToScreen(worldX, worldY, 0); + if (center == null) return; + + // Draw cross/diamond at tile center + int cx = center[0]; + int cy = center[1]; + drawHorizontalLine(cx - 5, cy, 11, rgb); + drawVerticalLine(cx, cy - 5, 11, rgb); + + if (label != null && !label.isEmpty()) { + int w = getTextWidth(label); + fillRect(cx - (w / 2) - 3, cy - 16, w + 6, 12, 0x000000, 160); + drawCenteredString(label, cx, cy - 7, rgb); + } + } + + /** + * Draws a vertical radiant lootbeam rising from the ground tile into the sky. + */ + public void drawLootbeam(int worldX, int worldY, int rgb) { + int[] ground = worldToScreen(worldX, worldY, 0); + int[] sky = worldToScreen(worldX, worldY, 160); + if (ground == null || sky == null) return; + + int gx = ground[0]; + int gy = ground[1]; + int sy = sky[1]; + if (gy <= sy) return; + + int height = gy - sy; + // Outer radiant glow + fillRect(gx - 2, sy, 5, height, rgb, 90); + // Inner intense beam + fillRect(gx - 1, sy, 3, height, rgb, 180); + fillRect(gx, sy, 1, height, 0xffffff, 240); + + // Ground target highlight + drawHorizontalLine(gx - 6, gy, 13, rgb); + drawVerticalLine(gx, gy - 6, 13, rgb); + drawHorizontalLine(gx - 3, gy + 1, 7, rgb); + } + + /** + * Renders a list of world {x, y} path tiles as step markers on screen. + */ + public void drawPathOverlay(java.util.List path, int rgb) { + if (path == null || path.isEmpty()) return; + for (int i = 0; i < path.size(); i++) { + int[] tile = path.get(i); + if (tile == null || tile.length < 2) continue; + String label = (i == path.size() - 1) ? "Goal" : null; + drawTileOverlay(tile[0], tile[1], rgb, label); + } + } + + /** + * Renders the four corners and center label of a WorldArea in the 3D viewport. + */ + public void drawAreaOverlay(PluginContext.WorldArea area, int rgb, String label) { + if (area == null) return; + drawTileOverlay(area.minX, area.minY, rgb, null); + drawTileOverlay(area.maxX, area.minY, rgb, null); + drawTileOverlay(area.minX, area.maxY, rgb, null); + drawTileOverlay(area.maxX, area.maxY, rgb, null); + if (label != null && !label.isEmpty()) { + drawTileOverlay(area.centerX(), area.centerY(), rgb, label); + } + } +} diff --git a/2006Scape Client/src/main/java/PluginManager.java b/2006Scape Client/src/main/java/PluginManager.java new file mode 100644 index 00000000..0eeb83b3 --- /dev/null +++ b/2006Scape Client/src/main/java/PluginManager.java @@ -0,0 +1,834 @@ +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.*; + +/** + * Central singleton coordinator for plugins, scripts, configuration, and event dispatch. + */ +public class PluginManager { + + private static volatile PluginManager instance; + public static final String API_VERSION = "1.0.0"; + + private final Game game; + private final PluginContext context; + private final PluginGraphics graphics; + private final File pluginBaseDir; + private final Properties configProps = new Properties(); + private final File configFile; + + private final List plugins = new ArrayList<>(); + private final List scripts = new ArrayList<>(); + private final List lastLoadErrors = new ArrayList<>(); + private ClientScript activeScript = null; + private final int[] lastSkillXp = new int[25]; + private int lastPlayerAnim = Integer.MIN_VALUE; + private boolean wasLoggedIn = false; + private boolean deathNotified = false; + + private PluginManager(Game game) { + this.game = game; + this.context = new PluginContext(game); + this.graphics = new PluginGraphics(game); + Arrays.fill(lastSkillXp, -1); + + String cacheDir = Signlink.findcachedir(); + this.pluginBaseDir = new File(cacheDir); + this.configFile = new File(cacheDir, "plugin_settings.properties"); + + loadConfig(); + registerBuiltIns(); + loadExternal(); + } + + public static synchronized PluginManager init(Game game) { + if (instance == null) { + instance = new PluginManager(game); + } + return instance; + } + + public static PluginManager get() { + return instance; + } + + public PluginContext getContext() { + return context; + } + + public PluginGraphics getGraphics() { + return graphics; + } + + public List getPlugins() { + return Collections.unmodifiableList(plugins); + } + + public static boolean isScriptsAvailable() { + return ClientSettings.SERVER_WORLD == 1; + } + + public List getScripts() { + if (!isScriptsAvailable()) { + return Collections.emptyList(); + } + return Collections.unmodifiableList(scripts); + } + + public List getAllRegisteredScripts() { + return Collections.unmodifiableList(scripts); + } + + public ClientScript getActiveScript() { + return activeScript; + } + + // ========================================================================= + // Registration & Loading + // ========================================================================= + + private void registerBuiltIns() { + registerPlugin(new MenuEntrySwapperPlugin()); + registerPlugin(new GroundItemsOverlayPlugin()); + registerPlugin(new Hd317Plugin()); + } + + public synchronized void syncPluginEnabledState(String pluginName, boolean enabled) { + for (ClientPlugin p : plugins) { + if (p.getName().equalsIgnoreCase(pluginName)) { + p.setEnabled(enabled); + String key = "plugin." + p.getName().replace(' ', '_') + ".enabled"; + configProps.setProperty(key, String.valueOf(enabled)); + saveConfig(); + break; + } + } + } + + public static boolean isApiCompatible(String minApiVersion) { + return SemVer.parse(API_VERSION).compareTo(SemVer.parse(minApiVersion)) >= 0; + } + + public synchronized void registerPlugin(ClientPlugin plugin) { + if (plugin == null) return; + if (!isApiCompatible(plugin.getMinApiVersion())) { + String err = plugin.getName() + ": requires API >= " + plugin.getMinApiVersion() + " (current " + API_VERSION + ")"; + lastLoadErrors.add(err); + System.err.println("Skipping plugin " + err); + return; + } + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin existing = plugins.get(i); + if (existing.getName().equalsIgnoreCase(plugin.getName())) { + if (plugin.getSemVer().isNewerThan(existing.getSemVer())) { + if (existing.isEnabled()) { + try { existing.onStop(); } catch (Throwable ignored) {} + existing.setEnabled(false); + } + plugins.set(i, plugin); + break; + } + return; // Existing version is same or newer + } + } + if (!plugins.contains(plugin)) { + plugins.add(plugin); + } + + // Load saved enabled state or default + String key = "plugin." + plugin.getName().replace(' ', '_') + ".enabled"; + boolean enabled = Boolean.parseBoolean(configProps.getProperty(key, String.valueOf(plugin.isEnabledByDefault()))); + plugin.setEnabled(enabled); + + // Load saved config items + for (PluginConfigItem item : plugin.getConfigItems()) { + String propKey = "config." + plugin.getName().replace(' ', '_') + "." + item.getKey(); + if (configProps.containsKey(propKey)) { + String valStr = configProps.getProperty(propKey); + applyConfigValue(plugin, item, valStr); + } + } + + if (enabled) { + try { + plugin.onStart(context); + } catch (Throwable t) { + System.err.println("Error starting plugin " + plugin.getName() + ": " + t.getMessage()); + } + } + } + + public synchronized void registerScript(ClientScript script) { + if (script == null) return; + if (!isApiCompatible(script.getMinApiVersion())) { + String err = script.getName() + ": requires API >= " + script.getMinApiVersion() + " (current " + API_VERSION + ")"; + lastLoadErrors.add(err); + System.err.println("Skipping script " + err); + return; + } + for (int i = 0; i < scripts.size(); i++) { + ClientScript existing = scripts.get(i); + if (existing.getName().equalsIgnoreCase(script.getName())) { + if (script.getSemVer().isNewerThan(existing.getSemVer())) { + if (activeScript == existing) { + stopScript(existing); + } + scripts.set(i, script); + break; + } + return; + } + } + if (!scripts.contains(script)) { + scripts.add(script); + } + + // Load saved config items for script + for (PluginConfigItem item : script.getConfigItems()) { + String propKey = "config." + script.getName().replace(' ', '_') + "." + item.getKey(); + if (configProps.containsKey(propKey)) { + String valStr = configProps.getProperty(propKey); + applyScriptConfigValue(script, item, valStr); + } + } + } + + public synchronized List getLastLoadErrors() { + return Collections.unmodifiableList(new ArrayList<>(lastLoadErrors)); + } + + public File getPluginBaseDir() { + return pluginBaseDir; + } + + public synchronized void loadExternal() { + lastLoadErrors.clear(); + try { + ExternalPluginLoader.LoadedContainer container = ExternalPluginLoader.loadExternal(pluginBaseDir); + lastLoadErrors.addAll(container.errors); + for (ClientPlugin p : container.plugins) { + registerPlugin(p); + } + for (ClientScript s : container.scripts) { + registerScript(s); + } + } catch (Throwable t) { + lastLoadErrors.add(t.getMessage() != null ? t.getMessage() : t.getClass().getSimpleName()); + System.err.println("Error loading external plugins: " + t.getMessage()); + t.printStackTrace(); + } + } + + public synchronized void reloadExternal() { + // Stop active external scripts/plugins first + if (activeScript != null) { + stopScript(activeScript); + } + + Iterator pIter = plugins.iterator(); + while (pIter.hasNext()) { + ClientPlugin p = pIter.next(); + if (p instanceof ScriptInterpreter.InterpretedPlugin) { + if (p.isEnabled()) { + try { p.onStop(); } catch (Throwable ignored) {} + } + pIter.remove(); + } + } + + Iterator sIter = scripts.iterator(); + while (sIter.hasNext()) { + ClientScript s = sIter.next(); + if (s instanceof ScriptInterpreter.InterpretedScript) { + sIter.remove(); + } + } + + loadExternal(); + if (context != null) { + if (lastLoadErrors.isEmpty()) { + context.sendClientMessage("External plugins and scripts reloaded successfully."); + } else { + context.sendClientMessage("Reload finished with " + lastLoadErrors.size() + " error(s): " + lastLoadErrors.get(0)); + } + } + } + + // ========================================================================= + // Control & Toggling + // ========================================================================= + + public synchronized void togglePlugin(ClientPlugin plugin) { + if (plugin == null) return; + boolean newState = !plugin.isEnabled(); + plugin.setEnabled(newState); + + String key = "plugin." + plugin.getName().replace(' ', '_') + ".enabled"; + configProps.setProperty(key, String.valueOf(newState)); + saveConfig(); + + try { + if (newState) { + plugin.onStart(context); + context.sendClientMessage(plugin.getName() + " enabled."); + } else { + plugin.onStop(); + context.sendClientMessage(plugin.getName() + " disabled."); + } + } catch (Throwable t) { + System.err.println("Error toggling plugin " + plugin.getName() + ": " + t.getMessage()); + t.printStackTrace(); + } + } + + public synchronized void startScript(ClientScript script) { + if (script == null) return; + if (!isScriptsAvailable()) { + if (context != null) { + context.sendClientMessage("Automation scripts are only available on World 1."); + } + return; + } + if (activeScript != null && activeScript != script) { + stopScript(activeScript); + } + activeScript = script; + script.start(context); + } + + public synchronized void stopScript(ClientScript script) { + if (script == null) return; + script.stop(); + if (activeScript == script) { + activeScript = null; + } + } + + public synchronized void stopAllScripts() { + if (activeScript != null) { + stopScript(activeScript); + } + for (ClientScript s : scripts) { + if (s.isRunning()) { + s.stop(); + } + } + } + + public synchronized void onLogout() { + if (wasLoggedIn) { + wasLoggedIn = false; + notifyDisconnect(); + } + stopAllScripts(); + for (ClientPlugin p : plugins) { + if (p.isEnabled()) { + try { + p.onLogout(); + } catch (Throwable t) { + System.err.println("Plugin " + p.getName() + " onLogout error: " + t.getMessage()); + } + } + } + } + + public synchronized void pauseResumeScript(ClientScript script) { + if (script == null) return; + if (script.isPaused()) { + script.resume(); + } else { + script.pause(); + } + } + + // ========================================================================= + // Configuration Persistence + // ========================================================================= + + private void loadConfig() { + String webCfg = DesktopHooks.loadPluginConfig(); + if (webCfg != null) { + parseConfigLines(webCfg); + return; + } + if (!configFile.exists()) return; + try (FileInputStream fis = new FileInputStream(configFile); + java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(fis, java.nio.charset.StandardCharsets.UTF_8))) { + StringBuilder sb = new StringBuilder(); + String line; + while ((line = reader.readLine()) != null) { + sb.append(line).append('\n'); + } + parseConfigLines(sb.toString()); + } catch (IOException e) { + System.err.println("Failed to load plugin config: " + e.getMessage()); + } + } + + private void parseConfigLines(String text) { + if (text == null || text.isEmpty()) return; + for (String line : text.split("\r?\n")) { + if (line.isEmpty() || line.charAt(0) == '#' || line.charAt(0) == '!') continue; + int eq = line.indexOf('='); + if (eq > 0) { + String k = line.substring(0, eq).trim(); + String v = line.substring(eq + 1).replace("\\=", "=").replace("\\n", "\n").replace("\\r", "\r").replace("\\\\", "\\"); + configProps.setProperty(k, v); + } + } + } + + public synchronized void saveConfig() { + StringBuilder sb = new StringBuilder(); + sb.append("#2006Scape Plugin System Configuration\n"); + for (String k : configProps.stringPropertyNames()) { + String v = configProps.getProperty(k, "").replace("\\", "\\\\").replace("\r", "\\r").replace("\n", "\\n"); + sb.append(k).append('=').append(v).append('\n'); + } + String serialized = sb.toString(); + if (DesktopHooks.savePluginConfig(serialized)) { + return; + } + File parent = configFile.getParentFile(); + if (parent != null && !parent.exists()) { + parent.mkdirs(); + } + try (FileOutputStream fos = new FileOutputStream(configFile); + java.io.OutputStreamWriter writer = new java.io.OutputStreamWriter(fos, java.nio.charset.StandardCharsets.UTF_8)) { + writer.write(serialized); + } catch (IOException e) { + System.err.println("Failed to save plugin config: " + e.getMessage()); + } + } + + public synchronized void setPluginConfig(ClientPlugin plugin, String key, Object value) { + String propKey = "config." + plugin.getName().replace(' ', '_') + "." + key; + configProps.setProperty(propKey, String.valueOf(value)); + plugin.onConfigChanged(key, value); + saveConfig(); + } + + public synchronized void setScriptConfig(ClientScript script, String key, Object value) { + String propKey = "config." + script.getName().replace(' ', '_') + "." + key; + configProps.setProperty(propKey, String.valueOf(value)); + script.onConfigChanged(key, value); + saveConfig(); + } + + public synchronized Object getConfigValue(Object target, PluginConfigItem item) { + if (target == null || item == null) return null; + String name = (target instanceof ClientPlugin) ? ((ClientPlugin) target).getName() + : (target instanceof ClientScript) ? ((ClientScript) target).getName() : ""; + String propKey = "config." + name.replace(' ', '_') + "." + item.getKey(); + if (configProps.containsKey(propKey)) { + String valStr = configProps.getProperty(propKey); + try { + switch (item.getType()) { + case BOOLEAN: + return Boolean.parseBoolean(valStr); + case INTEGER: + return Integer.parseInt(valStr); + case STRING: + case CHOICE: + return valStr; + } + } catch (Throwable ignored) {} + } + return item.getDefaultValue(); + } + + public synchronized boolean isChatCommandsEnabled(Object target) { + if (target == null) return false; + String name = (target instanceof ClientPlugin) ? ((ClientPlugin) target).getName() + : (target instanceof ClientScript) ? ((ClientScript) target).getName() : ""; + if (name.isEmpty()) return true; + String propKey = "config." + name.replace(' ', '_') + ".chatCommands"; + return Boolean.parseBoolean(configProps.getProperty(propKey, "true")); + } + + public synchronized boolean getConfigBoolean(Object target, PluginConfigItem item) { + Object val = getConfigValue(target, item); + if (val instanceof Boolean) return (Boolean) val; + return Boolean.parseBoolean(String.valueOf(val)); + } + + public synchronized int getConfigInt(Object target, PluginConfigItem item) { + Object val = getConfigValue(target, item); + if (val instanceof Number) return ((Number) val).intValue(); + try { + return Integer.parseInt(String.valueOf(val)); + } catch (Throwable ignored) { + return item.getMinValue(); + } + } + + public synchronized void setConfigValue(Object target, PluginConfigItem item, Object value) { + if (target instanceof ClientPlugin) { + setPluginConfig((ClientPlugin) target, item.getKey(), value); + } else if (target instanceof ClientScript) { + setScriptConfig((ClientScript) target, item.getKey(), value); + } + } + + private void applyConfigValue(ClientPlugin plugin, PluginConfigItem item, String valStr) { + try { + switch (item.getType()) { + case BOOLEAN: + plugin.onConfigChanged(item.getKey(), Boolean.parseBoolean(valStr)); + break; + case INTEGER: + plugin.onConfigChanged(item.getKey(), Integer.parseInt(valStr)); + break; + case STRING: + case CHOICE: + plugin.onConfigChanged(item.getKey(), valStr); + break; + } + } catch (Throwable ignored) {} + } + + private void applyScriptConfigValue(ClientScript script, PluginConfigItem item, String valStr) { + try { + switch (item.getType()) { + case BOOLEAN: + script.onConfigChanged(item.getKey(), Boolean.parseBoolean(valStr)); + break; + case INTEGER: + script.onConfigChanged(item.getKey(), Integer.parseInt(valStr)); + break; + case STRING: + case CHOICE: + script.onConfigChanged(item.getKey(), valStr); + break; + } + } catch (Throwable ignored) {} + } + + // ========================================================================= + // Event Dispatch Hooks + // ========================================================================= + + public void resetEventTracking() { + Arrays.fill(lastSkillXp, -1); + lastPlayerAnim = Integer.MIN_VALUE; + deathNotified = false; + } + + private void notifyLogin() { + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { p.onLogin(); } catch (Throwable ignored) {} + } + } + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { activeScript.onLogin(); } catch (Throwable ignored) {} + } + } + + private void notifyDisconnect() { + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { p.onDisconnect(); } catch (Throwable ignored) {} + } + } + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { activeScript.onDisconnect(); } catch (Throwable ignored) {} + } + } + + private void notifyPlayerDeath() { + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { p.onPlayerDeath(); } catch (Throwable ignored) {} + } + } + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { activeScript.onPlayerDeath(); } catch (Throwable ignored) {} + } + } + + public void onGameTick() { + if (!context.isLoggedIn()) { + if (wasLoggedIn) { + wasLoggedIn = false; + notifyDisconnect(); + } + resetEventTracking(); + if (activeScript != null) { + stopAllScripts(); + } + return; + } + + if (!wasLoggedIn) { + wasLoggedIn = true; + notifyLogin(); + } + + if (game.myPlayer != null && game.myPlayer.maxHealth > 0) { + if (game.myPlayer.currentHealth == 0) { + if (!deathNotified) { + deathNotified = true; + notifyPlayerDeath(); + } + } else { + deathNotified = false; + } + } + + int currentAnim = context.getPlayerAnim(); + if (lastPlayerAnim == Integer.MIN_VALUE) { + lastPlayerAnim = currentAnim; + } else if (currentAnim != lastPlayerAnim) { + lastPlayerAnim = currentAnim; + onAnimationChanged(currentAnim); + } + + // Process plugins + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + p.onGameTick(); + } catch (Throwable t) { + System.err.println("Plugin " + p.getName() + " tick error: " + t.getMessage()); + } + } + } + + // Process active script + if (isScriptsAvailable()) { + if (activeScript != null && activeScript.isRunning()) { + activeScript.processTick(); + } + } else if (activeScript != null) { + stopAllScripts(); + } + } + + public void onPostBuildMenu() { + if (game.menuActionRow <= 0) return; + + List entries = context.getMenuEntries(); + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + p.onPreMenuRender(entries); + } catch (Throwable t) { + System.err.println("Plugin " + p.getName() + " menu error: " + t.getMessage()); + } + } + } + context.setMenuEntries(entries); + } + + public boolean onMenuAction(int row) { + if (row < 0 || row >= game.menuActionRow) return true; + MenuEntry entry = new MenuEntry( + game.menuActionName[row], + game.menuActionID[row], + game.menuActionCmd1[row], + game.menuActionCmd2[row], + game.menuActionCmd3[row] + ); + + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + if (!p.onMenuAction(entry)) { + return false; + } + } catch (Throwable t) { + System.err.println("Plugin " + p.getName() + " action error: " + t.getMessage()); + } + } + } + return true; + } + + public void onChatMessage(int type, String sender, String message) { + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + p.onChatMessage(type, sender, message); + } catch (Throwable ignored) {} + } + } + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { + activeScript.onChatMessage(type, sender, message); + } catch (Throwable ignored) {} + } + if (message != null && message.toLowerCase().contains("oh dear, you are dead") && !deathNotified) { + deathNotified = true; + notifyPlayerDeath(); + } + } + + public void onGroundItemSpawn(int itemId, int amount, int worldX, int worldY, int plane) { + int baseX = context.isLoggedIn() ? context.getBaseX() : 0; + int baseY = context.isLoggedIn() ? context.getBaseY() : 0; + int px = context.isLoggedIn() ? context.getPlayerX() : worldX; + int py = context.isLoggedIn() ? context.getPlayerY() : worldY; + PluginContext.GroundItemWrapper wrapper = new PluginContext.GroundItemWrapper( + itemId, amount, worldX, worldY, plane, baseX, baseY, px, py + ); + + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + p.onGroundItemSpawn(itemId, amount, worldX, worldY, plane); + p.onGroundItemSpawned(wrapper); + } catch (Throwable ignored) {} + } + } + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { + activeScript.onGroundItemSpawned(wrapper); + } catch (Throwable ignored) {} + } + } + + public void onSkillUpdate(int skillId, int experience, int level) { + if (skillId < 0 || skillId >= lastSkillXp.length) return; + if (lastSkillXp[skillId] == -1) { + lastSkillXp[skillId] = experience; + return; + } + int deltaXp = experience - lastSkillXp[skillId]; + lastSkillXp[skillId] = experience; + if (deltaXp <= 0) return; + + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + p.onXpGained(skillId, deltaXp); + } catch (Throwable ignored) {} + } + } + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { + activeScript.onXpGained(skillId, deltaXp); + } catch (Throwable ignored) {} + } + } + + public void onAnimationChanged(int animId) { + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + p.onAnimationChanged(animId); + } catch (Throwable ignored) {} + } + } + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { + activeScript.onAnimationChanged(animId); + } catch (Throwable ignored) {} + } + } + + public void onRenderOverlays() { + if (!context.isLoggedIn()) return; + + for (int i = 0; i < plugins.size(); i++) { + ClientPlugin p = plugins.get(i); + if (p.isEnabled()) { + try { + p.onRenderOverlay(graphics); + } catch (Throwable t) { + System.err.println("Plugin " + p.getName() + " overlay error: " + t.getMessage()); + } + } + } + + if (isScriptsAvailable() && activeScript != null && activeScript.isRunning()) { + try { + activeScript.onRenderOverlay(graphics); + } catch (Throwable t) { + System.err.println("Script " + activeScript.getName() + " overlay error: " + t.getMessage()); + } + } + } + + public boolean onCommand(String input) { + if (input == null || !input.startsWith("::")) return false; + String clean = input.substring(2).trim(); + String[] parts = clean.split("\\s+"); + if (parts.length == 0 || parts[0].isEmpty()) return false; + + String cmd = parts[0].toLowerCase(); + String[] args = new String[parts.length - 1]; + System.arraycopy(parts, 1, args, 0, args.length); + + if ("plugins".equalsIgnoreCase(cmd) || "scripts".equalsIgnoreCase(cmd) || "pluginhub".equalsIgnoreCase(cmd)) { + if ("scripts".equalsIgnoreCase(cmd) && !isScriptsAvailable()) { + if (context != null) { + context.sendClientMessage("Automation scripts are only available on World 1."); + } + PluginPanelUI.openModal(0); + return true; + } + PluginPanelUI.openModal("scripts".equalsIgnoreCase(cmd) ? 1 : 0); + return true; + } + + if ("reloadplugins".equalsIgnoreCase(cmd) || "reloadscripts".equalsIgnoreCase(cmd)) { + reloadExternal(); + return true; + } + + if ("files".equalsIgnoreCase(cmd) || "scriptsdir".equalsIgnoreCase(cmd) || "openfiles".equalsIgnoreCase(cmd)) { + AndroidHooks.openScriptsFolder(); + if (context != null) { + context.sendClientMessage(isScriptsAvailable() ? "Opened external plugins and scripts storage." : "Opened external plugins storage."); + } + return true; + } + + // Script-defined :: commands (toggleable per script via chatCommands config) + for (ClientScript s : scripts) { + List cmds = s.getCommandNames(); + if (cmds == null || cmds.isEmpty()) continue; + for (String c : cmds) { + if (cmd.equalsIgnoreCase(c)) { + if (!isChatCommandsEnabled(s)) { + return false; + } + if (!isScriptsAvailable()) { + if (context != null) { + context.sendClientMessage("Automation scripts are only available on World 1."); + } + return true; + } + if (s.isRunning()) { + stopScript(s); + } else { + startScript(s); + } + return true; + } + } + } + + // Pass to plugins + for (ClientPlugin p : plugins) { + if ((p.isEnabled() || p.handlesCommandsWhenDisabled()) && isChatCommandsEnabled(p) && p.onCommand(cmd, args)) { + return true; + } + } + + return false; + } +} diff --git a/2006Scape Client/src/main/java/PluginPanelUI.java b/2006Scape Client/src/main/java/PluginPanelUI.java new file mode 100644 index 00000000..8f98b1d4 --- /dev/null +++ b/2006Scape Client/src/main/java/PluginPanelUI.java @@ -0,0 +1,1837 @@ +import java.util.List; + +/** + * In-game Canvas UI for Tab 7 and the 3D Viewport Interactive Modal. + * Styled authentically after native RuneScape 2006 (Revision 377) stone interfaces, + * with beveled stone borders, dark parchment/stone background (0x2a251e), gold headers, + * authentic red stone close button, seamless segmented button groups, and native RS scrollbar. + * Works identically across Desktop (Fixed & Modern) and Android (Fixed & Modern). + */ +public class PluginPanelUI { + + private static boolean modalOpen = false; + private static int currentModalTab = 0; // 0: Plugins, 1: Scripts, 2: Online Repo, 3: Config Page + private static int currentRepoSubTab = 0; // 0: Plugins, 1: Scripts + private static int configReturnTab = 0; + private static Object configTarget = null; // ClientPlugin or ClientScript currently being configured + private static int scrollOffset = 0; + private static String searchQuery = ""; + private static boolean searchFocused = false; + private static String openDropdownKey = null; + private static int dropdownScrollOffset = 0; + private static boolean isDraggingDropdown = false; + private static final int DROPDOWN_WIDTH = 172; + private static final int DROPDOWN_ROW_H = 22; + private static final int DROPDOWN_MAX_VISIBLE = 6; + + private static boolean isDragging = false; + private static boolean isDraggingScrollBar = false; + private static int lastDragY = -1; + private static int dragStartY = -1; + private static boolean wasDrag = false; + + // Modal Dimensions - fits cleanly within standard 512x334 interface rectangle like the Bank interface + public static final int MODAL_WIDTH = 488; + public static final int MODAL_HEIGHT = 308; + + public static boolean isModalOpen() { + return modalOpen; + } + + public static boolean isSearchFocused() { + return modalOpen && searchFocused && (currentModalTab == 0 || currentModalTab == 1 || currentModalTab == 2); + } + + public static void handleKeyChar(int ch) { + if (!isSearchFocused()) { + return; + } + if (ch == 8) { + if (!searchQuery.isEmpty()) { + searchQuery = searchQuery.substring(0, searchQuery.length() - 1); + scrollOffset = 0; + } + } else if (ch == 10 || ch == 13 || ch == 27) { + searchFocused = false; + } else if (ch >= 32 && ch <= 126 && searchQuery.length() < 40) { + searchQuery += (char) ch; + scrollOffset = 0; + } + } + + public static void openModal(int tab) { + modalOpen = true; + searchFocused = false; + currentModalTab = (!PluginManager.isScriptsAvailable() && tab == 1) ? 0 : tab; + if (currentModalTab == 2) { + PluginRepoClient.ensureLoaded(); + } + scrollOffset = 0; + isDragging = false; + isDraggingScrollBar = false; + lastDragY = -1; + dragStartY = -1; + wasDrag = false; + PluginManager pm = PluginManager.get(); + if (pm != null && pm.getContext() != null) { + Game game = pm.getContext().getGame(); + if (game != null && game.openInterfaceID != -1) { + game.closeOpenInterfaces(); + } + } + } + + public static void closeModal() { + modalOpen = false; + searchFocused = false; + configTarget = null; + scrollOffset = 0; + openDropdownKey = null; + dropdownScrollOffset = 0; + isDragging = false; + isDraggingScrollBar = false; + isDraggingDropdown = false; + lastDragY = -1; + dragStartY = -1; + wasDrag = false; + } + + public static int getScrollOffset() { + return scrollOffset; + } + + public static void setScrollOffset(int offset) { + scrollOffset = offset; + } + + public static int getCurrentModalTab() { + return currentModalTab; + } + + public static void setCurrentModalTab(int tab) { + currentModalTab = tab; + } + + public static Object getConfigTarget() { + return configTarget; + } + + public static void setConfigTarget(Object target) { + configTarget = target; + } + + public static int getModalAreaWidth() { + if (ClientSettings.ANDROID || !ClientSettings.isDesktopModern()) { + return 512; + } + return DrawingArea.width > 0 ? DrawingArea.width : ClientSettings.VIEWPORT_WIDTH; + } + + public static int getModalAreaHeight() { + if (ClientSettings.ANDROID || !ClientSettings.isDesktopModern()) { + return 334; + } + return DrawingArea.height > 0 ? DrawingArea.height : ClientSettings.VIEWPORT_HEIGHT; + } + + public static int toLocalX(int x) { + if (ClientSettings.ANDROID || !ClientSettings.isDesktopModern()) { + return x - 4; + } + return x; + } + + public static int toLocalY(int y) { + if (ClientSettings.ANDROID || !ClientSettings.isDesktopModern()) { + return y - 4; + } + return y; + } + + public static int getContentAreaY() { + int vh = getModalAreaHeight(); + int my = Math.max(0, (vh - MODAL_HEIGHT) / 2); + return my + 28 + 26; + } + + public static int getContentAreaHeight() { + int vh = getModalAreaHeight(); + int my = Math.max(0, (vh - MODAL_HEIGHT) / 2); + int contentY = getContentAreaY(); + int footerY = my + MODAL_HEIGHT - 32; + return footerY - contentY - 4; + } + + public static void handleMouseWheel(int notches) { + if (!modalOpen) return; + PluginManager pm = PluginManager.get(); + if (pm == null) return; + if (currentModalTab == 3 && openDropdownKey != null) { + int maxDropScroll = getOpenDropdownMaxScroll(pm); + if (maxDropScroll > 0) { + dropdownScrollOffset += notches * DROPDOWN_ROW_H; + if (dropdownScrollOffset < 0) dropdownScrollOffset = 0; + if (dropdownScrollOffset > maxDropScroll) dropdownScrollOffset = maxDropScroll; + return; + } + } + scrollOffset += notches * 30; + clampScroll(pm); + } + + private static int[] getOpenDropdownBounds(PluginManager pm) { + if (openDropdownKey == null || configTarget == null || currentModalTab != 3) return null; + List items = getVisibleConfigItems(pm, configTarget); + if (items == null) return null; + int vw = getModalAreaWidth(); + int vh = getModalAreaHeight(); + int mx = Math.max(0, (vw - MODAL_WIDTH) / 2); + int my = Math.max(0, (vh - MODAL_HEIGHT) / 2); + int wellX = mx + 12; + int wellW = MODAL_WIDTH - 24; + int contentY = getContentAreaY(); + int contentH = getContentAreaHeight(); + int headerH = getConfigHeaderHeight(); + int wellInnerX = wellX + 2; + int wellInnerW = wellW - 4 - 16; + + int rowY = contentY + headerH + 2 - scrollOffset; + for (int i = 0; i < items.size(); i++) { + PluginConfigItem item = items.get(i); + if (openDropdownKey.equals(item.getKey())) { + String[] choices = item.getChoices(); + if (choices == null || choices.length == 0) return null; + int visibleCount = Math.min(DROPDOWN_MAX_VISIBLE, choices.length); + int dropH = visibleCount * DROPDOWN_ROW_H + 2; + int dropX = wellInnerX + wellInnerW - DROPDOWN_WIDTH; + int dropY = rowY + 31; + if (dropY + dropH > contentY + contentH) { + dropY = Math.max(contentY + 2, rowY + 1 - dropH); + } + return new int[]{dropX, dropY, DROPDOWN_WIDTH, dropH, i, choices.length}; + } + rowY += 32; + } + return null; + } + + private static int getOpenDropdownMaxScroll(PluginManager pm) { + int[] b = getOpenDropdownBounds(pm); + if (b == null) return 0; + int totalH = b[5] * DROPDOWN_ROW_H + 2; + return Math.max(0, totalH - b[3]); + } + + private static boolean matchesSearch(String name, String desc, String author) { + if (searchQuery == null || searchQuery.isEmpty()) { + return true; + } + String q = searchQuery.toLowerCase(java.util.Locale.ROOT); + if (name != null && name.toLowerCase(java.util.Locale.ROOT).contains(q)) { + return true; + } + if (desc != null && desc.toLowerCase(java.util.Locale.ROOT).contains(q)) { + return true; + } + return author != null && author.toLowerCase(java.util.Locale.ROOT).contains(q); + } + + private static List getFilteredPlugins(PluginManager pm) { + List filtered = new java.util.ArrayList<>(); + if (pm == null || pm.getPlugins() == null) return filtered; + for (ClientPlugin p : pm.getPlugins()) { + if (matchesSearch(p.getName(), p.getDescription(), null)) { + filtered.add(p); + } + } + return filtered; + } + + private static List getFilteredScripts(PluginManager pm) { + List filtered = new java.util.ArrayList<>(); + if (pm == null || pm.getScripts() == null) return filtered; + for (ClientScript s : pm.getScripts()) { + if (matchesSearch(s.getName(), s.getDescription(), null)) { + filtered.add(s); + } + } + return filtered; + } + + public static int getContentHeight(PluginManager pm) { + int contentH = getContentAreaHeight(); + if (pm == null) return contentH; + if (currentModalTab == 0) { + return getFilteredPlugins(pm).size() * 38 + 34; + } else if (currentModalTab == 1) { + if (!PluginManager.isScriptsAvailable()) return contentH; + return getFilteredScripts(pm).size() * 38 + 34; + } else if (currentModalTab == 2) { + List entries = getFilteredRepoEntries(); + return entries.size() * 38 + 34; + } else if (currentModalTab == 3) { + if (configTarget == null) { + return contentH; + } + List items = getVisibleConfigItems(pm, configTarget); + if (items == null || items.isEmpty()) return contentH; + return (items.size() * 32) + getConfigHeaderHeight() + 4; + } + return contentH; + } + + public static List getVisibleConfigItems(PluginManager pm, Object target) { + List rawItems = (target instanceof ClientPlugin) ? ((ClientPlugin) target).getConfigItems() + : (target instanceof ClientScript) ? ((ClientScript) target).getConfigItems() : null; + if (rawItems == null || rawItems.isEmpty()) return rawItems; + List visible = new java.util.ArrayList<>(); + for (PluginConfigItem item : rawItems) { + String depKey = item.getVisibleWhen(); + if (depKey == null || depKey.isEmpty() || pm == null) { + visible.add(item); + continue; + } + PluginConfigItem dep = null; + for (PluginConfigItem candidate : rawItems) { + if (depKey.equals(candidate.getKey())) { + dep = candidate; + break; + } + } + if (dep == null || pm.getConfigBoolean(target, dep)) { + visible.add(item); + } + } + return visible; + } + + public static int getConfigHeaderHeight() { + if (configTarget != null) { + String desc = (configTarget instanceof ClientPlugin) ? ((ClientPlugin) configTarget).getDescription() + : (configTarget instanceof ClientScript) ? ((ClientScript) configTarget).getDescription() : null; + if (desc != null && !desc.isEmpty()) { + return 40; + } + } + return 24; + } + + public static int getMaxScroll(PluginManager pm) { + int contentH = getContentAreaHeight(); + if (currentModalTab == 2) { + int availH = contentH - 26; + int totalH = getContentHeight(pm); + return Math.max(0, totalH - availH); + } else if (currentModalTab == 3) { + int headerH = (configTarget != null) ? getConfigHeaderHeight() : 24; + int availH = contentH - headerH; + int totalH = getContentHeight(pm); + return Math.max(0, totalH - availH); + } else { + int totalH = getContentHeight(pm); + return Math.max(0, totalH - contentH); + } + } + + public static void clampScroll(PluginManager pm) { + int max = getMaxScroll(pm); + if (scrollOffset > max) { + scrollOffset = max; + } + if (scrollOffset < 0) { + scrollOffset = 0; + } + } + + public static boolean isModalAt(int x, int y) { + if (!modalOpen) return false; + int lx = toLocalX(x); + int ly = toLocalY(y); + int vw = getModalAreaWidth(); + int vh = getModalAreaHeight(); + int mx = Math.max(0, (vw - MODAL_WIDTH) / 2); + int my = Math.max(0, (vh - MODAL_HEIGHT) / 2); + return lx >= mx && lx <= mx + MODAL_WIDTH && ly >= my && ly <= my + MODAL_HEIGHT; + } + + public static boolean isScrollBarAt(int x, int y) { + if (!modalOpen) return false; + PluginManager pm = PluginManager.get(); + if (pm == null) return false; + if (getMaxScroll(pm) <= 0) return false; + int lx = toLocalX(x); + int ly = toLocalY(y); + int vw = getModalAreaWidth(); + int mx = Math.max(0, (vw - MODAL_WIDTH) / 2); + int contentY = getContentAreaY(); + int contentH = getContentAreaHeight(); + int sbX = mx + MODAL_WIDTH - 28; + int sbY = contentY + 2; + int sbH = contentH - 4; + return lx >= sbX - 6 && lx <= sbX + 22 && ly >= sbY - 2 && ly <= sbY + sbH + 2; + } + + public static boolean isContentAreaAt(int x, int y) { + if (!modalOpen) return false; + int lx = toLocalX(x); + int ly = toLocalY(y); + int vw = getModalAreaWidth(); + int mx = Math.max(0, (vw - MODAL_WIDTH) / 2); + int contentY = getContentAreaY(); + int contentH = getContentAreaHeight(); + return lx >= mx + 10 && lx <= mx + MODAL_WIDTH - 10 && ly >= contentY && ly <= contentY + contentH; + } + + public static void processInput(Game game) { + if (!modalOpen || game == null) { + isDragging = false; + isDraggingScrollBar = false; + lastDragY = -1; + return; + } + + PluginManager pm = PluginManager.get(); + int maxScroll = pm != null ? getMaxScroll(pm) : 0; + + if (game.clickMode2 == 1) { + int mx = toLocalX(game.mouseX); + int my = toLocalY(game.mouseY); + + if (!isDragging) { + if (isScrollBarAt(game.mouseX, game.mouseY)) { + isDragging = true; + int contentY = getContentAreaY(); + int contentH = getContentAreaHeight(); + int sbY = contentY + 2; + int sbH = contentH - 4; + if (my < sbY + 16) { + scrollOffset -= 24; + clampScroll(pm); + isDraggingScrollBar = false; + } else if (my > sbY + sbH - 16) { + scrollOffset += 24; + clampScroll(pm); + isDraggingScrollBar = false; + } else { + isDraggingScrollBar = true; + handleScrollBarJump(pm, my, maxScroll); + } + lastDragY = my; + dragStartY = my; + wasDrag = false; + } else if (isContentAreaAt(game.mouseX, game.mouseY)) { + int[] dropBounds = getOpenDropdownBounds(pm); + isDragging = true; + isDraggingScrollBar = false; + isDraggingDropdown = (dropBounds != null && mx >= dropBounds[0] && mx <= dropBounds[0] + dropBounds[2] + && my >= dropBounds[1] && my <= dropBounds[1] + dropBounds[3]); + lastDragY = my; + dragStartY = my; + wasDrag = false; + } + } else { + if (Math.abs(my - dragStartY) > 5) { + wasDrag = true; + } + if (isDraggingDropdown) { + int maxDropScroll = getOpenDropdownMaxScroll(pm); + if (maxDropScroll > 0) { + int deltaY = my - lastDragY; + if (deltaY != 0) { + dropdownScrollOffset -= deltaY; + if (dropdownScrollOffset < 0) dropdownScrollOffset = 0; + if (dropdownScrollOffset > maxDropScroll) dropdownScrollOffset = maxDropScroll; + } + } + } else if (maxScroll > 0) { + if (isDraggingScrollBar) { + handleScrollBarJump(pm, my, maxScroll); + } else { + int deltaY = my - lastDragY; + if (deltaY != 0) { + scrollOffset -= deltaY; + clampScroll(pm); + } + } + } + lastDragY = my; + } + } else { + isDragging = false; + isDraggingScrollBar = false; + isDraggingDropdown = false; + lastDragY = -1; + } + } + + private static void handleScrollBarJump(PluginManager pm, int clickY, int maxScroll) { + if (pm == null || maxScroll <= 0) return; + int contentY = getContentAreaY(); + int contentH = getContentAreaHeight(); + int sbY = contentY + 2; + int sbH = contentH - 4; + + int trackH = sbH - 32; + int thumbH = Math.max(8, (trackH * sbH) / (sbH + maxScroll)); + if (thumbH > trackH) thumbH = trackH; + int trackAvail = trackH - thumbH; + + if (isDraggingScrollBar) { + if (trackAvail > 0) { + int relY = clickY - (sbY + 16) - (thumbH / 2); + relY = Math.max(0, Math.min(relY, trackAvail)); + scrollOffset = (relY * maxScroll) / trackAvail; + clampScroll(pm); + } + return; + } + + // Discrete tap: Up arrow click (16px) + if (clickY < sbY + 16) { + scrollOffset -= 24; + clampScroll(pm); + return; + } + // Down arrow click (16px) + if (clickY > sbY + sbH - 16) { + scrollOffset += 24; + clampScroll(pm); + return; + } + + // Track and thumb tap jump + if (trackAvail > 0) { + int relY = clickY - (sbY + 16) - (thumbH / 2); + relY = Math.max(0, Math.min(relY, trackAvail)); + scrollOffset = (relY * maxScroll) / trackAvail; + clampScroll(pm); + } + } + + // ========================================================================= + // Tab 7 (QoL & Plugins) Rendering and Click Handling + // ========================================================================= + + public static void drawTab7(Game game) { + PluginManager pm = PluginManager.get(); + if (pm == null) return; + + try { + int centerX = 95; + int currentY = 6; + int stepY = 36; + int textTop = 13; + int textBottom = 27; + int textMiddle = 20; + + // 1. "PLUGIN HUB" (Opens Viewport Modal) + game.drawButton(modalOpen, centerX - 73, currentY, 146); + game.aTextDrawingArea_1271.textCenterShadow(0x00ffff, centerX, "PLUGIN HUB", currentY + textTop, true); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "[Open Modal]", currentY + textBottom, true); + + // Hide remaining QoL buttons when QoL client settings are disabled + if (!ClientSettings.ENABLE_QOL) { + return; + } + + currentY += stepY; + + // 2. Always Visible Player Names + game.drawButton(game.customSettingVisiblePlayerNames, centerX - 73, currentY, 146); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "player names", currentY + textMiddle, true); + currentY += stepY; + + // 3. Item Drops Visible + game.drawButton(true, centerX - 73, currentY, 146); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "item drops visible", currentY + textTop, true); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.WHITE, centerX, game.intToKOrMil(game.customSettingMinItemValue) + " gp", currentY + textBottom, true); + currentY += stepY; + + // 4. Draw Distance + game.drawButton(true, centerX - 73, currentY, 146); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "draw distance", currentY + textTop, true); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.WHITE, centerX, WorldController.drawDistance + " tiles", currentY + textBottom, true); + currentY += stepY; + + // 5. Experience Tracker Info + game.drawButton(game.customSettingShowExperiencePerHour, centerX - 73, currentY, 146); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "show exp info", currentY + textMiddle, true); + currentY += stepY; + + // 6. Debug Info + game.drawButton(game.showInfo, centerX - 73, currentY, 146); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "show debug info", currentY + textMiddle, true); + currentY += stepY; + + // 7. Visual Fixes + game.drawButton(game.customSettingVisualFixes, centerX - 73, currentY, 146); + game.aTextDrawingArea_1271.textCenterShadow(RSColors.YELLOW, centerX, "visual fixes", currentY + textMiddle, true); + + } catch (Throwable ignored) { + } + } + + public static boolean handleTab7Click(Game game, int clickX, int clickY) { + PluginManager pm = PluginManager.get(); + if (pm == null) return false; + + // In fixed layout, tab body X is 575..720, Y is 210..465 + int startY = 210 + 6; + int stepY = 36; + + // 1. Plugin Hub Open Modal + if (clickY >= startY && clickY <= startY + 30) { + modalOpen = !modalOpen; + if (modalOpen) currentModalTab = 0; + return true; + } + + // Ignore remaining QoL clicks when QoL client settings are disabled + if (!ClientSettings.ENABLE_QOL) { + return false; + } + + startY += stepY; + + // 2. Player Names + if (clickY >= startY && clickY <= startY + 30) { + game.customSettingVisiblePlayerNames = !game.customSettingVisiblePlayerNames; + return true; + } + startY += stepY; + + // 3. Item Drops Visible Prompt + if (clickY >= startY && clickY <= startY + 30) { + game.inputTaken = true; + game.inputDialogState = 0; + game.messagePromptRaised = true; + game.promptInput = ""; + game.aString1121 = "Enter minimum item value"; + game.customTabAction = 1; + return true; + } + startY += stepY; + + // 4. Draw Distance Prompt + if (clickY >= startY && clickY <= startY + 30) { + game.inputTaken = true; + game.inputDialogState = 0; + game.messagePromptRaised = true; + game.promptInput = ""; + game.aString1121 = "Enter new draw distance"; + game.customTabAction = 2; + return true; + } + startY += stepY; + + // 5. Exp Tracker + if (clickY >= startY && clickY <= startY + 30) { + game.customSettingShowExperiencePerHour = !game.customSettingShowExperiencePerHour; + game.customSettingShowExperiencePerHourStart = System.currentTimeMillis(); + game.customSettingShowExperiencePerHourStartExp = game.calculateTotalExp(); + game.customSettingShowExperiencePerHourStartLevels = game.calculateTotalLevels(); + return true; + } + startY += stepY; + + // 6. Debug Info + if (clickY >= startY && clickY <= startY + 30) { + game.showInfo = !game.showInfo; + return true; + } + startY += stepY; + + // 7. Visual Fixes + if (clickY >= startY && clickY <= startY + 30) { + game.customSettingVisualFixes = !game.customSettingVisualFixes; + ClientSettings.BILINEAR_MINIMAP_FILTERING = !ClientSettings.BILINEAR_MINIMAP_FILTERING; + ClientSettings.FIX_TRANSPARENCY_OVERFLOW = !ClientSettings.FIX_TRANSPARENCY_OVERFLOW; + ClientSettings.FULL_512PX_VIEWPORT = !ClientSettings.FULL_512PX_VIEWPORT; + return true; + } + + return false; + } + + // ========================================================================= + // Viewport Modal Rendering & Clicks (Authentic RuneScape 2006 Stone Theme) + // ========================================================================= + + public static void drawViewportModal(Game game) { + if (!modalOpen) return; + PluginManager pm = PluginManager.get(); + if (pm == null) return; + PluginGraphics g = pm.getGraphics(); + + int vw = getModalAreaWidth(); + int vh = getModalAreaHeight(); + int mx = Math.max(0, (vw - MODAL_WIDTH) / 2); + int my = Math.max(0, (vh - MODAL_HEIGHT) / 2); + + // 1. Modal Authentic Stone Outer Frame & Background + boolean scriptsAvailable = PluginManager.isScriptsAvailable(); + if (!scriptsAvailable && currentModalTab == 1) { + currentModalTab = 0; + } + drawStoneBox(g, mx, my, MODAL_WIDTH, MODAL_HEIGHT); + + // 2. Centered Header in Authentic RuneScape Gold with drop shadow + String title = scriptsAvailable ? "RUNELITE PLUGIN & SCRIPT HUB" : "RUNELITE PLUGIN HUB"; + if (game != null && game.aTextDrawingArea_1271 != null) { + game.aTextDrawingArea_1271.textCenterShadow(0xff981f, mx + (MODAL_WIDTH / 2), title, my + 19, true); + } else { + g.drawCenteredString(title, mx + (MODAL_WIDTH / 2), my + 19, 0xff981f); + } + + // 3. Authentic Carved/Etched Stone Divider Line + drawEtchedLine(g, mx + 8, my + 27, MODAL_WIDTH - 16); + + // 4. Authentic Red Stone Circular Close Button + int closeX = mx + MODAL_WIDTH - 25; + int closeY = my + 5; + drawCloseButton(g, closeX, closeY, 18); + + // 5. Authentic RuneScape Full-Width Continuous Subtabs (100% width, 0 gaps) + int tabY = my + 28; + int tabH = 26; + int contentX = mx + 10; + int contentW = MODAL_WIDTH - 20; + + int updateCount = PluginRepoClient.countUpdatesAvailable(pm); + String onlineLabel = updateCount > 0 ? "Online Repo (" + updateCount + ")" : "Online Repo"; + int numTabs = scriptsAvailable ? 3 : 2; + int tabW = contentW / numTabs; + drawSubTab(g, contentX, tabY, tabW, tabH, "Plugins", currentModalTab == 0); + if (scriptsAvailable) { + drawSubTab(g, contentX + tabW, tabY, tabW, tabH, "Scripts", currentModalTab == 1); + drawSubTab(g, contentX + (tabW * 2), tabY, contentW - (tabW * 2), tabH, onlineLabel, currentModalTab == 2); + } else { + drawSubTab(g, contentX + tabW, tabY, contentW - tabW, tabH, onlineLabel, currentModalTab == 2); + } + + // 6. Authentic Sunken Stone Content Well + int contentY = getContentAreaY(); + int contentH = getContentAreaHeight(); + drawStoneWell(g, contentX, contentY, contentW, contentH); + + int maxScroll = getMaxScroll(pm); + clampScroll(pm); + + int sbWidth = 16; + int sbX = mx + MODAL_WIDTH - 28; + int sbY = contentY + 2; + int sbH = contentH - 4; + int wellInnerX = contentX + 1; + int wellInnerW = (maxScroll > 0) ? (sbX - wellInnerX) : (contentW - 2); + + if (currentModalTab == 0) { + drawSearchBar(g, wellInnerX + 4, contentY + 2, wellInnerW - 8, 20); + drawEtchedLine(g, wellInnerX, contentY + 25, wellInnerW); + try { + DrawingArea.setDrawingArea(contentY + contentH - 1, wellInnerX, wellInnerX + wellInnerW, contentY + 26); + drawPluginsList(g, pm, wellInnerX, contentY + 28 - scrollOffset, wellInnerW); + } finally { + DrawingArea.defaultDrawingAreaSize(); + } + } else if (currentModalTab == 1) { + drawSearchBar(g, wellInnerX + 4, contentY + 2, wellInnerW - 8, 20); + drawEtchedLine(g, wellInnerX, contentY + 25, wellInnerW); + try { + DrawingArea.setDrawingArea(contentY + contentH - 1, wellInnerX, wellInnerX + wellInnerW, contentY + 26); + drawScriptsList(g, pm, wellInnerX, contentY + 28 - scrollOffset, wellInnerW); + } finally { + DrawingArea.defaultDrawingAreaSize(); + } + } else if (currentModalTab == 2) { + drawSubTab(g, wellInnerX + 4, contentY + 2, 72, 22, "Plugins", currentRepoSubTab == 0); + drawSubTab(g, wellInnerX + 79, contentY + 2, 72, 22, "Scripts", currentRepoSubTab == 1); + int searchX = wellInnerX + 155; + int searchRight = (updateCount > 0) ? (wellInnerX + wellInnerW - 148) : (wellInnerX + wellInnerW - 68); + if (searchRight - searchX >= 60) { + drawSearchBar(g, searchX, contentY + 3, searchRight - searchX, 20); + } + if (updateCount > 0) { + String updAllLabel = PluginRepoClient.getBusyEntryId() != null ? "Updating..." : "Update All"; + drawStoneButton(g, wellInnerX + wellInnerW - 144, contentY + 2, 76, 22, updAllLabel, 0x55d0ff, false); + } + String refreshLabel = PluginRepoClient.isLoading() ? "Loading..." : "Refresh"; + drawStoneButton(g, wellInnerX + wellInnerW - 64, contentY + 2, 62, 22, refreshLabel, 0xffd700, false); + drawEtchedLine(g, wellInnerX, contentY + 25, wellInnerW); + + try { + DrawingArea.setDrawingArea(contentY + contentH - 1, wellInnerX, wellInnerX + wellInnerW, contentY + 26); + drawRepoList(g, pm, wellInnerX, contentY + 28 - scrollOffset, wellInnerW); + } finally { + DrawingArea.defaultDrawingAreaSize(); + } + } else if (currentModalTab == 3) { + if (configTarget instanceof ClientScript && !scriptsAvailable) { + configTarget = null; + } + if (configTarget != null) { + String name = (configTarget instanceof ClientPlugin) ? ((ClientPlugin) configTarget).getName() + : (configTarget instanceof ClientScript) ? ((ClientScript) configTarget).getName() : "Config"; + String desc = (configTarget instanceof ClientPlugin) ? ((ClientPlugin) configTarget).getDescription() + : (configTarget instanceof ClientScript) ? ((ClientScript) configTarget).getDescription() : null; + int headerH = getConfigHeaderHeight(); + + g.drawStringBoldTruncated("Settings: " + name, wellInnerX + 8, contentY + 16, wellInnerW - 72, 0xff981f, true); + drawStoneButton(g, wellInnerX + wellInnerW - 58, contentY + 2, 56, 20, "< Back", 0xffd700, false); + if (desc != null && !desc.isEmpty()) { + g.drawStringTruncated(desc, wellInnerX + 8, contentY + 30, wellInnerW - 16, 0xa09484, false); + drawEtchedLine(g, wellInnerX, contentY + 36, wellInnerW); + } else { + drawEtchedLine(g, wellInnerX, contentY + 22, wellInnerW); + } + + try { + DrawingArea.setDrawingArea(contentY + contentH - 1, wellInnerX, wellInnerX + wellInnerW, contentY + headerH); + drawConfigEditor(g, pm, wellInnerX, contentY + headerH + 2 - scrollOffset, wellInnerW); + } finally { + DrawingArea.defaultDrawingAreaSize(); + } + drawConfigDropdownOverlay(g, pm, wellInnerX, wellInnerW, contentY, contentH, headerH); + } else { + currentModalTab = 0; + } + } + + // 7. Authentic 2006Scape Scrollbar with Cache Sprites + if (maxScroll > 0) { + int totalHeight = sbH + maxScroll; + if (game != null && game.scrollBar1 != null && game.scrollBar2 != null) { + game.drawScrollThumb(sbH, scrollOffset, sbY, sbX, totalHeight); + } else { + // Fallback for tests or before cache sprite load + g.fillRect(sbX, sbY, sbWidth, sbH, 0x23201b, 255); + g.drawRect(sbX, sbY, sbWidth, sbH, 0x332d25); + int trackH = sbH - 32; + int thumbH = Math.max(8, (trackH * sbH) / totalHeight); + if (thumbH > trackH) thumbH = trackH; + int trackAvail = trackH - thumbH; + int thumbY = sbY + 16 + (trackAvail > 0 ? (scrollOffset * trackAvail) / maxScroll : 0); + if (thumbY < sbY + 16) thumbY = sbY + 16; + if (thumbY + thumbH > sbY + sbH - 16) thumbY = sbY + sbH - 16 - thumbH; + g.fillRect(sbX + 1, thumbY, sbWidth - 2, thumbH, 0x4d4233, 255); + g.drawVerticalLine(sbX + 1, thumbY, thumbH, 0x766654); + g.drawHorizontalLine(sbX + 1, thumbY, sbWidth - 2, 0x766654); + g.drawVerticalLine(sbX + sbWidth - 2, thumbY, thumbH, 0x332d25); + g.drawHorizontalLine(sbX + 1, thumbY + thumbH - 1, sbWidth - 2, 0x332d25); + } + } + + // 8. Authentic Bank-Style Bottom Action Footer (Zero Gaps) + int footerY = my + MODAL_HEIGHT - 32; + int footerH = 26; + drawEtchedLine(g, contentX, footerY - 2, contentW); + int w1 = contentW / 2; + int w2 = contentW - w1; + drawSegmentedFooter(g, contentX, footerY, w1, w2, footerH); + + // 9. Seal any 0x000000 (transparent) pixels inside modal bounds to prevent + // RSImageProducer from punching see-through holes through outlines and text drop shadows. + sealTransparency(mx, my, MODAL_WIDTH, MODAL_HEIGHT); + } + + private static void sealTransparency(int mx, int my, int w, int h) { + int[] px = DrawingArea.pixels; + if (px == null) return; + int x0 = Math.max(0, mx); + int y0 = Math.max(0, my); + int x1 = Math.min(DrawingArea.width, mx + w); + int y1 = Math.min(DrawingArea.height, my + h); + for (int y = y0; y < y1; y++) { + int row = y * DrawingArea.width; + for (int x = x0; x < x1; x++) { + if (px[row + x] == 0) { + px[row + x] = 0x010101; + } + } + } + } + + // ========================================================================= + // Authentic RS Stone UI Primitive Renderers + // ========================================================================= + + private static void drawStoneBox(PluginGraphics g, int x, int y, int w, int h) { + // Outer black border (use 0x010101 so it is non-zero in drawing buffer) + g.drawRect(x, y, w, h, 0x010101); + // Bevel layer 1 (outer stone edge) + g.drawHorizontalLine(x + 1, y + 1, w - 2, 0x5c5040); + g.drawVerticalLine(x + 1, y + 1, h - 2, 0x5c5040); + g.drawHorizontalLine(x + 1, y + h - 2, w - 2, 0x1f1a14); + g.drawVerticalLine(x + w - 2, y + 1, h - 2, 0x1f1a14); + // Bevel layer 2 (inner stone frame) + g.drawHorizontalLine(x + 2, y + 2, w - 4, 0x483e32); + g.drawVerticalLine(x + 2, y + 2, h - 4, 0x483e32); + g.drawHorizontalLine(x + 2, y + h - 3, w - 4, 0x252019); + g.drawVerticalLine(x + w - 3, y + 2, h - 4, 0x252019); + // Authentic RS interface dark parchment/stone background + g.fillRect(x + 3, y + 3, w - 6, h - 6, 0x2a251e, 255); + } + + private static void drawStoneWell(PluginGraphics g, int x, int y, int w, int h) { + // Outer dark stone border + g.drawRect(x, y, w, h, 0x383025); + // Recessed well fill + g.fillRect(x + 1, y + 1, w - 2, h - 2, 0x1f1b16, 255); + // Inner shadow on top and left + g.drawHorizontalLine(x + 1, y + 1, w - 2, 0x14110e); + g.drawVerticalLine(x + 1, y + 1, h - 2, 0x14110e); + // Inner subtle highlight on bottom and right + g.drawHorizontalLine(x + 1, y + h - 2, w - 2, 0x2e271f); + g.drawVerticalLine(x + w - 2, y + 1, h - 2, 0x2e271f); + } + + private static void drawEtchedLine(PluginGraphics g, int x, int y, int w) { + // Carved stone groove: dark shadow line above, light highlight line below + g.drawHorizontalLine(x, y, w, 0x1a1510); + g.drawHorizontalLine(x, y + 1, w, 0x5c5040); + } + + private static void drawCloseButton(PluginGraphics g, int x, int y, int size) { + // Authentic circular / beveled red stone close button + g.drawRect(x, y, size, size, 0x010101); + // Bevel highlight (top & left) + g.drawHorizontalLine(x + 1, y + 1, size - 2, 0xb82828); + g.drawVerticalLine(x + 1, y + 1, size - 2, 0xb82828); + // Bevel shadow (bottom & right) + g.drawHorizontalLine(x + 1, y + size - 2, size - 2, 0x480808); + g.drawVerticalLine(x + size - 2, y + 1, size - 2, 0x480808); + // Red stone fill + g.fillRect(x + 2, y + 2, size - 4, size - 4, 0x801414, 255); + // Crisp white 'X' + g.drawCenteredString("X", x + (size / 2), y + 13, 0xffffff); + } + + private static void drawSubTab(PluginGraphics g, int x, int y, int w, int h, String label, boolean selected) { + g.drawRect(x, y, w, h, 0x010101); + if (selected) { + // Selected tab: lighter stone, connects seamlessly into content well below + g.fillRect(x + 1, y + 1, w - 2, h, 0x2a251e, 255); + g.drawHorizontalLine(x + 1, y + 1, w - 2, 0x6e604d); + g.drawVerticalLine(x + 1, y + 1, h - 1, 0x6e604d); + g.drawVerticalLine(x + w - 2, y + 1, h - 1, 0x1f1a14); + // Open seam at bottom + g.drawHorizontalLine(x + 1, y + h, w - 2, 0x2a251e); + g.drawStringBold(label, x + (w - g.getTextWidth(label)) / 2, y + (h / 2) + 4, 0xff981f, true); + } else { + // Unselected tab: recessed dark stone, closed bottom + g.fillRect(x + 1, y + 1, w - 2, h - 2, 0x1f1b16, 255); + g.drawHorizontalLine(x + 1, y + 1, w - 2, 0x3e3529); + g.drawVerticalLine(x + 1, y + 1, h - 2, 0x3e3529); + g.drawHorizontalLine(x + 1, y + h - 1, w - 2, 0x383025); + g.drawVerticalLine(x + w - 2, y + 1, h - 2, 0x16130f); + g.drawString(label, x + (w - g.getTextWidth(label)) / 2, y + (h / 2) + 4, 0x9c907e, false); + } + } + + private static void drawSegmentedFooter(PluginGraphics g, int x, int y, int w1, int w2, int h) { + int totalW = w1 + w2; + g.drawRect(x, y, totalW, h, 0x010101); + + // Segment 1 (Open Files) + g.fillRect(x + 1, y + 1, w1 - 1, h - 2, 0x3e3529, 255); + g.drawHorizontalLine(x + 1, y + 1, w1 - 1, 0x655542); + g.drawVerticalLine(x + 1, y + 1, h - 2, 0x655542); + g.drawHorizontalLine(x + 1, y + h - 2, w1 - 1, 0x1f1a14); + g.drawStringBold("Open Files", x + (w1 - g.getTextWidth("Open Files")) / 2, y + (h / 2) + 4, 0xff981f, true); + + // Center divider line + g.drawVerticalLine(x + w1, y, h, 0x010101); + + // Segment 2 (Reload Extensions) + g.fillRect(x + w1 + 1, y + 1, w2 - 2, h - 2, 0x3e3529, 255); + g.drawHorizontalLine(x + w1 + 1, y + 1, w2 - 2, 0x655542); + g.drawHorizontalLine(x + w1 + 1, y + h - 2, w2 - 2, 0x1f1a14); + g.drawVerticalLine(x + totalW - 2, y + 1, h - 2, 0x1f1a14); + g.drawStringBold("Reload Extensions", x + w1 + (w2 - g.getTextWidth("Reload Extensions")) / 2, y + (h / 2) + 4, 0xff981f, true); + } + + private static void drawSegmentedToggleGroup(PluginGraphics g, int x, int y, int toggleW, int gearW, int h, boolean enabled, String toggleText) { + int totalW = toggleW + gearW; + g.drawRect(x, y, totalW, h, 0x010101); + + // Toggle segment (left) + int fill = enabled ? 0x1b461f : 0x332c23; + int hl = enabled ? 0x347c3c : 0x52473a; + int sh = enabled ? 0x0f2611 : 0x181410; + int txtColor = enabled ? 0x76ff76 : 0x9c907e; + g.fillRect(x + 1, y + 1, toggleW - 1, h - 2, fill, 255); + g.drawHorizontalLine(x + 1, y + 1, toggleW - 1, hl); + g.drawVerticalLine(x + 1, y + 1, h - 2, hl); + g.drawHorizontalLine(x + 1, y + h - 2, toggleW - 1, sh); + g.drawStringBold(toggleText, x + (toggleW - g.getTextWidth(toggleText)) / 2, y + (h / 2) + 4, txtColor, true); + + // Center divider line + g.drawVerticalLine(x + toggleW, y, h, 0x010101); + + // CFG segment (right) + g.fillRect(x + toggleW + 1, y + 1, gearW - 2, h - 2, 0x3e3529, 255); + g.drawHorizontalLine(x + toggleW + 1, y + 1, gearW - 2, 0x655542); + g.drawHorizontalLine(x + toggleW + 1, y + h - 2, gearW - 2, 0x1f1a14); + g.drawVerticalLine(x + totalW - 2, y + 1, h - 2, 0x1f1a14); + g.drawStringBold("CFG", x + toggleW + (gearW - g.getTextWidth("CFG")) / 2, y + (h / 2) + 4, 0xffd700, true); + } + + private static void drawSegmentedScriptGroup(PluginGraphics g, int x, int y, int stopW, int pauseW, int gearW, int h, boolean paused) { + int totalW = stopW + pauseW + gearW; + g.drawRect(x, y, totalW, h, 0x010101); + + // Stop segment + g.fillRect(x + 1, y + 1, stopW - 1, h - 2, 0x5a1818, 255); + g.drawHorizontalLine(x + 1, y + 1, stopW - 1, 0x8a2626); + g.drawVerticalLine(x + 1, y + 1, h - 2, 0x8a2626); + g.drawHorizontalLine(x + 1, y + h - 2, stopW - 1, 0x300c0c); + g.drawStringBold("STOP", x + (stopW - g.getTextWidth("STOP")) / 2, y + (h / 2) + 4, 0xff7676, true); + + // Divider 1 + g.drawVerticalLine(x + stopW, y, h, 0x010101); + + // Pause segment + g.fillRect(x + stopW + 1, y + 1, pauseW - 1, h - 2, 0x544014, 255); + g.drawHorizontalLine(x + stopW + 1, y + 1, pauseW - 1, 0x866620); + g.drawHorizontalLine(x + stopW + 1, y + h - 2, pauseW - 1, 0x2c220a); + String pauseTxt = paused ? "RES" : "PAUS"; + g.drawStringBold(pauseTxt, x + stopW + (pauseW - g.getTextWidth(pauseTxt)) / 2, y + (h / 2) + 4, 0xffd700, true); + + // Divider 2 + g.drawVerticalLine(x + stopW + pauseW, y, h, 0x010101); + + // CFG segment + g.fillRect(x + stopW + pauseW + 1, y + 1, gearW - 2, h - 2, 0x3e3529, 255); + g.drawHorizontalLine(x + stopW + pauseW + 1, y + 1, gearW - 2, 0x655542); + g.drawHorizontalLine(x + stopW + pauseW + 1, y + h - 2, gearW - 2, 0x1f1a14); + g.drawVerticalLine(x + totalW - 2, y + 1, h - 2, 0x1f1a14); + g.drawStringBold("CFG", x + stopW + pauseW + (gearW - g.getTextWidth("CFG")) / 2, y + (h / 2) + 4, 0xffd700, true); + } + + private static void drawStoneButton(PluginGraphics g, int x, int y, int w, int h, String label, int textRgb, boolean pressed) { + g.drawRect(x, y, w, h, 0x010101); + int fill = pressed ? 0x2f2820 : 0x3e3529; + int hl = pressed ? 0x1f1a14 : 0x655542; + int sh = pressed ? 0x655542 : 0x1f1a14; + g.fillRect(x + 1, y + 1, w - 2, h - 2, fill, 255); + g.drawHorizontalLine(x + 1, y + 1, w - 2, hl); + g.drawVerticalLine(x + 1, y + 1, h - 2, hl); + g.drawHorizontalLine(x + 1, y + h - 2, w - 2, sh); + g.drawVerticalLine(x + w - 2, y + 1, h - 2, sh); + g.drawStringBold(label, x + (w - g.getTextWidth(label)) / 2, y + (h / 2) + 4, textRgb, true); + } + + private static void drawColoredButton(PluginGraphics g, int x, int y, int w, int h, String label, int fillRgb, int borderRgb, int shadowRgb, int textRgb) { + g.drawRect(x, y, w, h, 0x010101); + g.fillRect(x + 1, y + 1, w - 2, h - 2, fillRgb, 255); + g.drawHorizontalLine(x + 1, y + 1, w - 2, borderRgb); + g.drawVerticalLine(x + 1, y + 1, h - 2, borderRgb); + g.drawHorizontalLine(x + 1, y + h - 2, w - 2, shadowRgb); + g.drawVerticalLine(x + w - 2, y + 1, h - 2, shadowRgb); + g.drawStringBold(label, x + (w - g.getTextWidth(label)) / 2, y + (h / 2) + 4, textRgb, true); + } + + // ========================================================================= + // Content Lists (Plugins, Scripts, Config) + // ========================================================================= + + private static void drawSearchBar(PluginGraphics g, int x, int y, int w, int h) { + int bg = searchFocused ? 0x1a1510 : 0x16120d; + int border = searchFocused ? 0xffd700 : 0x453b2e; + g.fillRect(x, y, w, h, bg, 255); + g.drawRect(x, y, w, h, border); + boolean hasQuery = searchQuery != null && !searchQuery.isEmpty(); + int textMaxW = hasQuery ? (w - 28) : (w - 12); + if (hasQuery) { + String display = searchFocused ? (searchQuery + "_") : searchQuery; + g.drawStringTruncated(display, x + 6, y + 14, textMaxW, 0xffffff, false); + int clearX = x + w - 20; + g.fillRect(clearX, y + 1, 19, h - 2, 0x352c22, 255); + g.drawString("X", clearX + 6, y + 14, 0xff9090, false); + } else { + String placeholder = searchFocused ? "_" : "Search..."; + int col = searchFocused ? 0xffffff : 0x807464; + g.drawStringTruncated(placeholder, x + 6, y + 14, textMaxW, col, false); + } + } + + private static void drawPluginsList(PluginGraphics g, PluginManager pm, int x, int y, int w) { + List list = getFilteredPlugins(pm); + int rowY = y; + int i = 0; + if (list != null && !list.isEmpty()) { + for (; i < list.size(); i++) { + if (rowY + 36 >= DrawingArea.topY && rowY <= DrawingArea.bottomY) { + ClientPlugin p = list.get(i); + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + + // Seamless Segmented Toggle + CFG Control (docked flush against row borders and right edge) + int groupW = 84; + int groupX = x + w - groupW; + int btnY = rowY + 1; + int maxTextW = groupX - (x + 10) - 8; + + // Plugin Name and Description (bounded with RuneLite-style ellipsis truncation) + g.drawStringBoldTruncated(p.getName() + " v" + p.getVersion(), x + 10, rowY + 16, maxTextW, 0xffffff, true); + g.drawStringTruncated(p.getDescription(), x + 10, rowY + 30, maxTextW, 0xa09484, false); + + drawSegmentedToggleGroup(g, groupX, btnY, 50, 34, 36, p.isEnabled(), p.isEnabled() ? "ON" : "OFF"); + } + rowY += 38; + } + } else if (searchQuery != null && !searchQuery.isEmpty()) { + g.drawString("No matching plugins.", x + 10, y + 20, 0xa09484, false); + return; + } + // Fill remaining well area with alternating empty rows + while (rowY <= DrawingArea.bottomY) { + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + rowY += 38; + i++; + } + } + + private static void drawScriptsList(PluginGraphics g, PluginManager pm, int x, int y, int w) { + List list = getFilteredScripts(pm); + int rowY = y; + int i = 0; + if (list != null && !list.isEmpty()) { + for (; i < list.size(); i++) { + if (rowY + 36 >= DrawingArea.topY && rowY <= DrawingArea.bottomY) { + ClientScript s = list.get(i); + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + + // Seamless Segmented Controls (docked flush against row borders and right edge) + int btnY = rowY + 1; + int groupW = s.isRunning() ? (44 + 44 + 34) : (50 + 34); + int groupX = x + w - groupW; + int maxTextW = groupX - (x + 10) - 8; + + // Script Name and status (bounded with RuneLite-style ellipsis truncation) + g.drawStringBoldTruncated(s.getName() + " v" + s.getVersion(), x + 10, rowY + 16, maxTextW, 0xffffff, true); + g.drawStringTruncated(s.getDescription() + " [" + s.getStatus() + "]", x + 10, rowY + 30, maxTextW, s.isRunning() ? 0x60e080 : 0xa09484, false); + + if (s.isRunning()) { + drawSegmentedScriptGroup(g, groupX, btnY, 44, 44, 34, 36, s.isPaused()); + } else { + drawSegmentedToggleGroup(g, groupX, btnY, 50, 34, 36, false, "START"); + } + } + rowY += 38; + } + } else if (searchQuery != null && !searchQuery.isEmpty()) { + g.drawString("No matching scripts.", x + 10, y + 20, 0xa09484, false); + return; + } + // Fill remaining well area with alternating empty rows + while (rowY <= DrawingArea.bottomY) { + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + rowY += 38; + i++; + } + } + + private static List getFilteredRepoEntries() { + List all = PluginRepoClient.getEntries(); + List filtered = new java.util.ArrayList<>(); + if (all == null) return filtered; + boolean wantPlugin = (currentRepoSubTab == 0); + for (PluginRepoClient.RepoEntry entry : all) { + boolean isPlugin = "plugin".equalsIgnoreCase(entry.type); + if (isPlugin == wantPlugin && matchesSearch(entry.name, entry.description, entry.author)) { + filtered.add(entry); + } + } + return filtered; + } + + private static void drawRepoList(PluginGraphics g, PluginManager pm, int x, int y, int w) { + if (PluginRepoClient.isLoading() && PluginRepoClient.getEntries().isEmpty()) { + g.drawString("Fetching online repository index...", x + 10, y + 20, 0xa09484, false); + return; + } + String err = PluginRepoClient.getLastError(); + List allEntries = PluginRepoClient.getEntries(); + if ((allEntries == null || allEntries.isEmpty()) && err != null) { + g.drawStringTruncated("Repo error: " + err, x + 10, y + 20, w - 20, 0xff6060, false); + return; + } + List entries = getFilteredRepoEntries(); + if (entries.isEmpty()) { + String emptyMsg = (searchQuery != null && !searchQuery.isEmpty()) + ? "No matching entries." + : ((currentRepoSubTab == 0) + ? "No plugins found in online repository." + : "No scripts found in online repository."); + g.drawString(emptyMsg, x + 10, y + 20, 0xa09484, false); + return; + } + + int rowY = y; + if (err != null && !err.isEmpty()) { + g.fillRect(x, rowY, w, 20, 0x3b1818, 255); + g.drawStringTruncated(err, x + 8, rowY + 14, w - 16, 0xff7070, false); + rowY += 22; + } + int i = 0; + String busyId = PluginRepoClient.getBusyEntryId(); + for (; i < entries.size(); i++) { + if (rowY + 36 >= DrawingArea.topY && rowY <= DrawingArea.bottomY) { + PluginRepoClient.RepoEntry entry = entries.get(i); + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + + int btnW = 74; + int btnX = x + w - btnW; + int maxTextW = btnX - (x + 10) - 8; + + String entryKey = entry.id.isEmpty() ? entry.name : entry.id; + boolean isBusy = busyId != null && busyId.equals(entryKey); + PluginRepoClient.InstallStatus status = PluginRepoClient.getInstallStatus(entry, pm); + String verText = "v" + entry.version; + if (status == PluginRepoClient.InstallStatus.UPDATE_AVAILABLE) { + SemVer installedVer = PluginRepoClient.findInstalledVersion(entry, pm); + if (installedVer != null) { + verText = "v" + installedVer + " -> v" + entry.version; + } + } + String title = entry.name + " " + verText + " (" + entry.author + ")"; + g.drawStringBoldTruncated(title, x + 10, rowY + 16, maxTextW, 0xffffff, true); + g.drawStringTruncated(entry.description, x + 10, rowY + 30, maxTextW, 0xa09484, false); + String btnLabel; + int btnColor; + if (isBusy) { + btnLabel = "..."; + btnColor = 0xa09484; + } else if (status == PluginRepoClient.InstallStatus.INCOMPATIBLE) { + btnLabel = "API " + entry.minApi; + btnColor = 0xff6060; + } else if (status == PluginRepoClient.InstallStatus.UPDATE_AVAILABLE) { + btnLabel = "Update"; + btnColor = 0x55d0ff; + } else if (status == PluginRepoClient.InstallStatus.UP_TO_DATE) { + btnLabel = "Remove"; + btnColor = 0xe06060; + } else { + btnLabel = "Install"; + btnColor = 0x60e080; + } + drawStoneButton(g, btnX, rowY + 1, btnW, 36, btnLabel, btnColor, false); + } + rowY += 38; + } + while (rowY <= DrawingArea.bottomY) { + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + rowY += 38; + i++; + } + } + + private static void drawConfigTargetSelector(PluginGraphics g, PluginManager pm, int x, int y, int w) { + List list = pm.getPlugins(); + int rowY = y; + int i = 0; + if (list != null) { + for (; i < list.size(); i++) { + if (rowY + 36 >= DrawingArea.topY && rowY <= DrawingArea.bottomY) { + ClientPlugin p = list.get(i); + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + + int btnW = 74; + int btnX = x + w - btnW; + int maxTextW = btnX - (x + 10) - 8; + + g.drawStringBoldTruncated(p.getName() + " v" + p.getVersion(), x + 10, rowY + 16, maxTextW, 0xffffff, true); + g.drawStringTruncated(p.getDescription(), x + 10, rowY + 30, maxTextW, 0xa09484, false); + + drawStoneButton(g, btnX, rowY + 1, btnW, 36, "Configure", 0xffd700, false); + } + rowY += 38; + } + } + // Fill remaining well area with alternating empty rows + while (rowY <= DrawingArea.bottomY) { + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 38, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 37, w, 0x322b22); + rowY += 38; + i++; + } + } + + private static void drawConfigEditor(PluginGraphics g, PluginManager pm, int x, int y, int w) { + List items = getVisibleConfigItems(pm, configTarget); + + if (items == null || items.isEmpty()) { + g.drawString("No configurable settings available.", x + 8, y + 16, 0xa09484, false); + return; + } + + int rowY = y; + for (int i = 0; i < items.size(); i++) { + if (rowY + 28 >= DrawingArea.topY && rowY <= DrawingArea.bottomY) { + PluginConfigItem item = items.get(i); + int rowFill = (i % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 32, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 31, w, 0x322b22); + + int maxLabelW = (item.getType() == PluginConfigItem.Type.BOOLEAN) ? (w - 60 - 20) + : (item.getType() == PluginConfigItem.Type.INTEGER) ? (w - 126 - 20) + : (item.getType() == PluginConfigItem.Type.CHOICE) ? (w - DROPDOWN_WIDTH - 20) : (w - 180); + g.drawStringTruncated(item.getLabel(), x + 10, rowY + 20, maxLabelW, 0xffffff, false); + + if (item.getType() == PluginConfigItem.Type.BOOLEAN) { + boolean currentVal = pm.getConfigBoolean(configTarget, item); + int btnW = 60; + int btnX = x + w - btnW; + int btnY = rowY + 1; + if (currentVal) { + drawColoredButton(g, btnX, btnY, btnW, 30, "ON", 0x1b461f, 0x347c3c, 0x0f2611, 0x76ff76); + } else { + drawColoredButton(g, btnX, btnY, btnW, 30, "OFF", 0x332c23, 0x52473a, 0x181410, 0x9c907e); + } + } else if (item.getType() == PluginConfigItem.Type.INTEGER) { + int currentVal = pm.getConfigInt(configTarget, item); + int stepperW = 126; + int stepX = x + w - stepperW; + int btnY = rowY + 1; + int btnH = 30; + + // Segmented Stepper [ - | 1000000 | + ] (flush, zero gaps, 126px width) + g.drawRect(stepX, btnY, stepperW, btnH, 0x010101); + + // Minus [-] + g.fillRect(stepX + 1, btnY + 1, 27, btnH - 2, 0x3e3529, 255); + g.drawHorizontalLine(stepX + 1, btnY + 1, 27, 0x655542); + g.drawVerticalLine(stepX + 1, btnY + 1, btnH - 2, 0x655542); + g.drawHorizontalLine(stepX + 1, btnY + btnH - 2, 27, 0x1f1a14); + g.drawStringBold("-", stepX + 11, btnY + 19, 0xffffff, true); + + // Divider 1 + g.drawVerticalLine(stepX + 28, btnY, btnH, 0x010101); + + // Value display (68px wide compartment, comfortably fits up to 10 digits without overlap) + g.fillRect(stepX + 29, btnY + 1, 68, btnH - 2, 0x2a251e, 255); + g.drawCenteredString(String.valueOf(currentVal), stepX + 63, btnY + 19, 0xffd700); + + // Divider 2 + g.drawVerticalLine(stepX + 97, btnY, btnH, 0x010101); + + // Plus [+] + g.fillRect(stepX + 98, btnY + 1, 27, btnH - 2, 0x3e3529, 255); + g.drawHorizontalLine(stepX + 98, btnY + 1, 27, 0x655542); + g.drawHorizontalLine(stepX + 98, btnY + btnH - 2, 27, 0x1f1a14); + g.drawVerticalLine(stepX + stepperW - 2, btnY + 1, btnH - 2, 0x1f1a14); + g.drawStringBold("+", stepX + 107, btnY + 19, 0xffffff, true); + } else if (item.getType() == PluginConfigItem.Type.CHOICE) { + String currentVal = String.valueOf(pm.getConfigValue(configTarget, item)); + int dropX = x + w - DROPDOWN_WIDTH; + int btnY = rowY + 1; + int btnH = 30; + boolean isOpen = item.getKey().equals(openDropdownKey); + + g.drawRect(dropX, btnY, DROPDOWN_WIDTH, btnH, 0x010101); + g.fillRect(dropX + 1, btnY + 1, DROPDOWN_WIDTH - 25, btnH - 2, isOpen ? 0x352e25 : 0x2a251e, 255); + g.drawHorizontalLine(dropX + 1, btnY + 1, DROPDOWN_WIDTH - 2, 0x52473a); + g.drawVerticalLine(dropX + 1, btnY + 1, btnH - 2, 0x52473a); + g.drawStringTruncated(currentVal, dropX + 8, btnY + 19, DROPDOWN_WIDTH - 34, 0xffd700, true); + + // Arrow compartment [v] / [^] + int arrowX = dropX + DROPDOWN_WIDTH - 24; + g.drawVerticalLine(arrowX, btnY, btnH, 0x010101); + g.fillRect(arrowX + 1, btnY + 1, 22, btnH - 2, 0x3e3529, 255); + g.drawHorizontalLine(arrowX + 1, btnY + 1, 22, 0x655542); + g.drawStringBold(isOpen ? "^" : "v", arrowX + 8, btnY + 19, 0xffffff, true); + } else { + g.drawString("(Edit in .properties or chat)", x + w - 170, rowY + 20, 0xa09484, false); + } + } + rowY += 32; + } + // Fill remaining well area with alternating empty rows + int extraIdx = items.size(); + while (rowY <= DrawingArea.bottomY) { + int rowFill = (extraIdx % 2 == 0) ? 0x26211b : 0x201b15; + g.fillRect(x, rowY, w, 32, rowFill, 255); + g.drawHorizontalLine(x, rowY, w, 0x16130f); + g.drawHorizontalLine(x, rowY + 31, w, 0x322b22); + rowY += 32; + extraIdx++; + } + } + + private static void drawConfigDropdownOverlay(PluginGraphics g, PluginManager pm, int wellInnerX, int wellInnerW, int contentY, int contentH, int headerH) { + int[] b = getOpenDropdownBounds(pm); + if (b == null) return; + List items = getVisibleConfigItems(pm, configTarget); + if (items == null || b[4] >= items.size()) return; + PluginConfigItem item = items.get(b[4]); + String[] choices = item.getChoices(); + if (choices == null || choices.length == 0) return; + + int dropX = b[0]; + int dropY = b[1]; + int dropW = b[2]; + int dropH = b[3]; + int maxDropScroll = Math.max(0, choices.length * DROPDOWN_ROW_H + 2 - dropH); + if (dropdownScrollOffset > maxDropScroll) dropdownScrollOffset = maxDropScroll; + if (dropdownScrollOffset < 0) dropdownScrollOffset = 0; + + g.fillRect(dropX, dropY, dropW, dropH, 0x1e1914, 248); + g.drawRect(dropX, dropY, dropW, dropH, 0x655542); + + String currentVal = String.valueOf(pm.getConfigValue(configTarget, item)); + int listW = (maxDropScroll > 0) ? (dropW - 8) : (dropW - 2); + try { + DrawingArea.setDrawingArea(dropY + dropH - 1, dropX + 1, dropX + 1 + listW, dropY + 1); + int optY = dropY + 1 - dropdownScrollOffset; + for (int ci = 0; ci < choices.length; ci++) { + if (optY + DROPDOWN_ROW_H >= dropY && optY <= dropY + dropH) { + boolean selected = choices[ci].equalsIgnoreCase(currentVal); + int bg = selected ? 0x3b3226 : ((ci % 2 == 0) ? 0x241f19 : 0x1e1914); + g.fillRect(dropX + 1, optY, listW, DROPDOWN_ROW_H, bg, 255); + g.drawHorizontalLine(dropX + 1, optY + DROPDOWN_ROW_H - 1, listW, 0x14100c); + g.drawStringTruncated(choices[ci], dropX + 8, optY + 15, listW - 14, selected ? 0xffd700 : 0xffffff, selected); + } + optY += DROPDOWN_ROW_H; + } + } finally { + DrawingArea.defaultDrawingAreaSize(); + } + + if (maxDropScroll > 0) { + int trackX = dropX + dropW - 6; + int trackY = dropY + 2; + int trackH = dropH - 4; + g.fillRect(trackX, trackY, 4, trackH, 0x14100c, 255); + int thumbH = Math.max(10, (trackH * dropH) / (choices.length * DROPDOWN_ROW_H + 2)); + int avail = Math.max(0, trackH - thumbH); + int thumbY = trackY + (avail * dropdownScrollOffset) / maxDropScroll; + g.fillRect(trackX, thumbY, 4, thumbH, 0x766654, 255); + } + } + + // ========================================================================= + // Modal Click Handling + // ========================================================================= + + public static boolean handleModalClick(int clickX, int clickY) { + if (!modalOpen) return false; + PluginManager pm = PluginManager.get(); + if (pm == null) return false; + + if (wasDrag) { + wasDrag = false; + return true; + } + + int cx = toLocalX(clickX); + int cy = toLocalY(clickY); + + int vw = getModalAreaWidth(); + int vh = getModalAreaHeight(); + int mx = Math.max(0, (vw - MODAL_WIDTH) / 2); + int my = Math.max(0, (vh - MODAL_HEIGHT) / 2); + + // Click outside modal closes it + if (cx < mx || cx > mx + MODAL_WIDTH || cy < my || cy > my + MODAL_HEIGHT) { + closeModal(); + return true; + } + + // Close button [X] + int closeX = mx + MODAL_WIDTH - 25; + int closeY = my + 5; + if (cx >= closeX - 4 && cx <= closeX + 22 && cy >= closeY - 4 && cy <= closeY + 22) { + closeModal(); + return true; + } + + // Top Full-Width Tabs (0 gaps) + int tabY = my + 28; + int contentX = mx + 10; + int contentW = MODAL_WIDTH - 20; + boolean scriptsAvailable = PluginManager.isScriptsAvailable(); + int numTabs = scriptsAvailable ? 3 : 2; + int tabW = contentW / numTabs; + + if (cy >= tabY && cy <= tabY + 26) { + searchFocused = false; + if (scriptsAvailable) { + // Tab 0: Plugins + if (cx >= contentX && cx < contentX + tabW) { + currentModalTab = 0; + scrollOffset = 0; + return true; + } + // Tab 1: Scripts + if (cx >= contentX + tabW && cx < contentX + (tabW * 2)) { + currentModalTab = 1; + scrollOffset = 0; + return true; + } + // Tab 2: Online Repo + if (cx >= contentX + (tabW * 2) && cx <= contentX + contentW) { + currentModalTab = 2; + configTarget = null; + scrollOffset = 0; + PluginRepoClient.ensureLoaded(); + return true; + } + } else { + // Tab 0: Plugins + if (cx >= contentX && cx < contentX + tabW) { + currentModalTab = 0; + scrollOffset = 0; + return true; + } + // Tab 2: Online Repo + if (cx >= contentX + tabW && cx <= contentX + contentW) { + currentModalTab = 2; + configTarget = null; + scrollOffset = 0; + PluginRepoClient.ensureLoaded(); + return true; + } + } + } + + // Bottom Footer Action Buttons (Segmented Full-Width, 0 gaps) + int footerY = my + MODAL_HEIGHT - 32; + int footerH = 26; + int w1 = contentW / 2; + if (cy >= footerY && cy <= footerY + footerH && cx >= contentX && cx <= contentX + contentW) { + // Left Half: Open Files + if (cx < contentX + w1) { + AndroidHooks.openScriptsFolder(); + if (pm.getContext() != null) { + pm.getContext().sendClientMessage(scriptsAvailable ? "Opened plugins & scripts directory." : "Opened plugins directory."); + } + return true; + } + // Right Half: Reload Extensions + else { + pm.reloadExternal(); + scrollOffset = 0; + if (pm.getContext() != null) { + pm.getContext().sendClientMessage(scriptsAvailable ? "Reloaded external plugins and scripts." : "Reloaded external plugins."); + } + return true; + } + } + + int contentY = getContentAreaY(); + int contentH = getContentAreaHeight(); + int maxScroll = getMaxScroll(pm); + int sbX = mx + MODAL_WIDTH - 28; + int wellInnerX = contentX + 1; + int wellInnerW = (maxScroll > 0) ? (sbX - wellInnerX) : (contentW - 2); + + // Scrollbar click / tap jump + if (maxScroll > 0 && isScrollBarAt(clickX, clickY)) { + handleScrollBarJump(pm, cy, maxScroll); + return true; + } + + if (currentModalTab == 0) { + if (handleSearchBarClick(cx, cy, wellInnerX + 4, contentY + 2, wellInnerW - 8, 20)) { + return true; + } + searchFocused = false; + if (cy < contentY + 26 || cy > contentY + contentH) { + return true; + } + List list = getFilteredPlugins(pm); + int rowY = contentY + 28 - scrollOffset; + for (ClientPlugin p : list) { + if (rowY + 36 >= contentY + 26 && rowY <= contentY + contentH) { + int groupW = 84; + int groupX = wellInnerX + wellInnerW - groupW; + int btnY = rowY + 1; + int btnH = 36; + + // Toggle segment + if (cx >= groupX && cx < groupX + 50 && cy >= btnY && cy <= btnY + btnH) { + pm.togglePlugin(p); + return true; + } + // CFG segment + if (cx >= groupX + 50 && cx <= groupX + groupW && cy >= btnY && cy <= btnY + btnH) { + configTarget = p; + configReturnTab = 0; + currentModalTab = 3; + scrollOffset = 0; + return true; + } + } + rowY += 38; + } + } else if (currentModalTab == 1) { + if (handleSearchBarClick(cx, cy, wellInnerX + 4, contentY + 2, wellInnerW - 8, 20)) { + return true; + } + searchFocused = false; + if (cy < contentY + 26 || cy > contentY + contentH) { + return true; + } + List list = getFilteredScripts(pm); + int rowY = contentY + 28 - scrollOffset; + for (ClientScript s : list) { + if (rowY + 36 >= contentY + 26 && rowY <= contentY + contentH) { + int btnY = rowY + 1; + int btnH = 36; + if (s.isRunning()) { + int groupW = 44 + 44 + 34; // 122px + int groupX = wellInnerX + wellInnerW - groupW; + // STOP + if (cx >= groupX && cx < groupX + 44 && cy >= btnY && cy <= btnY + btnH) { + pm.stopScript(s); + return true; + } + // PAUSE / RESUME + if (cx >= groupX + 44 && cx < groupX + 88 && cy >= btnY && cy <= btnY + btnH) { + pm.pauseResumeScript(s); + return true; + } + // CFG + if (cx >= groupX + 88 && cx <= groupX + groupW && cy >= btnY && cy <= btnY + btnH) { + configTarget = s; + configReturnTab = 1; + currentModalTab = 3; + scrollOffset = 0; + return true; + } + } else { + int groupW = 50 + 34; // 84px + int groupX = wellInnerX + wellInnerW - groupW; + // START + if (cx >= groupX && cx < groupX + 50 && cy >= btnY && cy <= btnY + btnH) { + pm.startScript(s); + return true; + } + // CFG + if (cx >= groupX + 50 && cx <= groupX + groupW && cy >= btnY && cy <= btnY + btnH) { + configTarget = s; + configReturnTab = 1; + currentModalTab = 3; + scrollOffset = 0; + return true; + } + } + } + rowY += 38; + } + } else if (currentModalTab == 2) { + int searchX = wellInnerX + 155; + int searchRight = (PluginRepoClient.countUpdatesAvailable(pm) > 0) + ? (wellInnerX + wellInnerW - 148) + : (wellInnerX + wellInnerW - 68); + if (searchRight - searchX >= 60 && handleSearchBarClick(cx, cy, searchX, contentY + 3, searchRight - searchX, 20)) { + return true; + } + searchFocused = false; + if (cx >= wellInnerX + 4 && cx <= wellInnerX + 76 + && cy >= contentY + 2 && cy <= contentY + 24) { + currentRepoSubTab = 0; + scrollOffset = 0; + return true; + } + if (cx >= wellInnerX + 79 && cx <= wellInnerX + 151 + && cy >= contentY + 2 && cy <= contentY + 24) { + currentRepoSubTab = 1; + scrollOffset = 0; + return true; + } + if (cx >= wellInnerX + wellInnerW - 144 && cx <= wellInnerX + wellInnerW - 68 + && cy >= contentY + 2 && cy <= contentY + 24 + && PluginRepoClient.countUpdatesAvailable(pm) > 0) { + PluginRepoClient.updateAllAsync(pm, null); + return true; + } + if (cx >= wellInnerX + wellInnerW - 64 && cx <= wellInnerX + wellInnerW - 2 + && cy >= contentY + 2 && cy <= contentY + 24) { + PluginRepoClient.fetchIndexAsync(null); + return true; + } + if (cy < contentY + 26 || cy > contentY + contentH) { + return true; + } + List entries = getFilteredRepoEntries(); + if (entries == null || PluginRepoClient.getBusyEntryId() != null) { + return true; + } + int rowY = contentY + 28 - scrollOffset; + String err = PluginRepoClient.getLastError(); + if (err != null && !err.isEmpty()) { + rowY += 22; + } + for (PluginRepoClient.RepoEntry entry : entries) { + if (rowY + 36 >= contentY + 26 && rowY <= contentY + contentH) { + int btnW = 74; + int btnX = wellInnerX + wellInnerW - btnW; + int btnY = rowY + 1; + int btnH = 36; + if (cx >= btnX && cx <= btnX + btnW && cy >= btnY && cy <= btnY + btnH) { + PluginRepoClient.InstallStatus status = PluginRepoClient.getInstallStatus(entry, pm); + if (status == PluginRepoClient.InstallStatus.NOT_INSTALLED + || status == PluginRepoClient.InstallStatus.UPDATE_AVAILABLE) { + PluginRepoClient.installOrUpdateAsync(entry, pm, null); + } else if (status == PluginRepoClient.InstallStatus.UP_TO_DATE) { + PluginRepoClient.uninstall(entry, pm); + } + return true; + } + } + rowY += 38; + } + } else if (currentModalTab == 3) { + if (configTarget == null) { + currentModalTab = configReturnTab; + return true; + } + if (cx >= wellInnerX + wellInnerW - 58 && cx <= wellInnerX + wellInnerW - 2 + && cy >= contentY + 2 && cy <= contentY + 22) { + currentModalTab = configReturnTab; + configTarget = null; + scrollOffset = 0; + openDropdownKey = null; + dropdownScrollOffset = 0; + return true; + } + + List items = getVisibleConfigItems(pm, configTarget); + if (items == null) return true; + + int headerH = getConfigHeaderHeight(); + if (cy < contentY + headerH || cy > contentY + contentH) { + openDropdownKey = null; + dropdownScrollOffset = 0; + return true; + } + + // Handle open dropdown popup clicks first + int[] dropBounds = getOpenDropdownBounds(pm); + if (dropBounds != null) { + PluginConfigItem openItem = items.get(dropBounds[4]); + if (cx >= dropBounds[0] && cx <= dropBounds[0] + dropBounds[2] + && cy >= dropBounds[1] && cy <= dropBounds[1] + dropBounds[3]) { + String[] choices = openItem.getChoices(); + int idx = (cy - (dropBounds[1] + 1) + dropdownScrollOffset) / DROPDOWN_ROW_H; + if (idx >= 0 && idx < choices.length) { + pm.setConfigValue(configTarget, openItem, choices[idx]); + } + openDropdownKey = null; + dropdownScrollOffset = 0; + return true; + } + int headerDropX = wellInnerX + wellInnerW - DROPDOWN_WIDTH; + int headerRowY = contentY + headerH + 2 - scrollOffset + dropBounds[4] * 32; + if (cx >= headerDropX && cx <= headerDropX + DROPDOWN_WIDTH + && cy >= headerRowY + 1 && cy <= headerRowY + 31) { + openDropdownKey = null; + dropdownScrollOffset = 0; + return true; + } + openDropdownKey = null; + dropdownScrollOffset = 0; + } + + int rowY = contentY + headerH + 2 - scrollOffset; + for (PluginConfigItem item : items) { + if (rowY + 32 >= contentY + headerH && rowY <= contentY + contentH) { + int btnY = rowY + 1; + int btnH = 30; + if (item.getType() == PluginConfigItem.Type.BOOLEAN) { + int btnW = 60; + int btnX = wellInnerX + wellInnerW - btnW; + if (cx >= btnX && cx <= btnX + btnW && cy >= btnY && cy <= btnY + btnH) { + boolean currentVal = pm.getConfigBoolean(configTarget, item); + pm.setConfigValue(configTarget, item, !currentVal); + return true; + } + } else if (item.getType() == PluginConfigItem.Type.INTEGER) { + int stepperW = 126; + int stepX = wellInnerX + wellInnerW - stepperW; + int range = item.getMaxValue() - item.getMinValue(); + int step = 1; + if (range >= 100000000) step = 1000000; + else if (range >= 10000000) step = 100000; + else if (range >= 1000000) step = 10000; + else if (range >= 100000) step = 1000; + else if (range >= 10000) step = 100; + else if (range >= 1000) step = 10; + + // Minus segment [-] + if (cx >= stepX && cx <= stepX + 28 && cy >= btnY && cy <= btnY + btnH) { + int currentVal = pm.getConfigInt(configTarget, item); + int nextVal = Math.max(item.getMinValue(), currentVal - step); + pm.setConfigValue(configTarget, item, nextVal); + return true; + } + // Plus segment [+] + if (cx >= stepX + 97 && cx <= stepX + stepperW && cy >= btnY && cy <= btnY + btnH) { + int currentVal = pm.getConfigInt(configTarget, item); + int nextVal = Math.min(item.getMaxValue(), currentVal + step); + pm.setConfigValue(configTarget, item, nextVal); + return true; + } + } else if (item.getType() == PluginConfigItem.Type.CHOICE && item.getChoices() != null && item.getChoices().length > 0) { + int dropX = wellInnerX + wellInnerW - DROPDOWN_WIDTH; + if (cx >= dropX && cx <= dropX + DROPDOWN_WIDTH && cy >= btnY && cy <= btnY + btnH) { + String[] choices = item.getChoices(); + openDropdownKey = item.getKey(); + String currentVal = String.valueOf(pm.getConfigValue(configTarget, item)); + int curIdx = 0; + for (int ci = 0; ci < choices.length; ci++) { + if (choices[ci].equalsIgnoreCase(currentVal)) { + curIdx = ci; + break; + } + } + int visibleH = Math.min(DROPDOWN_MAX_VISIBLE, choices.length) * DROPDOWN_ROW_H + 2; + int maxDropScroll = Math.max(0, choices.length * DROPDOWN_ROW_H + 2 - visibleH); + dropdownScrollOffset = Math.min(maxDropScroll, Math.max(0, (curIdx - 2) * DROPDOWN_ROW_H)); + return true; + } + } + } + rowY += 32; + } + } + + return true; // Consume any other click inside modal + } + + private static boolean handleSearchBarClick(int cx, int cy, int bx, int by, int bw, int bh) { + if (cx >= bx && cx <= bx + bw && cy >= by && cy <= by + bh) { + if (searchQuery != null && !searchQuery.isEmpty() && cx >= bx + bw - 20) { + searchQuery = ""; + scrollOffset = 0; + } + searchFocused = true; + return true; + } + return false; + } +} diff --git a/2006Scape Client/src/main/java/PluginRepoClient.java b/2006Scape Client/src/main/java/PluginRepoClient.java new file mode 100644 index 00000000..84d448c5 --- /dev/null +++ b/2006Scape Client/src/main/java/PluginRepoClient.java @@ -0,0 +1,481 @@ +import java.io.*; +import java.net.HttpURLConnection; +import java.net.URL; +import java.nio.charset.StandardCharsets; +import java.util.*; + +/** + * Fetches, parses, installs, updates, and removes plugins/scripts from the online repository. + */ +public class PluginRepoClient { + + public static final String PLUGIN_REPO_SLUG = "2006-Scape/Client-Extensions"; + public static final String PLUGIN_REPO_BRANCH = "main"; + public static final String PLUGIN_REPO_URL = "https://github.com/" + PLUGIN_REPO_SLUG; + public static final String PLUGIN_REPO_RAW_BASE = + "https://raw.githubusercontent.com/" + PLUGIN_REPO_SLUG + "/"; + public static final String DEFAULT_REPO_INDEX_URL = + PLUGIN_REPO_RAW_BASE + PLUGIN_REPO_BRANCH + "/index.json"; + private static final String REPO_INFO_REFS_URL = + PLUGIN_REPO_URL + ".git/info/refs?service=git-upload-pack"; + private static volatile String resolvedMainSha = null; + + public enum InstallStatus { + NOT_INSTALLED, + UPDATE_AVAILABLE, + UP_TO_DATE, + INCOMPATIBLE + } + + public static final class RepoEntry { + public final String id; + public final String name; + public final String version; + public final String minApi; + public final String type; + public final String author; + public final String description; + public final String fileName; + public final String downloadUrl; + + public RepoEntry(String id, String name, String version, String minApi, + String type, String author, String description, + String fileName, String downloadUrl) { + this.id = id != null ? id : ""; + this.name = name != null ? name : ""; + this.version = (version != null && !version.isEmpty()) ? version : "1.0.0"; + this.minApi = (minApi != null && !minApi.isEmpty()) ? minApi : "1.0.0"; + this.type = (type != null && !type.isEmpty()) ? type.toLowerCase() : "script"; + this.author = author != null ? author : "Unknown"; + this.description = description != null ? description : ""; + this.fileName = fileName != null ? fileName : ""; + this.downloadUrl = downloadUrl != null ? downloadUrl : ""; + } + + public SemVer getSemVer() { + return SemVer.parse(version); + } + } + + private static volatile List cachedEntries = Collections.emptyList(); + private static volatile boolean loading = false; + private static volatile boolean loadedOnce = false; + private static volatile long lastFetchMs = 0L; + private static volatile String lastError = null; + private static volatile String busyEntryId = null; + + public static List getEntries() { + return cachedEntries; + } + + public static boolean isLoading() { + return loading; + } + + public static boolean hasLoadedOnce() { + return loadedOnce; + } + + public static String getLastError() { + return lastError; + } + + public static String getBusyEntryId() { + return busyEntryId; + } + + public static void ensureLoaded() { + if (!loading && (!loadedOnce || (System.currentTimeMillis() - lastFetchMs) > 10000L)) { + fetchIndexAsync(DEFAULT_REPO_INDEX_URL, null); + } + } + + public static void fetchIndexAsync(Runnable onComplete) { + fetchIndexAsync(DEFAULT_REPO_INDEX_URL, onComplete); + } + + public static void fetchIndexAsync(String indexUrl, Runnable onComplete) { + if (loading) return; + loading = true; + lastError = null; + Thread t = new Thread(() -> { + try { + resolveLatestMainSha(); + String json = httpGet(indexUrl); + cachedEntries = Collections.unmodifiableList(parseIndexJson(json)); + loadedOnce = true; + lastFetchMs = System.currentTimeMillis(); + lastError = null; + } catch (Throwable ex) { + lastError = ex.getMessage() != null ? ex.getMessage() : ex.getClass().getSimpleName(); + } finally { + loading = false; + if (onComplete != null) { + try { onComplete.run(); } catch (Throwable ignored) {} + } + } + }, "PluginRepo-Fetch"); + t.setDaemon(true); + t.start(); + } + + public static InstallStatus getInstallStatus(RepoEntry entry, PluginManager pm) { + if (entry == null) return InstallStatus.INCOMPATIBLE; + if (!PluginManager.isApiCompatible(entry.minApi)) { + return InstallStatus.INCOMPATIBLE; + } + if (pm == null) return InstallStatus.NOT_INSTALLED; + + SemVer installedVer = findInstalledVersion(entry, pm); + if (installedVer == null) { + return InstallStatus.NOT_INSTALLED; + } + if (entry.getSemVer().isNewerThan(installedVer)) { + return InstallStatus.UPDATE_AVAILABLE; + } + return InstallStatus.UP_TO_DATE; + } + + public static SemVer findInstalledVersion(RepoEntry entry, PluginManager pm) { + if (entry == null || pm == null) return null; + for (ClientPlugin p : pm.getPlugins()) { + if (p.getName().equalsIgnoreCase(entry.name)) { + return p.getSemVer(); + } + } + for (ClientScript s : pm.getScripts()) { + if (s.getName().equalsIgnoreCase(entry.name)) { + return s.getSemVer(); + } + } + return null; + } + + public static int countUpdatesAvailable(PluginManager pm) { + if (pm == null || cachedEntries == null || cachedEntries.isEmpty()) return 0; + int count = 0; + for (RepoEntry entry : cachedEntries) { + if (getInstallStatus(entry, pm) == InstallStatus.UPDATE_AVAILABLE) { + count++; + } + } + return count; + } + + public static void updateAllAsync(PluginManager pm, Runnable onComplete) { + if (pm == null || busyEntryId != null || cachedEntries == null || cachedEntries.isEmpty()) return; + List toUpdate = new ArrayList<>(); + for (RepoEntry entry : cachedEntries) { + if (getInstallStatus(entry, pm) == InstallStatus.UPDATE_AVAILABLE + && !entry.downloadUrl.isEmpty() && !entry.fileName.isEmpty()) { + toUpdate.add(entry); + } + } + if (toUpdate.isEmpty()) return; + + lastError = null; + Thread t = new Thread(() -> { + int updatedCount = 0; + try { + for (RepoEntry entry : toUpdate) { + busyEntryId = entry.id.isEmpty() ? entry.name : entry.id; + try { + String content = httpGet(entry.downloadUrl); + String safeName = new File(entry.fileName).getName(); + if (!DesktopHooks.saveExternalScript(safeName, content)) { + File target = resolveTargetFile(entry, pm); + if (target == null) { + throw new IOException("Plugin directory unavailable"); + } + File parent = target.getParentFile(); + if (parent != null && !parent.exists()) { + parent.mkdirs(); + } + try (FileOutputStream out = new FileOutputStream(target)) { + out.write(content.getBytes(StandardCharsets.UTF_8)); + } + } + updatedCount++; + } catch (Throwable ex) { + lastError = "Update failed (" + entry.name + "): " + + (ex.getMessage() != null ? ex.getMessage() : ex.getClass().getSimpleName()); + } + } + if (updatedCount > 0) { + pm.reloadExternal(); + if (pm.getContext() != null) { + pm.getContext().sendClientMessage("Updated " + updatedCount + " plugin(s)/script(s) from online repo."); + } + } + } finally { + busyEntryId = null; + if (onComplete != null) { + try { onComplete.run(); } catch (Throwable ignored) {} + } + } + }, "PluginRepo-UpdateAll"); + t.setDaemon(true); + t.start(); + } + + public static void installOrUpdateAsync(RepoEntry entry, PluginManager pm, Runnable onComplete) { + if (entry == null || pm == null || busyEntryId != null) return; + if (entry.downloadUrl.isEmpty() || entry.fileName.isEmpty()) { + lastError = "Invalid repository entry: missing URL or fileName"; + return; + } + busyEntryId = entry.id.isEmpty() ? entry.name : entry.id; + lastError = null; + Thread t = new Thread(() -> { + try { + String content = httpGet(entry.downloadUrl); + String safeName = new File(entry.fileName).getName(); + if (!DesktopHooks.saveExternalScript(safeName, content)) { + File target = resolveTargetFile(entry, pm); + if (target == null) { + throw new IOException("Plugin directory unavailable"); + } + File parent = target.getParentFile(); + if (parent != null && !parent.exists()) { + parent.mkdirs(); + } + try (FileOutputStream out = new FileOutputStream(target)) { + out.write(content.getBytes(StandardCharsets.UTF_8)); + } + } + pm.reloadExternal(); + if (pm.getContext() != null) { + pm.getContext().sendClientMessage("Installed " + entry.name + " v" + entry.version + " from online repo."); + } + } catch (Throwable ex) { + lastError = "Install failed (" + entry.name + "): " + (ex.getMessage() != null ? ex.getMessage() : ex.getClass().getSimpleName()); + if (pm.getContext() != null) { + pm.getContext().sendClientMessage(lastError); + } + } finally { + busyEntryId = null; + if (onComplete != null) { + try { onComplete.run(); } catch (Throwable ignored) {} + } + } + }, "PluginRepo-Install"); + t.setDaemon(true); + t.start(); + } + + public static boolean uninstall(RepoEntry entry, PluginManager pm) { + if (entry == null || pm == null || entry.fileName.isEmpty()) return false; + String safeName = new File(entry.fileName).getName(); + if (DesktopHooks.deleteExternalScript(safeName)) { + pm.reloadExternal(); + if (pm.getContext() != null) { + pm.getContext().sendClientMessage("Removed " + entry.name + "."); + } + return true; + } + File target = resolveTargetFile(entry, pm); + if (target != null && target.exists() && target.delete()) { + pm.reloadExternal(); + if (pm.getContext() != null) { + pm.getContext().sendClientMessage("Removed " + entry.name + "."); + } + return true; + } + return false; + } + + private static File resolveTargetFile(RepoEntry entry, PluginManager pm) { + File base = pm.getPluginBaseDir(); + if (base == null) return null; + String subDir = "plugin".equalsIgnoreCase(entry.type) ? "plugins" : "scripts"; + String safeName = new File(entry.fileName).getName(); + return new File(new File(base, subDir), safeName); + } + + private static void resolveLatestMainSha() { + try { + String body = httpGetRaw(REPO_INFO_REFS_URL); + int idx = body.indexOf(" refs/heads/" + PLUGIN_REPO_BRANCH); + if (idx >= 40) { + String candidate = body.substring(idx - 40, idx); + if (candidate.matches("[0-9a-fA-F]{40}")) { + resolvedMainSha = candidate; + } + } + } catch (Throwable ignored) { + } + } + + private static String rewriteRawMainUrl(String urlStr) { + String sha = resolvedMainSha; + if (sha == null || urlStr == null) return urlStr; + String lower = urlStr.toLowerCase(Locale.ROOT); + String prefix = (PLUGIN_REPO_RAW_BASE + PLUGIN_REPO_BRANCH + "/").toLowerCase(Locale.ROOT); + if (lower.startsWith(prefix)) { + return PLUGIN_REPO_RAW_BASE + sha + "/" + urlStr.substring(prefix.length()); + } + return urlStr; + } + + private static String httpGet(String urlStr) throws IOException { + if (resolvedMainSha == null) { + resolveLatestMainSha(); + } + String targetUrl = rewriteRawMainUrl(urlStr); + String sep = targetUrl.contains("?") ? "&" : "?"; + return httpGetRaw(targetUrl + sep + "t=" + System.currentTimeMillis()); + } + + private static String httpGetRaw(String urlStr) throws IOException { + String hookRes = DesktopHooks.httpGet(urlStr); + if (hookRes != null) { + return hookRes; + } + HttpURLConnection conn = (HttpURLConnection) new URL(urlStr).openConnection(); + conn.setUseCaches(false); + conn.setConnectTimeout(8000); + conn.setReadTimeout(10000); + conn.setRequestProperty("User-Agent", "2006Scape-Client"); + conn.setRequestProperty("Cache-Control", "no-cache"); + int code = conn.getResponseCode(); + if (code < 200 || code >= 300) { + throw new IOException("HTTP " + code); + } + try (InputStream in = conn.getInputStream(); + ByteArrayOutputStream bos = new ByteArrayOutputStream()) { + byte[] buf = new byte[4096]; + int n; + while ((n = in.read(buf)) != -1) { + bos.write(buf, 0, n); + } + return new String(bos.toByteArray(), StandardCharsets.UTF_8); + } finally { + conn.disconnect(); + } + } + + /** + * Parses the repository index.json "plugins" array without external JSON dependencies. + */ + public static List parseIndexJson(String json) { + List result = new ArrayList<>(); + if (json == null || json.isEmpty()) return result; + + int keyIdx = json.indexOf("\"plugins\""); + if (keyIdx < 0) return result; + int arrStart = json.indexOf('[', keyIdx); + if (arrStart < 0) return result; + + int len = json.length(); + int i = arrStart + 1; + while (i < len) { + char c = json.charAt(i); + if (c == ']') break; + if (c == '{') { + int objEnd = findMatchingBrace(json, i); + if (objEnd < 0) break; + Map fields = parseFlatJsonObject(json.substring(i + 1, objEnd)); + String name = fields.get("name"); + String fileName = fields.get("fileName"); + if (name != null && !name.isEmpty() && fileName != null && !fileName.isEmpty()) { + result.add(new RepoEntry( + fields.get("id"), + name, + fields.get("version"), + fields.get("minApi"), + fields.get("type"), + fields.get("author"), + fields.get("description"), + fileName, + fields.get("downloadUrl") + )); + } + i = objEnd + 1; + } else { + i++; + } + } + return result; + } + + private static int findMatchingBrace(String s, int openIdx) { + boolean inStr = false; + int depth = 0; + for (int i = openIdx; i < s.length(); i++) { + char c = s.charAt(i); + if (c == '"' && (i == 0 || s.charAt(i - 1) != '\\')) { + inStr = !inStr; + } else if (!inStr) { + if (c == '{') depth++; + else if (c == '}') { + depth--; + if (depth == 0) return i; + } + } + } + return -1; + } + + private static Map parseFlatJsonObject(String body) { + Map map = new LinkedHashMap<>(); + int len = body.length(); + int i = 0; + while (i < len) { + int kStart = body.indexOf('"', i); + if (kStart < 0) break; + int kEnd = findStringEnd(body, kStart + 1); + if (kEnd < 0) break; + String key = unescapeJson(body.substring(kStart + 1, kEnd)); + + int colon = body.indexOf(':', kEnd + 1); + if (colon < 0) break; + + int vIdx = colon + 1; + while (vIdx < len && Character.isWhitespace(body.charAt(vIdx))) vIdx++; + if (vIdx >= len) break; + + if (body.charAt(vIdx) == '"') { + int vEnd = findStringEnd(body, vIdx + 1); + if (vEnd < 0) break; + map.put(key, unescapeJson(body.substring(vIdx + 1, vEnd))); + i = vEnd + 1; + } else { + int comma = body.indexOf(',', vIdx); + int end = comma >= 0 ? comma : len; + map.put(key, body.substring(vIdx, end).trim()); + i = end + 1; + } + } + return map; + } + + private static int findStringEnd(String s, int start) { + for (int i = start; i < s.length(); i++) { + char c = s.charAt(i); + if (c == '\\') { + i++; + } else if (c == '"') { + return i; + } + } + return -1; + } + + private static String unescapeJson(String s) { + if (s.indexOf('\\') < 0) return s; + StringBuilder sb = new StringBuilder(s.length()); + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + if (c == '\\' && i + 1 < s.length()) { + char next = s.charAt(++i); + if (next == 'n') sb.append('\n'); + else if (next == 'r') sb.append('\r'); + else if (next == 't') sb.append('\t'); + else sb.append(next); + } else { + sb.append(c); + } + } + return sb.toString(); + } +} diff --git a/2006Scape Client/src/main/java/RSApplet.java b/2006Scape Client/src/main/java/RSApplet.java index e64151b8..da2c55c4 100644 --- a/2006Scape Client/src/main/java/RSApplet.java +++ b/2006Scape Client/src/main/java/RSApplet.java @@ -11,7 +11,7 @@ import java.net.URI; import java.util.Map; @SuppressWarnings("serial") -public class RSApplet extends Applet implements Runnable, MouseListener, MouseWheelListener, MouseMotionListener, KeyListener, FocusListener, WindowListener { +public class RSApplet extends Applet implements Runnable, MouseListener, MouseWheelListener, MouseMotionListener, KeyListener, FocusListener, WindowListener, ComponentListener { public static boolean ctrlDown = false; public static boolean shiftDown = false; @@ -26,16 +26,32 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh public static final int TARGET_MINIMAP = 4; public static int touchTargetArea = TARGET_DEFAULT; + private volatile boolean pendingResize = false; + private int pendingWidth = 765; + private int pendingHeight = 503; + final void createClientFrame(int i, int j) { + try { + System.setProperty("sun.awt.noerasebackground", "true"); + } catch (Exception _ex) { + } myWidth = j; myHeight = i; this.setPreferredSize(new Dimension(this.myWidth, this.myHeight)); + this.setBackground(Color.BLACK); + + if (!ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + ModernLayout.updateWindowSize(j, i); + ClientSettings.VIEWPORT_WIDTH = ClientSettings.isDesktopModern() ? j : 512; + ClientSettings.VIEWPORT_HEIGHT = ClientSettings.isDesktopModern() ? i : 334; + this.addComponentListener(this); + } gameFrame = new RSFrame(this); graphics = getGameComponent().getGraphics(); fullGameScreen = new RSImageProducer(myWidth, myHeight, getGameComponent()); - if (ClientSettings.SHOW_NAVBAR) { + if (ClientSettings.SHOW_NAVBAR && !ClientSettings.RESIZABLE) { try { java.awt.Font arial = new java.awt.Font("Arial", java.awt.Font.PLAIN, 11); Map attributes = arial.getAttributes(); @@ -249,6 +265,9 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh getGameComponent().addMouseWheelListener(this); getGameComponent().addKeyListener(this); getGameComponent().addFocusListener(this); + if (!ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + getGameComponent().addComponentListener(this); + } if (gameFrame != null) { gameFrame.addWindowListener(this); } @@ -265,6 +284,10 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh System.currentTimeMillis(); while (anInt4 >= 0) { + if (pendingResize) { + pendingResize = false; + handleResize(pendingWidth, pendingHeight); + } if (anInt4 > 0) { anInt4--; if (anInt4 == 0) { @@ -392,11 +415,7 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh @Override public final void update(Graphics g) { - if (graphics == null) { - graphics = g; - } - shouldClearScreen = true; - raiseWelcomeScreen(); + paint(g); } @Override @@ -404,6 +423,11 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh if (graphics == null) { graphics = g; } + if (!ModernLayout.inGame && !ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + DesktopHooks.checkResize(getGameComponent()); + DesktopHooks.redrawScaledLoginScreen(g); + return; + } shouldClearScreen = true; raiseWelcomeScreen(); } @@ -415,8 +439,18 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh int i = mouseevent.getX(); int j = mouseevent.getY(); idleTime = 0; - clickX = i; - clickY = j; + if (ClientSettings.isDesktopModern()) { + touchTargetArea = ModernLayout.hit(i, j); + int[] gameCoords = ModernLayout.toGameCoords(touchTargetArea, i, j); + clickX = gameCoords[0]; + clickY = gameCoords[1]; + mouseX = gameCoords[0]; + mouseY = gameCoords[1]; + } else { + touchTargetArea = 0; + clickX = i; + clickY = j; + } clickTime = System.currentTimeMillis(); if (mouseevent.getButton() == MouseEvent.BUTTON2) { mouseWheelDown = true; @@ -469,8 +503,16 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh return; } idleTime = 0; - mouseX = x; - mouseY = y; + if (ClientSettings.isDesktopModern()) { + touchTargetArea = ModernLayout.hit(x, y); + int[] gameCoords = ModernLayout.toGameCoords(touchTargetArea, x, y); + mouseX = gameCoords[0]; + mouseY = gameCoords[1]; + } else { + touchTargetArea = 0; + mouseX = x; + mouseY = y; + } } void mouseWheelDragged(int param1, int param2) { @@ -481,12 +523,26 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh int i = mouseevent.getX(); int j = mouseevent.getY(); idleTime = 0; - mouseX = i; - mouseY = j; + if (ClientSettings.isDesktopModern()) { + touchTargetArea = ModernLayout.hit(i, j); + int[] gameCoords = ModernLayout.toGameCoords(touchTargetArea, i, j); + mouseX = gameCoords[0]; + mouseY = gameCoords[1]; + } else { + touchTargetArea = 0; + mouseX = i; + mouseY = j; + } } @Override public void mouseWheelMoved(MouseWheelEvent e) { + if (ClientSettings.isDesktopModern()) { + int hitArea = ModernLayout.hit(e.getX(), e.getY()); + if (hitArea != ModernLayout.TARGET_VIEWPORT) { + return; + } + } handleMouseWheel(e.getWheelRotation(), e.isControlDown()); } @@ -682,6 +738,57 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh void raiseWelcomeScreen() { } + void handleResize(int w, int h) { + myWidth = w; + myHeight = h; + ModernLayout.updateWindowSize(w, h); + graphics = getGameComponent().getGraphics(); + if (graphics != null && !ClientSettings.isDesktopModern()) { + graphics.setColor(Color.BLACK); + graphics.fillRect(0, 0, w, h); + } + if (fullGameScreen != null) { + fullGameScreen = new RSImageProducer(765, 503, getGameComponent()); + } + onResize(w, h); + if (!ModernLayout.inGame && !ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + DesktopHooks.redrawScaledLoginScreen(graphics); + } + } + + void onResize(int w, int h) { + } + + @Override + public void componentResized(ComponentEvent e) { + if (!ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + Component c = e.getComponent(); + int w = c.getWidth(); + int h = c.getHeight(); + if (w >= 765 && h >= 503 && (w != myWidth || h != myHeight)) { + pendingWidth = w; + pendingHeight = h; + pendingResize = true; + if (!ModernLayout.inGame) { + DesktopHooks.checkResize(c); + Graphics g = getGameComponent().getGraphics(); + if (g != null) { + DesktopHooks.redrawScaledLoginScreen(g); + } + } + } + } + } + + @Override + public void componentMoved(ComponentEvent e) {} + + @Override + public void componentShown(ComponentEvent e) {} + + @Override + public void componentHidden(ComponentEvent e) {} + Component getGameComponent() { return this; } @@ -704,6 +811,14 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh } catch (Exception _ex) { } } + if (!ClientSettings.ANDROID && ClientSettings.RESIZABLE) { + DesktopHooks.checkResize(getGameComponent()); + if (myWidth != ModernLayout.windowWidth || myHeight != ModernLayout.windowHeight) { + myWidth = ModernLayout.windowWidth; + myHeight = ModernLayout.windowHeight; + shouldClearScreen = true; + } + } Font font = new Font("Helvetica", 1, 13); FontMetrics fontmetrics = getGameComponent().getFontMetrics(font); Font font1 = new Font("Helvetica", 0, 13); @@ -750,7 +865,7 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh private boolean shouldClearScreen; boolean awtFocus; int idleTime; - int clickMode2; + public int clickMode2; public int mouseX; public int mouseY; private int clickMode1; diff --git a/2006Scape Client/src/main/java/RSColors.java b/2006Scape Client/src/main/java/RSColors.java index 7f4aa4b2..c88cd8ad 100644 --- a/2006Scape Client/src/main/java/RSColors.java +++ b/2006Scape Client/src/main/java/RSColors.java @@ -9,6 +9,8 @@ public final class RSColors { public static final int CYAN = 0x00ffff; public static final int ORANGE = 0xffc800; public static final int RED = 0xff0000; + public static final int GOLD = 0xffd700; + public static final int MAGENTA = 0xdc00ff; public static final int WHITE_DARKER = 0xc0c0c0; private RSColors() {} diff --git a/2006Scape Client/src/main/java/RSFrame.java b/2006Scape Client/src/main/java/RSFrame.java index 05e50420..f8c814a3 100644 --- a/2006Scape Client/src/main/java/RSFrame.java +++ b/2006Scape Client/src/main/java/RSFrame.java @@ -10,13 +10,20 @@ final class RSFrame extends Frame { rsApplet = applet; setTitle(ClientSettings.SERVER_NAME + " World: " + ClientSettings.SERVER_WORLD + ((ClientSettings.SERVER_IP.equals("localhost") || ClientSettings.SERVER_IP.equals("127.0.0.1")) ? " [Local]" : "")); - this.setResizable(false); + this.setResizable(ClientSettings.RESIZABLE); this.setBackground(Color.BLACK); this.setLayout(new BorderLayout()); this.add(applet, BorderLayout.CENTER); this.pack(); + if (ClientSettings.RESIZABLE) { + Insets insets = this.getInsets(); + int minW = 765 + (insets != null ? insets.left + insets.right : 0); + int minH = 503 + (insets != null ? insets.top + insets.bottom : 0); + this.setMinimumSize(new Dimension(minW, minH)); + } + this.setLocationRelativeTo(null); this.setVisible(true); this.toFront(); diff --git a/2006Scape Client/src/main/java/RSImageProducer.java b/2006Scape Client/src/main/java/RSImageProducer.java index e624464c..b8e11881 100644 --- a/2006Scape Client/src/main/java/RSImageProducer.java +++ b/2006Scape Client/src/main/java/RSImageProducer.java @@ -37,6 +37,26 @@ final class RSImageProducer implements ImageProducer, ImageObserver { public void drawGraphics(int i, Graphics g, int k) { method239(); + if (ClientSettings.RESIZABLE && !ClientSettings.ANDROID) { + if (!ModernLayout.inGame && k >= 0 && i >= 0 && k + anInt316 <= 765 && i + anInt317 <= 503) { + if (ClientSettings.isDesktopModern()) { + DesktopHooks.drawScaledLoginTile(g, anIntArray315, k, i, anInt316, anInt317); + return; + } + DesktopHooks.updateLoginTile(anIntArray315, k, i, anInt316, anInt317); + } + if (ClientSettings.isDesktopModern()) { + int[] pos = ModernLayout.toWindow(k, i, anInt316, anInt317); + if (pos != null) { + if (pos.length == 4) { + g.drawImage(anImage320, pos[0], pos[1], pos[2], pos[3], this); + } else { + g.drawImage(anImage320, pos[0], pos[1], this); + } + } + return; + } + } g.drawImage(anImage320, k, i, this); } diff --git a/2006Scape Client/src/main/java/ScriptInterpreter.java b/2006Scape Client/src/main/java/ScriptInterpreter.java new file mode 100644 index 00000000..972930a1 --- /dev/null +++ b/2006Scape Client/src/main/java/ScriptInterpreter.java @@ -0,0 +1,1383 @@ +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.util.*; + +/** + * Lightweight, zero-dependency Java/BeanShell-compatible script interpreter. + * Runs on both Desktop JVM and Android ART without compiling bytecodes. + */ +public class ScriptInterpreter { + + public static class ScriptMetadata { + public String name = "Unnamed Script"; + public String author = "Anonymous"; + public String description = ""; + public String version = "1.0.0"; + public String minApiVersion = "1.0.0"; + public String type = "script"; // "plugin" or "script" + public List commands = new ArrayList<>(); + public List configItems = new ArrayList<>(); + } + + public static ScriptMetadata parseMetadata(String source) { + ScriptMetadata meta = new ScriptMetadata(); + String[] lines = source.split("\\r?\\n"); + for (String line : lines) { + String trimmed = line.trim(); + if (trimmed.startsWith("//") || trimmed.startsWith("#")) { + String comment = trimmed.substring(trimmed.startsWith("//") ? 2 : 1).trim(); + if (comment.startsWith("@name")) { + meta.name = comment.substring(5).trim(); + } else if (comment.startsWith("@author")) { + meta.author = comment.substring(7).trim(); + } else if (comment.startsWith("@desc")) { + meta.description = comment.substring(comment.indexOf(' ')).trim(); + } else if (comment.startsWith("@type")) { + meta.type = comment.substring(5).trim().toLowerCase(); + } else if (comment.startsWith("@version")) { + meta.version = comment.substring(8).trim(); + } else if (comment.startsWith("@minApi")) { + meta.minApiVersion = comment.substring(7).trim(); + } else if (comment.startsWith("@command")) { + String rawCmds = comment.substring(8).trim(); + for (String c : rawCmds.split(",")) { + String clean = c.trim(); + if (clean.startsWith("::")) clean = clean.substring(2).trim(); + if (!clean.isEmpty()) { + meta.commands.add(clean.toLowerCase()); + } + } + } else if (comment.startsWith("@config")) { + // format: @config key|label|type|defaultValue[|extra][|when:otherKey] + String[] parts = comment.substring(7).trim().split("\\|"); + String visibleWhen = null; + int partCount = parts.length; + if (partCount >= 5 && parts[partCount - 1].trim().startsWith("when:")) { + visibleWhen = parts[partCount - 1].trim().substring(5).trim(); + partCount--; + } + if (partCount >= 4) { + String key = parts[0].trim(); + String label = parts[1].trim(); + String typeStr = parts[2].trim().toLowerCase(); + String defStr = parts[3].trim(); + PluginConfigItem item; + if ("bool".equals(typeStr) || "boolean".equals(typeStr)) { + item = new PluginConfigItem(key, label, "", Boolean.parseBoolean(defStr)); + } else if ("int".equals(typeStr) || "integer".equals(typeStr)) { + int min = partCount >= 5 ? Integer.parseInt(parts[4].trim()) : 0; + int max = partCount >= 6 ? Integer.parseInt(parts[5].trim()) : 100; + item = new PluginConfigItem(key, label, "", Integer.parseInt(defStr), min, max); + } else if ("choice".equals(typeStr) && partCount >= 5) { + String[] choices = parts[4].split(","); + for (int ci = 0; ci < choices.length; ci++) { + choices[ci] = choices[ci].trim(); + } + item = new PluginConfigItem(key, label, "", defStr, choices); + } else { + item = new PluginConfigItem(key, label, "", defStr); + } + if (visibleWhen != null && !visibleWhen.isEmpty()) { + item.setVisibleWhen(visibleWhen); + } + meta.configItems.add(item); + } + } + } else if (!trimmed.isEmpty()) { + // First non-comment line, stop header parsing + break; + } + } + if (!meta.commands.isEmpty()) { + boolean hasToggle = false; + for (PluginConfigItem item : meta.configItems) { + if ("chatCommands".equals(item.getKey())) { + hasToggle = true; + break; + } + } + if (!hasToggle) { + StringBuilder cmdLabel = new StringBuilder(); + for (int i = 0; i < meta.commands.size(); i++) { + if (i > 0) cmdLabel.append(", "); + cmdLabel.append("::").append(meta.commands.get(i)); + } + meta.configItems.add(new PluginConfigItem("chatCommands", "Chat Commands", + "Allow " + cmdLabel + " in chat", true)); + } + } + return meta; + } + + /** + * Runtime execution environment holding functions, global variables, and evaluator. + */ + private static String lastEvalExpr = ""; + + public static class Environment { + private final Map globals = new HashMap<>(); + private final Map functions = new HashMap<>(); + + public Environment() { + } + + public void setVariable(String name, Object value) { + globals.put(name, value); + } + + public Object getVariable(String name) { + return globals.get(name); + } + + public boolean hasFunction(String name) { + return functions.containsKey(name); + } + + public void registerFunction(String name, List paramNames, String body) { + functions.put(name, new FunctionDef(name, paramNames, body)); + } + + public Object invoke(String name, Object... args) { + FunctionDef fn = functions.get(name); + if (fn == null) return null; + return fn.execute(this, args); + } + } + + public static class FunctionDef { + final String name; + final List params; + final String body; + + FunctionDef(String name, List params, String body) { + this.name = name; + this.params = params; + this.body = body; + } + + public Object execute(Environment parentEnv, Object[] argValues) { + Scope scope = new Scope(parentEnv.globals); + for (int i = 0; i < params.size() && i < argValues.length; i++) { + scope.setLocal(params.get(i), argValues[i]); + } + try { + return executeBlock(body, scope, parentEnv); + } catch (ReturnSignal r) { + return r.value; + } catch (Throwable t) { + System.err.println("Script runtime error in function " + name + " [expr=" + lastEvalExpr + "]: " + t.getMessage()); + t.printStackTrace(); + return null; + } + } + } + + public static class Scope { + private final Map globals; + private final Map locals = new HashMap<>(); + private final boolean isGlobal; + + public Scope(Map globals) { + this(globals, false); + } + + public Scope(Map globals, boolean isGlobal) { + this.globals = globals; + this.isGlobal = isGlobal; + } + + public void set(String name, Object value) { + if (isGlobal) { + globals.put(name, value); + } else if (globals.containsKey(name) && !locals.containsKey(name)) { + globals.put(name, value); + } else { + locals.put(name, value); + } + } + + public void setLocal(String name, Object value) { + locals.put(name, value); + } + + public Object get(String name) { + if (locals.containsKey(name)) return locals.get(name); + return globals.get(name); + } + + public boolean contains(String name) { + return locals.containsKey(name) || globals.containsKey(name); + } + } + + private static class ReturnSignal extends RuntimeException { + final Object value; + ReturnSignal(Object value) { + this.value = value; + } + } + + /** + * Parses source code into functions and initial statements, returning an Environment. + */ + public static Environment compile(String source) { + Environment env = new Environment(); + env.setVariable("Math", Math.class); + env.setVariable("System", System.class); + env.setVariable("RSColors", RSColors.class); + env.setVariable("ItemID", ItemID.class); + env.setVariable("SkillID", SkillID.class); + env.setVariable("NpcID", NpcID.class); + env.setVariable("ObjectID", ObjectID.class); + env.setVariable("PluginContext", PluginContext.class); + String cleaned = cleanComments(source); + Scope globalScope = new Scope(env.globals, true); + + // Find function declarations: void onStart(...) { ... } or int loop(...) { ... } + int pos = 0; + int len = cleaned.length(); + + while (pos < len) { + // Find next function signature or statement + int openBrace = cleaned.indexOf('{', pos); + if (openBrace == -1) { + // Execute trailing statements + String statementBlock = cleaned.substring(pos).trim(); + if (!statementBlock.isEmpty()) { + executeBlock(statementBlock, globalScope, env); + } + break; + } + + String prefix = cleaned.substring(pos, openBrace).trim(); + int lastSemi = prefix.lastIndexOf(';'); + if (lastSemi != -1) { + String precedingStmts = prefix.substring(0, lastSemi + 1); + executeBlock(precedingStmts, globalScope, env); + prefix = prefix.substring(lastSemi + 1).trim(); + } + + int closeParen = prefix.lastIndexOf(')'); + int openParen = prefix.lastIndexOf('('); + + if (openParen != -1 && closeParen != -1 && openParen < closeParen) { + // Looks like function: [type] name(arg1, arg2...) + String funcHeader = prefix.substring(0, openParen).trim(); + String[] words = funcHeader.split("\\s+"); + String funcName = words[words.length - 1]; + + String paramsStr = prefix.substring(openParen + 1, closeParen).trim(); + List paramList = new ArrayList<>(); + if (!paramsStr.isEmpty()) { + for (String p : paramsStr.split(",")) { + String[] pParts = p.trim().split("\\s+"); + paramList.add(pParts[pParts.length - 1]); + } + } + + // Match closing brace + int closeBrace = findMatchingBrace(cleaned, openBrace); + if (closeBrace != -1) { + String funcBody = cleaned.substring(openBrace + 1, closeBrace); + env.registerFunction(funcName, paramList, funcBody); + pos = closeBrace + 1; + continue; + } + } + + // Not a function, advance pos to semicolon + int semi = cleaned.indexOf(';', pos); + if (semi != -1 && semi < openBrace) { + String stmt = cleaned.substring(pos, semi + 1); + executeBlock(stmt, globalScope, env); + pos = semi + 1; + } else { + pos = openBrace + 1; + } + } + + return env; + } + + private static int findMatchingBrace(String s, int openIndex) { + int depth = 1; + for (int i = openIndex + 1; i < s.length(); i++) { + char c = s.charAt(i); + if (c == '{') depth++; + else if (c == '}') { + depth--; + if (depth == 0) return i; + } + } + return -1; + } + + private static String cleanComments(String s) { + StringBuilder sb = new StringBuilder(s.length()); + int len = s.length(); + boolean inStr = false; + for (int i = 0; i < len; i++) { + char c = s.charAt(i); + if (c == '"' && (i == 0 || s.charAt(i - 1) != '\\')) { + inStr = !inStr; + sb.append(c); + } else if (!inStr && c == '/' && i + 1 < len && s.charAt(i + 1) == '/') { + // Line comment + int nextNl = s.indexOf('\n', i); + if (nextNl == -1) break; + i = nextNl - 1; + } else if (!inStr && c == '/' && i + 1 < len && s.charAt(i + 1) == '*') { + // Block comment + int close = s.indexOf("*/", i + 2); + if (close == -1) break; + i = close + 1; + } else { + sb.append(c); + } + } + return sb.toString(); + } + + private static Object executeBlock(String block, Scope scope, Environment env) { + int pos = 0; + int len = block.length(); + + while (pos < len) { + // Skip whitespace + while (pos < len && Character.isWhitespace(block.charAt(pos))) pos++; + if (pos >= len) break; + + // Check control statements + if (block.startsWith("if", pos) && !Character.isJavaIdentifierPart(block.charAt(pos + 2))) { + pos = executeIfStatement(block, pos, scope, env); + continue; + } + + if (block.startsWith("while", pos) && (pos + 5 == len || !Character.isJavaIdentifierPart(block.charAt(pos + 5)))) { + int openParen = block.indexOf('(', pos); + int closeParen = findMatchingParen(block, openParen); + String condStr = block.substring(openParen + 1, closeParen); + int openBrace = block.indexOf('{', closeParen); + int closeBrace = findMatchingBrace(block, openBrace); + String loopBlock = block.substring(openBrace + 1, closeBrace); + int guard = 0; + while (guard++ < 1000 && isTruthy(evalExpression(condStr, scope, env))) { + executeBlock(loopBlock, scope, env); + } + pos = closeBrace + 1; + continue; + } + + if (block.startsWith("return", pos) && (pos + 6 == len || !Character.isJavaIdentifierPart(block.charAt(pos + 6)))) { + int semi = block.indexOf(';', pos); + String retExpr = semi != -1 ? block.substring(pos + 6, semi).trim() : block.substring(pos + 6).trim(); + Object val = retExpr.isEmpty() ? null : evalExpression(retExpr, scope, env); + throw new ReturnSignal(val); + } + + // Normal statement ending with semicolon + int semi = block.indexOf(';', pos); + if (semi == -1) { + semi = len; + } + String stmt = block.substring(pos, semi).trim(); + executeStatement(stmt, scope, env); + pos = semi + 1; + } + + return null; + } + + private static int executeIfStatement(String block, int pos, Scope scope, Environment env) { + int len = block.length(); + int openParen = block.indexOf('(', pos); + int closeParen = findMatchingParen(block, openParen); + String condStr = block.substring(openParen + 1, closeParen); + boolean cond = isTruthy(evalExpression(condStr, scope, env)); + + int openBrace = block.indexOf('{', closeParen); + int closeBrace = findMatchingBrace(block, openBrace); + String thenBlock = block.substring(openBrace + 1, closeBrace); + + if (cond) { + executeBlock(thenBlock, scope, env); + return skipElseChain(block, closeBrace + 1); + } + + int nextPos = closeBrace + 1; + while (nextPos < len && Character.isWhitespace(block.charAt(nextPos))) nextPos++; + + if (nextPos + 4 <= len && block.startsWith("else", nextPos) + && (nextPos + 4 == len || !Character.isJavaIdentifierPart(block.charAt(nextPos + 4)))) { + int afterElse = nextPos + 4; + while (afterElse < len && Character.isWhitespace(block.charAt(afterElse))) afterElse++; + if (afterElse + 2 <= len && block.startsWith("if", afterElse) + && (afterElse + 2 == len || !Character.isJavaIdentifierPart(block.charAt(afterElse + 2)))) { + return executeIfStatement(block, afterElse, scope, env); + } + int elseBrace = block.indexOf('{', afterElse); + int elseClose = findMatchingBrace(block, elseBrace); + String elseBlock = block.substring(elseBrace + 1, elseClose); + executeBlock(elseBlock, scope, env); + return elseClose + 1; + } + + return nextPos; + } + + private static int skipElseChain(String block, int pos) { + int len = block.length(); + while (pos < len) { + int nextPos = pos; + while (nextPos < len && Character.isWhitespace(block.charAt(nextPos))) nextPos++; + if (nextPos + 4 <= len && block.startsWith("else", nextPos) + && (nextPos + 4 == len || !Character.isJavaIdentifierPart(block.charAt(nextPos + 4)))) { + int afterElse = nextPos + 4; + while (afterElse < len && Character.isWhitespace(block.charAt(afterElse))) afterElse++; + if (afterElse + 2 <= len && block.startsWith("if", afterElse) + && (afterElse + 2 == len || !Character.isJavaIdentifierPart(block.charAt(afterElse + 2)))) { + int openParen = block.indexOf('(', afterElse); + int closeParen = findMatchingParen(block, openParen); + int openBrace = block.indexOf('{', closeParen); + int closeBrace = findMatchingBrace(block, openBrace); + pos = closeBrace + 1; + continue; + } + int elseBrace = block.indexOf('{', afterElse); + int elseClose = findMatchingBrace(block, elseBrace); + return elseClose + 1; + } + return pos; + } + return pos; + } + + private static int findMatchingParen(String s, int openIndex) { + int depth = 1; + for (int i = openIndex + 1; i < s.length(); i++) { + char c = s.charAt(i); + if (c == '(') depth++; + else if (c == ')') { + depth--; + if (depth == 0) return i; + } + } + return -1; + } + + private static void executeStatement(String stmt, Scope scope, Environment env) { + if (stmt == null || stmt.isEmpty()) return; + + // Compound assignment: += or -= + int plusEq = stmt.indexOf("+="); + int minusEq = stmt.indexOf("-="); + if (plusEq != -1 || minusEq != -1) { + boolean isAdd = plusEq != -1 && (minusEq == -1 || plusEq < minusEq); + int opIdx = isAdd ? plusEq : minusEq; + String varName = stmt.substring(0, opIdx).trim(); + String right = stmt.substring(opIdx + 2).trim(); + Object cur = scope.get(varName); + Object rhs = evalExpression(right, scope, env); + if (isAdd && (cur instanceof String || rhs instanceof String)) { + scope.set(varName, safeToString(cur) + safeToString(rhs)); + } else if (isIntegral(cur) && isIntegral(rhs)) { + long res = isAdd ? (((Number) cur).longValue() + ((Number) rhs).longValue()) + : (((Number) cur).longValue() - ((Number) rhs).longValue()); + scope.set(varName, toIntegralResult(cur, rhs, res)); + } else { + double a = toDouble(cur); + double b = toDouble(rhs); + scope.set(varName, isAdd ? (a + b) : (a - b)); + } + return; + } + + // Check for variable declaration: var x = ..., int x = ..., String s = ... + int eqIndex = stmt.indexOf('='); + if (eqIndex != -1 && !stmt.startsWith("==") && (eqIndex == 0 || stmt.charAt(eqIndex - 1) != '!' && stmt.charAt(eqIndex - 1) != '<' && stmt.charAt(eqIndex - 1) != '>')) { + String left = stmt.substring(0, eqIndex).trim(); + String right = stmt.substring(eqIndex + 1).trim(); + + String varName = left; + String[] parts = left.split("\\s+"); + if (parts.length > 1) { + varName = parts[parts.length - 1]; + } + + Object val = evalExpression(right, scope, env); + scope.set(varName, val); + return; + } + + // Increment / decrement: i++ or i-- + if (stmt.endsWith("++") || stmt.endsWith("--")) { + boolean isInc = stmt.endsWith("++"); + String varName = stmt.substring(0, stmt.length() - 2).trim(); + Object cur = scope.get(varName); + int num = (cur instanceof Number) ? ((Number) cur).intValue() : 0; + scope.set(varName, isInc ? num + 1 : num - 1); + return; + } + + // Expression statement (e.g. method call) + evalExpression(stmt, scope, env); + } + + public static Object evalExpression(String expr, Scope scope, Environment env) { + if (expr == null) return null; + expr = expr.trim(); + lastEvalExpr = expr; + if (expr.isEmpty()) return null; + + // Parentheses + if (expr.startsWith("(") && expr.endsWith(")")) { + int closeParen = findMatchingParen(expr, 0); + if (closeParen == expr.length() - 1) { + return evalExpression(expr.substring(1, expr.length() - 1), scope, env); + } + } + + // Logical OR: || + int orIdx = findTopLevelOp(expr, "||"); + if (orIdx != -1) { + boolean left = isTruthy(evalExpression(expr.substring(0, orIdx), scope, env)); + if (left) return true; + return isTruthy(evalExpression(expr.substring(orIdx + 2), scope, env)); + } + + // Logical AND: && + int andIdx = findTopLevelOp(expr, "&&"); + if (andIdx != -1) { + boolean left = isTruthy(evalExpression(expr.substring(0, andIdx), scope, env)); + if (!left) return false; + return isTruthy(evalExpression(expr.substring(andIdx + 2), scope, env)); + } + + // Equality: == and != + int eqIdx = findTopLevelOp(expr, "=="); + if (eqIdx != -1) { + Object a = evalExpression(expr.substring(0, eqIdx), scope, env); + Object b = evalExpression(expr.substring(eqIdx + 2), scope, env); + return safeEquals(a, b); + } + int neIdx = findTopLevelOp(expr, "!="); + if (neIdx != -1) { + Object a = evalExpression(expr.substring(0, neIdx), scope, env); + Object b = evalExpression(expr.substring(neIdx + 2), scope, env); + return !safeEquals(a, b); + } + + // Comparison: <=, >=, <, > + int lteIdx = findTopLevelOp(expr, "<="); + if (lteIdx != -1) { + double a = toDouble(evalExpression(expr.substring(0, lteIdx), scope, env)); + double b = toDouble(evalExpression(expr.substring(lteIdx + 2), scope, env)); + return a <= b; + } + int gteIdx = findTopLevelOp(expr, ">="); + if (gteIdx != -1) { + double a = toDouble(evalExpression(expr.substring(0, gteIdx), scope, env)); + double b = toDouble(evalExpression(expr.substring(gteIdx + 2), scope, env)); + return a >= b; + } + int ltIdx = findTopLevelOp(expr, "<"); + if (ltIdx != -1) { + double a = toDouble(evalExpression(expr.substring(0, ltIdx), scope, env)); + double b = toDouble(evalExpression(expr.substring(ltIdx + 1), scope, env)); + return a < b; + } + int gtIdx = findTopLevelOp(expr, ">"); + if (gtIdx != -1) { + double a = toDouble(evalExpression(expr.substring(0, gtIdx), scope, env)); + double b = toDouble(evalExpression(expr.substring(gtIdx + 1), scope, env)); + return a > b; + } + + // Addition & Subtraction: + and - + int addIdx = findTopLevelOp(expr, "+"); + if (addIdx != -1) { + Object a = evalExpression(expr.substring(0, addIdx), scope, env); + Object b = evalExpression(expr.substring(addIdx + 1), scope, env); + if (a instanceof String || b instanceof String) { + return safeToString(a) + safeToString(b); + } + if (isIntegral(a) && isIntegral(b)) { + return toIntegralResult(a, b, ((Number) a).longValue() + ((Number) b).longValue()); + } + return toDouble(a) + toDouble(b); + } + int subIdx = findTopLevelOp(expr, "-"); + if (subIdx != -1 && subIdx > 0 && !isOperator(expr.charAt(subIdx - 1))) { + Object a = evalExpression(expr.substring(0, subIdx), scope, env); + Object b = evalExpression(expr.substring(subIdx + 1), scope, env); + if (isIntegral(a) && isIntegral(b)) { + return toIntegralResult(a, b, ((Number) a).longValue() - ((Number) b).longValue()); + } + return toDouble(a) - toDouble(b); + } + + // Multiplication & Division: * and / + int mulIdx = findTopLevelOp(expr, "*"); + if (mulIdx != -1) { + Object a = evalExpression(expr.substring(0, mulIdx), scope, env); + Object b = evalExpression(expr.substring(mulIdx + 1), scope, env); + if (isIntegral(a) && isIntegral(b)) { + return toIntegralResult(a, b, ((Number) a).longValue() * ((Number) b).longValue()); + } + return toDouble(a) * toDouble(b); + } + int divIdx = findTopLevelOp(expr, "/"); + if (divIdx != -1) { + double a = toDouble(evalExpression(expr.substring(0, divIdx), scope, env)); + double b = toDouble(evalExpression(expr.substring(divIdx + 1), scope, env)); + return b != 0 ? a / b : 0; + } + + // Unary NOT: ! + if (expr.startsWith("!")) { + return !isTruthy(evalExpression(expr.substring(1), scope, env)); + } + + // Unary Negation: - + if (expr.startsWith("-")) { + return -toDouble(evalExpression(expr.substring(1), scope, env)); + } + + // Literals + if (expr.startsWith("\"") && expr.endsWith("\"") && expr.length() >= 2) { + return expr.substring(1, expr.length() - 1); + } + if ("true".equalsIgnoreCase(expr)) return Boolean.TRUE; + if ("false".equalsIgnoreCase(expr)) return Boolean.FALSE; + if ("null".equalsIgnoreCase(expr)) return null; + + if (expr.matches("^0[xX][0-9a-fA-F]+$")) { + return (int) Long.parseLong(expr.substring(2), 16); + } + if (expr.matches("^-?\\d+$")) { + try { + return Integer.parseInt(expr); + } catch (NumberFormatException e) { + return Long.parseLong(expr); + } + } + if (expr.matches("^-?\\d*\\.\\d+$")) { + return Double.parseDouble(expr); + } + + // Method invocation or member access: obj.method(args) or func(args) + if (expr.endsWith(")")) { + int openParen = findMethodOpenParen(expr); + if (openParen != -1) { + String callerAndMethod = expr.substring(0, openParen).trim(); + String argsStr = expr.substring(openParen + 1, expr.length() - 1).trim(); + List argsList = parseArguments(argsStr, scope, env); + + int dot = callerAndMethod.lastIndexOf('.'); + if (dot != -1) { + String targetExpr = callerAndMethod.substring(0, dot).trim(); + String methodName = callerAndMethod.substring(dot + 1).trim(); + Object target = evalExpression(targetExpr, scope, env); + return invokeMethod(target, methodName, argsList); + } else { + // Function call in current environment + return env.invoke(callerAndMethod, argsList.toArray()); + } + } + } + + // Field / property access: obj.field + if (expr.contains(".")) { + int dot = expr.lastIndexOf('.'); + String targetExpr = expr.substring(0, dot).trim(); + String fieldName = expr.substring(dot + 1).trim(); + Object target = evalExpression(targetExpr, scope, env); + return getProperty(target, fieldName); + } + + // Variable lookup + if (scope.contains(expr)) { + return scope.get(expr); + } + + return null; + } + + private static int findTopLevelOp(String s, String op) { + int depthParen = 0; + int depthBrace = 0; + boolean inStr = false; + int len = s.length(); + int opLen = op.length(); + + for (int i = 0; i <= len - opLen; i++) { + char c = s.charAt(i); + if (c == '"' && (i == 0 || s.charAt(i - 1) != '\\')) { + inStr = !inStr; + } else if (!inStr) { + if (c == '(') depthParen++; + else if (c == ')') depthParen--; + else if (c == '{') depthBrace++; + else if (c == '}') depthBrace--; + else if (depthParen == 0 && depthBrace == 0) { + if (s.startsWith(op, i)) { + return i; + } + } + } + } + return -1; + } + + private static boolean isOperator(char c) { + return c == '+' || c == '-' || c == '*' || c == '/' || c == '=' || c == '<' || c == '>' || c == '!' || c == '&' || c == '|'; + } + + private static int findMethodOpenParen(String s) { + int depth = 0; + for (int i = s.length() - 1; i >= 0; i--) { + char c = s.charAt(i); + if (c == ')') depth++; + else if (c == '(') { + depth--; + if (depth == 0) return i; + } + } + return -1; + } + + private static List parseArguments(String argsStr, Scope scope, Environment env) { + if (argsStr == null || argsStr.trim().isEmpty()) return Collections.emptyList(); + List list = new ArrayList<>(); + int depthParen = 0; + int depthBrace = 0; + boolean inStr = false; + int start = 0; + int len = argsStr.length(); + + for (int i = 0; i < len; i++) { + char c = argsStr.charAt(i); + if (c == '"' && (i == 0 || argsStr.charAt(i - 1) != '\\')) { + inStr = !inStr; + } else if (!inStr) { + if (c == '(') depthParen++; + else if (c == ')') depthParen--; + else if (c == '{') depthBrace++; + else if (c == '}') depthBrace--; + else if (c == ',' && depthParen == 0 && depthBrace == 0) { + list.add(evalExpression(argsStr.substring(start, i), scope, env)); + start = i + 1; + } + } + } + if (start < len) { + list.add(evalExpression(argsStr.substring(start), scope, env)); + } + return list; + } + + private static Object invokeMethod(Object target, String methodName, List args) { + if (target == null) return null; + if (target == Math.class) { + if ("max".equalsIgnoreCase(methodName) && args.size() == 2) { + double a = toDouble(args.get(0)), b = toDouble(args.get(1)); + if (args.get(0) instanceof Double || args.get(1) instanceof Double || args.get(0) instanceof Float || args.get(1) instanceof Float) { + return Math.max(a, b); + } + long la = (args.get(0) instanceof Number) ? ((Number) args.get(0)).longValue() : (long) a; + long lb = (args.get(1) instanceof Number) ? ((Number) args.get(1)).longValue() : (long) b; + return Math.max(la, lb); + } + if ("min".equalsIgnoreCase(methodName) && args.size() == 2) { + double a = toDouble(args.get(0)), b = toDouble(args.get(1)); + if (args.get(0) instanceof Double || args.get(1) instanceof Double || args.get(0) instanceof Float || args.get(1) instanceof Float) { + return Math.min(a, b); + } + long la = (args.get(0) instanceof Number) ? ((Number) args.get(0)).longValue() : (long) a; + long lb = (args.get(1) instanceof Number) ? ((Number) args.get(1)).longValue() : (long) b; + return Math.min(la, lb); + } + if ("abs".equalsIgnoreCase(methodName) && args.size() == 1) { + if (args.get(0) instanceof Double || args.get(0) instanceof Float) { + return Math.abs(toDouble(args.get(0))); + } + long la = (args.get(0) instanceof Number) ? ((Number) args.get(0)).longValue() : (long) toDouble(args.get(0)); + return Math.abs(la); + } + if ("round".equalsIgnoreCase(methodName) && args.size() == 1) { + return Math.round(toDouble(args.get(0))); + } + if ("floor".equalsIgnoreCase(methodName) && args.size() == 1) { + return Math.floor(toDouble(args.get(0))); + } + if ("ceil".equalsIgnoreCase(methodName) && args.size() == 1) { + return Math.ceil(toDouble(args.get(0))); + } + if ("sqrt".equalsIgnoreCase(methodName) && args.size() == 1) { + return Math.sqrt(toDouble(args.get(0))); + } + if ("pow".equalsIgnoreCase(methodName) && args.size() == 2) { + return Math.pow(toDouble(args.get(0)), toDouble(args.get(1))); + } + if ("hypot".equalsIgnoreCase(methodName) && args.size() == 2) { + return Math.hypot(toDouble(args.get(0)), toDouble(args.get(1))); + } + if ("random".equalsIgnoreCase(methodName) && args.isEmpty()) { + return Math.random(); + } + } + if (target == System.class) { + if ("currentTimeMillis".equalsIgnoreCase(methodName) && args.isEmpty()) { + return System.currentTimeMillis(); + } + if ("nanoTime".equalsIgnoreCase(methodName) && args.isEmpty()) { + return System.nanoTime(); + } + } + if (target instanceof String) { + String s = (String) target; + if ("length".equals(methodName) && args.isEmpty()) return s.length(); + if ("isEmpty".equals(methodName) && args.isEmpty()) return s.isEmpty(); + if ("toLowerCase".equals(methodName) && args.isEmpty()) return s.toLowerCase(); + if ("toUpperCase".equals(methodName) && args.isEmpty()) return s.toUpperCase(); + if ("trim".equals(methodName) && args.isEmpty()) return s.trim(); + if ("equals".equals(methodName) && args.size() == 1) return s.equals(safeToString(args.get(0))); + if ("equalsIgnoreCase".equals(methodName) && args.size() == 1) return s.equalsIgnoreCase(safeToString(args.get(0))); + if ("contains".equals(methodName) && args.size() == 1) return s.contains(safeToString(args.get(0))); + if ("startsWith".equals(methodName) && args.size() == 1) return s.startsWith(safeToString(args.get(0))); + if ("endsWith".equals(methodName) && args.size() == 1) return s.endsWith(safeToString(args.get(0))); + if ("indexOf".equals(methodName) && args.size() == 1) return s.indexOf(safeToString(args.get(0))); + if ("indexOf".equals(methodName) && args.size() == 2) return s.indexOf(safeToString(args.get(0)), (int) toDouble(args.get(1))); + if ("lastIndexOf".equals(methodName) && args.size() == 1) return s.lastIndexOf(safeToString(args.get(0))); + if ("substring".equals(methodName) && args.size() == 1) return s.substring((int) toDouble(args.get(0))); + if ("substring".equals(methodName) && args.size() == 2) return s.substring((int) toDouble(args.get(0)), (int) toDouble(args.get(1))); + if ("replace".equals(methodName) && args.size() == 2) return s.replace(safeToString(args.get(0)), safeToString(args.get(1))); + if ("charAt".equals(methodName) && args.size() == 1) return String.valueOf(s.charAt((int) toDouble(args.get(0)))); + if ("split".equals(methodName) && args.size() == 1) return java.util.Arrays.asList(s.split(safeToString(args.get(0)))); + } + if (target instanceof java.util.List) { + @SuppressWarnings("unchecked") + java.util.List list = (java.util.List) target; + if ("size".equals(methodName) && args.isEmpty()) return list.size(); + if ("isEmpty".equals(methodName) && args.isEmpty()) return list.isEmpty(); + if ("get".equals(methodName) && args.size() == 1) return list.get((int) toDouble(args.get(0))); + if ("contains".equals(methodName) && args.size() == 1) return list.contains(args.get(0)); + if ("indexOf".equals(methodName) && args.size() == 1) return list.indexOf(args.get(0)); + if ("add".equals(methodName) && args.size() == 1) return list.add(args.get(0)); + if ("set".equals(methodName) && args.size() == 2) return list.set((int) toDouble(args.get(0)), args.get(1)); + if ("remove".equals(methodName) && args.size() == 1) { + Object arg = args.get(0); + return (arg instanceof Number) ? list.remove(((Number) arg).intValue()) : list.remove(arg); + } + if ("clear".equals(methodName) && args.isEmpty()) { list.clear(); return null; } + } else if (target instanceof java.util.Collection) { + @SuppressWarnings("unchecked") + java.util.Collection col = (java.util.Collection) target; + if ("size".equals(methodName) && args.isEmpty()) return col.size(); + if ("isEmpty".equals(methodName) && args.isEmpty()) return col.isEmpty(); + if ("contains".equals(methodName) && args.size() == 1) return col.contains(args.get(0)); + if ("add".equals(methodName) && args.size() == 1) return col.add(args.get(0)); + if ("clear".equals(methodName) && args.isEmpty()) { col.clear(); return null; } + } else if (target instanceof java.util.Map) { + @SuppressWarnings("unchecked") + java.util.Map map = (java.util.Map) target; + if ("size".equals(methodName) && args.isEmpty()) return map.size(); + if ("isEmpty".equals(methodName) && args.isEmpty()) return map.isEmpty(); + if ("get".equals(methodName) && args.size() == 1) return map.get(args.get(0)); + if ("put".equals(methodName) && args.size() == 2) return map.put(args.get(0), args.get(1)); + if ("containsKey".equals(methodName) && args.size() == 1) return map.containsKey(args.get(0)); + if ("containsValue".equals(methodName) && args.size() == 1) return map.containsValue(args.get(0)); + if ("remove".equals(methodName) && args.size() == 1) return map.remove(args.get(0)); + if ("clear".equals(methodName) && args.isEmpty()) { map.clear(); return null; } + if ("keySet".equals(methodName) && args.isEmpty()) return new ArrayList<>(map.keySet()); + if ("values".equals(methodName) && args.isEmpty()) return new ArrayList<>(map.values()); + } else if (target instanceof Number) { + Number n = (Number) target; + if ("intValue".equals(methodName) && args.isEmpty()) return n.intValue(); + if ("longValue".equals(methodName) && args.isEmpty()) return n.longValue(); + if ("doubleValue".equals(methodName) && args.isEmpty()) return n.doubleValue(); + if ("floatValue".equals(methodName) && args.isEmpty()) return n.floatValue(); + if ("byteValue".equals(methodName) && args.isEmpty()) return n.byteValue(); + if ("shortValue".equals(methodName) && args.isEmpty()) return n.shortValue(); + if ("toString".equals(methodName) && args.isEmpty()) return n.toString(); + } else if (target instanceof Boolean) { + Boolean b = (Boolean) target; + if ("booleanValue".equals(methodName) && args.isEmpty()) return b.booleanValue(); + if ("toString".equals(methodName) && args.isEmpty()) return b.toString(); + } + boolean isStaticClass = target instanceof Class; + Class clazz = isStaticClass ? (Class) target : target.getClass(); + Object invokeTarget = isStaticClass ? null : target; + + Throwable lastErr = null; + // 1. Exact fixed-arity match + for (Method m : clazz.getMethods()) { + if (isStaticClass && !Modifier.isStatic(m.getModifiers())) continue; + if (!m.isVarArgs() && m.getName().equalsIgnoreCase(methodName) && m.getParameterTypes().length == args.size()) { + try { + Class[] pTypes = m.getParameterTypes(); + Object[] convertedArgs = new Object[args.size()]; + for (int i = 0; i < args.size(); i++) { + convertedArgs[i] = convertArg(args.get(i), pTypes[i]); + } + m.setAccessible(true); + Object res = m.invoke(invokeTarget, convertedArgs); + return m.getReturnType() == void.class ? null : DesktopHooks.boxReflectValue(res, m.getReturnType()); + } catch (Throwable t) { + lastErr = t; + } + } + } + + // 2. Varargs match (e.g., depositAllExcept("Coins", "Bread"), named("Cow", "Calf")) + for (Method m : clazz.getMethods()) { + if (isStaticClass && !Modifier.isStatic(m.getModifiers())) continue; + if (m.isVarArgs() && m.getName().equalsIgnoreCase(methodName)) { + Class[] pTypes = m.getParameterTypes(); + int fixedCount = pTypes.length - 1; + if (args.size() < fixedCount) continue; + try { + Object[] convertedArgs = new Object[pTypes.length]; + for (int i = 0; i < fixedCount; i++) { + convertedArgs[i] = convertArg(args.get(i), pTypes[i]); + } + Class varCompType = pTypes[fixedCount].getComponentType(); + int varCount = args.size() - fixedCount; + Object varArray = java.lang.reflect.Array.newInstance(varCompType, varCount); + for (int i = 0; i < varCount; i++) { + java.lang.reflect.Array.set(varArray, i, convertArg(args.get(fixedCount + i), varCompType)); + } + convertedArgs[fixedCount] = varArray; + m.setAccessible(true); + Object res = m.invoke(invokeTarget, convertedArgs); + return m.getReturnType() == void.class ? null : DesktopHooks.boxReflectValue(res, m.getReturnType()); + } catch (Throwable ignored) { + } + } + } + + System.err.println("Method not found or error invoking: " + clazz.getSimpleName() + "." + methodName + " with " + args.size() + " args" + + (lastErr != null ? " (" + lastErr + (lastErr.getCause() != null ? " -> " + lastErr.getCause() : "") + ")" : "")); + return null; + } + + private static String safeToString(Object o) { + if (o == null) return "null"; + o = DesktopHooks.boxReflectValue(o, null); + if (o == null) return "null"; + try { + return String.valueOf(o); + } catch (Throwable t) { + return "null"; + } + } + + private static Object convertArg(Object arg, Class targetType) { + if (arg == null) { + if (targetType == int.class) return 0; + if (targetType == boolean.class) return false; + if (targetType == double.class) return 0.0; + if (targetType == float.class) return 0.0f; + if (targetType == long.class) return 0L; + return null; + } + if (targetType.isInstance(arg)) return arg; + + if (targetType.isEnum()) { + String needle = safeToString(arg).trim(); + for (Object constant : targetType.getEnumConstants()) { + if (((Enum) constant).name().equalsIgnoreCase(needle)) { + return constant; + } + } + } + + if (targetType == int.class || targetType == Integer.class) { + return (arg instanceof Number) ? ((Number) arg).intValue() : Integer.parseInt(safeToString(arg)); + } + if (targetType == boolean.class || targetType == Boolean.class) { + return (arg instanceof Boolean) ? arg : Boolean.parseBoolean(safeToString(arg)); + } + if (targetType == double.class || targetType == Double.class) { + return (arg instanceof Number) ? ((Number) arg).doubleValue() : Double.parseDouble(safeToString(arg)); + } + if (targetType == float.class || targetType == Float.class) { + return (arg instanceof Number) ? ((Number) arg).floatValue() : Float.parseFloat(safeToString(arg)); + } + if (targetType == long.class || targetType == Long.class) { + return (arg instanceof Number) ? ((Number) arg).longValue() : Long.parseLong(safeToString(arg)); + } + if (targetType == String.class) { + return safeToString(arg); + } + return arg; + } + + private static Object getProperty(Object target, String propertyName) { + if (target == null) return null; + boolean isStaticClass = target instanceof Class; + Class clazz = isStaticClass ? (Class) target : target.getClass(); + Object fieldTarget = isStaticClass ? null : target; + try { + // First check public field + java.lang.reflect.Field f = clazz.getField(propertyName); + f.setAccessible(true); + return DesktopHooks.boxReflectValue(f.get(fieldTarget), f.getType()); + } catch (Throwable ignored) { + } + // Try getter method getX() or isX() + String cap = Character.toUpperCase(propertyName.charAt(0)) + propertyName.substring(1); + try { + Method m = clazz.getMethod("get" + cap); + return DesktopHooks.boxReflectValue(m.invoke(fieldTarget), m.getReturnType()); + } catch (Throwable ignored) { + } + try { + Method m = clazz.getMethod("is" + cap); + return DesktopHooks.boxReflectValue(m.invoke(fieldTarget), m.getReturnType()); + } catch (Throwable ignored) { + } + return null; + } + + private static boolean safeEquals(Object a, Object b) { + if (a == b) return true; + if (a == null || b == null) return false; + if (a instanceof Number && b instanceof Number) { + if (a instanceof Double || a instanceof Float || b instanceof Double || b instanceof Float) { + return ((Number) a).doubleValue() == ((Number) b).doubleValue(); + } + return ((Number) a).longValue() == ((Number) b).longValue(); + } + if (a instanceof String && b instanceof String) { + return ((String) a).equals((String) b); + } + if (a instanceof Boolean && b instanceof Boolean) { + return ((Boolean) a).booleanValue() == ((Boolean) b).booleanValue(); + } + try { + return a.equals(b); + } catch (Throwable t) { + return false; + } + } + + private static boolean isTruthy(Object o) { + if (o == null) return false; + if (o instanceof Boolean) return (Boolean) o; + if (o instanceof Number) return ((Number) o).doubleValue() != 0; + if (o instanceof String) return !((String) o).isEmpty(); + return true; + } + + private static boolean isIntegral(Object o) { + return o instanceof Integer || o instanceof Long; + } + + private static Number toIntegralResult(Object a, Object b, long value) { + if (a instanceof Long || b instanceof Long || value > Integer.MAX_VALUE || value < Integer.MIN_VALUE) { + return value; + } + return (int) value; + } + + private static double toDouble(Object o) { + if (o instanceof Number) return ((Number) o).doubleValue(); + if (o instanceof Boolean) return ((Boolean) o) ? 1 : 0; + if (o != null) { + try { + return Double.parseDouble(safeToString(o)); + } catch (Exception ignored) { + } + } + return 0; + } + + // ========================================================================= + // Interpreted Wrapper Classes + // ========================================================================= + + public static class InterpretedPlugin extends ClientPlugin { + private final ScriptMetadata metadata; + private final Environment env; + + public InterpretedPlugin(ScriptMetadata metadata, Environment env) { + this.metadata = metadata; + this.env = env; + } + + @Override + public String getName() { + return metadata.name; + } + + @Override + public String getDescription() { + return metadata.description; + } + + @Override + public String getAuthor() { + return metadata.author; + } + + @Override + public String getVersion() { + return metadata.version; + } + + @Override + public String getMinApiVersion() { + return metadata.minApiVersion; + } + + @Override + public List getConfigItems() { + return metadata.configItems; + } + + @Override + public void onConfigChanged(String key, Object value) { + env.setVariable(key, value); + if (env.hasFunction("onConfigChanged")) { + env.invoke("onConfigChanged", key, value); + } + } + + @Override + public void onStart(PluginContext ctx) { + super.onStart(ctx); + env.setVariable("ctx", ctx); + env.setVariable("script", this); + if (env.hasFunction("onStart")) { + env.invoke("onStart", ctx); + } + } + + @Override + public void onStop() { + if (env.hasFunction("onStop")) { + env.invoke("onStop", ctx); + } + } + + @Override + public void onGameTick() { + if (env.hasFunction("onGameTick")) { + env.invoke("onGameTick", ctx); + } + } + + @Override + public void onPreMenuRender(List entries) { + if (env.hasFunction("onPreMenuRender")) { + env.invoke("onPreMenuRender", ctx, entries); + } + } + + @Override + public void onChatMessage(int type, String sender, String message) { + if (env.hasFunction("onChatMessage")) { + env.invoke("onChatMessage", ctx, type, sender, message); + } + } + + @Override + public void onXpGained(int skillId, int deltaXp) { + if (env.hasFunction("onXpGained")) { + env.invoke("onXpGained", ctx, skillId, deltaXp); + } + } + + @Override + public void onAnimationChanged(int animId) { + if (env.hasFunction("onAnimationChanged")) { + env.invoke("onAnimationChanged", ctx, animId); + } + } + + @Override + public void onGroundItemSpawned(PluginContext.GroundItemWrapper item) { + if (env.hasFunction("onGroundItemSpawned")) { + env.invoke("onGroundItemSpawned", ctx, item); + } + } + + @Override + public void onLogin() { + if (env.hasFunction("onLogin")) { + env.invoke("onLogin", ctx); + } + } + + @Override + public void onDisconnect() { + if (env.hasFunction("onDisconnect")) { + env.invoke("onDisconnect", ctx); + } + } + + @Override + public void onLogout() { + if (env.hasFunction("onLogout")) { + env.invoke("onLogout", ctx); + } + } + + @Override + public void onPlayerDeath() { + if (env.hasFunction("onPlayerDeath")) { + env.invoke("onPlayerDeath", ctx); + } + } + + @Override + public void onRenderOverlay(PluginGraphics g) { + if (env.hasFunction("onRenderOverlay")) { + env.invoke("onRenderOverlay", ctx, g); + } + } + } + + public static class InterpretedScript extends ClientScript { + private final ScriptMetadata metadata; + private final Environment env; + + public InterpretedScript(ScriptMetadata metadata, Environment env) { + this.metadata = metadata; + this.env = env; + } + + @Override + public String getName() { + return metadata.name; + } + + @Override + public String getDescription() { + return metadata.description; + } + + @Override + public String getAuthor() { + return metadata.author; + } + + @Override + public String getVersion() { + return metadata.version; + } + + @Override + public String getMinApiVersion() { + return metadata.minApiVersion; + } + + @Override + public List getCommandNames() { + return metadata.commands; + } + + @Override + public List getConfigItems() { + return metadata.configItems; + } + + @Override + public void onConfigChanged(String key, Object value) { + env.setVariable(key, value); + if (env.hasFunction("onConfigChanged")) { + env.invoke("onConfigChanged", key, value); + } + } + + @Override + public void onStart(PluginContext ctx) { + super.onStart(ctx); + env.setVariable("ctx", ctx); + env.setVariable("script", this); + if (env.hasFunction("onStart")) { + env.invoke("onStart", ctx); + } + } + + @Override + public int loop() { + if (env.hasFunction("loop")) { + Object res = env.invoke("loop", ctx); + if (res instanceof Number) { + return ((Number) res).intValue(); + } + return 600; + } + return -1; + } + + @Override + public void onStop() { + if (env.hasFunction("onStop")) { + env.invoke("onStop", ctx); + } + } + + @Override + public void onChatMessage(int type, String sender, String message) { + if (env.hasFunction("onChatMessage")) { + env.invoke("onChatMessage", ctx, type, sender, message); + } + } + + @Override + public void onXpGained(int skillId, int deltaXp) { + if (env.hasFunction("onXpGained")) { + env.invoke("onXpGained", ctx, skillId, deltaXp); + } + } + + @Override + public void onAnimationChanged(int animId) { + if (env.hasFunction("onAnimationChanged")) { + env.invoke("onAnimationChanged", ctx, animId); + } + } + + @Override + public void onGroundItemSpawned(PluginContext.GroundItemWrapper item) { + if (env.hasFunction("onGroundItemSpawned")) { + env.invoke("onGroundItemSpawned", ctx, item); + } + } + + @Override + public void onLogin() { + if (env.hasFunction("onLogin")) { + env.invoke("onLogin", ctx); + } + } + + @Override + public void onDisconnect() { + if (env.hasFunction("onDisconnect")) { + env.invoke("onDisconnect", ctx); + } + } + + @Override + public void onPlayerDeath() { + if (env.hasFunction("onPlayerDeath")) { + env.invoke("onPlayerDeath", ctx); + } + } + + @Override + public void onRenderOverlay(PluginGraphics g) { + if (env.hasFunction("onRenderOverlay")) { + env.invoke("onRenderOverlay", ctx, g); + } + } + } +} diff --git a/2006Scape Client/src/main/java/ScriptLogger.java b/2006Scape Client/src/main/java/ScriptLogger.java new file mode 100644 index 00000000..08e19e57 --- /dev/null +++ b/2006Scape Client/src/main/java/ScriptLogger.java @@ -0,0 +1,84 @@ +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.io.PrintWriter; +import java.text.SimpleDateFormat; +import java.util.Date; + +/** + * Lightweight file + stdout logger for script lifecycle, status transitions, and game actions. + * Writes to <cacheDir>/logs/scripts.log with 1 MB rotation. + */ +public final class ScriptLogger { + + private static final long MAX_LOG_BYTES = 1024L * 1024L; + private static final SimpleDateFormat TIME_FMT = new SimpleDateFormat("HH:mm:ss.SSS"); + private static volatile boolean enabled = true; + private static File logFileOverride = null; + + private ScriptLogger() { + } + + public static void setEnabled(boolean value) { + enabled = value; + } + + public static boolean isEnabled() { + return enabled; + } + + public static void setLogFileOverride(File file) { + logFileOverride = file; + } + + public static File getLogFile() { + if (logFileOverride != null) { + return logFileOverride; + } + try { + String base = Signlink.findcachedir(); + if (base != null && !base.isEmpty()) { + return new File(new File(base, "logs"), "scripts.log"); + } + } catch (Throwable ignored) { + } + return null; + } + + public static synchronized void log(String scriptName, String message) { + if (!enabled || message == null) return; + String name = (scriptName != null && !scriptName.isEmpty()) ? scriptName : "Script"; + String ts; + synchronized (TIME_FMT) { + ts = TIME_FMT.format(new Date()); + } + String line = "[" + ts + "] [" + name + "] " + message; + System.out.println("[ScriptLog] " + line); + + File logFile = getLogFile(); + if (logFile == null) return; + try { + File parent = logFile.getParentFile(); + if (parent != null && !parent.exists()) { + parent.mkdirs(); + } + if (logFile.exists() && logFile.length() > MAX_LOG_BYTES) { + File backup = new File(parent, logFile.getName() + ".1"); + if (backup.exists()) backup.delete(); + logFile.renameTo(backup); + } + try (PrintWriter out = new PrintWriter(new FileWriter(logFile, true))) { + out.println(line); + } + } catch (IOException ignored) { + } + } + + public static void logActiveAction(String actionMessage) { + PluginManager pm = PluginManager.get(); + if (pm == null) return; + ClientScript active = pm.getActiveScript(); + if (active == null || !active.isRunning()) return; + log(active.getName(), "ACTION: " + actionMessage); + } +} diff --git a/2006Scape Client/src/main/java/SemVer.java b/2006Scape Client/src/main/java/SemVer.java new file mode 100644 index 00000000..644f57a6 --- /dev/null +++ b/2006Scape Client/src/main/java/SemVer.java @@ -0,0 +1,153 @@ +/** + * Semantic Versioning 2.0.0 parser, comparator, and constraint matcher. + * Supports formats like "1.2.3", "v1.2.3", "1.2" (normalized to 1.2.0), + * and pre-release/build suffixes ("1.2.3-alpha.1+001"). + */ +public final class SemVer implements Comparable { + + public final int major; + public final int minor; + public final int patch; + public final String preRelease; + + public SemVer(int major, int minor, int patch, String preRelease) { + this.major = Math.max(0, major); + this.minor = Math.max(0, minor); + this.patch = Math.max(0, patch); + this.preRelease = (preRelease != null && !preRelease.isEmpty()) ? preRelease : ""; + } + + public SemVer(int major, int minor, int patch) { + this(major, minor, patch, ""); + } + + public static SemVer parse(String raw) { + if (raw == null) return new SemVer(0, 0, 0); + String s = raw.trim(); + if (s.startsWith("v") || s.startsWith("V")) { + s = s.substring(1).trim(); + } + int plusIdx = s.indexOf('+'); + if (plusIdx >= 0) { + s = s.substring(0, plusIdx); + } + String pre = ""; + int dashIdx = s.indexOf('-'); + if (dashIdx >= 0) { + pre = s.substring(dashIdx + 1).trim(); + s = s.substring(0, dashIdx); + } + String[] parts = s.split("\\."); + int maj = parts.length > 0 ? parseIntSafe(parts[0]) : 0; + int min = parts.length > 1 ? parseIntSafe(parts[1]) : 0; + int pat = parts.length > 2 ? parseIntSafe(parts[2]) : 0; + return new SemVer(maj, min, pat, pre); + } + + private static int parseIntSafe(String part) { + try { + return Integer.parseInt(part.trim()); + } catch (NumberFormatException e) { + return 0; + } + } + + public boolean isNewerThan(SemVer other) { + return other == null || compareTo(other) > 0; + } + + public boolean satisfies(String constraint) { + if (constraint == null || constraint.trim().isEmpty()) return true; + String c = constraint.trim(); + if (c.startsWith(">=")) { + return compareTo(parse(c.substring(2))) >= 0; + } + if (c.startsWith("<=")) { + return compareTo(parse(c.substring(2))) <= 0; + } + if (c.startsWith(">")) { + return compareTo(parse(c.substring(1))) > 0; + } + if (c.startsWith("<")) { + return compareTo(parse(c.substring(1))) < 0; + } + if (c.startsWith("^")) { + SemVer base = parse(c.substring(1)); + if (compareTo(base) < 0) return false; + if (base.major > 0) { + return compareTo(new SemVer(base.major + 1, 0, 0)) < 0; + } + if (base.minor > 0) { + return compareTo(new SemVer(0, base.minor + 1, 0)) < 0; + } + return compareTo(new SemVer(0, 0, base.patch + 1)) < 0; + } + if (c.startsWith("~")) { + SemVer base = parse(c.substring(1)); + return compareTo(base) >= 0 + && compareTo(new SemVer(base.major, base.minor + 1, 0)) < 0; + } + if (c.startsWith("=")) { + return compareTo(parse(c.substring(1))) == 0; + } + return compareTo(parse(c)) == 0; + } + + @Override + public int compareTo(SemVer other) { + if (other == null) return 1; + if (this.major != other.major) return Integer.compare(this.major, other.major); + if (this.minor != other.minor) return Integer.compare(this.minor, other.minor); + if (this.patch != other.patch) return Integer.compare(this.patch, other.patch); + + boolean thisPre = !this.preRelease.isEmpty(); + boolean otherPre = !other.preRelease.isEmpty(); + if (!thisPre && !otherPre) return 0; + if (!thisPre) return 1; + if (!otherPre) return -1; + + String[] a = this.preRelease.split("\\."); + String[] b = other.preRelease.split("\\."); + int len = Math.min(a.length, b.length); + for (int i = 0; i < len; i++) { + boolean aNum = isNumeric(a[i]); + boolean bNum = isNumeric(b[i]); + if (aNum && bNum) { + int cmp = Integer.compare(Integer.parseInt(a[i]), Integer.parseInt(b[i])); + if (cmp != 0) return cmp; + } else if (aNum != bNum) { + return aNum ? -1 : 1; + } else { + int cmp = a[i].compareTo(b[i]); + if (cmp != 0) return cmp; + } + } + return Integer.compare(a.length, b.length); + } + + private static boolean isNumeric(String s) { + if (s.isEmpty()) return false; + for (int i = 0; i < s.length(); i++) { + if (!Character.isDigit(s.charAt(i))) return false; + } + return true; + } + + @Override + public String toString() { + String base = major + "." + minor + "." + patch; + return preRelease.isEmpty() ? base : (base + "-" + preRelease); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) return true; + if (!(obj instanceof SemVer)) return false; + return compareTo((SemVer) obj) == 0; + } + + @Override + public int hashCode() { + return toString().hashCode(); + } +} diff --git a/2006Scape Client/src/main/java/SkillConstants.java b/2006Scape Client/src/main/java/SkillConstants.java new file mode 100644 index 00000000..188511dc --- /dev/null +++ b/2006Scape Client/src/main/java/SkillConstants.java @@ -0,0 +1,32 @@ +/** + * SkillConstants.java + * @author Andrew (Mr Extremez) + */ + +public enum SkillConstants { + + ATTACK(true), DEFENCE(true), STRENGTH(true), HITPOINTS(true), RANGE(true), + PRAYER(true), MAGIC(true), COOKING(true), WOODCUTTING(true), FLETCHING(true), + FISHING(true), FIREMAKING(true), CRAFTING(true), SMITHING(true), MINING(true), + HERBLORE(true), AGILITY(true), THIEVING(true), SLAYER(true), FARMING(true), RUNECRAFTING(true); + + private SkillConstants(boolean skillEnabled) { + this.skillEnabled = skillEnabled; + } + + private boolean skillEnabled; + + public static boolean getEnabled(int id) { + for (final SkillConstants skillConstants : SkillConstants.values()) { + if (skillConstants.ordinal() == id && skillConstants.skillEnabled == true) { + return true; + } + } + return false; + } + + public static String getName(SkillConstants skillConstants) { + return "The " + skillConstants.name().toLowerCase() + " skill is currently disabled"; + } + +} diff --git a/2006Scape Client/src/main/java/SkillID.java b/2006Scape Client/src/main/java/SkillID.java new file mode 100644 index 00000000..e4493e4f --- /dev/null +++ b/2006Scape Client/src/main/java/SkillID.java @@ -0,0 +1,48 @@ +/** + * Skill ID constants for the 2006Scape Client Plugin & Script API. + */ +public final class SkillID { + + public static final int ATTACK = 0; + public static final int DEFENCE = 1; + public static final int STRENGTH = 2; + public static final int HITPOINTS = 3; + public static final int RANGED = 4; + public static final int PRAYER = 5; + public static final int MAGIC = 6; + public static final int COOKING = 7; + public static final int WOODCUTTING = 8; + public static final int FLETCHING = 9; + public static final int FISHING = 10; + public static final int FIREMAKING = 11; + public static final int CRAFTING = 12; + public static final int SMITHING = 13; + public static final int MINING = 14; + public static final int HERBLORE = 15; + public static final int AGILITY = 16; + public static final int THIEVING = 17; + public static final int SLAYER = 18; + public static final int FARMING = 19; + public static final int RUNECRAFTING = 20; + + public static final String[] SKILL_NAMES = { + "Attack", "Defence", "Strength", "Hitpoints", "Ranged", + "Prayer", "Magic", "Cooking", "Woodcutting", "Fletching", + "Fishing", "Firemaking", "Crafting", "Smithing", "Mining", + "Herblore", "Agility", "Thieving", "Slayer", "Farming", "Runecrafting" + }; + + public static String getSkillName(int id) { + if (id >= 0 && id < SKILL_NAMES.length) { + return SKILL_NAMES[id]; + } + return "Unknown"; + } + + public static boolean isCombatSkill(int id) { + return id == ATTACK || id == DEFENCE || id == STRENGTH + || id == HITPOINTS || id == RANGED || id == MAGIC; + } + + private SkillID() {} +} diff --git a/2006Scape Client/src/main/java/StaticItemList.java b/2006Scape Client/src/main/java/StaticItemList.java new file mode 100644 index 00000000..c609d451 --- /dev/null +++ b/2006Scape Client/src/main/java/StaticItemList.java @@ -0,0 +1,7968 @@ + +/** + * Item Constants for 2006scape. + * + * @author Advocatus + * + */ +@SuppressWarnings("unused") +public class StaticItemList { + + public static final int NULL_0 = 0; + public static final int TOOL_KIT = 1; + public static final int CANNONBALL = 2; + public static final int NULODIONS_NOTES = 3; + public static final int AMMO_MOULD = 4; + public static final int INSTRUCTION_MANUAL = 5; + public static final int CANNON_BASE = 6; + public static final int CANNON_BASE_7 = 7; + public static final int CANNON_STAND = 8; + public static final int CANNON_STAND_9 = 9; + public static final int CANNON_BARRELS = 10; + public static final int CANNON_BARRELS_11 = 11; + public static final int CANNON_FURNACE = 12; + public static final int CANNON_FURNACE_13 = 13; + public static final int RAILING = 14; + public static final int HOLY_TABLE_NAPKIN = 15; + public static final int MAGIC_WHISTLE = 16; + public static final int GRAIL_BELL = 17; + public static final int MAGIC_GOLD_FEATHER = 18; + public static final int HOLY_GRAIL = 19; + public static final int COG = 20; + public static final int COG_21 = 21; + public static final int COG_22 = 22; + public static final int COG_23 = 23; + public static final int RAT_POISON = 24; + public static final int RED_VINE_WORM = 25; + public static final int FISHING_TROPHY = 26; + public static final int FISHING_PASS = 27; + public static final int INSECT_REPELLENT = 28; + public static final int INSECT_REPELLENT_29 = 29; + public static final int BUCKET_OF_WAX = 30; + public static final int BUCKET_OF_WAX_31 = 31; + public static final int LIT_BLACK_CANDLE = 32; + public static final int LIT_CANDLE = 33; + public static final int LIT_CANDLE_34 = 34; + public static final int EXCALIBUR = 35; + public static final int CANDLE = 36; + public static final int CANDLE_37 = 37; + public static final int BLACK_CANDLE = 38; + public static final int BRONZE_ARROWTIPS = 39; + public static final int IRON_ARROWTIPS = 40; + public static final int STEEL_ARROWTIPS = 41; + public static final int MITHRIL_ARROWTIPS = 42; + public static final int ADAMANT_ARROWTIPS = 43; + public static final int RUNE_ARROWTIPS = 44; + public static final int OPAL_BOLTTIPS = 45; + public static final int PEARL_BOLTTIPS = 46; + public static final int BARB_BOLTTIPS = 47; + public static final int LONGBOW_U = 48; + public static final int LONGBOW_U_49 = 49; + public static final int SHORTBOW_U = 50; + public static final int SHORTBOW_U_51 = 51; + public static final int ARROW_SHAFT = 52; + public static final int HEADLESS_ARROW = 53; + public static final int OAK_SHORTBOW_U = 54; + public static final int OAK_SHORTBOW_U_55 = 55; + public static final int OAK_LONGBOW_U = 56; + public static final int OAK_LONGBOW_U_57 = 57; + public static final int WILLOW_LONGBOW_U = 58; + public static final int WILLOW_LONGBOW_U_59 = 59; + public static final int WILLOW_SHORTBOW_U = 60; + public static final int WILLOW_SHORTBOW_U_61 = 61; + public static final int MAPLE_LONGBOW_U = 62; + public static final int MAPLE_LONGBOW_U_63 = 63; + public static final int MAPLE_SHORTBOW_U = 64; + public static final int MAPLE_SHORTBOW_U_65 = 65; + public static final int YEW_LONGBOW_U = 66; + public static final int YEW_LONGBOW_U_67 = 67; + public static final int YEW_SHORTBOW_U = 68; + public static final int YEW_SHORTBOW_U_69 = 69; + public static final int MAGIC_LONGBOW_U = 70; + public static final int MAGIC_LONGBOW_U_71 = 71; + public static final int MAGIC_SHORTBOW_U = 72; + public static final int MAGIC_SHORTBOW_U_73 = 73; + public static final int KHAZARD_HELMET = 74; + public static final int KHAZARD_ARMOUR = 75; + public static final int KHAZARD_CELL_KEYS = 76; + public static final int KHALI_BREW = 77; + public static final int ICE_ARROWS = 78; + public static final int NULL = 79; + public static final int NULL_80 = 80; + public static final int NULL_81 = 81; + public static final int NULL_82 = 82; + public static final int LEVER = 83; + public static final int STAFF_OF_ARMADYL = 84; + public static final int SHINY_KEY = 85; + public static final int PENDANT_OF_LUCIEN = 86; + public static final int ARMADYL_PENDANT = 87; + public static final int BOOTS_OF_LIGHTNESS = 88; + public static final int BOOTS_OF_LIGHTNESS_89 = 89; + public static final int CHILDS_BLANKET = 90; + public static final int UNFINISHED_POTION = 91; + public static final int UNFINISHED_POTION_92 = 92; + public static final int UNFINISHED_POTION_93 = 93; + public static final int UNFINISHED_POTION_94 = 94; + public static final int UNFINISHED_POTION_95 = 95; + public static final int UNFINISHED_POTION_96 = 96; + public static final int UNFINISHED_POTION_97 = 97; + public static final int UNFINISHED_POTION_98 = 98; + public static final int UNFINISHED_POTION_99 = 99; + public static final int UNFINISHED_POTION_100 = 100; + public static final int UNFINISHED_POTION_101 = 101; + public static final int UNFINISHED_POTION_102 = 102; + public static final int UNFINISHED_POTION_103 = 103; + public static final int UNFINISHED_POTION_104 = 104; + public static final int UNFINISHED_POTION_105 = 105; + public static final int UNFINISHED_POTION_106 = 106; + public static final int UNFINISHED_POTION_107 = 107; + public static final int UNFINISHED_POTION_108 = 108; + public static final int UNFINISHED_POTION_109 = 109; + public static final int UNFINISHED_POTION_110 = 110; + public static final int UNFINISHED_POTION_111 = 111; + public static final int UNFINISHED_POTION_112 = 112; + public static final int STRENGTH_POTION4 = 113; + public static final int STRENGTH_POTION4_114 = 114; + public static final int STRENGTH_POTION3 = 115; + public static final int STRENGTH_POTION3_116 = 116; + public static final int STRENGTH_POTION2 = 117; + public static final int STRENGTH_POTION2_118 = 118; + public static final int STRENGTH_POTION1 = 119; + public static final int STRENGTH_POTION1_120 = 120; + public static final int ATTACK_POTION3 = 121; + public static final int ATTACK_POTION3_122 = 122; + public static final int ATTACK_POTION2 = 123; + public static final int ATTACK_POTION2_124 = 124; + public static final int ATTACK_POTION1 = 125; + public static final int ATTACK_POTION1_126 = 126; + public static final int RESTORE_POTION3 = 127; + public static final int RESTORE_POTION3_128 = 128; + public static final int RESTORE_POTION2 = 129; + public static final int RESTORE_POTION2_130 = 130; + public static final int RESTORE_POTION1 = 131; + public static final int RESTORE_POTION1_132 = 132; + public static final int DEFENCE_POTION3 = 133; + public static final int DEFENCE_POTION3_134 = 134; + public static final int DEFENCE_POTION2 = 135; + public static final int DEFENCE_POTION2_136 = 136; + public static final int DEFENCE_POTION1 = 137; + public static final int DEFENCE_POTION1_138 = 138; + public static final int PRAYER_POTION3 = 139; + public static final int PRAYER_POTION3_140 = 140; + public static final int PRAYER_POTION2 = 141; + public static final int PRAYER_POTION2_142 = 142; + public static final int PRAYER_POTION1 = 143; + public static final int PRAYER_POTION1_144 = 144; + public static final int SUPER_ATTACK3 = 145; + public static final int SUPER_ATTACK3_146 = 146; + public static final int SUPER_ATTACK2 = 147; + public static final int SUPER_ATTACK2_148 = 148; + public static final int SUPER_ATTACK1 = 149; + public static final int SUPER_ATTACK1_150 = 150; + public static final int FISHING_POTION3 = 151; + public static final int FISHING_POTION3_152 = 152; + public static final int FISHING_POTION2 = 153; + public static final int FISHING_POTION2_154 = 154; + public static final int FISHING_POTION1 = 155; + public static final int FISHING_POTION1_156 = 156; + public static final int SUPER_STRENGTH3 = 157; + public static final int SUPER_STRENGTH3_158 = 158; + public static final int SUPER_STRENGTH2 = 159; + public static final int SUPER_STRENGTH2_160 = 160; + public static final int SUPER_STRENGTH1 = 161; + public static final int SUPER_STRENGTH1_162 = 162; + public static final int SUPER_DEFENCE3 = 163; + public static final int SUPER_DEFENCE3_164 = 164; + public static final int SUPER_DEFENCE2 = 165; + public static final int SUPER_DEFENCE2_166 = 166; + public static final int SUPER_DEFENCE1 = 167; + public static final int SUPER_DEFENCE1_168 = 168; + public static final int RANGING_POTION3 = 169; + public static final int RANGING_POTION3_170 = 170; + public static final int RANGING_POTION2 = 171; + public static final int RANGING_POTION2_172 = 172; + public static final int RANGING_POTION1 = 173; + public static final int RANGING_POTION1_174 = 174; + public static final int ANTIPOISON3 = 175; + public static final int ANTIPOISON3_176 = 176; + public static final int ANTIPOISON2 = 177; + public static final int ANTIPOISON2_178 = 178; + public static final int ANTIPOISON1 = 179; + public static final int ANTIPOISON1_180 = 180; + public static final int SUPERANTIPOISON3 = 181; + public static final int SUPERANTIPOISON3_182 = 182; + public static final int SUPERANTIPOISON2 = 183; + public static final int SUPERANTIPOISON2_184 = 184; + public static final int SUPERANTIPOISON1 = 185; + public static final int SUPERANTIPOISON1_186 = 186; + public static final int WEAPON_POISON = 187; + public static final int WEAPON_POISON_188 = 188; + public static final int ZAMORAK_BREW3 = 189; + public static final int ZAMORAK_BREW3_190 = 190; + public static final int ZAMORAK_BREW2 = 191; + public static final int ZAMORAK_BREW2_192 = 192; + public static final int ZAMORAK_BREW1 = 193; + public static final int ZAMORAK_BREW1_194 = 194; + public static final int POTION = 195; + public static final int POTION_196 = 196; + public static final int POISON_CHALICE = 197; + public static final int POISON_CHALICE_198 = 198; + public static final int HERB = 199; + public static final int HERB_200 = 200; + public static final int HERB_201 = 201; + public static final int HERB_202 = 202; + public static final int HERB_203 = 203; + public static final int HERB_204 = 204; + public static final int HERB_205 = 205; + public static final int HERB_206 = 206; + public static final int HERB_207 = 207; + public static final int HERB_208 = 208; + public static final int HERB_209 = 209; + public static final int HERB_210 = 210; + public static final int HERB_211 = 211; + public static final int HERB_212 = 212; + public static final int HERB_213 = 213; + public static final int HERB_214 = 214; + public static final int HERB_215 = 215; + public static final int HERB_216 = 216; + public static final int HERB_217 = 217; + public static final int HERB_218 = 218; + public static final int HERB_219 = 219; + public static final int HERB_220 = 220; + public static final int EYE_OF_NEWT = 221; + public static final int EYE_OF_NEWT_222 = 222; + public static final int RED_SPIDERS_EGGS = 223; + public static final int RED_SPIDERS_EGGS_224 = 224; + public static final int LIMPWURT_ROOT = 225; + public static final int LIMPWURT_ROOT_226 = 226; + public static final int VIAL_OF_WATER = 227; + public static final int VIAL_OF_WATER_228 = 228; + public static final int VIAL = 229; + public static final int VIAL_230 = 230; + public static final int SNAPE_GRASS = 231; + public static final int SNAPE_GRASS_232 = 232; + public static final int PESTLE_AND_MORTAR = 233; + public static final int PESTLE_AND_MORTAR_234 = 234; + public static final int UNICORN_HORN_DUST = 235; + public static final int UNICORN_HORN_DUST_236 = 236; + public static final int UNICORN_HORN = 237; + public static final int UNICORN_HORN_238 = 238; + public static final int WHITE_BERRIES = 239; + public static final int WHITE_BERRIES_240 = 240; + public static final int DRAGON_SCALE_DUST = 241; + public static final int DRAGON_SCALE_DUST_242 = 242; + public static final int BLUE_DRAGON_SCALE = 243; + public static final int BLUE_DRAGON_SCALE_244 = 244; + public static final int WINE_OF_ZAMORAK = 245; + public static final int WINE_OF_ZAMORAK_246 = 246; + public static final int JANGERBERRIES = 247; + public static final int JANGERBERRIES_248 = 248; + public static final int GUAM_LEAF = 249; + public static final int GUAM_LEAF_250 = 250; + public static final int MARRENTILL = 251; + public static final int MARRENTILL_252 = 252; + public static final int TARROMIN = 253; + public static final int TARROMIN_254 = 254; + public static final int HARRALANDER = 255; + public static final int HARRALANDER_256 = 256; + public static final int RANARR_WEED = 257; + public static final int RANARR_WEED_258 = 258; + public static final int IRIT_LEAF = 259; + public static final int IRIT_LEAF_260 = 260; + public static final int AVANTOE = 261; + public static final int AVANTOE_262 = 262; + public static final int KWUARM = 263; + public static final int KWUARM_264 = 264; + public static final int CADANTINE = 265; + public static final int CADANTINE_266 = 266; + public static final int DWARF_WEED = 267; + public static final int DWARF_WEED_268 = 268; + public static final int TORSTOL = 269; + public static final int TORSTOL_270 = 270; + public static final int PRESSURE_GAUGE = 271; + public static final int FISH_FOOD = 272; + public static final int POISON = 273; + public static final int POISONED_FISH_FOOD = 274; + public static final int KEY = 275; + public static final int RUBBER_TUBE = 276; + public static final int OIL_CAN = 277; + public static final int CATTLEPROD = 278; + public static final int SHEEP_FEED = 279; + public static final int SHEEP_BONES_1 = 280; + public static final int SHEEP_BONES_2 = 281; + public static final int SHEEP_BONES_3 = 282; + public static final int SHEEP_BONES_4 = 283; + public static final int PLAGUE_JACKET = 284; + public static final int PLAGUE_TROUSERS = 285; + public static final int ORANGE_GOBLIN_MAIL = 286; + public static final int BLUE_GOBLIN_MAIL = 287; + public static final int GOBLIN_MAIL = 288; + public static final int GOBLIN_MAIL_289 = 289; + public static final int RESEARCH_PACKAGE = 290; + public static final int NOTES = 291; + public static final int BOOK_ON_BAXTORIAN = 292; + public static final int A_KEY = 293; + public static final int GLARIALS_PEBBLE = 294; + public static final int GLARIALS_AMULET = 295; + public static final int GLARIALS_URN = 296; + public static final int GLARIALS_URN_297 = 297; + public static final int A_KEY_298 = 298; + public static final int MITHRIL_SEEDS = 299; + public static final int RATS_TAIL = 300; + public static final int LOBSTER_POT = 301; + public static final int LOBSTER_POT_302 = 302; + public static final int SMALL_FISHING_NET = 303; + public static final int SMALL_FISHING_NET_304 = 304; + public static final int BIG_FISHING_NET = 305; + public static final int BIG_FISHING_NET_306 = 306; + public static final int FISHING_ROD = 307; + public static final int FISHING_ROD_308 = 308; + public static final int FLY_FISHING_ROD = 309; + public static final int FLY_FISHING_ROD_310 = 310; + public static final int HARPOON = 311; + public static final int HARPOON_312 = 312; + public static final int FISHING_BAIT = 313; + public static final int FEATHER = 314; + public static final int SHRIMPS = 315; + public static final int SHRIMPS_316 = 316; + public static final int RAW_SHRIMPS = 317; + public static final int RAW_SHRIMPS_318 = 318; + public static final int ANCHOVIES = 319; + public static final int ANCHOVIES_320 = 320; + public static final int RAW_ANCHOVIES = 321; + public static final int RAW_ANCHOVIES_322 = 322; + public static final int BURNT_FISH = 323; + public static final int BURNT_FISH_324 = 324; + public static final int SARDINE = 325; + public static final int SARDINE_326 = 326; + public static final int RAW_SARDINE = 327; + public static final int RAW_SARDINE_328 = 328; + public static final int SALMON = 329; + public static final int SALMON_330 = 330; + public static final int RAW_SALMON = 331; + public static final int RAW_SALMON_332 = 332; + public static final int TROUT = 333; + public static final int TROUT_334 = 334; + public static final int RAW_TROUT = 335; + public static final int RAW_TROUT_336 = 336; + public static final int GIANT_CARP = 337; + public static final int RAW_GIANT_CARP = 338; + public static final int COD = 339; + public static final int COD_340 = 340; + public static final int RAW_COD = 341; + public static final int RAW_COD_342 = 342; + public static final int BURNT_FISH_343 = 343; + public static final int BURNT_FISH_344 = 344; + public static final int RAW_HERRING = 345; + public static final int RAW_HERRING_346 = 346; + public static final int HERRING = 347; + public static final int HERRING_348 = 348; + public static final int RAW_PIKE = 349; + public static final int RAW_PIKE_350 = 350; + public static final int PIKE = 351; + public static final int PIKE_352 = 352; + public static final int RAW_MACKEREL = 353; + public static final int RAW_MACKEREL_354 = 354; + public static final int MACKEREL = 355; + public static final int MACKEREL_356 = 356; + public static final int BURNT_FISH_357 = 357; + public static final int BURNT_FISH_358 = 358; + public static final int RAW_TUNA = 359; + public static final int RAW_TUNA_360 = 360; + public static final int TUNA = 361; + public static final int TUNA_362 = 362; + public static final int RAW_BASS = 363; + public static final int RAW_BASS_364 = 364; + public static final int BASS = 365; + public static final int BASS_366 = 366; + public static final int BURNT_FISH_367 = 367; + public static final int BURNT_FISH_368 = 368; + public static final int BURNT_FISH_369 = 369; + public static final int BURNT_FISH_370 = 370; + public static final int RAW_SWORDFISH = 371; + public static final int RAW_SWORDFISH_372 = 372; + public static final int SWORDFISH = 373; + public static final int SWORDFISH_374 = 374; + public static final int BURNT_SWORDFISH = 375; + public static final int BURNT_SWORDFISH_376 = 376; + public static final int RAW_LOBSTER = 377; + public static final int RAW_LOBSTER_378 = 378; + public static final int LOBSTER = 379; + public static final int LOBSTER_380 = 380; + public static final int BURNT_LOBSTER = 381; + public static final int BURNT_LOBSTER_382 = 382; + public static final int RAW_SHARK = 383; + public static final int RAW_SHARK_384 = 384; + public static final int SHARK = 385; + public static final int SHARK_386 = 386; + public static final int BURNT_SHARK = 387; + public static final int BURNT_SHARK_388 = 388; + public static final int RAW_MANTA_RAY = 389; + public static final int RAW_MANTA_RAY_390 = 390; + public static final int MANTA_RAY = 391; + public static final int MANTA_RAY_392 = 392; + public static final int BURNT_MANTA_RAY = 393; + public static final int BURNT_MANTA_RAY_394 = 394; + public static final int RAW_SEA_TURTLE = 395; + public static final int RAW_SEA_TURTLE_396 = 396; + public static final int SEA_TURTLE = 397; + public static final int SEA_TURTLE_398 = 398; + public static final int BURNT_SEA_TURTLE = 399; + public static final int BURNT_SEA_TURTLE_400 = 400; + public static final int SEAWEED = 401; + public static final int SEAWEED_402 = 402; + public static final int EDIBLE_SEAWEED = 403; + public static final int EDIBLE_SEAWEED_404 = 404; + public static final int CASKET = 405; + public static final int CASKET_406 = 406; + public static final int OYSTER = 407; + public static final int OYSTER_408 = 408; + public static final int EMPTY_OYSTER = 409; + public static final int EMPTY_OYSTER_410 = 410; + public static final int OYSTER_PEARL = 411; + public static final int OYSTER_PEARL_412 = 412; + public static final int OYSTER_PEARLS = 413; + public static final int OYSTER_PEARLS_414 = 414; + public static final int ETHENEA = 415; + public static final int LIQUID_HONEY = 416; + public static final int SULPHURIC_BROLINE = 417; + public static final int PLAGUE_SAMPLE = 418; + public static final int TOUCH_PAPER = 419; + public static final int DISTILLATOR = 420; + public static final int LATHAS_AMULET = 421; + public static final int BIRD_FEED = 422; + public static final int KEY_423 = 423; + public static final int PIGEON_CAGE = 424; + public static final int PIGEON_CAGE_425 = 425; + public static final int PRIEST_GOWN = 426; + public static final int PRIEST_GOWN_427 = 427; + public static final int PRIEST_GOWN_428 = 428; + public static final int PRIEST_GOWN_429 = 429; + public static final int DOCTORS_GOWN = 430; + public static final int KARAMJAN_RUM = 431; + public static final int CHEST_KEY = 432; + public static final int PIRATE_MESSAGE = 433; + public static final int CLAY = 434; + public static final int CLAY_435 = 435; + public static final int COPPER_ORE = 436; + public static final int COPPER_ORE_437 = 437; + public static final int TIN_ORE = 438; + public static final int TIN_ORE_439 = 439; + public static final int IRON_ORE = 440; + public static final int IRON_ORE_441 = 441; + public static final int SILVER_ORE = 442; + public static final int SILVER_ORE_443 = 443; + public static final int GOLD_ORE = 444; + public static final int GOLD_ORE_445 = 445; + public static final int PERFECT_GOLD_ORE = 446; + public static final int MITHRIL_ORE = 447; + public static final int MITHRIL_ORE_448 = 448; + public static final int ADAMANTITE_ORE = 449; + public static final int ADAMANTITE_ORE_450 = 450; + public static final int RUNITE_ORE = 451; + public static final int RUNITE_ORE_452 = 452; + public static final int COAL = 453; + public static final int COAL_454 = 454; + public static final int BARCRAWL_CARD = 455; + public static final int SCORPION_CAGE = 456; + public static final int SCORPION_CAGE_457 = 457; + public static final int SCORPION_CAGE_458 = 458; + public static final int SCORPION_CAGE_459 = 459; + public static final int SCORPION_CAGE_460 = 460; + public static final int SCORPION_CAGE_461 = 461; + public static final int SCORPION_CAGE_462 = 462; + public static final int SCORPION_CAGE_463 = 463; + public static final int STRANGE_FRUIT = 464; + public static final int STRANGE_FRUIT_465 = 465; + public static final int PICKAXE_HANDLE = 466; + public static final int PICKAXE_HANDLE_467 = 467; + public static final int BROKEN_PICKAXE = 468; + public static final int BROKEN_PICKAXE_469 = 469; + public static final int BROKEN_PICKAXE_470 = 470; + public static final int BROKEN_PICKAXE_471 = 471; + public static final int BROKEN_PICKAXE_472 = 472; + public static final int BROKEN_PICKAXE_473 = 473; + public static final int BROKEN_PICKAXE_474 = 474; + public static final int BROKEN_PICKAXE_475 = 475; + public static final int BROKEN_PICKAXE_476 = 476; + public static final int BROKEN_PICKAXE_477 = 477; + public static final int BROKEN_PICKAXE_478 = 478; + public static final int BROKEN_PICKAXE_479 = 479; + public static final int BRONZE_PICK_HEAD = 480; + public static final int BRONZE_PICK_HEAD_481 = 481; + public static final int IRON_PICK_HEAD = 482; + public static final int IRON_PICK_HEAD_483 = 483; + public static final int STEEL_PICK_HEAD = 484; + public static final int STEEL_PICK_HEAD_485 = 485; + public static final int MITHRIL_PICK_HEAD = 486; + public static final int MITHRIL_PICK_HEAD_487 = 487; + public static final int ADAMANT_PICK_HEAD = 488; + public static final int ADAMANT_PICK_HEAD_489 = 489; + public static final int RUNE_PICK_HEAD = 490; + public static final int RUNE_PICK_HEAD_491 = 491; + public static final int AXE_HANDLE = 492; + public static final int AXE_HANDLE_493 = 493; + public static final int BROKEN_AXE = 494; + public static final int BROKEN_AXE_495 = 495; + public static final int BROKEN_AXE_496 = 496; + public static final int BROKEN_AXE_497 = 497; + public static final int BROKEN_AXE_498 = 498; + public static final int BROKEN_AXE_499 = 499; + public static final int BROKEN_AXE_500 = 500; + public static final int BROKEN_AXE_501 = 501; + public static final int BROKEN_AXE_502 = 502; + public static final int BROKEN_AXE_503 = 503; + public static final int BROKEN_AXE_504 = 504; + public static final int BROKEN_AXE_505 = 505; + public static final int BROKEN_AXE_506 = 506; + public static final int BROKEN_AXE_507 = 507; + public static final int BRONZE_AXE_HEAD = 508; + public static final int BRONZE_AXE_HEAD_509 = 509; + public static final int IRON_AXE_HEAD = 510; + public static final int IRON_AXE_HEAD_511 = 511; + public static final int STEEL_AXE_HEAD = 512; + public static final int STEEL_AXE_HEAD_513 = 513; + public static final int BLACK_AXE_HEAD = 514; + public static final int BLACK_AXE_HEAD_515 = 515; + public static final int MITHRIL_AXE_HEAD = 516; + public static final int MITHRIL_AXE_HEAD_517 = 517; + public static final int ADAMANT_AXE_HEAD = 518; + public static final int ADAMANT_AXE_HEAD_519 = 519; + public static final int RUNE_AXE_HEAD = 520; + public static final int RUNE_AXE_HEAD_521 = 521; + public static final int ENCHANTED_BEEF = 522; + public static final int ENCHANTED_RAT = 523; + public static final int ENCHANTED_BEAR = 524; + public static final int ENCHANTED_CHICKEN = 525; + public static final int BONES = 526; + public static final int BONES_527 = 527; + public static final int BURNT_BONES = 528; + public static final int BURNT_BONES_529 = 529; + public static final int BAT_BONES = 530; + public static final int BAT_BONES_531 = 531; + public static final int BIG_BONES = 532; + public static final int BIG_BONES_533 = 533; + public static final int BABYDRAGON_BONES = 534; + public static final int BABYDRAGON_BONES_535 = 535; + public static final int DRAGON_BONES = 536; + public static final int DRAGON_BONES_537 = 537; + public static final int DRUIDS_ROBE = 538; + public static final int DRUIDS_ROBE_539 = 539; + public static final int DRUIDS_ROBE_540 = 540; + public static final int DRUIDS_ROBE_541 = 541; + public static final int MONKS_ROBE = 542; + public static final int MONKS_ROBE_543 = 543; + public static final int MONKS_ROBE_544 = 544; + public static final int MONKS_ROBE_545 = 545; + public static final int SHADE_ROBE = 546; + public static final int SHADE_ROBE_547 = 547; + public static final int SHADE_ROBE_548 = 548; + public static final int SHADE_ROBE_549 = 549; + public static final int NEWCOMER_MAP = 550; + public static final int NEWCOMER_MAP_551 = 551; + public static final int GHOSTSPEAK_AMULET = 552; + public static final int SKULL = 553; + public static final int FIRE_RUNE = 554; + public static final int WATER_RUNE = 555; + public static final int AIR_RUNE = 556; + public static final int EARTH_RUNE = 557; + public static final int MIND_RUNE = 558; + public static final int BODY_RUNE = 559; + public static final int DEATH_RUNE = 560; + public static final int NATURE_RUNE = 561; + public static final int CHAOS_RUNE = 562; + public static final int LAW_RUNE = 563; + public static final int COSMIC_RUNE = 564; + public static final int BLOOD_RUNE = 565; + public static final int SOUL_RUNE = 566; + public static final int UNPOWERED_ORB = 567; + public static final int UNPOWERED_ORB_568 = 568; + public static final int FIRE_ORB = 569; + public static final int FIRE_ORB_570 = 570; + public static final int WATER_ORB = 571; + public static final int WATER_ORB_572 = 572; + public static final int AIR_ORB = 573; + public static final int AIR_ORB_574 = 574; + public static final int EARTH_ORB = 575; + public static final int EARTH_ORB_576 = 576; + public static final int WIZARD_ROBE = 577; + public static final int WIZARD_ROBE_578 = 578; + public static final int WIZARD_HAT = 579; + public static final int WIZARD_HAT_580 = 580; + public static final int BLACK_ROBE = 581; + public static final int BLACK_ROBE_582 = 582; + public static final int BAILING_BUCKET = 583; + public static final int BAILING_BUCKET_584 = 584; + public static final int BAILING_BUCKET_585 = 585; + public static final int BAILING_BUCKET_586 = 586; + public static final int ORB_OF_PROTECTION = 587; + public static final int ORBS_OF_PROTECTION = 588; + public static final int GNOME_AMULET = 589; + public static final int TINDERBOX = 590; + public static final int TINDERBOX_591 = 591; + public static final int ASHES = 592; + public static final int ASHES_593 = 593; + public static final int TORCH = 594; + public static final int TORCH_595 = 595; + public static final int TORCH_596 = 596; + public static final int TORCH_597 = 597; + public static final int BRONZE_FIRE_ARROWS = 598; + public static final int DOUBLE_HELIX = 599; + public static final int ASTROLOGY_BOOK = 600; + public static final int KEEP_KEY = 601; + public static final int LENS_MOULD = 602; + public static final int LENS = 603; + public static final int BONE_SHARD = 604; + public static final int BONE_KEY = 605; + public static final int STONEPLAQUE = 606; + public static final int TATTERED_SCROLL = 607; + public static final int CRUMPLED_SCROLL = 608; + public static final int RASHILIYIA_CORPSE = 609; + public static final int ZADIMUS_CORPSE = 610; + public static final int LOCATING_CRYSTAL = 611; + public static final int LOCATING_CRYSTAL_612 = 612; + public static final int LOCATING_CRYSTAL_613 = 613; + public static final int LOCATING_CRYSTAL_614 = 614; + public static final int LOCATING_CRYSTAL_615 = 615; + public static final int BEADS_OF_THE_DEAD = 616; + public static final int COINS = 617; + public static final int BONE_BEADS = 618; + public static final int PARAMAYA_TICKET = 619; + public static final int PARAMAYA_TICKET_620 = 620; + public static final int SHIP_TICKET = 621; + public static final int SHIP_TICKET_622 = 622; + public static final int SWORD_POMMEL = 623; + public static final int BERVIRIUS_NOTES = 624; + public static final int WAMPUM_BELT = 625; + public static final int BOOTS = 626; + public static final int BOOTS_627 = 627; + public static final int BOOTS_628 = 628; + public static final int BOOTS_629 = 629; + public static final int BOOTS_630 = 630; + public static final int BOOTS_631 = 631; + public static final int BOOTS_632 = 632; + public static final int BOOTS_633 = 633; + public static final int BOOTS_634 = 634; + public static final int BOOTS_635 = 635; + public static final int ROBE_TOP = 636; + public static final int ROBE_TOP_637 = 637; + public static final int ROBE_TOP_638 = 638; + public static final int ROBE_TOP_639 = 639; + public static final int ROBE_TOP_640 = 640; + public static final int ROBE_TOP_641 = 641; + public static final int ROBE_TOP_642 = 642; + public static final int ROBE_TOP_643 = 643; + public static final int ROBE_TOP_644 = 644; + public static final int ROBE_TOP_645 = 645; + public static final int ROBE_BOTTOMS = 646; + public static final int ROBE_BOTTOMS_647 = 647; + public static final int ROBE_BOTTOMS_648 = 648; + public static final int ROBE_BOTTOMS_649 = 649; + public static final int ROBE_BOTTOMS_650 = 650; + public static final int ROBE_BOTTOMS_651 = 651; + public static final int ROBE_BOTTOMS_652 = 652; + public static final int ROBE_BOTTOMS_653 = 653; + public static final int ROBE_BOTTOMS_654 = 654; + public static final int ROBE_BOTTOMS_655 = 655; + public static final int HAT = 656; + public static final int HAT_657 = 657; + public static final int HAT_658 = 658; + public static final int HAT_659 = 659; + public static final int HAT_660 = 660; + public static final int HAT_661 = 661; + public static final int HAT_662 = 662; + public static final int HAT_663 = 663; + public static final int HAT_664 = 664; + public static final int HAT_665 = 665; + public static final int PORTRAIT = 666; + public static final int BLURITE_SWORD = 667; + public static final int BLURITE_ORE = 668; + public static final int SPECIMEN_JAR = 669; + public static final int SPECIMEN_BRUSH = 670; + public static final int ROCK_SAMPLE_1 = 671; + public static final int ROCK_SAMPLE_2 = 672; + public static final int ROCK_SAMPLE_3 = 673; + public static final int ROCK_SAMPLE = 674; + public static final int ROCK_PICK = 675; + public static final int TROWEL = 676; + public static final int PANNING_TRAY = 677; + public static final int PANNING_TRAY_678 = 678; + public static final int PANNING_TRAY_679 = 679; + public static final int NUGGETS = 680; + public static final int ZAROS_TALISMAN = 681; + public static final int UNSTAMPED_LETTER = 682; + public static final int STAMPED_LETTER = 683; + public static final int BELT_BUCKLE = 684; + public static final int OLD_BOOT = 685; + public static final int RUSTY_SWORD = 686; + public static final int BROKEN_ARROW = 687; + public static final int BUTTONS = 688; + public static final int BROKEN_STAFF = 689; + public static final int BROKEN_GLASS = 690; + public static final int LEVEL_1_CERTIFICATE = 691; + public static final int LEVEL_2_CERTIFICATE = 692; + public static final int LEVEL_3_CERTIFICATE = 693; + public static final int CERAMIC_REMAINS = 694; + public static final int OLD_TOOTH = 695; + public static final int INVITATION_LETTER = 696; + public static final int DAMAGED_ARMOUR = 697; + public static final int BROKEN_ARMOUR = 698; + public static final int STONE_TABLET = 699; + public static final int CHEMICAL_POWDER = 700; + public static final int AMMONIUM_NITRATE = 701; + public static final int UNIDENTIFIED_LIQUID = 702; + public static final int NITROGLYCERIN = 703; + public static final int GROUND_CHARCOAL = 704; + public static final int MIXED_CHEMICALS = 705; + public static final int MIXED_CHEMICALS_706 = 706; + public static final int CHEMICAL_COMPOUND = 707; + public static final int ARCENIA_ROOT = 708; + public static final int CHEST_KEY_709 = 709; + public static final int VASE = 710; + public static final int BOOK_ON_CHEMICALS = 711; + public static final int CUP_OF_TEA = 712; + public static final int ENJIFERN = 713; + public static final int RADIMUS_NOTES = 714; + public static final int RADIMUS_NOTES_715 = 715; + public static final int BULL_ROARER = 716; + public static final int SCRAWLED_NOTE = 717; + public static final int A_SCRIBBLED_NOTE = 718; + public static final int SCRUMPLED_NOTE = 719; + public static final int SKETCH = 720; + public static final int GOLD_BOWL = 721; + public static final int BLESSED_GOLD_BOWL = 722; + public static final int GOLDEN_BOWL = 723; + public static final int GOLDEN_BOWL_724 = 724; + public static final int GOLDEN_BOWL_725 = 725; + public static final int GOLDEN_BOWL_726 = 726; + public static final int HOLLOW_REED = 727; + public static final int HOLLOW_REED_728 = 728; + public static final int SHAMANS_TOME = 729; + public static final int BOOK_OF_BINDING = 730; + public static final int ENCHANTED_VIAL = 731; + public static final int HOLY_WATER = 732; + public static final int SMASHED_GLASS = 733; + public static final int SMASHED_GLASS_734 = 734; + public static final int YOMMI_TREE_SEEDS = 735; + public static final int YOMMI_TREE_SEEDS_736 = 736; + public static final int SNAKEWEED_MIXTURE = 737; + public static final int ARDRIGAL_MIXTURE = 738; + public static final int BRAVERY_POTION = 739; + public static final int BLUE_HAT = 740; + public static final int CHUNK_OF_CRYSTAL = 741; + public static final int HUNK_OF_CRYSTAL = 742; + public static final int LUMP_OF_CRYSTAL = 743; + public static final int HEART_CRYSTAL = 744; + public static final int HEART_CRYSTAL_745 = 745; + public static final int DARK_DAGGER = 746; + public static final int GLOWING_DAGGER = 747; + public static final int HOLY_FORCE = 748; + public static final int YOMMI_TOTEM = 749; + public static final int GILDED_TOTEM = 750; + public static final int GNOMEBALL = 751; + public static final int GNOMEBALL_752 = 752; + public static final int CADAVA_BERRIES = 753; + public static final int CADAVA_BERRIES_754 = 754; + public static final int MESSAGE = 755; + public static final int CADAVA_POTION = 756; + public static final int BOOK = 757; + public static final int KEY_758 = 758; + public static final int KEY_759 = 759; + public static final int KEY_760 = 760; + public static final int SCROLL = 761; + public static final int SCROLL_762 = 762; + public static final int BROKEN_SHIELD = 763; + public static final int BROKEN_SHIELD_764 = 764; + public static final int BROKEN_SHIELD_765 = 765; + public static final int BROKEN_SHIELD_766 = 766; + public static final int PHOENIX_CROSSBOW = 767; + public static final int PHOENIX_CROSSBOW_768 = 768; + public static final int CERTIFICATE = 769; + public static final int CERTIFICATE_770 = 770; + public static final int DRAMEN_BRANCH = 771; + public static final int DRAMEN_STAFF = 772; + public static final int PERFECT_RING = 773; + public static final int PERFECT_NECKLACE = 774; + public static final int COOKING_GAUNTLETS = 775; + public static final int GOLDSMITH_GAUNTLET = 776; + public static final int CHAOS_GAUNTLETS = 777; + public static final int STEEL_GAUNTLETS = 778; + public static final int CREST_PART = 779; + public static final int CREST_PART_780 = 780; + public static final int CREST_PART_781 = 781; + public static final int FAMILY_CREST = 782; + public static final int BARK_SAMPLE = 783; + public static final int TRANSLATION_BOOK = 784; + public static final int GLOUGHS_JOURNAL = 785; + public static final int HAZELMERES_SCROLL = 786; + public static final int LUMBER_ORDER = 787; + public static final int GLOUGHS_KEY = 788; + public static final int TWIGS = 789; + public static final int TWIGS_790 = 790; + public static final int TWIGS_791 = 791; + public static final int TWIGS_792 = 792; + public static final int DACONIA_ROCK = 793; + public static final int INVASION_PLANS = 794; + public static final int WAR_SHIP = 795; + public static final int EXPLODING_VIAL = 796; + public static final int HERB_BOWL = 797; + public static final int GRINDER = 798; + public static final int NULL_799 = 799; + public static final int BRONZE_THROWNAXE = 800; + public static final int IRON_THROWNAXE = 801; + public static final int STEEL_THROWNAXE = 802; + public static final int MITHRIL_THROWNAXE = 803; + public static final int ADAMNT_THROWNAXE = 804; + public static final int RUNE_THROWNAXE = 805; + public static final int BRONZE_DART = 806; + public static final int IRON_DART = 807; + public static final int STEEL_DART = 808; + public static final int MITHRIL_DART = 809; + public static final int ADAMANT_DART = 810; + public static final int RUNE_DART = 811; + public static final int BRONZE_DARTP = 812; + public static final int IRON_DARTP = 813; + public static final int STEEL_DARTP = 814; + public static final int MITHRIL_DARTP = 815; + public static final int ADAMANT_DARTP = 816; + public static final int RUNE_DARTP = 817; + public static final int POISONED_DARTP = 818; + public static final int BRONZE_DART_TIP = 819; + public static final int IRON_DART_TIP = 820; + public static final int STEEL_DART_TIP = 821; + public static final int MITHRIL_DART_TIP = 822; + public static final int ADAMANT_DART_TIP = 823; + public static final int RUNE_DART_TIP = 824; + public static final int BRONZE_JAVELIN = 825; + public static final int IRON_JAVELIN = 826; + public static final int STEEL_JAVELIN = 827; + public static final int MITHRIL_JAVELIN = 828; + public static final int ADAMANT_JAVELIN = 829; + public static final int RUNE_JAVELIN = 830; + public static final int BRONZE_JAVELINP = 831; + public static final int IRON_JAVELINP = 832; + public static final int STEEL_JAVELINP = 833; + public static final int MITHRIL_JAVELINP = 834; + public static final int ADAMANT_JAVELINP = 835; + public static final int RUNE_JAVELINP = 836; + public static final int CROSSBOW = 837; + public static final int CROSSBOW_838 = 838; + public static final int LONGBOW = 839; + public static final int LONGBOW_840 = 840; + public static final int SHORTBOW = 841; + public static final int SHORTBOW_842 = 842; + public static final int OAK_SHORTBOW = 843; + public static final int OAK_SHORTBOW_844 = 844; + public static final int OAK_LONGBOW = 845; + public static final int OAK_LONGBOW_846 = 846; + public static final int WILLOW_LONGBOW = 847; + public static final int WILLOW_LONGBOW_848 = 848; + public static final int WILLOW_SHORTBOW = 849; + public static final int WILLOW_SHORTBOW_850 = 850; + public static final int MAPLE_LONGBOW = 851; + public static final int MAPLE_LONGBOW_852 = 852; + public static final int MAPLE_SHORTBOW = 853; + public static final int MAPLE_SHORTBOW_854 = 854; + public static final int YEW_LONGBOW = 855; + public static final int YEW_LONGBOW_856 = 856; + public static final int YEW_SHORTBOW = 857; + public static final int YEW_SHORTBOW_858 = 858; + public static final int MAGIC_LONGBOW = 859; + public static final int MAGIC_LONGBOW_860 = 860; + public static final int MAGIC_SHORTBOW = 861; + public static final int MAGIC_SHORTBOW_862 = 862; + public static final int IRON_KNIFE = 863; + public static final int BRONZE_KNIFE = 864; + public static final int STEEL_KNIFE = 865; + public static final int MITHRIL_KNIFE = 866; + public static final int ADAMANT_KNIFE = 867; + public static final int RUNE_KNIFE = 868; + public static final int BLACK_KNIFE = 869; + public static final int BRONZE_KNIFEP = 870; + public static final int IRON_KNIFEP = 871; + public static final int STEEL_KNIFEP = 872; + public static final int MITHRIL_KNIFEP = 873; + public static final int BLACK_KNIFEP = 874; + public static final int ADAMANT_KNIFEP = 875; + public static final int RUNE_KNIFEP = 876; + public static final int BOLTS = 877; + public static final int BOLTSP = 878; + public static final int OPAL_BOLTS = 879; + public static final int PEARL_BOLTS = 880; + public static final int BARBED_BOLTS = 881; + public static final int BRONZE_ARROW = 882; + public static final int BRONZE_ARROWP = 883; + public static final int IRON_ARROW = 884; + public static final int IRON_ARROWP = 885; + public static final int STEEL_ARROW = 886; + public static final int STEEL_ARROWP = 887; + public static final int MITHRIL_ARROW = 888; + public static final int MITHRIL_ARROWP = 889; + public static final int ADAMANT_ARROW = 890; + public static final int ADAMANT_ARROWP = 891; + public static final int RUNE_ARROW = 892; + public static final int RUNE_ARROWP = 893; + public static final int NULL_894 = 894; + public static final int NULL_895 = 895; + public static final int NULL_896 = 896; + public static final int NULL_897 = 897; + public static final int NULL_898 = 898; + public static final int NULL_899 = 899; + public static final int NULL_900 = 900; + public static final int NULL_901 = 901; + public static final int NULL_902 = 902; + public static final int NULL_903 = 903; + public static final int NULL_904 = 904; + public static final int NULL_905 = 905; + public static final int NULL_906 = 906; + public static final int NULL_907 = 907; + public static final int NULL_908 = 908; + public static final int NULL_909 = 909; + public static final int NULL_910 = 910; + public static final int NULL_911 = 911; + public static final int NULL_912 = 912; + public static final int NULL_913 = 913; + public static final int NULL_914 = 914; + public static final int NULL_915 = 915; + public static final int NULL_916 = 916; + public static final int NULL_917 = 917; + public static final int NULL_918 = 918; + public static final int NULL_919 = 919; + public static final int NULL_920 = 920; + public static final int NULL_921 = 921; + public static final int NULL_922 = 922; + public static final int NULL_923 = 923; + public static final int NULL_924 = 924; + public static final int NULL_925 = 925; + public static final int NULL_926 = 926; + public static final int NULL_927 = 927; + public static final int NULL_928 = 928; + public static final int NULL_929 = 929; + public static final int NULL_930 = 930; + public static final int NULL_931 = 931; + public static final int NULL_932 = 932; + public static final int NULL_933 = 933; + public static final int NULL_934 = 934; + public static final int NULL_935 = 935; + public static final int NULL_936 = 936; + public static final int NULL_937 = 937; + public static final int NULL_938 = 938; + public static final int NULL_939 = 939; + public static final int NULL_940 = 940; + public static final int NULL_941 = 941; + public static final int BRONZE_FIRE_ARROWS_942 = 942; + public static final int WORM = 943; + public static final int WORM_944 = 944; + public static final int THROWING_ROPE = 945; + public static final int KNIFE = 946; + public static final int KNIFE_947 = 947; + public static final int BEAR_FUR = 948; + public static final int BEAR_FUR_949 = 949; + public static final int SILK = 950; + public static final int SILK_951 = 951; + public static final int SPADE = 952; + public static final int SPADE_953 = 953; + public static final int ROPE = 954; + public static final int ROPE_955 = 955; + public static final int FLIER = 956; + public static final int FLIER_957 = 957; + public static final int GREY_WOLF_FUR = 958; + public static final int GREY_WOLF_FUR_959 = 959; + public static final int PLANK = 960; + public static final int PLANK_961 = 961; + public static final int CHRISTMAS_CRACKER = 962; + public static final int CHRISTMAS_CRACKER_963 = 963; + public static final int SKULL_964 = 964; + public static final int SKULL_965 = 965; + public static final int TILE = 966; + public static final int TILE_967 = 967; + public static final int ROCK = 968; + public static final int ROCK_969 = 969; + public static final int PAPYRUS = 970; + public static final int PAPYRUS_971 = 971; + public static final int PAPYRUS_972 = 972; + public static final int CHARCOAL = 973; + public static final int CHARCOAL_974 = 974; + public static final int MACHETE = 975; + public static final int MACHETE_976 = 976; + public static final int COOKING_POT = 977; + public static final int COOKING_POT_978 = 978; + public static final int NULL_979 = 979; + public static final int WHOOPSIE = 980; + public static final int DISK_OF_RETURNING = 981; + public static final int DISK_OF_RETURNING_982 = 982; + public static final int BRASS_KEY = 983; + public static final int BRASS_KEY_984 = 984; + public static final int HALF_OF_A_KEY = 985; + public static final int HALF_OF_A_KEY_986 = 986; + public static final int HALF_OF_A_KEY_987 = 987; + public static final int HALF_OF_A_KEY_988 = 988; + public static final int CRYSTAL_KEY = 989; + public static final int CRYSTAL_KEY_990 = 990; + public static final int MUDDY_KEY = 991; + public static final int MUDDY_KEY_992 = 992; + public static final int SINISTER_KEY = 993; + public static final int SINISTER_KEY_994 = 994; + public static final int COINS_995 = 995; + public static final int NULL_996 = 996; + public static final int NULL_997 = 997; + public static final int NULL_998 = 998; + public static final int NULL_999 = 999; + public static final int NULL_1000 = 1000; + public static final int NULL_1001 = 1001; + public static final int NULL_1002 = 1002; + public static final int NULL_1003 = 1003; + public static final int NULL_1004 = 1004; + public static final int WHITE_APRON = 1005; + public static final int WHITE_APRON_1006 = 1006; + public static final int CAPE = 1007; + public static final int CAPE_1008 = 1008; + public static final int BRASS_NECKLACE = 1009; + public static final int BRASS_NECKLACE_1010 = 1010; + public static final int BLUE_SKIRT = 1011; + public static final int BLUE_SKIRT_1012 = 1012; + public static final int PINK_SKIRT = 1013; + public static final int PINK_SKIRT_1014 = 1014; + public static final int BLACK_SKIRT = 1015; + public static final int BLACK_SKIRT_1016 = 1016; + public static final int WIZARD_HAT_1017 = 1017; + public static final int WIZARD_HAT_1018 = 1018; + public static final int CAPE_1019 = 1019; + public static final int CAPE_1020 = 1020; + public static final int CAPE_1021 = 1021; + public static final int CAPE_1022 = 1022; + public static final int CAPE_1023 = 1023; + public static final int CAPE_1024 = 1024; + public static final int EYE_PATCH = 1025; + public static final int EYE_PATCH_1026 = 1026; + public static final int CAPE_1027 = 1027; + public static final int CAPE_1028 = 1028; + public static final int CAPE_1029 = 1029; + public static final int CAPE_1030 = 1030; + public static final int CAPE_1031 = 1031; + public static final int CAPE_1032 = 1032; + public static final int ZAMORAK_ROBE = 1033; + public static final int ZAMORAK_ROBE_1034 = 1034; + public static final int ZAMORAK_ROBE_1035 = 1035; + public static final int ZAMORAK_ROBE_1036 = 1036; + public static final int BUNNY_EARS = 1037; + public static final int RED_PARTYHAT = 1038; + public static final int RED_PARTYHAT_1039 = 1039; + public static final int YELLOW_PARTYHAT = 1040; + public static final int YELLOW_PARTYHAT_1041 = 1041; + public static final int BLUE_PARTYHAT = 1042; + public static final int BLUE_PARTYHAT_1043 = 1043; + public static final int GREEN_PARTYHAT = 1044; + public static final int GREEN_PARTYHAT_1045 = 1045; + public static final int PURPLE_PARTYHAT = 1046; + public static final int PURPLE_PARTYHAT_1047 = 1047; + public static final int WHITE_PARTYHAT = 1048; + public static final int WHITE_PARTYHAT_1049 = 1049; + public static final int SANTA_HAT = 1050; + public static final int SANTA_HAT_1051 = 1051; + public static final int CAPE_OF_LEGENDS = 1052; + public static final int GREEN_HWEEN_MASK = 1053; + public static final int GREEN_HWEEN_MASK_1054 = 1054; + public static final int BLUE_HWEEN_MASK = 1055; + public static final int BLUE_HWEEN_MASK_1056 = 1056; + public static final int RED_HWEEN_MASK = 1057; + public static final int RED_HWEEN_MASK_1058 = 1058; + public static final int LEATHER_GLOVES = 1059; + public static final int LEATHER_GLOVES_1060 = 1060; + public static final int LEATHER_BOOTS = 1061; + public static final int LEATHER_BOOTS_1062 = 1062; + public static final int LEATHER_VAMBRACES = 1063; + public static final int LEATHER_VAMBRACES_1064 = 1064; + public static final int GREEN_DHIDE_VAMB = 1065; + public static final int GREEN_DHIDE_VAMB_1066 = 1066; + public static final int IRON_PLATELEGS = 1067; + public static final int IRON_PLATELEGS_1068 = 1068; + public static final int STEEL_PLATELEGS = 1069; + public static final int STEEL_PLATELEGS_1070 = 1070; + public static final int MITHRIL_PLATELEGS = 1071; + public static final int MITHRIL_PLATELEGS_1072 = 1072; + public static final int ADAMANT_PLATELEGS = 1073; + public static final int ADAMANT_PLATELEGS_1074 = 1074; + public static final int BRONZE_PLATELEGS = 1075; + public static final int BRONZE_PLATELEGS_1076 = 1076; + public static final int BLACK_PLATELEGS = 1077; + public static final int BLACK_PLATELEGS_1078 = 1078; + public static final int RUNE_PLATELEGS = 1079; + public static final int RUNE_PLATELEGS_1080 = 1080; + public static final int IRON_PLATESKIRT = 1081; + public static final int IRON_PLATESKIRT_1082 = 1082; + public static final int STEEL_PLATESKIRT = 1083; + public static final int STEEL_PLATESKIRT_1084 = 1084; + public static final int MITHRIL_PLATESKIRT = 1085; + public static final int MITHRIL_PLATESKIRT_1086 = 1086; + public static final int BRONZE_PLATESKIRT = 1087; + public static final int BRONZE_PLATESKIRT_1088 = 1088; + public static final int BLACK_PLATESKIRT = 1089; + public static final int BLACK_PLATESKIRT_1090 = 1090; + public static final int ADAMANT_PLATESKIRT = 1091; + public static final int ADAMANT_PLATESKIRT_1092 = 1092; + public static final int RUNE_PLATESKIRT = 1093; + public static final int RUNE_PLATESKIRT_1094 = 1094; + public static final int LEATHER_CHAPS = 1095; + public static final int LEATHER_CHAPS_1096 = 1096; + public static final int STUDDED_CHAPS = 1097; + public static final int STUDDED_CHAPS_1098 = 1098; + public static final int GREEN_DHIDE_CHAPS = 1099; + public static final int GREEN_DHIDE_CHAPS_1100 = 1100; + public static final int IRON_CHAINBODY = 1101; + public static final int IRON_CHAINBODY_1102 = 1102; + public static final int BRONZE_CHAINBODY = 1103; + public static final int BRONZE_CHAINBODY_1104 = 1104; + public static final int STEEL_CHAINBODY = 1105; + public static final int STEEL_CHAINBODY_1106 = 1106; + public static final int BLACK_CHAINBODY = 1107; + public static final int BLACK_CHAINBODY_1108 = 1108; + public static final int MITHRIL_CHAINBODY = 1109; + public static final int MITHRIL_CHAINBODY_1110 = 1110; + public static final int ADAMANT_CHAINBODY = 1111; + public static final int ADAMANT_CHAINBODY_1112 = 1112; + public static final int RUNE_CHAINBODY = 1113; + public static final int RUNE_CHAINBODY_1114 = 1114; + public static final int IRON_PLATEBODY = 1115; + public static final int IRON_PLATEBODY_1116 = 1116; + public static final int BRONZE_PLATEBODY = 1117; + public static final int BRONZE_PLATEBODY_1118 = 1118; + public static final int STEEL_PLATEBODY = 1119; + public static final int STEEL_PLATEBODY_1120 = 1120; + public static final int MITHRIL_PLATEBODY = 1121; + public static final int MITHRIL_PLATEBODY_1122 = 1122; + public static final int ADAMANT_PLATEBODY = 1123; + public static final int ADAMANT_PLATEBODY_1124 = 1124; + public static final int BLACK_PLATEBODY = 1125; + public static final int BLACK_PLATEBODY_1126 = 1126; + public static final int RUNE_PLATEBODY = 1127; + public static final int RUNE_PLATEBODY_1128 = 1128; + public static final int LEATHER_BODY = 1129; + public static final int LEATHER_BODY_1130 = 1130; + public static final int HARDLEATHER_BODY = 1131; + public static final int HARDLEATHER_BODY_1132 = 1132; + public static final int STUDDED_BODY = 1133; + public static final int STUDDED_BODY_1134 = 1134; + public static final int GREEN_DHIDE_BODY = 1135; + public static final int GREEN_DHIDE_BODY_1136 = 1136; + public static final int IRON_MED_HELM = 1137; + public static final int IRON_MED_HELM_1138 = 1138; + public static final int BRONZE_MED_HELM = 1139; + public static final int BRONZE_MED_HELM_1140 = 1140; + public static final int STEEL_MED_HELM = 1141; + public static final int STEEL_MED_HELM_1142 = 1142; + public static final int MITHRIL_MED_HELM = 1143; + public static final int MITHRIL_MED_HELM_1144 = 1144; + public static final int ADAMANT_MED_HELM = 1145; + public static final int ADAMANT_MED_HELM_1146 = 1146; + public static final int RUNE_MED_HELM = 1147; + public static final int RUNE_MED_HELM_1148 = 1148; + public static final int DRAGON_MED_HELM = 1149; + public static final int DRAGON_MED_HELM_1150 = 1150; + public static final int BLACK_MED_HELM = 1151; + public static final int BLACK_MED_HELM_1152 = 1152; + public static final int IRON_FULL_HELM = 1153; + public static final int IRON_FULL_HELM_1154 = 1154; + public static final int BRONZE_FULL_HELM = 1155; + public static final int BRONZE_FULL_HELM_1156 = 1156; + public static final int STEEL_FULL_HELM = 1157; + public static final int STEEL_FULL_HELM_1158 = 1158; + public static final int MITHRIL_FULL_HELM = 1159; + public static final int MITHRIL_FULL_HELM_1160 = 1160; + public static final int ADAMANT_FULL_HELM = 1161; + public static final int ADAMANT_FULL_HELM_1162 = 1162; + public static final int RUNE_FULL_HELM = 1163; + public static final int RUNE_FULL_HELM_1164 = 1164; + public static final int BLACK_FULL_HELM = 1165; + public static final int BLACK_FULL_HELM_1166 = 1166; + public static final int LEATHER_COWL = 1167; + public static final int LEATHER_COWL_1168 = 1168; + public static final int COIF = 1169; + public static final int COIF_1170 = 1170; + public static final int WOODEN_SHIELD = 1171; + public static final int WOODEN_SHIELD_1172 = 1172; + public static final int BRONZE_SQ_SHIELD = 1173; + public static final int BRONZE_SQ_SHIELD_1174 = 1174; + public static final int IRON_SQ_SHIELD = 1175; + public static final int IRON_SQ_SHIELD_1176 = 1176; + public static final int STEEL_SQ_SHIELD = 1177; + public static final int STEEL_SQ_SHIELD_1178 = 1178; + public static final int BLACK_SQ_SHIELD = 1179; + public static final int BLACK_SQ_SHIELD_1180 = 1180; + public static final int MITHRIL_SQ_SHIELD = 1181; + public static final int MITHRIL_SQ_SHIELD_1182 = 1182; + public static final int ADAMANT_SQ_SHIELD = 1183; + public static final int ADAMANT_SQ_SHIELD_1184 = 1184; + public static final int RUNE_SQ_SHIELD = 1185; + public static final int RUNE_SQ_SHIELD_1186 = 1186; + public static final int DRAGON_SQ_SHIELD = 1187; + public static final int DRAGON_SQ_SHIELD_1188 = 1188; + public static final int BRONZE_KITESHIELD = 1189; + public static final int BRONZE_KITESHIELD_1190 = 1190; + public static final int IRON_KITESHIELD = 1191; + public static final int IRON_KITESHIELD_1192 = 1192; + public static final int STEEL_KITESHIELD = 1193; + public static final int STEEL_KITESHIELD_1194 = 1194; + public static final int BLACK_KITESHIELD = 1195; + public static final int BLACK_KITESHIELD_1196 = 1196; + public static final int MITHRIL_KITESHIELD = 1197; + public static final int MITHRIL_KITESHIELD_1198 = 1198; + public static final int ADAMANT_KITESHIELD = 1199; + public static final int ADAMANT_KITESHIELD_1200 = 1200; + public static final int RUNE_KITESHIELD = 1201; + public static final int RUNE_KITESHIELD_1202 = 1202; + public static final int IRON_DAGGER = 1203; + public static final int IRON_DAGGER_1204 = 1204; + public static final int BRONZE_DAGGER = 1205; + public static final int BRONZE_DAGGER_1206 = 1206; + public static final int STEEL_DAGGER = 1207; + public static final int STEEL_DAGGER_1208 = 1208; + public static final int MITHRIL_DAGGER = 1209; + public static final int MITHRIL_DAGGER_1210 = 1210; + public static final int ADAMANT_DAGGER = 1211; + public static final int ADAMANT_DAGGER_1212 = 1212; + public static final int RUNE_DAGGER = 1213; + public static final int RUNE_DAGGER_1214 = 1214; + public static final int DRAGON_DAGGER = 1215; + public static final int DRAGON_DAGGER_1216 = 1216; + public static final int BLACK_DAGGER = 1217; + public static final int BLACK_DAGGER_1218 = 1218; + public static final int IRON_DAGGERP = 1219; + public static final int IRON_DAGGERP_1220 = 1220; + public static final int BRONZE_DAGGERP = 1221; + public static final int BRONZE_DAGGERP_1222 = 1222; + public static final int STEEL_DAGGERP = 1223; + public static final int STEEL_DAGGERP_1224 = 1224; + public static final int MITHRIL_DAGGERP = 1225; + public static final int MITHRIL_DAGGERP_1226 = 1226; + public static final int ADAMANT_DAGGERP = 1227; + public static final int ADAMANT_DAGGERP_1228 = 1228; + public static final int RUNE_DAGGERP = 1229; + public static final int RUNE_DAGGERP_1230 = 1230; + public static final int DRAGON_DAGGERP = 1231; + public static final int DRAGON_DAGGERP_1232 = 1232; + public static final int BLACK_DAGGERP = 1233; + public static final int BLACK_DAGGERP_1234 = 1234; + public static final int POISONED_DAGGERP = 1235; + public static final int POISONED_DAGGERP_1236 = 1236; + public static final int BRONZE_SPEAR = 1237; + public static final int BRONZE_SPEAR_1238 = 1238; + public static final int IRON_SPEAR = 1239; + public static final int IRON_SPEAR_1240 = 1240; + public static final int STEEL_SPEAR = 1241; + public static final int STEEL_SPEAR_1242 = 1242; + public static final int MITHRIL_SPEAR = 1243; + public static final int MITHRIL_SPEAR_1244 = 1244; + public static final int ADAMANT_SPEAR = 1245; + public static final int ADAMANT_SPEAR_1246 = 1246; + public static final int RUNE_SPEAR = 1247; + public static final int RUNE_SPEAR_1248 = 1248; + public static final int DRAGON_SPEAR = 1249; + public static final int DRAGON_SPEAR_1250 = 1250; + public static final int BRONZE_SPEARP = 1251; + public static final int BRONZE_SPEARP_1252 = 1252; + public static final int IRON_SPEARP = 1253; + public static final int IRON_SPEARP_1254 = 1254; + public static final int STEEL_SPEARP = 1255; + public static final int STEEL_SPEARP_1256 = 1256; + public static final int MITHRIL_SPEARP = 1257; + public static final int MITHRIL_SPEARP_1258 = 1258; + public static final int ADAMANT_SPEARP = 1259; + public static final int ADAMANT_SPEARP_1260 = 1260; + public static final int RUNE_SPEARP = 1261; + public static final int RUNE_SPEARP_1262 = 1262; + public static final int DRAGON_SPEARP = 1263; + public static final int DRAGON_SPEARP_1264 = 1264; + public static final int BRONZE_PICKAXE = 1265; + public static final int BRONZE_PICKAXE_1266 = 1266; + public static final int IRON_PICKAXE = 1267; + public static final int IRON_PICKAXE_1268 = 1268; + public static final int STEEL_PICKAXE = 1269; + public static final int STEEL_PICKAXE_1270 = 1270; + public static final int ADAMANT_PICKAXE = 1271; + public static final int ADAMANT_PICKAXE_1272 = 1272; + public static final int MITHRIL_PICKAXE = 1273; + public static final int MITHRIL_PICKAXE_1274 = 1274; + public static final int RUNE_PICKAXE = 1275; + public static final int RUNE_PICKAXE_1276 = 1276; + public static final int BRONZE_SWORD = 1277; + public static final int BRONZE_SWORD_1278 = 1278; + public static final int IRON_SWORD = 1279; + public static final int IRON_SWORD_1280 = 1280; + public static final int STEEL_SWORD = 1281; + public static final int STEEL_SWORD_1282 = 1282; + public static final int BLACK_SWORD = 1283; + public static final int BLACK_SWORD_1284 = 1284; + public static final int MITHRIL_SWORD = 1285; + public static final int MITHRIL_SWORD_1286 = 1286; + public static final int ADAMANT_SWORD = 1287; + public static final int ADAMANT_SWORD_1288 = 1288; + public static final int RUNE_SWORD = 1289; + public static final int RUNE_SWORD_1290 = 1290; + public static final int BRONZE_LONGSWORD = 1291; + public static final int BRONZE_LONGSWORD_1292 = 1292; + public static final int IRON_LONGSWORD = 1293; + public static final int IRON_LONGSWORD_1294 = 1294; + public static final int STEEL_LONGSWORD = 1295; + public static final int STEEL_LONGSWORD_1296 = 1296; + public static final int BLACK_LONGSWORD = 1297; + public static final int BLACK_LONGSWORD_1298 = 1298; + public static final int MITHRIL_LONGSWORD = 1299; + public static final int MITHRIL_LONGSWORD_1300 = 1300; + public static final int ADAMANT_LONGSWORD = 1301; + public static final int ADAMANT_LONGSWORD_1302 = 1302; + public static final int RUNE_LONGSWORD = 1303; + public static final int RUNE_LONGSWORD_1304 = 1304; + public static final int DRAGON_LONGSWORD = 1305; + public static final int DRAGON_LONGSWORD_1306 = 1306; + public static final int BRONZE_2H_SWORD = 1307; + public static final int BRONZE_2H_SWORD_1308 = 1308; + public static final int IRON_2H_SWORD = 1309; + public static final int IRON_2H_SWORD_1310 = 1310; + public static final int STEEL_2H_SWORD = 1311; + public static final int STEEL_2H_SWORD_1312 = 1312; + public static final int BLACK_2H_SWORD = 1313; + public static final int BLACK_2H_SWORD_1314 = 1314; + public static final int MITHRIL_2H_SWORD = 1315; + public static final int MITHRIL_2H_SWORD_1316 = 1316; + public static final int ADAMANT_2H_SWORD = 1317; + public static final int ADAMANT_2H_SWORD_1318 = 1318; + public static final int RUNE_2H_SWORD = 1319; + public static final int RUNE_2H_SWORD_1320 = 1320; + public static final int BRONZE_SCIMITAR = 1321; + public static final int BRONZE_SCIMITAR_1322 = 1322; + public static final int IRON_SCIMITAR = 1323; + public static final int IRON_SCIMITAR_1324 = 1324; + public static final int STEEL_SCIMITAR = 1325; + public static final int STEEL_SCIMITAR_1326 = 1326; + public static final int BLACK_SCIMITAR = 1327; + public static final int BLACK_SCIMITAR_1328 = 1328; + public static final int MITHRIL_SCIMITAR = 1329; + public static final int MITHRIL_SCIMITAR_1330 = 1330; + public static final int ADAMANT_SCIMITAR = 1331; + public static final int ADAMANT_SCIMITAR_1332 = 1332; + public static final int RUNE_SCIMITAR = 1333; + public static final int RUNE_SCIMITAR_1334 = 1334; + public static final int IRON_WARHAMMER = 1335; + public static final int IRON_WARHAMMER_1336 = 1336; + public static final int BRONZE_WARHAMMER = 1337; + public static final int BRONZE_WARHAMMER_1338 = 1338; + public static final int STEEL_WARHAMMER = 1339; + public static final int STEEL_WARHAMMER_1340 = 1340; + public static final int BLACK_WARHAMMER = 1341; + public static final int BLACK_WARHAMMER_1342 = 1342; + public static final int MITHRIL_WARHAMMER = 1343; + public static final int MITHRIL_WARHAMMER_1344 = 1344; + public static final int ADDY_WARHAMMER = 1345; + public static final int ADDY_WARHAMMER_1346 = 1346; + public static final int RUNE_WARHAMMER = 1347; + public static final int RUNE_WARHAMMER_1348 = 1348; + public static final int IRON_AXE = 1349; + public static final int IRON_AXE_1350 = 1350; + public static final int BRONZE_AXE = 1351; + public static final int BRONZE_AXE_1352 = 1352; + public static final int STEEL_AXE = 1353; + public static final int STEEL_AXE_1354 = 1354; + public static final int MITHRIL_AXE = 1355; + public static final int MITHRIL_AXE_1356 = 1356; + public static final int ADAMANT_AXE = 1357; + public static final int ADAMANT_AXE_1358 = 1358; + public static final int RUNE_AXE = 1359; + public static final int RUNE_AXE_1360 = 1360; + public static final int BLACK_AXE = 1361; + public static final int BLACK_AXE_1362 = 1362; + public static final int IRON_BATTLEAXE = 1363; + public static final int IRON_BATTLEAXE_1364 = 1364; + public static final int STEEL_BATTLEAXE = 1365; + public static final int STEEL_BATTLEAXE_1366 = 1366; + public static final int BLACK_BATTLEAXE = 1367; + public static final int BLACK_BATTLEAXE_1368 = 1368; + public static final int MITHRIL_BATTLEAXE = 1369; + public static final int MITHRIL_BATTLEAXE_1370 = 1370; + public static final int ADAMANT_BATTLEAXE = 1371; + public static final int ADAMANT_BATTLEAXE_1372 = 1372; + public static final int RUNE_BATTLEAXE = 1373; + public static final int RUNE_BATTLEAXE_1374 = 1374; + public static final int BRONZE_BATTLEAXE = 1375; + public static final int BRONZE_BATTLEAXE_1376 = 1376; + public static final int DRAGON_BATTLEAXE = 1377; + public static final int DRAGON_BATTLEAXE_1378 = 1378; + public static final int STAFF = 1379; + public static final int STAFF_1380 = 1380; + public static final int STAFF_OF_AIR = 1381; + public static final int STAFF_OF_AIR_1382 = 1382; + public static final int STAFF_OF_WATER = 1383; + public static final int STAFF_OF_WATER_1384 = 1384; + public static final int STAFF_OF_EARTH = 1385; + public static final int STAFF_OF_EARTH_1386 = 1386; + public static final int STAFF_OF_FIRE = 1387; + public static final int STAFF_OF_FIRE_1388 = 1388; + public static final int MAGIC_STAFF = 1389; + public static final int MAGIC_STAFF_1390 = 1390; + public static final int BATTLESTAFF = 1391; + public static final int BATTLESTAFF_1392 = 1392; + public static final int FIRE_BATTLESTAFF = 1393; + public static final int FIRE_BATTLESTAFF_1394 = 1394; + public static final int WATER_BATTLESTAFF = 1395; + public static final int WATER_BATTLESTAFF_1396 = 1396; + public static final int AIR_BATTLESTAFF = 1397; + public static final int AIR_BATTLESTAFF_1398 = 1398; + public static final int EARTH_BATTLESTAFF = 1399; + public static final int EARTH_BATTLESTAFF_1400 = 1400; + public static final int MYSTIC_FIRE_STAFF = 1401; + public static final int MYSTIC_FIRE_STAFF_1402 = 1402; + public static final int MYSTIC_WATER_STAFF = 1403; + public static final int MYSTIC_WATER_STAFF_1404 = 1404; + public static final int MYSTIC_AIR_STAFF = 1405; + public static final int MYSTIC_AIR_STAFF_1406 = 1406; + public static final int MYSTIC_EARTH_STAFF = 1407; + public static final int MYSTIC_EARTH_STAFF_1408 = 1408; + public static final int IBANS_STAFF = 1409; + public static final int IBANS_STAFF_1410 = 1410; + public static final int FARMERS_FORK = 1411; + public static final int FARMERS_FORK_1412 = 1412; + public static final int HALBERD = 1413; + public static final int HALBERD_1414 = 1414; + public static final int WARHAMMER = 1415; + public static final int WARHAMMER_1416 = 1416; + public static final int JAVELIN = 1417; + public static final int JAVELIN_1418 = 1418; + public static final int SCYTHE = 1419; + public static final int IRON_MACE = 1420; + public static final int IRON_MACE_1421 = 1421; + public static final int BRONZE_MACE = 1422; + public static final int BRONZE_MACE_1423 = 1423; + public static final int STEEL_MACE = 1424; + public static final int STEEL_MACE_1425 = 1425; + public static final int BLACK_MACE = 1426; + public static final int BLACK_MACE_1427 = 1427; + public static final int MITHRIL_MACE = 1428; + public static final int MITHRIL_MACE_1429 = 1429; + public static final int ADAMANT_MACE = 1430; + public static final int ADAMANT_MACE_1431 = 1431; + public static final int RUNE_MACE = 1432; + public static final int RUNE_MACE_1433 = 1433; + public static final int DRAGON_MACE = 1434; + public static final int DRAGON_MACE_1435 = 1435; + public static final int RUNE_ESSENCE = 1436; + public static final int RUNE_ESSENCE_1437 = 1437; + public static final int AIR_TALISMAN = 1438; + public static final int AIR_TALISMAN_1439 = 1439; + public static final int EARTH_TALISMAN = 1440; + public static final int EARTH_TALISMAN_1441 = 1441; + public static final int FIRE_TALISMAN = 1442; + public static final int FIRE_TALISMAN_1443 = 1443; + public static final int WATER_TALISMAN = 1444; + public static final int WATER_TALISMAN_1445 = 1445; + public static final int BODY_TALISMAN = 1446; + public static final int BODY_TALISMAN_1447 = 1447; + public static final int MIND_TALISMAN = 1448; + public static final int MIND_TALISMAN_1449 = 1449; + public static final int BLOOD_TALISMAN = 1450; + public static final int BLOOD_TALISMAN_1451 = 1451; + public static final int CHAOS_TALISMAN = 1452; + public static final int CHAOS_TALISMAN_1453 = 1453; + public static final int COSMIC_TALISMAN = 1454; + public static final int COSMIC_TALISMAN_1455 = 1455; + public static final int DEATH_TALISMAN = 1456; + public static final int DEATH_TALISMAN_1457 = 1457; + public static final int LAW_TALISMAN = 1458; + public static final int ROTTEN_NET = 1459; + public static final int SOUL_TALISMAN = 1460; + public static final int SOUL_TALISMAN_1461 = 1461; + public static final int NATURE_TALISMAN = 1462; + public static final int NATURE_TALISMAN_1463 = 1463; + public static final int ARCHERY_TICKET = 1464; + public static final int WEAPON_POISON_1465 = 1465; + public static final int SEA_SLUG = 1466; + public static final int DAMP_STICKS = 1467; + public static final int DRY_STICKS = 1468; + public static final int BROKEN_GLASS_1469 = 1469; + public static final int RED_BEAD = 1470; + public static final int RED_BEAD_1471 = 1471; + public static final int YELLOW_BEAD = 1472; + public static final int YELLOW_BEAD_1473 = 1473; + public static final int BLACK_BEAD = 1474; + public static final int BLACK_BEAD_1475 = 1475; + public static final int WHITE_BEAD = 1476; + public static final int WHITE_BEAD_1477 = 1477; + public static final int AMULET_OF_ACCURACY = 1478; + public static final int AMULET_OF_ACCURACY_1479 = 1479; + public static final int ROCK_1480 = 1480; + public static final int ORB_OF_LIGHT = 1481; + public static final int ORB_OF_LIGHT_1482 = 1482; + public static final int ORB_OF_LIGHT_1483 = 1483; + public static final int ORB_OF_LIGHT_1484 = 1484; + public static final int DAMP_CLOTH = 1485; + public static final int PIECE_OF_RAILING = 1486; + public static final int UNICORN_HORN_1487 = 1487; + public static final int PALADINS_BADGE = 1488; + public static final int PALADINS_BADGE_1489 = 1489; + public static final int PALADINS_BADGE_1490 = 1490; + public static final int WITCHS_CAT = 1491; + public static final int DOLL_OF_IBAN = 1492; + public static final int OLD_JOURNAL = 1493; + public static final int HISTORY_OF_IBAN = 1494; + public static final int KLANKS_GAUNTLETS = 1495; + public static final int IBANS_DOVE = 1496; + public static final int AMULET_OF_OTHANIAN = 1497; + public static final int AMULET_OF_DOOMION = 1498; + public static final int AMULET_OF_HOLTHION = 1499; + public static final int IBANS_SHADOW = 1500; + public static final int DWARF_BREW = 1501; + public static final int IBANS_ASHES = 1502; + public static final int WARRANT = 1503; + public static final int HANGOVER_CURE = 1504; + public static final int A_MAGIC_SCROLL = 1505; + public static final int GAS_MASK = 1506; + public static final int A_SMALL_KEY = 1507; + public static final int A_SCRUFFY_NOTE = 1508; + public static final int BOOK_1509 = 1509; + public static final int PICTURE = 1510; + public static final int LOGS = 1511; + public static final int LOGS_1512 = 1512; + public static final int MAGIC_LOGS = 1513; + public static final int MAGIC_LOGS_1514 = 1514; + public static final int YEW_LOGS = 1515; + public static final int YEW_LOGS_1516 = 1516; + public static final int MAPLE_LOGS = 1517; + public static final int MAPLE_LOGS_1518 = 1518; + public static final int WILLOW_LOGS = 1519; + public static final int WILLOW_LOGS_1520 = 1520; + public static final int OAK_LOGS = 1521; + public static final int OAK_LOGS_1522 = 1522; + public static final int LOCKPICK = 1523; + public static final int LOCKPICK_1524 = 1524; + public static final int HERB_1525 = 1525; + public static final int SNAKE_WEED = 1526; + public static final int HERB_1527 = 1527; + public static final int ARDRIGAL = 1528; + public static final int HERB_1529 = 1529; + public static final int SITO_FOIL = 1530; + public static final int HERB_1531 = 1531; + public static final int VOLENCIA_MOSS = 1532; + public static final int HERB_1533 = 1533; + public static final int ROGUES_PURSE = 1534; + public static final int MAP_PART = 1535; + public static final int MAP_PART_1536 = 1536; + public static final int MAP_PART_1537 = 1537; + public static final int CRANDOR_MAP = 1538; + public static final int STEEL_NAILS = 1539; + public static final int ANTIDRAGON_SHIELD = 1540; + public static final int ANTIDRAGON_SHIELD_1541 = 1541; + public static final int MAZE_KEY = 1542; + public static final int KEY_1543 = 1543; + public static final int KEY_1544 = 1544; + public static final int KEY_1545 = 1545; + public static final int KEY_1546 = 1546; + public static final int KEY_1547 = 1547; + public static final int KEY_1548 = 1548; + public static final int STAKE = 1549; + public static final int GARLIC = 1550; + public static final int GARLIC_1551 = 1551; + public static final int SEASONED_SARDINE = 1552; + public static final int SEASONED_SARDINE_1553 = 1553; + public static final int FLUFFS_KITTEN = 1554; + public static final int PET_KITTEN = 1555; + public static final int PET_KITTEN_1556 = 1556; + public static final int PET_KITTEN_1557 = 1557; + public static final int PET_KITTEN_1558 = 1558; + public static final int PET_KITTEN_1559 = 1559; + public static final int PET_KITTEN_1560 = 1560; + public static final int PET_CAT = 1561; + public static final int PET_CAT_1562 = 1562; + public static final int PET_CAT_1563 = 1563; + public static final int PET_CAT_1564 = 1564; + public static final int PET_CAT_1565 = 1565; + public static final int PET_CAT_1566 = 1566; + public static final int PET_CAT_1567 = 1567; + public static final int PET_CAT_1568 = 1568; + public static final int PET_CAT_1569 = 1569; + public static final int PET_CAT_1570 = 1570; + public static final int PET_CAT_1571 = 1571; + public static final int PET_CAT_1572 = 1572; + public static final int DOOGLE_LEAVES = 1573; + public static final int DOOGLE_LEAVES_1574 = 1574; + public static final int CAT_TRAINING_MEDAL = 1575; + public static final int CAT_TRAINING_MEDAL_1576 = 1576; + public static final int PETES_CANDLESTICK = 1577; + public static final int PETES_CANDLESTICK_1578 = 1578; + public static final int THIEVES_ARMBAND = 1579; + public static final int ICE_GLOVES = 1580; + public static final int BLAMISH_SNAIL_SLIME = 1581; + public static final int BLAMISH_OIL = 1582; + public static final int FIRE_FEATHER = 1583; + public static final int ID_PAPERS = 1584; + public static final int OILY_FISHING_ROD = 1585; + public static final int MISCELLANEOUS_KEY = 1586; + public static final int MISCELLANEOUS_KEY_1587 = 1587; + public static final int GRIPS_KEYRING = 1588; + public static final int PRETTY_GIRL = 1589; + public static final int DUSTY_KEY = 1590; + public static final int JAIL_KEY = 1591; + public static final int RING_MOULD = 1592; + public static final int RING_MOULD_1593 = 1593; + public static final int UNHOLY_MOULD = 1594; + public static final int AMULET_MOULD = 1595; + public static final int AMULET_MOULD_1596 = 1596; + public static final int NECKLACE_MOULD = 1597; + public static final int NECKLACE_MOULD_1598 = 1598; + public static final int HOLY_MOULD = 1599; + public static final int HOLY_MOULD_1600 = 1600; + public static final int DIAMOND = 1601; + public static final int DIAMOND_1602 = 1602; + public static final int RUBY = 1603; + public static final int RUBY_1604 = 1604; + public static final int EMERALD = 1605; + public static final int EMERALD_1606 = 1606; + public static final int SAPPHIRE = 1607; + public static final int SAPPHIRE_1608 = 1608; + public static final int OPAL = 1609; + public static final int OPAL_1610 = 1610; + public static final int JADE = 1611; + public static final int JADE_1612 = 1612; + public static final int RED_TOPAZ = 1613; + public static final int RED_TOPAZ_1614 = 1614; + public static final int DRAGONSTONE = 1615; + public static final int DRAGONSTONE_1616 = 1616; + public static final int UNCUT_DIAMOND = 1617; + public static final int UNCUT_DIAMOND_1618 = 1618; + public static final int UNCUT_RUBY = 1619; + public static final int UNCUT_RUBY_1620 = 1620; + public static final int UNCUT_EMERALD = 1621; + public static final int UNCUT_EMERALD_1622 = 1622; + public static final int UNCUT_SAPPHIRE = 1623; + public static final int UNCUT_SAPPHIRE_1624 = 1624; + public static final int UNCUT_OPAL = 1625; + public static final int UNCUT_OPAL_1626 = 1626; + public static final int UNCUT_JADE = 1627; + public static final int UNCUT_JADE_1628 = 1628; + public static final int UNCUT_RED_TOPAZ = 1629; + public static final int UNCUT_RED_TOPAZ_1630 = 1630; + public static final int UNCUT_DRAGONSTONE = 1631; + public static final int UNCUT_DRAGONSTONE_1632 = 1632; + public static final int CRUSHED_GEMSTONE = 1633; + public static final int CRUSHED_GEMSTONE_1634 = 1634; + public static final int GOLD_RING = 1635; + public static final int GOLD_RING_1636 = 1636; + public static final int SAPPHIRE_RING = 1637; + public static final int SAPPHIRE_RING_1638 = 1638; + public static final int EMERALD_RING = 1639; + public static final int EMERALD_RING_1640 = 1640; + public static final int RUBY_RING = 1641; + public static final int RUBY_RING_1642 = 1642; + public static final int DIAMOND_RING = 1643; + public static final int DIAMOND_RING_1644 = 1644; + public static final int DRAGONSTONE_RING = 1645; + public static final int DRAGONSTONE_RING_1646 = 1646; + public static final int NULL_1647 = 1647; + public static final int WHOOPSIE_1648 = 1648; + public static final int SAPPHIRE_RING_1649 = 1649; + public static final int EMERALD_RING_1650 = 1650; + public static final int RUBY_RING_1651 = 1651; + public static final int DIAMOND_RING_1652 = 1652; + public static final int DRAGONSTONE_RING_1653 = 1653; + public static final int GOLD_NECKLACE = 1654; + public static final int GOLD_NECKLACE_1655 = 1655; + public static final int SAPPHIRE_NECKLACE = 1656; + public static final int SAPPHIRE_NECKLACE_1657 = 1657; + public static final int EMERALD_NECKLACE = 1658; + public static final int EMERALD_NECKLACE_1659 = 1659; + public static final int RUBY_NECKLACE = 1660; + public static final int RUBY_NECKLACE_1661 = 1661; + public static final int DIAMOND_NECKLACE = 1662; + public static final int DIAMOND_NECKLACE_1663 = 1663; + public static final int DRAGON_NECKLACE = 1664; + public static final int DRAGON_NECKLACE_1665 = 1665; + public static final int NULL_1666 = 1666; + public static final int WHOOPSIE_1667 = 1667; + public static final int SAPPHIRE_NECKLACE_1668 = 1668; + public static final int EMERALD_NECKLACE_1669 = 1669; + public static final int RUBY_NECKLACE_1670 = 1670; + public static final int DIAMOND_NECKLACE_1671 = 1671; + public static final int DRAGON_NECKLACE_1672 = 1672; + public static final int GOLD_AMULET = 1673; + public static final int GOLD_AMULET_1674 = 1674; + public static final int SAPPHIRE_AMULET = 1675; + public static final int SAPPHIRE_AMULET_1676 = 1676; + public static final int EMERALD_AMULET = 1677; + public static final int EMERALD_AMULET_1678 = 1678; + public static final int RUBY_AMULET = 1679; + public static final int RUBY_AMULET_1680 = 1680; + public static final int DIAMOND_AMULET = 1681; + public static final int DIAMOND_AMULET_1682 = 1682; + public static final int DRAGONSTONE_AMMY = 1683; + public static final int DRAGONSTONE_AMMY_1684 = 1684; + public static final int NULL_1685 = 1685; + public static final int WHOOPSIE_1686 = 1686; + public static final int SAPPHIRE_AMULET_1687 = 1687; + public static final int EMERALD_AMULET_1688 = 1688; + public static final int RUBY_AMULET_1689 = 1689; + public static final int DIAMOND_AMULET_1690 = 1690; + public static final int DRAGONSTONE_AMMY_1691 = 1691; + public static final int GOLD_AMULET_1692 = 1692; + public static final int GOLD_AMULET_1693 = 1693; + public static final int SAPPHIRE_AMULET_1694 = 1694; + public static final int SAPPHIRE_AMULET_1695 = 1695; + public static final int EMERALD_AMULET_1696 = 1696; + public static final int EMERALD_AMULET_1697 = 1697; + public static final int RUBY_AMULET_1698 = 1698; + public static final int RUBY_AMULET_1699 = 1699; + public static final int DIAMOND_AMULET_1700 = 1700; + public static final int DIAMOND_AMULET_1701 = 1701; + public static final int DRAGONSTONE_AMMY_1702 = 1702; + public static final int DRAGONSTONE_AMMY_1703 = 1703; + public static final int AMULET_OF_GLORY = 1704; + public static final int AMULET_OF_GLORY_1705 = 1705; + public static final int AMULET_OF_GLORY1 = 1706; + public static final int AMULET_OF_GLORY1_1707 = 1707; + public static final int AMULET_OF_GLORY2 = 1708; + public static final int AMULET_OF_GLORY2_1709 = 1709; + public static final int AMULET_OF_GLORY3 = 1710; + public static final int AMULET_OF_GLORY3_1711 = 1711; + public static final int AMULET_OF_GLORY4 = 1712; + public static final int AMULET_OF_GLORY4_1713 = 1713; + public static final int UNSTRUNG_SYMBOL = 1714; + public static final int UNSTRUNG_SYMBOL_1715 = 1715; + public static final int UNBLESSED_SYMBOL = 1716; + public static final int UNBLESSED_SYMBOL_1717 = 1717; + public static final int HOLY_SYMBOL = 1718; + public static final int HOLY_SYMBOL_1719 = 1719; + public static final int UNSTRUNG_EMBLEM = 1720; + public static final int UNSTRUNG_EMBLEM_1721 = 1721; + public static final int UNPOWERED_SYMBOL = 1722; + public static final int UNPOWERED_SYMBOL_1723 = 1723; + public static final int UNHOLY_SYMBOL = 1724; + public static final int AMULET_OF_STRENGTH = 1725; + public static final int AMULET_OF_STRENGTH_1726 = 1726; + public static final int AMULET_OF_MAGIC = 1727; + public static final int AMULET_OF_MAGIC_1728 = 1728; + public static final int AMULET_OF_DEFENCE = 1729; + public static final int AMULET_OF_DEFENCE_1730 = 1730; + public static final int AMULET_OF_POWER = 1731; + public static final int AMULET_OF_POWER_1732 = 1732; + public static final int NEEDLE = 1733; + public static final int THREAD = 1734; + public static final int SHEARS = 1735; + public static final int SHEARS_1736 = 1736; + public static final int WOOL = 1737; + public static final int WOOL_1738 = 1738; + public static final int COWHIDE = 1739; + public static final int COWHIDE_1740 = 1740; + public static final int LEATHER = 1741; + public static final int LEATHER_1742 = 1742; + public static final int HARD_LEATHER = 1743; + public static final int HARD_LEATHER_1744 = 1744; + public static final int GREEN_DLEATHER = 1745; + public static final int GREEN_DLEATHER_1746 = 1746; + public static final int BLACK_DRAGONHIDE = 1747; + public static final int BLACK_DRAGONHIDE_1748 = 1748; + public static final int RED_DRAGONHIDE = 1749; + public static final int RED_DRAGONHIDE_1750 = 1750; + public static final int BLUE_DRAGONHIDE = 1751; + public static final int BLUE_DRAGONHIDE_1752 = 1752; + public static final int GREEN_DRAGONHIDE = 1753; + public static final int GREEN_DRAGONHIDE_1754 = 1754; + public static final int CHISEL = 1755; + public static final int CHISEL_1756 = 1756; + public static final int BROWN_APRON = 1757; + public static final int BROWN_APRON_1758 = 1758; + public static final int BALL_OF_WOOL = 1759; + public static final int BALL_OF_WOOL_1760 = 1760; + public static final int SOFT_CLAY = 1761; + public static final int SOFT_CLAY_1762 = 1762; + public static final int RED_DYE = 1763; + public static final int RED_DYE_1764 = 1764; + public static final int YELLOW_DYE = 1765; + public static final int YELLOW_DYE_1766 = 1766; + public static final int BLUE_DYE = 1767; + public static final int BLUE_DYE_1768 = 1768; + public static final int ORANGE_DYE = 1769; + public static final int ORANGE_DYE_1770 = 1770; + public static final int GREEN_DYE = 1771; + public static final int GREEN_DYE_1772 = 1772; + public static final int PURPLE_DYE = 1773; + public static final int PURPLE_DYE_1774 = 1774; + public static final int MOLTEN_GLASS = 1775; + public static final int MOLTEN_GLASS_1776 = 1776; + public static final int BOW_STRING = 1777; + public static final int BOW_STRING_1778 = 1778; + public static final int FLAX = 1779; + public static final int FLAX_1780 = 1780; + public static final int SODA_ASH = 1781; + public static final int SODA_ASH_1782 = 1782; + public static final int BUCKET_OF_SAND = 1783; + public static final int BUCKET_OF_SAND_1784 = 1784; + public static final int GLASSBLOWING_PIPE = 1785; + public static final int GLASSBLOWING_PIPE_1786 = 1786; + public static final int UNFIRED_POT = 1787; + public static final int UNFIRED_POT_1788 = 1788; + public static final int UNFIRED_PIE_DISH = 1789; + public static final int UNFIRED_PIE_DISH_1790 = 1790; + public static final int UNFIRED_BOWL = 1791; + public static final int UNFIRED_BOWL_1792 = 1792; + public static final int WOAD_LEAF = 1793; + public static final int BRONZE_WIRE = 1794; + public static final int BRONZE_WIRE_1795 = 1795; + public static final int SILVER_NECKLACE = 1796; + public static final int SILVER_NECKLACE_1797 = 1797; + public static final int SILVER_CUP = 1798; + public static final int SILVER_CUP_1799 = 1799; + public static final int SILVER_BOTTLE = 1800; + public static final int SILVER_BOTTLE_1801 = 1801; + public static final int SILVER_BOOK = 1802; + public static final int SILVER_BOOK_1803 = 1803; + public static final int SILVER_NEEDLE = 1804; + public static final int SILVER_NEEDLE_1805 = 1805; + public static final int SILVER_POT = 1806; + public static final int SILVER_POT_1807 = 1807; + public static final int CRIMINALS_THREAD = 1808; + public static final int CRIMINALS_THREAD_1809 = 1809; + public static final int CRIMINALS_THREAD_1810 = 1810; + public static final int FLYPAPER = 1811; + public static final int PUNGENT_POT = 1812; + public static final int CRIMINALS_DAGGER = 1813; + public static final int CRIMINALS_DAGGER_1814 = 1814; + public static final int KILLERS_PRINT = 1815; + public static final int ANNAS_PRINT = 1816; + public static final int BOBS_PRINT = 1817; + public static final int CAROLS_PRINT = 1818; + public static final int DAVIDS_PRINT = 1819; + public static final int ELIZABETHS_PRINT = 1820; + public static final int FRANKS_PRINT = 1821; + public static final int UNKNOWN_PRINT = 1822; + public static final int WATERSKIN4 = 1823; + public static final int WATERSKIN4_1824 = 1824; + public static final int WATERSKIN3 = 1825; + public static final int WATERSKIN3_1826 = 1826; + public static final int WATERSKIN2 = 1827; + public static final int WATERSKIN2_1828 = 1828; + public static final int WATERSKIN1 = 1829; + public static final int WATERSKIN1_1830 = 1830; + public static final int WATERSKIN0 = 1831; + public static final int WATERSKIN0_1832 = 1832; + public static final int DESERT_SHIRT = 1833; + public static final int DESERT_SHIRT_1834 = 1834; + public static final int DESERT_ROBE = 1835; + public static final int DESERT_ROBE_1836 = 1836; + public static final int DESERT_BOOTS = 1837; + public static final int DESERT_BOOTS_1838 = 1838; + public static final int METAL_KEY = 1839; + public static final int CELL_DOOR_KEY = 1840; + public static final int BARREL = 1841; + public static final int ANA_IN_A_BARREL = 1842; + public static final int WROUGHT_IRON_KEY = 1843; + public static final int SLAVE_SHIRT = 1844; + public static final int SLAVE_ROBE = 1845; + public static final int SLAVE_BOOTS = 1846; + public static final int SCRUMPLED_PAPER = 1847; + public static final int SHANTAY_DISCLAIMER = 1848; + public static final int PROTOTYPE_DART = 1849; + public static final int TECHNICAL_PLANS = 1850; + public static final int TENTI_PINEAPPLE = 1851; + public static final int BEDABIN_KEY = 1852; + public static final int PROTOTYPE_DART_TIP = 1853; + public static final int SHANTAY_PASS = 1854; + public static final int ROCK_1855 = 1855; + public static final int GUIDE_BOOK = 1856; + public static final int TOTEM = 1857; + public static final int ADDRESS_LABEL = 1858; + public static final int RAW_UGTHANKI_MEAT = 1859; + public static final int RAW_UGTHANKI_MEAT_1860 = 1860; + public static final int UGTHANKI_MEAT = 1861; + public static final int UGTHANKI_MEAT_1862 = 1862; + public static final int PITTA_DOUGH = 1863; + public static final int PITTA_DOUGH_1864 = 1864; + public static final int PITTA_BREAD = 1865; + public static final int PITTA_BREAD_1866 = 1866; + public static final int BURNT_PITTA_BREAD = 1867; + public static final int BURNT_PITTA_BREAD_1868 = 1868; + public static final int CHOPPED_TOMATO = 1869; + public static final int CHOPPED_TOMATO_1870 = 1870; + public static final int CHOPPED_ONION = 1871; + public static final int CHOPPED_ONION_1872 = 1872; + public static final int CHOPPED_UGTHANKI = 1873; + public static final int CHOPPED_UGTHANKI_1874 = 1874; + public static final int ONION__TOMATO = 1875; + public static final int ONION__TOMATO_1876 = 1876; + public static final int UGTHANKI__ONION = 1877; + public static final int UGTHANKI__ONION_1878 = 1878; + public static final int UGTHANKI__TOMATO = 1879; + public static final int UGTHANKI__TOMATO_1880 = 1880; + public static final int KEBAB_MIX = 1881; + public static final int KEBAB_MIX_1882 = 1882; + public static final int UGTHANKI_KEBAB = 1883; + public static final int UGTHANKI_KEBAB_1884 = 1884; + public static final int UGTHANKI_KEBAB_1885 = 1885; + public static final int UGTHANKI_KEBAB_1886 = 1886; + public static final int CAKE_TIN = 1887; + public static final int CAKE_TIN_1888 = 1888; + public static final int UNCOOKED_CAKE = 1889; + public static final int UNCOOKED_CAKE_1890 = 1890; + public static final int CAKE = 1891; + public static final int CAKE_1892 = 1892; + public static final int _23_CAKE = 1893; + public static final int _23_CAKE_1894 = 1894; + public static final int SLICE_OF_CAKE = 1895; + public static final int SLICE_OF_CAKE_1896 = 1896; + public static final int CHOCOLATE_CAKE = 1897; + public static final int CHOCOLATE_CAKE_1898 = 1898; + public static final int _23_CHOCOLATE_CAKE = 1899; + public static final int _23_CHOCOLATE_CAKE_1900 = 1900; + public static final int CHOCOLATE_SLICE = 1901; + public static final int CHOCOLATE_SLICE_1902 = 1902; + public static final int BURNT_CAKE = 1903; + public static final int BURNT_CAKE_1904 = 1904; + public static final int ASGARNIAN_ALE = 1905; + public static final int ASGARNIAN_ALE_1906 = 1906; + public static final int WIZARDS_MIND_BOMB = 1907; + public static final int WIZARDS_MIND_BOMB_1908 = 1908; + public static final int GREENMANS_ALE = 1909; + public static final int GREENMANS_ALE_1910 = 1910; + public static final int DRAGON_BITTER = 1911; + public static final int DRAGON_BITTER_1912 = 1912; + public static final int DWARVEN_STOUT = 1913; + public static final int DWARVEN_STOUT_1914 = 1914; + public static final int GROG = 1915; + public static final int GROG_1916 = 1916; + public static final int BEER = 1917; + public static final int BEER_1918 = 1918; + public static final int BEER_GLASS = 1919; + public static final int BEER_GLASS_1920 = 1920; + public static final int BOWL_OF_WATER = 1921; + public static final int BOWL_OF_WATER_1922 = 1922; + public static final int BOWL = 1923; + public static final int BOWL_1924 = 1924; + public static final int BUCKET = 1925; + public static final int BUCKET_1926 = 1926; + public static final int BUCKET_OF_MILK = 1927; + public static final int BUCKET_OF_MILK_1928 = 1928; + public static final int BUCKET_OF_WATER = 1929; + public static final int BUCKET_OF_WATER_1930 = 1930; + public static final int POT = 1931; + public static final int POT_1932 = 1932; + public static final int POT_OF_FLOUR = 1933; + public static final int POT_OF_FLOUR_1934 = 1934; + public static final int JUG = 1935; + public static final int JUG_1936 = 1936; + public static final int JUG_OF_WATER = 1937; + public static final int JUG_OF_WATER_1938 = 1938; + public static final int SWAMP_TAR = 1939; + public static final int RAW_SWAMP_PASTE = 1940; + public static final int SWAMP_PASTE = 1941; + public static final int POTATO = 1942; + public static final int POTATO_1943 = 1943; + public static final int EGG = 1944; + public static final int EGG_1945 = 1945; + public static final int FLOUR = 1946; + public static final int GRAIN = 1947; + public static final int GRAIN_1948 = 1948; + public static final int CHEFS_HAT = 1949; + public static final int CHEFS_HAT_1950 = 1950; + public static final int REDBERRIES = 1951; + public static final int REDBERRIES_1952 = 1952; + public static final int PASTRY_DOUGH = 1953; + public static final int PASTRY_DOUGH_1954 = 1954; + public static final int COOKING_APPLE = 1955; + public static final int COOKING_APPLE_1956 = 1956; + public static final int ONION = 1957; + public static final int ONION_1958 = 1958; + public static final int PUMPKIN = 1959; + public static final int PUMPKIN_1960 = 1960; + public static final int EASTER_EGG = 1961; + public static final int EASTER_EGG_1962 = 1962; + public static final int BANANA = 1963; + public static final int BANANA_1964 = 1964; + public static final int CABBAGE = 1965; + public static final int CABBAGE_1966 = 1966; + public static final int CABBAGE_1967 = 1967; + public static final int CABBAGE_1968 = 1968; + public static final int SPINACH_ROLL = 1969; + public static final int SPINACH_ROLL_1970 = 1970; + public static final int KEBAB = 1971; + public static final int KEBAB_1972 = 1972; + public static final int CHOCOLATE_BAR = 1973; + public static final int CHOCOLATE_BAR_1974 = 1974; + public static final int CHOCOLATE_DUST = 1975; + public static final int CHOCOLATE_DUST_1976 = 1976; + public static final int CHOCOLATEY_MILK = 1977; + public static final int CUP_OF_TEA_1978 = 1978; + public static final int CUP_OF_TEA_1979 = 1979; + public static final int EMPTY_CUP = 1980; + public static final int EMPTY_CUP_1981 = 1981; + public static final int TOMATO = 1982; + public static final int TOMATO_1983 = 1983; + public static final int ROTTEN_APPLE = 1984; + public static final int CHEESE = 1985; + public static final int CHEESE_1986 = 1986; + public static final int GRAPES = 1987; + public static final int GRAPES_1988 = 1988; + public static final int HALF_FULL_WINE_JUG = 1989; + public static final int HALF_FULL_WINE_JUG_1990 = 1990; + public static final int JUG_OF_BAD_WINE = 1991; + public static final int JUG_OF_BAD_WINE_1992 = 1992; + public static final int JUG_OF_WINE = 1993; + public static final int JUG_OF_WINE_1994 = 1994; + public static final int UNFERMENTED_WINE = 1995; + public static final int UNFERMENTED_WINE_1996 = 1996; + public static final int INCOMPLETE_STEW = 1997; + public static final int INCOMPLETE_STEW_1998 = 1998; + public static final int INCOMPLETE_STEW_1999 = 1999; + public static final int INCOMPLETE_STEW_2000 = 2000; + public static final int UNCOOKED_STEW = 2001; + public static final int UNCOOKED_STEW_2002 = 2002; + public static final int STEW = 2003; + public static final int STEW_2004 = 2004; + public static final int BURNT_STEW = 2005; + public static final int BURNT_STEW_2006 = 2006; + public static final int SPICE = 2007; + public static final int SPICE_2008 = 2008; + public static final int UNCOOKED_CURRY = 2009; + public static final int UNCOOKED_CURRY_2010 = 2010; + public static final int CURRY = 2011; + public static final int CURRY_2012 = 2012; + public static final int BURNT_CURRY = 2013; + public static final int BURNT_CURRY_2014 = 2014; + public static final int VODKA = 2015; + public static final int VODKA_2016 = 2016; + public static final int WHISKY = 2017; + public static final int WHISKY_2018 = 2018; + public static final int GIN = 2019; + public static final int GIN_2020 = 2020; + public static final int BRANDY = 2021; + public static final int BRANDY_2022 = 2022; + public static final int COCKTAIL_GUIDE = 2023; + public static final int COCKTAIL_GUIDE_2024 = 2024; + public static final int COCKTAIL_SHAKER = 2025; + public static final int COCKTAIL_GLASS = 2026; + public static final int COCKTAIL_GLASS_2027 = 2027; + public static final int BLURBERRY_SPECIAL = 2028; + public static final int BLURBERRY_SPECIAL_2029 = 2029; + public static final int CHOC_SATURDAY = 2030; + public static final int CHOC_SATURDAY_2031 = 2031; + public static final int DRUNK_DRAGON = 2032; + public static final int DRUNK_DRAGON_2033 = 2033; + public static final int FRUIT_BLAST = 2034; + public static final int FRUIT_BLAST_2035 = 2035; + public static final int PINEAPPLE_PUNCH = 2036; + public static final int PINEAPPLE_PUNCH_2037 = 2037; + public static final int SHORT_GREEN_GUY = 2038; + public static final int SHORT_GREEN_GUY_2039 = 2039; + public static final int WIZARD_BLIZZARD = 2040; + public static final int WIZARD_BLIZZARD_2041 = 2041; + public static final int UNFINISHED_COCKTAIL = 2042; + public static final int UNFINISHED_COCKTAIL_2043 = 2043; + public static final int UNFINISHED_COCKTAIL_2044 = 2044; + public static final int UNFINISHED_COCKTAIL_2045 = 2045; + public static final int UNFINISHED_COCKTAIL_2046 = 2046; + public static final int UNFINISHED_COCKTAIL_2047 = 2047; + public static final int PINEAPPLE_PUNCH_2048 = 2048; + public static final int PINEAPPLE_PUNCH_2049 = 2049; + public static final int UNFINISHED_COCKTAIL_2050 = 2050; + public static final int UNFINISHED_COCKTAIL_2051 = 2051; + public static final int UNFINISHED_COCKTAIL_2052 = 2052; + public static final int UNFINISHED_COCKTAIL_2053 = 2053; + public static final int WIZARD_BLIZZARD_2054 = 2054; + public static final int WIZARD_BLIZZARD_2055 = 2055; + public static final int UNFINISHED_COCKTAIL_2056 = 2056; + public static final int UNFINISHED_COCKTAIL_2057 = 2057; + public static final int UNFINISHED_COCKTAIL_2058 = 2058; + public static final int UNFINISHED_COCKTAIL_2059 = 2059; + public static final int UNFINISHED_COCKTAIL_2060 = 2060; + public static final int UNFINISHED_COCKTAIL_2061 = 2061; + public static final int UNFINISHED_COCKTAIL_2062 = 2062; + public static final int UNFINISHED_COCKTAIL_2063 = 2063; + public static final int BLURBERRY_SPECIAL_2064 = 2064; + public static final int BLURBERRY_SPECIAL_2065 = 2065; + public static final int UNFINISHED_COCKTAIL_2066 = 2066; + public static final int UNFINISHED_COCKTAIL_2067 = 2067; + public static final int UNFINISHED_COCKTAIL_2068 = 2068; + public static final int UNFINISHED_COCKTAIL_2069 = 2069; + public static final int UNFINISHED_COCKTAIL_2070 = 2070; + public static final int UNFINISHED_COCKTAIL_2071 = 2071; + public static final int UNFINISHED_COCKTAIL_2072 = 2072; + public static final int UNFINISHED_COCKTAIL_2073 = 2073; + public static final int CHOC_SATURDAY_2074 = 2074; + public static final int CHOC_SATURDAY_2075 = 2075; + public static final int UNFINISHED_COCKTAIL_2076 = 2076; + public static final int UNFINISHED_COCKTAIL_2077 = 2077; + public static final int UNFINISHED_COCKTAIL_2078 = 2078; + public static final int UNFINISHED_COCKTAIL_2079 = 2079; + public static final int SHORT_GREEN_GUY_2080 = 2080; + public static final int SHORT_GREEN_GUY_2081 = 2081; + public static final int UNFINISHED_COCKTAIL_2082 = 2082; + public static final int UNFINISHED_COCKTAIL_2083 = 2083; + public static final int FRUIT_BLAST_2084 = 2084; + public static final int FRUIT_BLAST_2085 = 2085; + public static final int UNFINISHED_COCKTAIL_2086 = 2086; + public static final int UNFINISHED_COCKTAIL_2087 = 2087; + public static final int UNFINISHED_COCKTAIL_2088 = 2088; + public static final int UNFINISHED_COCKTAIL_2089 = 2089; + public static final int UNFINISHED_COCKTAIL_2090 = 2090; + public static final int UNFINISHED_COCKTAIL_2091 = 2091; + public static final int DRUNK_DRAGON_2092 = 2092; + public static final int DRUNK_DRAGON_2093 = 2093; + public static final int ODD_COCKTAIL = 2094; + public static final int ODD_COCKTAIL_2095 = 2095; + public static final int ODD_COCKTAIL_2096 = 2096; + public static final int ODD_COCKTAIL_2097 = 2097; + public static final int ODD_COCKTAIL_2098 = 2098; + public static final int ODD_COCKTAIL_2099 = 2099; + public static final int ODD_COCKTAIL_2100 = 2100; + public static final int ODD_COCKTAIL_2101 = 2101; + public static final int LEMON = 2102; + public static final int LEMON_2103 = 2103; + public static final int LEMON_CHUNKS = 2104; + public static final int LEMON_CHUNKS_2105 = 2105; + public static final int LEMON_SLICES = 2106; + public static final int LEMON_SLICES_2107 = 2107; + public static final int ORANGE = 2108; + public static final int ORANGE_2109 = 2109; + public static final int ORANGE_CHUNKS = 2110; + public static final int ORANGE_CHUNKS_2111 = 2111; + public static final int ORANGE_SLICES = 2112; + public static final int ORANGE_SLICES_2113 = 2113; + public static final int PINEAPPLE = 2114; + public static final int PINEAPPLE_2115 = 2115; + public static final int PINEAPPLE_CHUNKS = 2116; + public static final int PINEAPPLE_CHUNKS_2117 = 2117; + public static final int PINEAPPLE_RING = 2118; + public static final int PINEAPPLE_RING_2119 = 2119; + public static final int LIME = 2120; + public static final int LIME_2121 = 2121; + public static final int LIME_CHUNKS = 2122; + public static final int LIME_CHUNKS_2123 = 2123; + public static final int LIME_SLICES = 2124; + public static final int LIME_SLICES_2125 = 2125; + public static final int DWELLBERRIES = 2126; + public static final int DWELLBERRIES_2127 = 2127; + public static final int EQUA_LEAVES = 2128; + public static final int EQUA_LEAVES_2129 = 2129; + public static final int POT_OF_CREAM = 2130; + public static final int POT_OF_CREAM_2131 = 2131; + public static final int RAW_BEEF = 2132; + public static final int RAW_BEEF_2133 = 2133; + public static final int RAW_RAT_MEAT = 2134; + public static final int RAW_RAT_MEAT_2135 = 2135; + public static final int RAW_BEAR_MEAT = 2136; + public static final int RAW_BEAR_MEAT_2137 = 2137; + public static final int RAW_CHICKEN = 2138; + public static final int RAW_CHICKEN_2139 = 2139; + public static final int COOKED_CHICKEN = 2140; + public static final int COOKED_CHICKEN_2141 = 2141; + public static final int COOKED_MEAT = 2142; + public static final int COOKED_MEAT_2143 = 2143; + public static final int BURNT_CHICKEN = 2144; + public static final int BURNT_CHICKEN_2145 = 2145; + public static final int BURNT_MEAT = 2146; + public static final int BURNT_MEAT_2147 = 2147; + public static final int RAW_LAVA_EEL = 2148; + public static final int LAVA_EEL = 2149; + public static final int SWAMP_TOAD = 2150; + public static final int SWAMP_TOAD_2151 = 2151; + public static final int TOADS_LEGS = 2152; + public static final int TOADS_LEGS_2153 = 2153; + public static final int EQUA_TOADS_LEGS = 2154; + public static final int EQUA_TOADS_LEGS_2155 = 2155; + public static final int SPICY_TOADS_LEGS = 2156; + public static final int SPICY_TOADS_LEGS_2157 = 2157; + public static final int SEASONED_LEGS = 2158; + public static final int SEASONED_LEGS_2159 = 2159; + public static final int SPICY_WORM = 2160; + public static final int SPICY_WORM_2161 = 2161; + public static final int KING_WORM = 2162; + public static final int KING_WORM_2163 = 2163; + public static final int BATTA_TIN = 2164; + public static final int CRUNCHY_TRAY = 2165; + public static final int GNOMEBOWL_MOULD = 2166; + public static final int GIANNES_COOK_BOOK = 2167; + public static final int GIANNES_COOK_BOOK_2168 = 2168; + public static final int GNOME_SPICE = 2169; + public static final int GNOME_SPICE_2170 = 2170; + public static final int GIANNE_DOUGH = 2171; + public static final int GIANNE_DOUGH_2172 = 2172; + public static final int ODD_GNOMEBOWL = 2173; + public static final int ODD_GNOMEBOWL_2174 = 2174; + public static final int BURNT_GNOMEBOWL = 2175; + public static final int BURNT_GNOMEBOWL_2176 = 2176; + public static final int HALF_BAKED_BOWL = 2177; + public static final int RAW_GNOMEBOWL = 2178; + public static final int UNFINISHED_BOWL = 2179; + public static final int UNFINISHED_BOWL_2180 = 2180; + public static final int UNFINISHED_BOWL_2181 = 2181; + public static final int UNFINISHED_BOWL_2182 = 2182; + public static final int UNFINISHED_BOWL_2183 = 2183; + public static final int UNFINISHED_BOWL_2184 = 2184; + public static final int CHOCOLATE_BOMB = 2185; + public static final int CHOCOLATE_BOMB_2186 = 2186; + public static final int TANGLED_TOADS_LEGS = 2187; + public static final int TANGLED_TOADS_LEGS_2188 = 2188; + public static final int UNFINISHED_BOWL_2189 = 2189; + public static final int UNFINISHED_BOWL_2190 = 2190; + public static final int WORM_HOLE = 2191; + public static final int WORM_HOLE_2192 = 2192; + public static final int UNFINISHED_BOWL_2193 = 2193; + public static final int UNFINISHED_BOWL_2194 = 2194; + public static final int VEG_BALL = 2195; + public static final int VEG_BALL_2196 = 2196; + public static final int ODD_CRUNCHIES = 2197; + public static final int ODD_CRUNCHIES_2198 = 2198; + public static final int BURNT_CRUNCHIES = 2199; + public static final int BURNT_CRUNCHIES_2200 = 2200; + public static final int HALF_BAKED_CRUNCHY = 2201; + public static final int RAW_CRUNCHIES = 2202; + public static final int UNFINISHED_CRUNCHY = 2203; + public static final int UNFINISHED_CRUNCHY_2204 = 2204; + public static final int WORM_CRUNCHIES = 2205; + public static final int WORM_CRUNCHIES_2206 = 2206; + public static final int UNFINISHED_CRUNCHY_2207 = 2207; + public static final int UNFINISHED_CRUNCHY_2208 = 2208; + public static final int CHOCCHIP_CRUNCHIES = 2209; + public static final int CHOCCHIP_CRUNCHIES_2210 = 2210; + public static final int UNFINISHED_CRUNCHY_2211 = 2211; + public static final int UNFINISHED_CRUNCHY_2212 = 2212; + public static final int SPICY_CRUNCHIES = 2213; + public static final int SPICY_CRUNCHIES_2214 = 2214; + public static final int UNFINISHED_CRUNCHY_2215 = 2215; + public static final int UNFINISHED_CRUNCHY_2216 = 2216; + public static final int TOAD_CRUNCHIES = 2217; + public static final int TOAD_CRUNCHIES_2218 = 2218; + public static final int WORM_BATTA = 2219; + public static final int WORM_BATTA_2220 = 2220; + public static final int TOAD_BATTA = 2221; + public static final int TOAD_BATTA_2222 = 2222; + public static final int CHEESETOM_BATTA = 2223; + public static final int CHEESETOM_BATTA_2224 = 2224; + public static final int FRUIT_BATTA = 2225; + public static final int FRUIT_BATTA_2226 = 2226; + public static final int VEGETABLE_BATTA = 2227; + public static final int VEGETABLE_BATTA_2228 = 2228; + public static final int CHOCOLATE_BOMB_2229 = 2229; + public static final int CHOCOLATE_BOMB_2230 = 2230; + public static final int TANGLED_TOADS_LEGS_2231 = 2231; + public static final int TANGLED_TOADS_LEGS_2232 = 2232; + public static final int WORM_HOLE_2233 = 2233; + public static final int WORM_HOLE_2234 = 2234; + public static final int VEG_BALL_2235 = 2235; + public static final int VEG_BALL_2236 = 2236; + public static final int WORM_CRUNCHIES_2237 = 2237; + public static final int WORM_CRUNCHIES_2238 = 2238; + public static final int CHOCCHIP_CRUNCHIES_2239 = 2239; + public static final int CHOCCHIP_CRUNCHIES_2240 = 2240; + public static final int SPICY_CRUNCHIES_2241 = 2241; + public static final int SPICY_CRUNCHIES_2242 = 2242; + public static final int TOAD_CRUNCHIES_2243 = 2243; + public static final int TOAD_CRUNCHIES_2244 = 2244; + public static final int ODD_BATTA = 2245; + public static final int ODD_BATTA_2246 = 2246; + public static final int BURNT_BATTA = 2247; + public static final int BURNT_BATTA_2248 = 2248; + public static final int HALF_BAKED_BATTA = 2249; + public static final int RAW_BATTA = 2250; + public static final int UNFINISHED_BATTA = 2251; + public static final int UNFINISHED_BATTA_2252 = 2252; + public static final int WORM_BATTA_2253 = 2253; + public static final int WORM_BATTA_2254 = 2254; + public static final int TOAD_BATTA_2255 = 2255; + public static final int TOAD_BATTA_2256 = 2256; + public static final int UNFINISHED_BATTA_2257 = 2257; + public static final int UNFINISHED_BATTA_2258 = 2258; + public static final int CHEESETOM_BATTA_2259 = 2259; + public static final int CHEESETOM_BATTA_2260 = 2260; + public static final int UNFINISHED_BATTA_2261 = 2261; + public static final int UNFINISHED_BATTA_2262 = 2262; + public static final int UNFINISHED_BATTA_2263 = 2263; + public static final int UNFINISHED_BATTA_2264 = 2264; + public static final int UNFINISHED_BATTA_2265 = 2265; + public static final int UNFINISHED_BATTA_2266 = 2266; + public static final int UNFINISHED_BATTA_2267 = 2267; + public static final int UNFINISHED_BATTA_2268 = 2268; + public static final int UNFINISHED_BATTA_2269 = 2269; + public static final int UNFINISHED_BATTA_2270 = 2270; + public static final int UNFINISHED_BATTA_2271 = 2271; + public static final int UNFINISHED_BATTA_2272 = 2272; + public static final int UNFINISHED_BATTA_2273 = 2273; + public static final int UNFINISHED_BATTA_2274 = 2274; + public static final int UNFINISHED_BATTA_2275 = 2275; + public static final int UNFINISHED_BATTA_2276 = 2276; + public static final int FRUIT_BATTA_2277 = 2277; + public static final int FRUIT_BATTA_2278 = 2278; + public static final int UNFINISHED_BATTA_2279 = 2279; + public static final int UNFINISHED_BATTA_2280 = 2280; + public static final int VEGETABLE_BATTA_2281 = 2281; + public static final int VEGETABLE_BATTA_2282 = 2282; + public static final int PIZZA_BASE = 2283; + public static final int PIZZA_BASE_2284 = 2284; + public static final int INCOMPLETE_PIZZA = 2285; + public static final int INCOMPLETE_PIZZA_2286 = 2286; + public static final int UNCOOKED_PIZZA = 2287; + public static final int UNCOOKED_PIZZA_2288 = 2288; + public static final int PLAIN_PIZZA = 2289; + public static final int PLAIN_PIZZA_2290 = 2290; + public static final int _12_PLAIN_PIZZA = 2291; + public static final int _12_PLAIN_PIZZA_2292 = 2292; + public static final int MEAT_PIZZA = 2293; + public static final int MEAT_PIZZA_2294 = 2294; + public static final int _12_MEAT_PIZZA = 2295; + public static final int _12_MEAT_PIZZA_2296 = 2296; + public static final int ANCHOVY_PIZZA = 2297; + public static final int ANCHOVY_PIZZA_2298 = 2298; + public static final int _12_ANCHOVY_PIZZA = 2299; + public static final int _12_ANCHOVY_PIZZA_2300 = 2300; + public static final int PINEAPPLE_PIZZA = 2301; + public static final int PINEAPPLE_PIZZA_2302 = 2302; + public static final int _12PINEAPPLE_PIZZA = 2303; + public static final int _12PINEAPPLE_PIZZA_2304 = 2304; + public static final int BURNT_PIZZA = 2305; + public static final int BURNT_PIZZA_2306 = 2306; + public static final int BREAD_DOUGH = 2307; + public static final int BREAD_DOUGH_2308 = 2308; + public static final int BREAD = 2309; + public static final int BREAD_2310 = 2310; + public static final int BURNT_BREAD = 2311; + public static final int BURNT_BREAD_2312 = 2312; + public static final int PIE_DISH = 2313; + public static final int PIE_DISH_2314 = 2314; + public static final int PIE_SHELL = 2315; + public static final int PIE_SHELL_2316 = 2316; + public static final int UNCOOKED_APPLE_PIE = 2317; + public static final int UNCOOKED_APPLE_PIE_2318 = 2318; + public static final int UNCOOKED_MEAT_PIE = 2319; + public static final int UNCOOKED_MEAT_PIE_2320 = 2320; + public static final int UNCOOKED_BERRY_PIE = 2321; + public static final int UNCOOKED_BERRY_PIE_2322 = 2322; + public static final int APPLE_PIE = 2323; + public static final int APPLE_PIE_2324 = 2324; + public static final int REDBERRY_PIE = 2325; + public static final int REDBERRY_PIE_2326 = 2326; + public static final int MEAT_PIE = 2327; + public static final int MEAT_PIE_2328 = 2328; + public static final int BURNT_PIE = 2329; + public static final int BURNT_PIE_2330 = 2330; + public static final int HALF_A_MEAT_PIE = 2331; + public static final int HALF_A_MEAT_PIE_2332 = 2332; + public static final int HALF_A_REDBERRY_PIE = 2333; + public static final int HALF_A_REDBERRY_PIE_2334 = 2334; + public static final int HALF_AN_APPLE_PIE = 2335; + public static final int HALF_AN_APPLE_PIE_2336 = 2336; + public static final int RAW_OOMLIE = 2337; + public static final int RAW_OOMLIE_2338 = 2338; + public static final int PALM_LEAF = 2339; + public static final int PALM_LEAF_2340 = 2340; + public static final int WRAPPED_OOMLIE = 2341; + public static final int WRAPPED_OOMLIE_2342 = 2342; + public static final int COOKED_OOMLIE_WRAP = 2343; + public static final int COOKED_OOMLIE_WRAP_2344 = 2344; + public static final int BURNT_OOMLIE_WRAP = 2345; + public static final int BURNT_OOMLIE_WRAP_2346 = 2346; + public static final int HAMMER = 2347; + public static final int HAMMER_2348 = 2348; + public static final int BRONZE_BAR = 2349; + public static final int BRONZE_BAR_2350 = 2350; + public static final int IRON_BAR = 2351; + public static final int IRON_BAR_2352 = 2352; + public static final int STEEL_BAR = 2353; + public static final int STEEL_BAR_2354 = 2354; + public static final int SILVER_BAR = 2355; + public static final int SILVER_BAR_2356 = 2356; + public static final int GOLD_BAR = 2357; + public static final int GOLD_BAR_2358 = 2358; + public static final int MITHRIL_BAR = 2359; + public static final int MITHRIL_BAR_2360 = 2360; + public static final int ADAMANTITE_BAR = 2361; + public static final int ADAMANTITE_BAR_2362 = 2362; + public static final int RUNITE_BAR = 2363; + public static final int RUNITE_BAR_2364 = 2364; + public static final int PERFECT_GOLD_BAR = 2365; + public static final int SHIELD_LEFT_HALF = 2366; + public static final int SHIELD_LEFT_HALF_2367 = 2367; + public static final int SHIELD_RIGHT_HALF = 2368; + public static final int SHIELD_RIGHT_HALF_2369 = 2369; + public static final int STEEL_STUDS = 2370; + public static final int STEEL_STUDS_2371 = 2371; + public static final int OGRE_RELIC = 2372; + public static final int RELIC_PART_1 = 2373; + public static final int RELIC_PART_2 = 2374; + public static final int RELIC_PART_3 = 2375; + public static final int SKAVID_MAP = 2376; + public static final int OGRE_TOOTH = 2377; + public static final int TOBANS_KEY = 2378; + public static final int ROCK_CAKE = 2379; + public static final int CRYSTAL = 2380; + public static final int CRYSTAL_2381 = 2381; + public static final int CRYSTAL_2382 = 2382; + public static final int CRYSTAL_2383 = 2383; + public static final int FINGER_NAILS = 2384; + public static final int OLD_ROBE = 2385; + public static final int UNUSUAL_ARMOUR = 2386; + public static final int DAMAGED_DAGGER = 2387; + public static final int TATTERED_EYE_PATCH = 2388; + public static final int VIAL_2389 = 2389; + public static final int VIAL_2390 = 2390; + public static final int GROUND_BAT_BONES = 2391; + public static final int GROUND_BAT_BONES_2392 = 2392; + public static final int GOLD = 2393; + public static final int POTION_2394 = 2394; + public static final int MAGIC_OGRE_POTION = 2395; + public static final int SPELL_SCROLL = 2396; + public static final int SHAMAN_ROBE = 2397; + public static final int NIGHTSHADE = 2398; + public static final int KEY_2399 = 2399; + public static final int KEY_2400 = 2400; + public static final int KEY_2401 = 2401; + public static final int SILVERLIGHT = 2402; + public static final int HAZEEL_SCROLL = 2403; + public static final int CHEST_KEY_2404 = 2404; + public static final int CARNILLEAN_ARMOUR = 2405; + public static final int HAZEELS_MARK = 2406; + public static final int BALL = 2407; + public static final int DIARY = 2408; + public static final int DOOR_KEY = 2409; + public static final int MAGNET = 2410; + public static final int KEY_2411 = 2411; + public static final int SARADOMIN_CAPE = 2412; + public static final int GUTHIX_CAPE = 2413; + public static final int ZAMORAK_CAPE = 2414; + public static final int SARADOMIN_STAFF = 2415; + public static final int GUTHIX_STAFF = 2416; + public static final int ZAMORAK_STAFF = 2417; + public static final int BRONZE_KEY = 2418; + public static final int WIG = 2419; + public static final int BRASS_MONKEY = 2420; + public static final int WIG_2421 = 2421; + public static final int BLUE_PARTYHAT_2422 = 2422; + public static final int KEY_PRINT = 2423; + public static final int PASTE = 2424; + public static final int ORBITAL_KNIFE = 2425; + public static final int BURNT_OOMLIE = 2426; + public static final int BURNT_OOMLIE_2427 = 2427; + public static final int ATTACK_POTION4 = 2428; + public static final int ATTACK_POTION4_2429 = 2429; + public static final int RESTORE_POTION4 = 2430; + public static final int RESTORE_POTION4_2431 = 2431; + public static final int DEFENCE_POTION4 = 2432; + public static final int DEFENCE_POTION4_2433 = 2433; + public static final int PRAYER_POTION4 = 2434; + public static final int PRAYER_POTION4_2435 = 2435; + public static final int SUPER_ATTACK4 = 2436; + public static final int SUPER_ATTACK4_2437 = 2437; + public static final int FISHING_POTION4 = 2438; + public static final int FISHING_POTION4_2439 = 2439; + public static final int SUPER_STRENGTH4 = 2440; + public static final int SUPER_STRENGTH4_2441 = 2441; + public static final int SUPER_DEFENCE4 = 2442; + public static final int SUPER_DEFENCE4_2443 = 2443; + public static final int RANGING_POTION4 = 2444; + public static final int RANGING_POTION4_2445 = 2445; + public static final int ANTIPOISON4 = 2446; + public static final int ANTIPOISON4_2447 = 2447; + public static final int SUPERANTIPOISON4 = 2448; + public static final int SUPERANTIPOISON4_2449 = 2449; + public static final int ZAMORAK_BREW4 = 2450; + public static final int ZAMORAK_BREW4_2451 = 2451; + public static final int ANTIFIRE_POTION4 = 2452; + public static final int ANTIFIRE_POTION4_2453 = 2453; + public static final int ANTIFIRE_POTION3 = 2454; + public static final int ANTIFIRE_POTION3_2455 = 2455; + public static final int ANTIFIRE_POTION2 = 2456; + public static final int ANTIFIRE_POTION2_2457 = 2457; + public static final int ANTIFIRE_POTION1 = 2458; + public static final int ANTIFIRE_POTION1_2459 = 2459; + public static final int FLOWERS = 2460; + public static final int FLOWERS_2461 = 2461; + public static final int FLOWERS_2462 = 2462; + public static final int FLOWERS_2463 = 2463; + public static final int FLOWERS_2464 = 2464; + public static final int FLOWERS_2465 = 2465; + public static final int FLOWERS_2466 = 2466; + public static final int FLOWERS_2467 = 2467; + public static final int FLOWERS_2468 = 2468; + public static final int FLOWERS_2469 = 2469; + public static final int FLOWERS_2470 = 2470; + public static final int FLOWERS_2471 = 2471; + public static final int FLOWERS_2472 = 2472; + public static final int FLOWERS_2473 = 2473; + public static final int FLOWERS_2474 = 2474; + public static final int FLOWERS_2475 = 2475; + public static final int FLOWERS_2476 = 2476; + public static final int FLOWERS_2477 = 2477; + public static final int FISH_FOOD_2478 = 2478; + public static final int POISON_2479 = 2479; + public static final int FIRESTARTER = 2480; + public static final int LANTADYME = 2481; + public static final int LANTADYME_2482 = 2482; + public static final int UNFINISHED_POTION_2483 = 2483; + public static final int UNFINISHED_POTION_2484 = 2484; + public static final int HERB_2485 = 2485; + public static final int HERB_2486 = 2486; + public static final int BLUE_DHIDE_VAMB = 2487; + public static final int BLUE_DHIDE_VAMB_2488 = 2488; + public static final int RED_DHIDE_VAMB = 2489; + public static final int RED_DHIDE_VAMB_2490 = 2490; + public static final int BLACK_DHIDE_VAMB = 2491; + public static final int BLACK_DHIDE_VAMB_2492 = 2492; + public static final int BLUE_DHIDE_CHAPS = 2493; + public static final int BLUE_DHIDE_CHAPS_2494 = 2494; + public static final int RED_DHIDE_CHAPS = 2495; + public static final int RED_DHIDE_CHAPS_2496 = 2496; + public static final int BLACK_DHIDE_CHAPS = 2497; + public static final int BLACK_DHIDE_CHAPS_2498 = 2498; + public static final int BLUE_DHIDE_BODY = 2499; + public static final int BLUE_DHIDE_BODY_2500 = 2500; + public static final int RED_DHIDE_BODY = 2501; + public static final int RED_DHIDE_BODY_2502 = 2502; + public static final int BLACK_DHIDE_BODY = 2503; + public static final int BLACK_DHIDE_BODY_2504 = 2504; + public static final int BLUE_DLEATHER = 2505; + public static final int BLUE_DLEATHER_2506 = 2506; + public static final int RED_DRAGON_LEATHER = 2507; + public static final int RED_DRAGON_LEATHER_2508 = 2508; + public static final int BLACK_DLEATHER = 2509; + public static final int BLACK_DLEATHER_2510 = 2510; + public static final int LOGS_2511 = 2511; + public static final int BOX_OF_DELIGHTS = 2512; + public static final int WASTE_DISPOSAL = 2513; + public static final int RAW_SHRIMPS_2514 = 2514; + public static final int RAW_SHRIMPS_2515 = 2515; + public static final int POT_OF_FLOUR_2516 = 2516; + public static final int POT_OF_FLOUR_2517 = 2517; + public static final int ROTTEN_TOMATO = 2518; + public static final int ROTTEN_TOMATO_2519 = 2519; + public static final int TOY_HORSEY = 2520; + public static final int TOY_HORSEY_2521 = 2521; + public static final int TOY_HORSEY_2522 = 2522; + public static final int TOY_HORSEY_2523 = 2523; + public static final int TOY_HORSEY_2524 = 2524; + public static final int TOY_HORSEY_2525 = 2525; + public static final int TOY_HORSEY_2526 = 2526; + public static final int TOY_HORSEY_2527 = 2527; + public static final int LAMP = 2528; + public static final int ORB_OF_LIGHT_2529 = 2529; + public static final int BONES_2530 = 2530; + public static final int BONES_2531 = 2531; + public static final int IRON_FIRE_ARROWS = 2532; + public static final int IRON_FIRE_ARROWS_2533 = 2533; + public static final int STEEL_FIRE_ARROWS = 2534; + public static final int STEEL_FIRE_ARROWS_2535 = 2535; + public static final int MITHRIL_FIRE_ARROWS = 2536; + public static final int MITHRIL_FIRE_ARROWS_2537 = 2537; + public static final int ADDY_FIRE_ARROWS = 2538; + public static final int ADDY_FIRE_ARROWS_2539 = 2539; + public static final int RUNE_FIRE_ARROWS = 2540; + public static final int RUNE_FIRE_ARROWS_2541 = 2541; + public static final int NULL_2542 = 2542; + public static final int NULL_2543 = 2543; + public static final int NULL_2544 = 2544; + public static final int NULL_2545 = 2545; + public static final int NULL_2546 = 2546; + public static final int NULL_2547 = 2547; + public static final int NULL_2548 = 2548; + public static final int NULL_2549 = 2549; + public static final int RING_OF_RECOIL = 2550; + public static final int RING_OF_RECOIL_2551 = 2551; + public static final int RING_OF_DUELING8 = 2552; + public static final int RING_OF_DUELING8_2553 = 2553; + public static final int RING_OF_DUELING7 = 2554; + public static final int RING_OF_DUELING7_2555 = 2555; + public static final int RING_OF_DUELING6 = 2556; + public static final int RING_OF_DUELING6_2557 = 2557; + public static final int RING_OF_DUELING5 = 2558; + public static final int RING_OF_DUELING5_2559 = 2559; + public static final int RING_OF_DUELING4 = 2560; + public static final int RING_OF_DUELING4_2561 = 2561; + public static final int RING_OF_DUELING3 = 2562; + public static final int RING_OF_DUELING3_2563 = 2563; + public static final int RING_OF_DUELING2 = 2564; + public static final int RING_OF_DUELING2_2565 = 2565; + public static final int RING_OF_DUELING1 = 2566; + public static final int RING_OF_DUELING1_2567 = 2567; + public static final int RING_OF_FORGING = 2568; + public static final int RING_OF_FORGING_2569 = 2569; + public static final int RING_OF_LIFE = 2570; + public static final int RING_OF_LIFE_2571 = 2571; + public static final int RING_OF_WEALTH = 2572; + public static final int RING_OF_WEALTH_2573 = 2573; + public static final int SEXTANT = 2574; + public static final int WATCH = 2575; + public static final int CHART = 2576; + public static final int RANGER_BOOTS = 2577; + public static final int RANGER_BOOTS_2578 = 2578; + public static final int WIZARD_BOOTS = 2579; + public static final int WIZARD_BOOTS_2580 = 2580; + public static final int ROBIN_HOOD_HAT = 2581; + public static final int ROBIN_HOOD_HAT_2582 = 2582; + public static final int BLACK_PLATEBODY_T = 2583; + public static final int BLACK_PLATEBODY_T_2584 = 2584; + public static final int BLACK_PLATELEGS_T = 2585; + public static final int BLACK_PLATELEGS_T_2586 = 2586; + public static final int BLACK_FULL_HELM_T = 2587; + public static final int BLACK_FULL_HELM_T_2588 = 2588; + public static final int BLACK_KITESHIELD_T = 2589; + public static final int BLACK_KITESHIELD_T_2590 = 2590; + public static final int BLACK_PLATEBODY_G = 2591; + public static final int BLACK_PLATEBODY_G_2592 = 2592; + public static final int BLACK_PLATELEGS_G = 2593; + public static final int BLACK_PLATELEGS_G_2594 = 2594; + public static final int BLACK_FULL_HELM_G = 2595; + public static final int BLACK_FULL_HELM_G_2596 = 2596; + public static final int BLACK_KITESHIELD_G = 2597; + public static final int BLACK_KITESHIELD_G_2598 = 2598; + public static final int ADAM_PLATEBODY_T = 2599; + public static final int ADAM_PLATEBODY_T_2600 = 2600; + public static final int ADAM_PLATELEGS_T = 2601; + public static final int ADAM_PLATELEGS_T_2602 = 2602; + public static final int ADAM_KITESHIELD_T = 2603; + public static final int ADAM_KITESHIELD_T_2604 = 2604; + public static final int ADAM_FULL_HELM_T = 2605; + public static final int ADAM_FULL_HELM_T_2606 = 2606; + public static final int ADAM_PLATEBODY_G = 2607; + public static final int ADAM_PLATEBODY_G_2608 = 2608; + public static final int ADAM_PLATELEGS_G = 2609; + public static final int ADAM_PLATELEGS_G_2610 = 2610; + public static final int ADAM_KITESHIELD_G = 2611; + public static final int ADAM_KITESHIELD_G_2612 = 2612; + public static final int ADAM_FULL_HELM_G = 2613; + public static final int ADAM_FULL_HELM_G_2614 = 2614; + public static final int RUNE_PLATEBODY_G = 2615; + public static final int RUNE_PLATEBODY_G_2616 = 2616; + public static final int RUNE_PLATELEGS_G = 2617; + public static final int RUNE_PLATELEGS_G_2618 = 2618; + public static final int RUNE_FULL_HELM_G = 2619; + public static final int RUNE_FULL_HELM_G_2620 = 2620; + public static final int RUNE_KITESHIELD_G = 2621; + public static final int RUNE_KITESHIELD_G_2622 = 2622; + public static final int RUNE_PLATEBODY_T = 2623; + public static final int RUNE_PLATEBODY_T_2624 = 2624; + public static final int RUNE_PLATELEGS_T = 2625; + public static final int RUNE_PLATELEGS_T_2626 = 2626; + public static final int RUNE_FULL_HELM_T = 2627; + public static final int RUNE_FULL_HELM_T_2628 = 2628; + public static final int RUNE_KITESHIELD_T = 2629; + public static final int RUNE_KITESHIELD_T_2630 = 2630; + public static final int HIGHWAYMAN_MASK = 2631; + public static final int HIGHWAYMAN_MASK_2632 = 2632; + public static final int BLUE_BERET = 2633; + public static final int BLUE_BERET_2634 = 2634; + public static final int BLACK_BERET = 2635; + public static final int BLACK_BERET_2636 = 2636; + public static final int WHITE_BERET = 2637; + public static final int WHITE_BERET_2638 = 2638; + public static final int TAN_CAVALIER = 2639; + public static final int TAN_CAVALIER_2640 = 2640; + public static final int DARK_CAVALIER = 2641; + public static final int DARK_CAVALIER_2642 = 2642; + public static final int BLACK_CAVALIER = 2643; + public static final int BLACK_CAVALIER_2644 = 2644; + public static final int RED_HEADBAND = 2645; + public static final int RED_HEADBAND_2646 = 2646; + public static final int BLACK_HEADBAND = 2647; + public static final int BLACK_HEADBAND_2648 = 2648; + public static final int BROWN_HEADBAND = 2649; + public static final int BROWN_HEADBAND_2650 = 2650; + public static final int PIRATES_HAT = 2651; + public static final int PIRATES_HAT_2652 = 2652; + public static final int ZAMORAK_PLATEBODY = 2653; + public static final int ZAMORAK_PLATEBODY_2654 = 2654; + public static final int ZAMORAK_PLATELEGS = 2655; + public static final int ZAMORAK_PLATELEGS_2656 = 2656; + public static final int ZAMORAK_FULL_HELM = 2657; + public static final int ZAMORAK_FULL_HELM_2658 = 2658; + public static final int ZAMORAK_KITESHIELD = 2659; + public static final int ZAMORAK_KITESHIELD_2660 = 2660; + public static final int SARADOMIN_PLATE = 2661; + public static final int SARADOMIN_PLATE_2662 = 2662; + public static final int SARADOMIN_LEGS = 2663; + public static final int SARADOMIN_LEGS_2664 = 2664; + public static final int SARADOMIN_FULL = 2665; + public static final int SARADOMIN_FULL_2666 = 2666; + public static final int SARADOMIN_KITE = 2667; + public static final int SARADOMIN_KITE_2668 = 2668; + public static final int GUTHIX_PLATEBODY = 2669; + public static final int GUTHIX_PLATEBODY_2670 = 2670; + public static final int GUTHIX_PLATELEGS = 2671; + public static final int GUTHIX_PLATELEGS_2672 = 2672; + public static final int GUTHIX_FULL_HELM = 2673; + public static final int GUTHIX_FULL_HELM_2674 = 2674; + public static final int GUTHIX_KITESHIELD = 2675; + public static final int GUTHIX_KITESHIELD_2676 = 2676; + public static final int CLUE_SCROLL = 2677; + public static final int CLUE_SCROLL_2678 = 2678; + public static final int CLUE_SCROLL_2679 = 2679; + public static final int CLUE_SCROLL_2680 = 2680; + public static final int CLUE_SCROLL_2681 = 2681; + public static final int CLUE_SCROLL_2682 = 2682; + public static final int CLUE_SCROLL_2683 = 2683; + public static final int CLUE_SCROLL_2684 = 2684; + public static final int CLUE_SCROLL_2685 = 2685; + public static final int CLUE_SCROLL_2686 = 2686; + public static final int CLUE_SCROLL_2687 = 2687; + public static final int CLUE_SCROLL_2688 = 2688; + public static final int CLUE_SCROLL_2689 = 2689; + public static final int CLUE_SCROLL_2690 = 2690; + public static final int CLUE_SCROLL_2691 = 2691; + public static final int CLUE_SCROLL_2692 = 2692; + public static final int CLUE_SCROLL_2693 = 2693; + public static final int CLUE_SCROLL_2694 = 2694; + public static final int CLUE_SCROLL_2695 = 2695; + public static final int CLUE_SCROLL_2696 = 2696; + public static final int CLUE_SCROLL_2697 = 2697; + public static final int CLUE_SCROLL_2698 = 2698; + public static final int CLUE_SCROLL_2699 = 2699; + public static final int CLUE_SCROLL_2700 = 2700; + public static final int CLUE_SCROLL_2701 = 2701; + public static final int CLUE_SCROLL_2702 = 2702; + public static final int CLUE_SCROLL_2703 = 2703; + public static final int CLUE_SCROLL_2704 = 2704; + public static final int CLUE_SCROLL_2705 = 2705; + public static final int CLUE_SCROLL_2706 = 2706; + public static final int CLUE_SCROLL_2707 = 2707; + public static final int CLUE_SCROLL_2708 = 2708; + public static final int CLUE_SCROLL_2709 = 2709; + public static final int CLUE_SCROLL_2710 = 2710; + public static final int CLUE_SCROLL_2711 = 2711; + public static final int CLUE_SCROLL_2712 = 2712; + public static final int CLUE_SCROLL_2713 = 2713; + public static final int CASKET_2714 = 2714; + public static final int CASKET_2715 = 2715; + public static final int CLUE_SCROLL_2716 = 2716; + public static final int CASKET_2717 = 2717; + public static final int CASKET_2718 = 2718; + public static final int CLUE_SCROLL_2719 = 2719; + public static final int CASKET_2720 = 2720; + public static final int CASKET_2721 = 2721; + public static final int CLUE_SCROLL_2722 = 2722; + public static final int CLUE_SCROLL_2723 = 2723; + public static final int CASKET_2724 = 2724; + public static final int CLUE_SCROLL_2725 = 2725; + public static final int CASKET_2726 = 2726; + public static final int CLUE_SCROLL_2727 = 2727; + public static final int CASKET_2728 = 2728; + public static final int CLUE_SCROLL_2729 = 2729; + public static final int CASKET_2730 = 2730; + public static final int CLUE_SCROLL_2731 = 2731; + public static final int CASKET_2732 = 2732; + public static final int CLUE_SCROLL_2733 = 2733; + public static final int CASKET_2734 = 2734; + public static final int CLUE_SCROLL_2735 = 2735; + public static final int CASKET_2736 = 2736; + public static final int CLUE_SCROLL_2737 = 2737; + public static final int CASKET_2738 = 2738; + public static final int CLUE_SCROLL_2739 = 2739; + public static final int CASKET_2740 = 2740; + public static final int CLUE_SCROLL_2741 = 2741; + public static final int CASKET_2742 = 2742; + public static final int CLUE_SCROLL_2743 = 2743; + public static final int CASKET_2744 = 2744; + public static final int CLUE_SCROLL_2745 = 2745; + public static final int CASKET_2746 = 2746; + public static final int CLUE_SCROLL_2747 = 2747; + public static final int CASKET_2748 = 2748; + public static final int SLIDING_PIECE = 2749; + public static final int SLIDING_PIECE_2750 = 2750; + public static final int SLIDING_PIECE_2751 = 2751; + public static final int SLIDING_PIECE_2752 = 2752; + public static final int SLIDING_PIECE_2753 = 2753; + public static final int SLIDING_PIECE_2754 = 2754; + public static final int SLIDING_PIECE_2755 = 2755; + public static final int SLIDING_PIECE_2756 = 2756; + public static final int SLIDING_PIECE_2757 = 2757; + public static final int SLIDING_PIECE_2758 = 2758; + public static final int SLIDING_PIECE_2759 = 2759; + public static final int SLIDING_PIECE_2760 = 2760; + public static final int SLIDING_PIECE_2761 = 2761; + public static final int SLIDING_PIECE_2762 = 2762; + public static final int SLIDING_PIECE_2763 = 2763; + public static final int SLIDING_PIECE_2764 = 2764; + public static final int SLIDING_PIECE_2765 = 2765; + public static final int SLIDING_PIECE_2766 = 2766; + public static final int SLIDING_PIECE_2767 = 2767; + public static final int SLIDING_PIECE_2768 = 2768; + public static final int SLIDING_PIECE_2769 = 2769; + public static final int SLIDING_PIECE_2770 = 2770; + public static final int SLIDING_PIECE_2771 = 2771; + public static final int SLIDING_PIECE_2772 = 2772; + public static final int CLUE_SCROLL_2773 = 2773; + public static final int CLUE_SCROLL_2774 = 2774; + public static final int CASKET_2775 = 2775; + public static final int CLUE_SCROLL_2776 = 2776; + public static final int CASKET_2777 = 2777; + public static final int CLUE_SCROLL_2778 = 2778; + public static final int CASKET_2779 = 2779; + public static final int CLUE_SCROLL_2780 = 2780; + public static final int CASKET_2781 = 2781; + public static final int CLUE_SCROLL_2782 = 2782; + public static final int CLUE_SCROLL_2783 = 2783; + public static final int CASKET_2784 = 2784; + public static final int CLUE_SCROLL_2785 = 2785; + public static final int CLUE_SCROLL_2786 = 2786; + public static final int CASKET_2787 = 2787; + public static final int CLUE_SCROLL_2788 = 2788; + public static final int CASKET_2789 = 2789; + public static final int CLUE_SCROLL_2790 = 2790; + public static final int CASKET_2791 = 2791; + public static final int CLUE_SCROLL_2792 = 2792; + public static final int CLUE_SCROLL_2793 = 2793; + public static final int CLUE_SCROLL_2794 = 2794; + public static final int PUZZLE_BOX = 2795; + public static final int CLUE_SCROLL_2796 = 2796; + public static final int CLUE_SCROLL_2797 = 2797; + public static final int PUZZLE_BOX_2798 = 2798; + public static final int CLUE_SCROLL_2799 = 2799; + public static final int PUZZLE_BOX_2800 = 2800; + public static final int CLUE_SCROLL_2801 = 2801; + public static final int CASKET_2802 = 2802; + public static final int CLUE_SCROLL_2803 = 2803; + public static final int CASKET_2804 = 2804; + public static final int CLUE_SCROLL_2805 = 2805; + public static final int CASKET_2806 = 2806; + public static final int CLUE_SCROLL_2807 = 2807; + public static final int CASKET_2808 = 2808; + public static final int CLUE_SCROLL_2809 = 2809; + public static final int CASKET_2810 = 2810; + public static final int CLUE_SCROLL_2811 = 2811; + public static final int CASKET_2812 = 2812; + public static final int CLUE_SCROLL_2813 = 2813; + public static final int CASKET_2814 = 2814; + public static final int CLUE_SCROLL_2815 = 2815; + public static final int CASKET_2816 = 2816; + public static final int CLUE_SCROLL_2817 = 2817; + public static final int CASKET_2818 = 2818; + public static final int CLUE_SCROLL_2819 = 2819; + public static final int CASKET_2820 = 2820; + public static final int CLUE_SCROLL_2821 = 2821; + public static final int CASKET_2822 = 2822; + public static final int CLUE_SCROLL_2823 = 2823; + public static final int CASKET_2824 = 2824; + public static final int CLUE_SCROLL_2825 = 2825; + public static final int CASKET_2826 = 2826; + public static final int CLUE_SCROLL_2827 = 2827; + public static final int CASKET_2828 = 2828; + public static final int CLUE_SCROLL_2829 = 2829; + public static final int CASKET_2830 = 2830; + public static final int CLUE_SCROLL_2831 = 2831; + public static final int KEY_2832 = 2832; + public static final int CLUE_SCROLL_2833 = 2833; + public static final int KEY_2834 = 2834; + public static final int CLUE_SCROLL_2835 = 2835; + public static final int KEY_2836 = 2836; + public static final int CLUE_SCROLL_2837 = 2837; + public static final int KEY_2838 = 2838; + public static final int CLUE_SCROLL_2839 = 2839; + public static final int KEY_2840 = 2840; + public static final int CLUE_SCROLL_2841 = 2841; + public static final int CHALLENGE_SCROLL = 2842; + public static final int CLUE_SCROLL_2843 = 2843; + public static final int CHALLENGE_SCROLL_2844 = 2844; + public static final int CLUE_SCROLL_2845 = 2845; + public static final int CHALLENGE_SCROLL_2846 = 2846; + public static final int CLUE_SCROLL_2847 = 2847; + public static final int CLUE_SCROLL_2848 = 2848; + public static final int CLUE_SCROLL_2849 = 2849; + public static final int CHALLENGE_SCROLL_2850 = 2850; + public static final int CLUE_SCROLL_2851 = 2851; + public static final int CHALLENGE_SCROLL_2852 = 2852; + public static final int CLUE_SCROLL_2853 = 2853; + public static final int CHALLENGE_SCROLL_2854 = 2854; + public static final int CLUE_SCROLL_2855 = 2855; + public static final int CLUE_SCROLL_2856 = 2856; + public static final int CLUE_SCROLL_2857 = 2857; + public static final int CLUE_SCROLL_2858 = 2858; + public static final int WOLF_BONES = 2859; + public static final int WOLF_BONES_2860 = 2860; + public static final int WOLFBONE_ARROWTIPS = 2861; + public static final int ACHEY_TREE_LOGS = 2862; + public static final int ACHEY_TREE_LOGS_2863 = 2863; + public static final int OGRE_ARROW_SHAFT = 2864; + public static final int FLIGHTED_OGRE_ARROW = 2865; + public static final int OGRE_ARROW = 2866; + public static final int NULL_2867 = 2867; + public static final int NULL_2868 = 2868; + public static final int NULL_2869 = 2869; + public static final int NULL_2870 = 2870; + public static final int OGRE_BELLOWS = 2871; + public static final int OGRE_BELLOWS_3 = 2872; + public static final int OGRE_BELLOWS_2 = 2873; + public static final int OGRE_BELLOWS_1 = 2874; + public static final int BLOATED_TOAD = 2875; + public static final int RAW_CHOMPY = 2876; + public static final int RAW_CHOMPY_2877 = 2877; + public static final int COOKED_CHOMPY = 2878; + public static final int COOKED_CHOMPY_2879 = 2879; + public static final int RUINED_CHOMPY = 2880; + public static final int RUINED_CHOMPY_2881 = 2881; + public static final int SEASONED_CHOMPY = 2882; + public static final int OGRE_BOW = 2883; + public static final int NULL_2884 = 2884; + public static final int WHOOPSIE_2885 = 2885; + public static final int BATTERED_BOOK = 2886; + public static final int BATTERED_KEY = 2887; + public static final int A_STONE_BOWL = 2888; + public static final int A_STONE_BOWL_2889 = 2889; + public static final int ELEMENTAL_SHIELD = 2890; + public static final int ELEMENTAL_SHIELD_2891 = 2891; + public static final int ELEMENTAL_ORE = 2892; + public static final int ELEMENTAL_METAL = 2893; + public static final int BOOTS_2894 = 2894; + public static final int BOOTS_2895 = 2895; + public static final int ROBE_TOP_2896 = 2896; + public static final int ROBE_TOP_2897 = 2897; + public static final int ROBE_BOTTOMS_2898 = 2898; + public static final int ROBE_BOTTOMS_2899 = 2899; + public static final int HAT_2900 = 2900; + public static final int HAT_2901 = 2901; + public static final int GLOVES = 2902; + public static final int GLOVES_2903 = 2903; + public static final int BOOTS_2904 = 2904; + public static final int BOOTS_2905 = 2905; + public static final int ROBE_TOP_2906 = 2906; + public static final int ROBE_TOP_2907 = 2907; + public static final int ROBE_BOTTOMS_2908 = 2908; + public static final int ROBE_BOTTOMS_2909 = 2909; + public static final int HAT_2910 = 2910; + public static final int HAT_2911 = 2911; + public static final int GLOVES_2912 = 2912; + public static final int GLOVES_2913 = 2913; + public static final int BOOTS_2914 = 2914; + public static final int BOOTS_2915 = 2915; + public static final int ROBE_TOP_2916 = 2916; + public static final int ROBE_TOP_2917 = 2917; + public static final int ROBE_BOTTOMS_2918 = 2918; + public static final int ROBE_BOTTOMS_2919 = 2919; + public static final int HAT_2920 = 2920; + public static final int HAT_2921 = 2921; + public static final int GLOVES_2922 = 2922; + public static final int GLOVES_2923 = 2923; + public static final int BOOTS_2924 = 2924; + public static final int BOOTS_2925 = 2925; + public static final int ROBE_TOP_2926 = 2926; + public static final int ROBE_TOP_2927 = 2927; + public static final int ROBE_BOTTOMS_2928 = 2928; + public static final int ROBE_BOTTOMS_2929 = 2929; + public static final int HAT_2930 = 2930; + public static final int HAT_2931 = 2931; + public static final int GLOVES_2932 = 2932; + public static final int GLOVES_2933 = 2933; + public static final int BOOTS_2934 = 2934; + public static final int BOOTS_2935 = 2935; + public static final int ROBE_TOP_2936 = 2936; + public static final int ROBE_TOP_2937 = 2937; + public static final int ROBE_BOTTOMS_2938 = 2938; + public static final int ROBE_BOTTOMS_2939 = 2939; + public static final int HAT_2940 = 2940; + public static final int HAT_2941 = 2941; + public static final int GLOVES_2942 = 2942; + public static final int GLOVES_2943 = 2943; + public static final int GOLDEN_KEY = 2944; + public static final int IRON_KEY = 2945; + public static final int GOLDEN_TINDERBOX = 2946; + public static final int GOLDEN_CANDLE = 2947; + public static final int GOLDEN_POT = 2948; + public static final int GOLDEN_HAMMER = 2949; + public static final int GOLDEN_FEATHER = 2950; + public static final int GOLDEN_NEEDLE = 2951; + public static final int WOLFBANE = 2952; + public static final int BUCKET_OF_WATER_2953 = 2953; + public static final int BUCKET_OF_WATER_2954 = 2954; + public static final int MOONLIGHT_MEAD = 2955; + public static final int MOONLIGHT_MEAD_2956 = 2956; + public static final int DRUID_POUCH = 2957; + public static final int DRUID_POUCH_2958 = 2958; + public static final int ROTTEN_FOOD = 2959; + public static final int ROTTEN_FOOD_2960 = 2960; + public static final int SILVER_SICKLE = 2961; + public static final int SILVER_SICKLE_2962 = 2962; + public static final int SILVER_SICKLEB = 2963; + public static final int WASHING_BOWL = 2964; + public static final int WASHING_BOWL_2965 = 2965; + public static final int MIRROR = 2966; + public static final int JOURNAL = 2967; + public static final int DRUIDIC_SPELL = 2968; + public static final int A_USED_SPELL = 2969; + public static final int MORT_MYRE_FUNGI = 2970; + public static final int MORT_MYRE_FUNGI_2971 = 2971; + public static final int MORT_MYRE_STEM = 2972; + public static final int MORT_MYRE_STEM_2973 = 2973; + public static final int MORT_MYRE_PEAR = 2974; + public static final int MORT_MYRE_PEAR_2975 = 2975; + public static final int SICKLE_MOULD = 2976; + public static final int SICKLE_MOULD_2977 = 2977; + public static final int CHOMPY_BIRD_HAT = 2978; + public static final int CHOMPY_BIRD_HAT_2979 = 2979; + public static final int CHOMPY_BIRD_HAT_2980 = 2980; + public static final int CHOMPY_BIRD_HAT_2981 = 2981; + public static final int CHOMPY_BIRD_HAT_2982 = 2982; + public static final int CHOMPY_BIRD_HAT_2983 = 2983; + public static final int CHOMPY_BIRD_HAT_2984 = 2984; + public static final int CHOMPY_BIRD_HAT_2985 = 2985; + public static final int CHOMPY_BIRD_HAT_2986 = 2986; + public static final int CHOMPY_BIRD_HAT_2987 = 2987; + public static final int CHOMPY_BIRD_HAT_2988 = 2988; + public static final int CHOMPY_BIRD_HAT_2989 = 2989; + public static final int CHOMPY_BIRD_HAT_2990 = 2990; + public static final int CHOMPY_BIRD_HAT_2991 = 2991; + public static final int CHOMPY_BIRD_HAT_2992 = 2992; + public static final int CHOMPY_BIRD_HAT_2993 = 2993; + public static final int CHOMPY_BIRD_HAT_2994 = 2994; + public static final int CHOMPY_BIRD_HAT_2995 = 2995; + public static final int AGILITY_ARENA_TICKET = 2996; + public static final int PIRATES_HOOK = 2997; + public static final int TOADFLAX = 2998; + public static final int TOADFLAX_2999 = 2999; + public static final int SNAPDRAGON = 3000; + public static final int SNAPDRAGON_3001 = 3001; + public static final int UNFINISHED_POTION_3002 = 3002; + public static final int UNFINISHED_POTION_3003 = 3003; + public static final int UNFINISHED_POTION_3004 = 3004; + public static final int UNFINISHED_POTION_3005 = 3005; + public static final int FIREWORK = 3006; + public static final int FIREWORK_3007 = 3007; + public static final int ENERGY_POTION4 = 3008; + public static final int ENERGY_POTION4_3009 = 3009; + public static final int ENERGY_POTION3 = 3010; + public static final int ENERGY_POTION3_3011 = 3011; + public static final int ENERGY_POTION2 = 3012; + public static final int ENERGY_POTION2_3013 = 3013; + public static final int ENERGY_POTION1 = 3014; + public static final int ENERGY_POTION1_3015 = 3015; + public static final int SUPER_ENERGY4 = 3016; + public static final int SUPER_ENERGY4_3017 = 3017; + public static final int SUPER_ENERGY3 = 3018; + public static final int SUPER_ENERGY3_3019 = 3019; + public static final int SUPER_ENERGY2 = 3020; + public static final int SUPER_ENERGY2_3021 = 3021; + public static final int SUPER_ENERGY1 = 3022; + public static final int SUPER_ENERGY1_3023 = 3023; + public static final int SUPER_RESTORE4 = 3024; + public static final int SUPER_RESTORE4_3025 = 3025; + public static final int SUPER_RESTORE3 = 3026; + public static final int SUPER_RESTORE3_3027 = 3027; + public static final int SUPER_RESTORE2 = 3028; + public static final int SUPER_RESTORE2_3029 = 3029; + public static final int SUPER_RESTORE1 = 3030; + public static final int SUPER_RESTORE1_3031 = 3031; + public static final int AGILITY_POTION4 = 3032; + public static final int AGILITY_POTION4_3033 = 3033; + public static final int AGILITY_POTION3 = 3034; + public static final int AGILITY_POTION3_3035 = 3035; + public static final int AGILITY_POTION2 = 3036; + public static final int AGILITY_POTION2_3037 = 3037; + public static final int AGILITY_POTION1 = 3038; + public static final int AGILITY_POTION1_3039 = 3039; + public static final int MAGIC_POTION4 = 3040; + public static final int MAGIC_POTION4_3041 = 3041; + public static final int MAGIC_POTION3 = 3042; + public static final int MAGIC_POTION3_3043 = 3043; + public static final int MAGIC_POTION2 = 3044; + public static final int MAGIC_POTION2_3045 = 3045; + public static final int MAGIC_POTION1 = 3046; + public static final int MAGIC_POTION1_3047 = 3047; + public static final int PIRATES_HOOK_3048 = 3048; + public static final int HERB_3049 = 3049; + public static final int HERB_3050 = 3050; + public static final int HERB_3051 = 3051; + public static final int HERB_3052 = 3052; + public static final int LAVA_BATTLESTAFF = 3053; + public static final int MYSTIC_LAVA_STAFF = 3054; + public static final int LAVA_BATTLESTAFF_3055 = 3055; + public static final int MYSTIC_LAVA_STAFF_3056 = 3056; + public static final int MIME_MASK = 3057; + public static final int MIME_TOP = 3058; + public static final int MIME_LEGS = 3059; + public static final int MIME_GLOVES = 3060; + public static final int MIME_BOOTS = 3061; + public static final int STRANGE_BOX = 3062; + public static final int NULL_3063 = 3063; + public static final int WHOOPSIE_3064 = 3064; + public static final int NULL_3065 = 3065; + public static final int WHOOPSIE_3066 = 3066; + public static final int NULL_3067 = 3067; + public static final int WHOOPSIE_3068 = 3068; + public static final int NULL_3069 = 3069; + public static final int WHOOPSIE_3070 = 3070; + public static final int NULL_3071 = 3071; + public static final int WHOOPSIE_3072 = 3072; + public static final int NULL_3073 = 3073; + public static final int WHOOPSIE_3074 = 3074; + public static final int NULL_3075 = 3075; + public static final int WHOOPSIE_3076 = 3076; + public static final int NULL_3077 = 3077; + public static final int WHOOPSIE_3078 = 3078; + public static final int NULL_3079 = 3079; + public static final int WHOOPSIE_3080 = 3080; + public static final int NULL_3081 = 3081; + public static final int WHOOPSIE_3082 = 3082; + public static final int NULL_3083 = 3083; + public static final int WHOOPSIE_3084 = 3084; + public static final int NULL_3085 = 3085; + public static final int WHOOPSIE_3086 = 3086; + public static final int NULL_3087 = 3087; + public static final int WHOOPSIE_3088 = 3088; + public static final int NULL_3089 = 3089; + public static final int WHOOPSIE_3090 = 3090; + public static final int NULL_3091 = 3091; + public static final int WHOOPSIE_3092 = 3092; + public static final int BLACK_DART = 3093; + public static final int BLACK_DARTP = 3094; + public static final int BRONZE_CLAWS = 3095; + public static final int IRON_CLAWS = 3096; + public static final int STEEL_CLAWS = 3097; + public static final int BLACK_CLAWS = 3098; + public static final int MITHRIL_CLAWS = 3099; + public static final int ADAMANT_CLAWS = 3100; + public static final int RUNE_CLAWS = 3101; + public static final int COMBINATION = 3102; + public static final int IOU = 3103; + public static final int SECRET_WAY_MAP = 3104; + public static final int CLIMBING_BOOTS = 3105; + public static final int CLIMBING_BOOTS_3106 = 3106; + public static final int SPIKED_BOOTS = 3107; + public static final int SPIKED_BOOTS_3108 = 3108; + public static final int STONE_BALL = 3109; + public static final int STONE_BALL_3110 = 3110; + public static final int STONE_BALL_3111 = 3111; + public static final int STONE_BALL_3112 = 3112; + public static final int STONE_BALL_3113 = 3113; + public static final int CERTIFICATE_3114 = 3114; + public static final int BRONZE_CLAWS_3115 = 3115; + public static final int IRON_CLAWS_3116 = 3116; + public static final int STEEL_CLAWS_3117 = 3117; + public static final int BLACK_CLAWS_3118 = 3118; + public static final int MITHRIL_CLAWS_3119 = 3119; + public static final int ADAMANT_CLAWS_3120 = 3120; + public static final int RUNE_CLAWS_3121 = 3121; + public static final int GRANITE_SHIELD = 3122; + public static final int SHAIKAHAN_BONES = 3123; + public static final int SHAIKAHAN_BONES_3124 = 3124; + public static final int JOGRE_BONES = 3125; + public static final int JOGRE_BONES_3126 = 3126; + public static final int BURNT_JOGRE_BONES = 3127; + public static final int PASTY_JOGRE_BONES = 3128; + public static final int PASTY_JOGRE_BONES_3129 = 3129; + public static final int MARINATED_J_BONES = 3130; + public static final int PASTY_JOGRE_BONES_3131 = 3131; + public static final int PASTY_JOGRE_BONES_3132 = 3132; + public static final int MARINATED_J_BONES_3133 = 3133; + public static final int GRANITE_SHIELD_3134 = 3134; + public static final int PRISON_KEY = 3135; + public static final int CELL_KEY_1 = 3136; + public static final int CELL_KEY_2 = 3137; + public static final int POTATO_CACTUS = 3138; + public static final int POTATO_CACTUS_3139 = 3139; + public static final int DRAGON_CHAINBODY = 3140; + public static final int DRAGON_CHAINBODY_3141 = 3141; + public static final int RAW_KARAMBWAN = 3142; + public static final int RAW_KARAMBWAN_3143 = 3143; + public static final int COOKED_KARAMBWAN = 3144; + public static final int COOKED_KARAMBWAN_3145 = 3145; + public static final int COOKED_KARAMBWAN_3146 = 3146; + public static final int COOKED_KARAMBWAN_3147 = 3147; + public static final int BURNT_KARAMBWAN = 3148; + public static final int BURNT_KARAMBWAN_3149 = 3149; + public static final int RAW_KARAMBWANJI = 3150; + public static final int KARAMBWANJI = 3151; + public static final int KARAMBWAN_PASTE = 3152; + public static final int KARAMBWAN_PASTE_3153 = 3153; + public static final int KARAMBWAN_PASTE_3154 = 3154; + public static final int KARAMBWANJI_PASTE = 3155; + public static final int KARAMBWANJI_PASTE_3156 = 3156; + public static final int KARAMBWAN_VESSEL = 3157; + public static final int KARAMBWAN_VESSEL_3158 = 3158; + public static final int KARAMBWAN_VESSEL_3159 = 3159; + public static final int KARAMBWAN_VESSEL_3160 = 3160; + public static final int CRAFTING_MANUAL = 3161; + public static final int SLICED_BANANA = 3162; + public static final int SLICED_BANANA_3163 = 3163; + public static final int KARAMJAN_RUM_3164 = 3164; + public static final int KARAMJAN_RUM_3165 = 3165; + public static final int MONKEY_CORPSE = 3166; + public static final int MONKEY_SKIN = 3167; + public static final int SEAWEED_SANDWICH = 3168; + public static final int STUFFED_MONKEY = 3169; + public static final int BRONZE_SPEARKP = 3170; + public static final int IRON_SPEARKP = 3171; + public static final int STEEL_SPEARKP = 3172; + public static final int MITHRIL_SPEARKP = 3173; + public static final int ADAMANT_SPEARKP = 3174; + public static final int RUNE_SPEARKP = 3175; + public static final int DRAGON_SPEARKP = 3176; + public static final int BANANA_LEFT = 3177; + public static final int BANANA_LEFT_3178 = 3178; + public static final int MONKEY_BONES = 3179; + public static final int MONKEY_BONES_3180 = 3180; + public static final int MONKEY_BONES_3181 = 3181; + public static final int MONKEY_BONES_3182 = 3182; + public static final int MONKEY_BONES_3183 = 3183; + public static final int MONKEY_BONES_3184 = 3184; + public static final int MONKEY_BONES_3185 = 3185; + public static final int MONKEY_BONES_3186 = 3186; + public static final int BONES_3187 = 3187; + public static final int CLEANING_CLOTH = 3188; + public static final int CLEANING_CLOTH_3189 = 3189; + public static final int BRONZE_HALBERD = 3190; + public static final int BRONZE_HALBERD_3191 = 3191; + public static final int IRON_HALBERD = 3192; + public static final int IRON_HALBERD_3193 = 3193; + public static final int STEEL_HALBERD = 3194; + public static final int STEEL_HALBERD_3195 = 3195; + public static final int BLACK_HALBERD = 3196; + public static final int BLACK_HALBERD_3197 = 3197; + public static final int MITHRIL_HALBERD = 3198; + public static final int MITHRIL_HALBERD_3199 = 3199; + public static final int ADAMANT_HALBERD = 3200; + public static final int ADAMANT_HALBERD_3201 = 3201; + public static final int RUNE_HALBERD = 3202; + public static final int RUNE_HALBERD_3203 = 3203; + public static final int DRAGON_HALBERD = 3204; + public static final int DRAGON_HALBERD_3205 = 3205; + public static final int KINGS_MESSAGE = 3206; + public static final int IORWERTHS_MESSAGE = 3207; + public static final int CRYSTAL_PENDANT = 3208; + public static final int SULPHUR = 3209; + public static final int SULPHUR_3210 = 3210; + public static final int LIMESTONE = 3211; + public static final int LIMESTONE_3212 = 3212; + public static final int QUICKLIME = 3213; + public static final int POT_OF_QUICKLIME = 3214; + public static final int GROUND_SULPHUR = 3215; + public static final int BARREL_3216 = 3216; + public static final int BARREL_3217 = 3217; + public static final int BARREL_BOMB = 3218; + public static final int BARREL_BOMB_3219 = 3219; + public static final int BARREL_OF_COALTAR = 3220; + public static final int BARREL_OF_NAPHTHA = 3221; + public static final int NAPHTHA_MIX = 3222; + public static final int NAPHTHA_MIX_3223 = 3223; + public static final int CLOTH = 3224; + public static final int CLOTH_3225 = 3225; + public static final int RAW_RABBIT = 3226; + public static final int RAW_RABBIT_3227 = 3227; + public static final int COOKED_RABBIT = 3228; + public static final int COOKED_RABBIT_3229 = 3229; + public static final int BIG_BOOK_OF_BANGS = 3230; + public static final int SYMBOL1 = 3231; + public static final int SYMBOL1_3232 = 3232; + public static final int SYMBOL2 = 3233; + public static final int SYMBOL2_3234 = 3234; + public static final int SYMBOL3 = 3235; + public static final int SYMBOL3_3236 = 3236; + public static final int SYMBOL4 = 3237; + public static final int SYMBOL4_3238 = 3238; + public static final int BARK = 3239; + public static final int BARK_3240 = 3240; + public static final int MAN = 3241; + public static final int WHOOPSIE_3242 = 3242; + public static final int FARMER = 3243; + public static final int WHOOPSIE_3244 = 3244; + public static final int WARRIOR_WOMAN = 3245; + public static final int WHOOPSIE_3246 = 3246; + public static final int ROGUE = 3247; + public static final int WHOOPSIE_3248 = 3248; + public static final int GUARD = 3249; + public static final int WHOOPSIE_3250 = 3250; + public static final int KNIGHT_OF_ARDOUGNE = 3251; + public static final int WHOOPSIE_3252 = 3252; + public static final int WATCHMAN = 3253; + public static final int WHOOPSIE_3254 = 3254; + public static final int PALADIN = 3255; + public static final int WHOOPSIE_3256 = 3256; + public static final int GNOME = 3257; + public static final int WHOOPSIE_3258 = 3258; + public static final int HERO = 3259; + public static final int WHOOPSIE_3260 = 3260; + public static final int GOUTWEED = 3261; + public static final int TROLL_THISTLE = 3262; + public static final int DRIED_THISTLE = 3263; + public static final int GROUND_THISTLE = 3264; + public static final int TROLL_POTION = 3265; + public static final int DRUNK_PARROT = 3266; + public static final int DIRTY_ROBE = 3267; + public static final int FAKE_MAN = 3268; + public static final int STOREROOM_KEY = 3269; + public static final int ALCOCHUNKS = 3270; + public static final int NULL_3271 = 3271; + public static final int WHOOPSIE_3272 = 3272; + public static final int NULL_3273 = 3273; + public static final int NULL_3274 = 3274; + public static final int NULL_3275 = 3275; + public static final int NULL_3276 = 3276; + public static final int NULL_3277 = 3277; + public static final int NULL_3278 = 3278; + public static final int NULL_3279 = 3279; + public static final int NULL_3280 = 3280; + public static final int NULL_3281 = 3281; + public static final int NULL_3282 = 3282; + public static final int NULL_3283 = 3283; + public static final int NULL_3284 = 3284; + public static final int NULL_3285 = 3285; + public static final int NULL_3286 = 3286; + public static final int NULL_3287 = 3287; + public static final int NULL_3288 = 3288; + public static final int NULL_3289 = 3289; + public static final int NULL_3290 = 3290; + public static final int NULL_3291 = 3291; + public static final int NULL_3292 = 3292; + public static final int NULL_3293 = 3293; + public static final int NULL_3294 = 3294; + public static final int NULL_3295 = 3295; + public static final int NULL_3296 = 3296; + public static final int NULL_3297 = 3297; + public static final int NULL_3298 = 3298; + public static final int NULL_3299 = 3299; + public static final int NULL_3300 = 3300; + public static final int NULL_3301 = 3301; + public static final int NULL_3302 = 3302; + public static final int NULL_3303 = 3303; + public static final int NULL_3304 = 3304; + public static final int NULL_3305 = 3305; + public static final int NULL_3306 = 3306; + public static final int NULL_3307 = 3307; + public static final int NULL_3308 = 3308; + public static final int NULL_3309 = 3309; + public static final int NULL_3310 = 3310; + public static final int NULL_3311 = 3311; + public static final int NULL_3312 = 3312; + public static final int NULL_3313 = 3313; + public static final int NULL_3314 = 3314; + public static final int NULL_3315 = 3315; + public static final int NULL_3316 = 3316; + public static final int NULL_3317 = 3317; + public static final int NULL_3318 = 3318; + public static final int NULL_3319 = 3319; + public static final int NULL_3320 = 3320; + public static final int NULL_3321 = 3321; + public static final int NULL_3322 = 3322; + public static final int NULL_3323 = 3323; + public static final int NULL_3324 = 3324; + public static final int VAMPIRE_DUST = 3325; + public static final int VAMPIRE_DUST_3326 = 3326; + public static final int MYRE_SNELM = 3327; + public static final int MYRE_SNELM_3328 = 3328; + public static final int BLOODNTAR_SNELM = 3329; + public static final int BLOODNTAR_SNELM_3330 = 3330; + public static final int OCHRE_SNELM = 3331; + public static final int OCHRE_SNELM_3332 = 3332; + public static final int BRUISE_BLUE_SNELM = 3333; + public static final int BRUISE_BLUE_SNELM_3334 = 3334; + public static final int BROKEN_BARK_SNELM = 3335; + public static final int BROKEN_BARK_SNELM_3336 = 3336; + public static final int MYRE_SNELM_3337 = 3337; + public static final int MYRE_SNELM_3338 = 3338; + public static final int BLOODNTAR_SNELM_3339 = 3339; + public static final int BLOODNTAR_SNELM_3340 = 3340; + public static final int OCHRE_SNELM_3341 = 3341; + public static final int OCHRE_SNELM_3342 = 3342; + public static final int BRUISE_BLUE_SNELM_3343 = 3343; + public static final int BRUISE_BLUE_SNELM_3344 = 3344; + public static final int BLAMISH_MYRE_SHELL = 3345; + public static final int BLAMISH_MYRE_SHELL_3346 = 3346; + public static final int BLAMISH_RED_SHELL = 3347; + public static final int BLAMISH_RED_SHELL_3348 = 3348; + public static final int BLAMISH_OCHRE_SHELL = 3349; + public static final int BLAMISH_OCHRE_SHELL_3350 = 3350; + public static final int BLAMISH_BLUE_SHELL = 3351; + public static final int BLAMISH_BLUE_SHELL_3352 = 3352; + public static final int BLAMISH_BARK_SHELL = 3353; + public static final int BLAMISH_BARK_SHELL_3354 = 3354; + public static final int BLAMISH_MYRE_SHELL_3355 = 3355; + public static final int BLAMISH_MYRE_SHELL_3356 = 3356; + public static final int BLAMISH_RED_SHELL_3357 = 3357; + public static final int BLAMISH_RED_SHELL_3358 = 3358; + public static final int BLAMISH_OCHRE_SHELL_3359 = 3359; + public static final int BLAMISH_OCHRE_SHELL_3360 = 3360; + public static final int BLAMISH_BLUE_SHELL_3361 = 3361; + public static final int BLAMISH_BLUE_SHELL_3362 = 3362; + public static final int THIN_SNAIL = 3363; + public static final int THIN_SNAIL_3364 = 3364; + public static final int LEAN_SNAIL = 3365; + public static final int LEAN_SNAIL_3366 = 3366; + public static final int FAT_SNAIL = 3367; + public static final int FAT_SNAIL_3368 = 3368; + public static final int THIN_SNAIL_MEAT = 3369; + public static final int THIN_SNAIL_MEAT_3370 = 3370; + public static final int LEAN_SNAIL_MEAT = 3371; + public static final int LEAN_SNAIL_MEAT_3372 = 3372; + public static final int FAT_SNAIL_MEAT = 3373; + public static final int FAT_SNAIL_MEAT_3374 = 3374; + public static final int BURNT_SNAIL = 3375; + public static final int BURNT_SNAIL_3376 = 3376; + public static final int SAMPLE_BOTTLE = 3377; + public static final int SAMPLE_BOTTLE_3378 = 3378; + public static final int SLIMY_EEL = 3379; + public static final int SLIMY_EEL_3380 = 3380; + public static final int COOKED_SLIMY_EEL = 3381; + public static final int COOKED_SLIMY_EEL_3382 = 3382; + public static final int BURNT_EEL = 3383; + public static final int BURNT_EEL_3384 = 3384; + public static final int SPLITBARK_HELM = 3385; + public static final int SPLITBARK_HELM_3386 = 3386; + public static final int SPLITBARK_BODY = 3387; + public static final int SPLITBARK_BODY_3388 = 3388; + public static final int SPLITBARK_LEGS = 3389; + public static final int SPLITBARK_LEGS_3390 = 3390; + public static final int SPLITBARK_GAUNTLETS = 3391; + public static final int SPLITBARK_GAUNTLETS_3392 = 3392; + public static final int SPLITBARK_GREAVES = 3393; + public static final int SPLITBARK_GREAVES_3394 = 3394; + public static final int DIARY_3395 = 3395; + public static final int LOAR_REMAINS = 3396; + public static final int LOAR_REMAINS_3397 = 3397; + public static final int PHRIN_REMAINS = 3398; + public static final int PHRIN_REMAINS_3399 = 3399; + public static final int RIYL_REMAINS = 3400; + public static final int RIYL_REMAINS_3401 = 3401; + public static final int ASYN_REMAINS = 3402; + public static final int ASYN_REMAINS_3403 = 3403; + public static final int FIYR_REMAINS = 3404; + public static final int FIYR_REMAINS_3405 = 3405; + public static final int UNFINISHED_POTION_3406 = 3406; + public static final int UNFINISHED_POTION_3407 = 3407; + public static final int SERUM_207_4 = 3408; + public static final int SERUM_207_4_3409 = 3409; + public static final int SERUM_207_3 = 3410; + public static final int SERUM_207_3_3411 = 3411; + public static final int SERUM_207_2 = 3412; + public static final int SERUM_207_2_3413 = 3413; + public static final int SERUM_207_1 = 3414; + public static final int SERUM_207_1_3415 = 3415; + public static final int SERUM_207P_4 = 3416; + public static final int SERUM_207P_3 = 3417; + public static final int SERUM_207P_2 = 3418; + public static final int SERUM_207P_1 = 3419; + public static final int LIMESTONE_BRICK = 3420; + public static final int LIMESTONE_BRICK_3421 = 3421; + public static final int OLIVE_OIL4 = 3422; + public static final int OLIVE_OIL4_3423 = 3423; + public static final int OLIVE_OIL3 = 3424; + public static final int OLIVE_OIL3_3425 = 3425; + public static final int OLIVE_OIL2 = 3426; + public static final int OLIVE_OIL2_3427 = 3427; + public static final int OLIVE_OIL1 = 3428; + public static final int OLIVE_OIL1_3429 = 3429; + public static final int SACRED_OIL4 = 3430; + public static final int SACRED_OIL4_3431 = 3431; + public static final int SACRED_OIL3 = 3432; + public static final int SACRED_OIL3_3433 = 3433; + public static final int SACRED_OIL2 = 3434; + public static final int SACRED_OIL2_3435 = 3435; + public static final int SACRED_OIL1 = 3436; + public static final int SACRED_OIL1_3437 = 3437; + public static final int PYRE_LOGS = 3438; + public static final int PYRE_LOGS_3439 = 3439; + public static final int OAK_PYRE_LOGS = 3440; + public static final int OAK_PYRE_LOGS_3441 = 3441; + public static final int WILLOW_PYRE_LOGS = 3442; + public static final int WILLOW_PYRE_LOGS_3443 = 3443; + public static final int MAPLE_PYRE_LOGS = 3444; + public static final int MAPLE_PYRE_LOGS_3445 = 3445; + public static final int YEW_PYRE_LOGS = 3446; + public static final int YEW_PYRE_LOGS_3447 = 3447; + public static final int MAGIC_PYRE_LOGS = 3448; + public static final int MAGIC_PYRE_LOGS_3449 = 3449; + public static final int BRONZE_KEY_RED = 3450; + public static final int BRONZE_KEY_BROWN = 3451; + public static final int BRONZE_KEY_CRIMSON = 3452; + public static final int BRONZE_KEY_BLACK = 3453; + public static final int BRONZE_KEY_PURPLE = 3454; + public static final int STEEL_KEY_RED = 3455; + public static final int STEEL_KEY_BROWN = 3456; + public static final int STEEL_KEY_CRIMSON = 3457; + public static final int STEEL_KEY_BLACK = 3458; + public static final int STEEL_KEY_PURPLE = 3459; + public static final int BLACK_KEY_RED = 3460; + public static final int BLACK_KEY_BROWN = 3461; + public static final int BLACK_KEY_CRIMSON = 3462; + public static final int BLACK_KEY_BLACK = 3463; + public static final int BLACK_KEY_PURPLE = 3464; + public static final int SILVER_KEY_RED = 3465; + public static final int SILVER_KEY_BROWN = 3466; + public static final int SILVER_KEY_CRIMSON = 3467; + public static final int SILVER_KEY_BLACK = 3468; + public static final int SILVER_KEY_PURPLE = 3469; + public static final int FINE_CLOTH = 3470; + public static final int FINE_CLOTH_3471 = 3471; + public static final int BLACK_PLATESKIRT_T = 3472; + public static final int BLACK_PLATESKIRT_G = 3473; + public static final int ADAM_PLATESKIRT_T = 3474; + public static final int ADAM_PLATESKIRT_G = 3475; + public static final int RUNE_PLATESKIRT_G = 3476; + public static final int RUNE_PLATESKIRT_T = 3477; + public static final int ZAMORAK_PLATESKIRT = 3478; + public static final int SARADOMIN_SKIRT = 3479; + public static final int GUTHIX_PLATESKIRT = 3480; + public static final int GILDED_PLATEBODY = 3481; + public static final int GILDED_PLATEBODY_3482 = 3482; + public static final int GILDED_PLATELEGS = 3483; + public static final int GILDED_PLATELEGS_3484 = 3484; + public static final int GILDED_PLATESKIRT = 3485; + public static final int GILDED_FULL_HELM = 3486; + public static final int GILDED_FULL_HELM_3487 = 3487; + public static final int GILDED_KITESHIELD = 3488; + public static final int GILDED_KITESHIELD_3489 = 3489; + public static final int CLUE_SCROLL_3490 = 3490; + public static final int CLUE_SCROLL_3491 = 3491; + public static final int CLUE_SCROLL_3492 = 3492; + public static final int CLUE_SCROLL_3493 = 3493; + public static final int CLUE_SCROLL_3494 = 3494; + public static final int CLUE_SCROLL_3495 = 3495; + public static final int CLUE_SCROLL_3496 = 3496; + public static final int CLUE_SCROLL_3497 = 3497; + public static final int CLUE_SCROLL_3498 = 3498; + public static final int CLUE_SCROLL_3499 = 3499; + public static final int CLUE_SCROLL_3500 = 3500; + public static final int CLUE_SCROLL_3501 = 3501; + public static final int CLUE_SCROLL_3502 = 3502; + public static final int CLUE_SCROLL_3503 = 3503; + public static final int CLUE_SCROLL_3504 = 3504; + public static final int CLUE_SCROLL_3505 = 3505; + public static final int CLUE_SCROLL_3506 = 3506; + public static final int CLUE_SCROLL_3507 = 3507; + public static final int CLUE_SCROLL_3508 = 3508; + public static final int CLUE_SCROLL_3509 = 3509; + public static final int CLUE_SCROLL_3510 = 3510; + public static final int CASKET_3511 = 3511; + public static final int CLUE_SCROLL_3512 = 3512; + public static final int CLUE_SCROLL_3513 = 3513; + public static final int CLUE_SCROLL_3514 = 3514; + public static final int CLUE_SCROLL_3515 = 3515; + public static final int CLUE_SCROLL_3516 = 3516; + public static final int CASKET_3517 = 3517; + public static final int CLUE_SCROLL_3518 = 3518; + public static final int CASKET_3519 = 3519; + public static final int CLUE_SCROLL_3520 = 3520; + public static final int CASKET_3521 = 3521; + public static final int CLUE_SCROLL_3522 = 3522; + public static final int CASKET_3523 = 3523; + public static final int CLUE_SCROLL_3524 = 3524; + public static final int CLUE_SCROLL_3525 = 3525; + public static final int CLUE_SCROLL_3526 = 3526; + public static final int CASKET_3527 = 3527; + public static final int CLUE_SCROLL_3528 = 3528; + public static final int CASKET_3529 = 3529; + public static final int CLUE_SCROLL_3530 = 3530; + public static final int CASKET_3531 = 3531; + public static final int CLUE_SCROLL_3532 = 3532; + public static final int CASKET_3533 = 3533; + public static final int CLUE_SCROLL_3534 = 3534; + public static final int CASKET_3535 = 3535; + public static final int CLUE_SCROLL_3536 = 3536; + public static final int CASKET_3537 = 3537; + public static final int CLUE_SCROLL_3538 = 3538; + public static final int CASKET_3539 = 3539; + public static final int CLUE_SCROLL_3540 = 3540; + public static final int CASKET_3541 = 3541; + public static final int CLUE_SCROLL_3542 = 3542; + public static final int CASKET_3543 = 3543; + public static final int CLUE_SCROLL_3544 = 3544; + public static final int CASKET_3545 = 3545; + public static final int CLUE_SCROLL_3546 = 3546; + public static final int CASKET_3547 = 3547; + public static final int CLUE_SCROLL_3548 = 3548; + public static final int CASKET_3549 = 3549; + public static final int CLUE_SCROLL_3550 = 3550; + public static final int CASKET_3551 = 3551; + public static final int CLUE_SCROLL_3552 = 3552; + public static final int CASKET_3553 = 3553; + public static final int CLUE_SCROLL_3554 = 3554; + public static final int CASKET_3555 = 3555; + public static final int CLUE_SCROLL_3556 = 3556; + public static final int CASKET_3557 = 3557; + public static final int CLUE_SCROLL_3558 = 3558; + public static final int CASKET_3559 = 3559; + public static final int CLUE_SCROLL_3560 = 3560; + public static final int CASKET_3561 = 3561; + public static final int CLUE_SCROLL_3562 = 3562; + public static final int CASKET_3563 = 3563; + public static final int CLUE_SCROLL_3564 = 3564; + public static final int PUZZLE_BOX_3565 = 3565; + public static final int CLUE_SCROLL_3566 = 3566; + public static final int PUZZLE_BOX_3567 = 3567; + public static final int CLUE_SCROLL_3568 = 3568; + public static final int PUZZLE_BOX_3569 = 3569; + public static final int CLUE_SCROLL_3570 = 3570; + public static final int PUZZLE_BOX_3571 = 3571; + public static final int CLUE_SCROLL_3572 = 3572; + public static final int CLUE_SCROLL_3573 = 3573; + public static final int CLUE_SCROLL_3574 = 3574; + public static final int CLUE_SCROLL_3575 = 3575; + public static final int PUZZLE_BOX_3576 = 3576; + public static final int CLUE_SCROLL_3577 = 3577; + public static final int PUZZLE_BOX_3578 = 3578; + public static final int CLUE_SCROLL_3579 = 3579; + public static final int CLUE_SCROLL_3580 = 3580; + public static final int CASKET_3581 = 3581; + public static final int CLUE_SCROLL_3582 = 3582; + public static final int CASKET_3583 = 3583; + public static final int CLUE_SCROLL_3584 = 3584; + public static final int CASKET_3585 = 3585; + public static final int CLUE_SCROLL_3586 = 3586; + public static final int CASKET_3587 = 3587; + public static final int CLUE_SCROLL_3588 = 3588; + public static final int CASKET_3589 = 3589; + public static final int CLUE_SCROLL_3590 = 3590; + public static final int CASKET_3591 = 3591; + public static final int CLUE_SCROLL_3592 = 3592; + public static final int CASKET_3593 = 3593; + public static final int CLUE_SCROLL_3594 = 3594; + public static final int CASKET_3595 = 3595; + public static final int CLUE_SCROLL_3596 = 3596; + public static final int CASKET_3597 = 3597; + public static final int CLUE_SCROLL_3598 = 3598; + public static final int CLUE_SCROLL_3599 = 3599; + public static final int CASKET_3600 = 3600; + public static final int CLUE_SCROLL_3601 = 3601; + public static final int CLUE_SCROLL_3602 = 3602; + public static final int CASKET_3603 = 3603; + public static final int CLUE_SCROLL_3604 = 3604; + public static final int CLUE_SCROLL_3605 = 3605; + public static final int KEY_3606 = 3606; + public static final int CLUE_SCROLL_3607 = 3607; + public static final int KEY_3608 = 3608; + public static final int CLUE_SCROLL_3609 = 3609; + public static final int CLUE_SCROLL_3610 = 3610; + public static final int CLUE_SCROLL_3611 = 3611; + public static final int CLUE_SCROLL_3612 = 3612; + public static final int CLUE_SCROLL_3613 = 3613; + public static final int CLUE_SCROLL_3614 = 3614; + public static final int CLUE_SCROLL_3615 = 3615; + public static final int CLUE_SCROLL_3616 = 3616; + public static final int CLUE_SCROLL_3617 = 3617; + public static final int CLUE_SCROLL_3618 = 3618; + public static final int SLIDING_PIECE_3619 = 3619; + public static final int SLIDING_PIECE_3620 = 3620; + public static final int SLIDING_PIECE_3621 = 3621; + public static final int SLIDING_PIECE_3622 = 3622; + public static final int SLIDING_PIECE_3623 = 3623; + public static final int SLIDING_PIECE_3624 = 3624; + public static final int SLIDING_PIECE_3625 = 3625; + public static final int SLIDING_PIECE_3626 = 3626; + public static final int SLIDING_PIECE_3627 = 3627; + public static final int SLIDING_PIECE_3628 = 3628; + public static final int SLIDING_PIECE_3629 = 3629; + public static final int SLIDING_PIECE_3630 = 3630; + public static final int SLIDING_PIECE_3631 = 3631; + public static final int SLIDING_PIECE_3632 = 3632; + public static final int SLIDING_PIECE_3633 = 3633; + public static final int SLIDING_PIECE_3634 = 3634; + public static final int SLIDING_PIECE_3635 = 3635; + public static final int SLIDING_PIECE_3636 = 3636; + public static final int SLIDING_PIECE_3637 = 3637; + public static final int SLIDING_PIECE_3638 = 3638; + public static final int SLIDING_PIECE_3639 = 3639; + public static final int SLIDING_PIECE_3640 = 3640; + public static final int SLIDING_PIECE_3641 = 3641; + public static final int SLIDING_PIECE_3642 = 3642; + public static final int SLIDING_PIECE_3643 = 3643; + public static final int SLIDING_PIECE_3644 = 3644; + public static final int SLIDING_PIECE_3645 = 3645; + public static final int SLIDING_PIECE_3646 = 3646; + public static final int SLIDING_PIECE_3647 = 3647; + public static final int SLIDING_PIECE_3648 = 3648; + public static final int SLIDING_PIECE_3649 = 3649; + public static final int SLIDING_PIECE_3650 = 3650; + public static final int SLIDING_PIECE_3651 = 3651; + public static final int SLIDING_PIECE_3652 = 3652; + public static final int SLIDING_PIECE_3653 = 3653; + public static final int SLIDING_PIECE_3654 = 3654; + public static final int SLIDING_PIECE_3655 = 3655; + public static final int SLIDING_PIECE_3656 = 3656; + public static final int SLIDING_PIECE_3657 = 3657; + public static final int SLIDING_PIECE_3658 = 3658; + public static final int SLIDING_PIECE_3659 = 3659; + public static final int SLIDING_PIECE_3660 = 3660; + public static final int SLIDING_PIECE_3661 = 3661; + public static final int SLIDING_PIECE_3662 = 3662; + public static final int SLIDING_PIECE_3663 = 3663; + public static final int SLIDING_PIECE_3664 = 3664; + public static final int SLIDING_PIECE_3665 = 3665; + public static final int SLIDING_PIECE_3666 = 3666; + public static final int LIFEBOAT = 3667; + public static final int BLACK_PLATESKIRT_T_3668 = 3668; + public static final int BLACK_PLATESKIRT_G_3669 = 3669; + public static final int ADAM_PLATESKIRT_T_3670 = 3670; + public static final int ADAM_PLATESKIRT_G_3671 = 3671; + public static final int RUNE_PLATESKIRT_G_3672 = 3672; + public static final int RUNE_PLATESKIRT_T_3673 = 3673; + public static final int ZAMORAK_PLATESKIRT_3674 = 3674; + public static final int SARADOMIN_SKIRT_3675 = 3675; + public static final int GUTHIX_PLATESKIRT_3676 = 3676; + public static final int GILDED_PLATESKIRT_3677 = 3677; + public static final int FLAMTAER_HAMMER = 3678; + public static final int FLAMTAER_HAMMER_3679 = 3679; + public static final int SHOE = 3680; + public static final int SHOE_3681 = 3681; + public static final int SHOE_3682 = 3682; + public static final int SHOE_3683 = 3683; + public static final int SHOE_3684 = 3684; + public static final int SHOE_3685 = 3685; + public static final int FREMENNIK = 3686; + public static final int WHOOPSIE_3687 = 3687; + public static final int UNSTRUNG_LYRE = 3688; + public static final int LYRE = 3689; + public static final int ENCHANTED_LYRE = 3690; + public static final int ENCHANTED_LYRE1 = 3691; + public static final int BRANCH = 3692; + public static final int GOLDEN_FLEECE = 3693; + public static final int GOLDEN_WOOL = 3694; + public static final int PET_ROCK = 3695; + public static final int HUNTERS_TALISMAN = 3696; + public static final int HUNTERS_TALISMAN_3697 = 3697; + public static final int EXOTIC_FLOWER = 3698; + public static final int FREMENNIK_BALLAD = 3699; + public static final int STURDY_BOOTS = 3700; + public static final int HUNTERS_MAP = 3701; + public static final int CUSTOM_BOW_STRING = 3702; + public static final int UNUSUAL_FISH = 3703; + public static final int SEA_FISHING_MAP = 3704; + public static final int WEATHER_FORECAST = 3705; + public static final int CHAMPIONS_TOKEN = 3706; + public static final int LEGENDARY_COCKTAIL = 3707; + public static final int FISCAL_STATEMENT = 3708; + public static final int PROMISSORY_NOTE = 3709; + public static final int WARRIORS_CONTRACT = 3710; + public static final int KEG_OF_BEER = 3711; + public static final int LOW_ALCOHOL_KEG = 3712; + public static final int STRANGE_OBJECT = 3713; + public static final int LIT_STRANGE_OBJECT = 3714; + public static final int RED_DISK = 3715; + public static final int RED_DISK_3716 = 3716; + public static final int NULL_3717 = 3717; + public static final int MAGNET_3718 = 3718; + public static final int BLUE_THREAD = 3719; + public static final int SMALL_PICK = 3720; + public static final int TOY_SHIP = 3721; + public static final int FULL_BUCKET = 3722; + public static final int _45THS_FULL_BUCKET = 3723; + public static final int _35THS_FULL_BUCKET = 3724; + public static final int _25THS_FULL_BUCKET = 3725; + public static final int _15THS_FULL_BUCKET = 3726; + public static final int EMPTY_BUCKET = 3727; + public static final int FROZEN_BUCKET = 3728; + public static final int FULL_JUG = 3729; + public static final int _23RDS_FULL_JUG = 3730; + public static final int _13RDS_FULL_JUG = 3731; + public static final int EMPTY_JUG = 3732; + public static final int FROZEN_JUG = 3733; + public static final int VASE_3734 = 3734; + public static final int VASE_OF_WATER = 3735; + public static final int FROZEN_VASE = 3736; + public static final int VASE_LID = 3737; + public static final int SEALED_VASE = 3738; + public static final int SEALED_VASE_3739 = 3739; + public static final int SEALED_VASE_3740 = 3740; + public static final int FROZEN_KEY = 3741; + public static final int RED_HERRING = 3742; + public static final int RED_DISK_3743 = 3743; + public static final int WOODEN_DISK = 3744; + public static final int SEERS_KEY = 3745; + public static final int STICKY_RED_GOOP = 3746; + public static final int STICKY_RED_GOOP_3747 = 3747; + public static final int FREMENNIK_HELM = 3748; + public static final int ARCHER_HELM = 3749; + public static final int ARCHER_HELM_3750 = 3750; + public static final int BERSERKER_HELM = 3751; + public static final int BERSERKER_HELM_3752 = 3752; + public static final int WARRIOR_HELM = 3753; + public static final int WARRIOR_HELM_3754 = 3754; + public static final int FARSEER_HELM = 3755; + public static final int FARSEER_HELM_3756 = 3756; + public static final int FREMENNIK_BLADE = 3757; + public static final int FREMENNIK_SHIELD = 3758; + public static final int FREMENNIK_CLOAK = 3759; + public static final int FREMENNIK_CLOAK_3760 = 3760; + public static final int FREMENNIK_CLOAK_3761 = 3761; + public static final int FREMENNIK_CLOAK_3762 = 3762; + public static final int FREMENNIK_CLOAK_3763 = 3763; + public static final int FREMENNIK_CLOAK_3764 = 3764; + public static final int FREMENNIK_CLOAK_3765 = 3765; + public static final int FREMENNIK_CLOAK_3766 = 3766; + public static final int FREMENNIK_SHIRT = 3767; + public static final int FREMENNIK_SHIRT_3768 = 3768; + public static final int FREMENNIK_SHIRT_3769 = 3769; + public static final int FREMENNIK_SHIRT_3770 = 3770; + public static final int FREMENNIK_SHIRT_3771 = 3771; + public static final int FREMENNIK_SHIRT_3772 = 3772; + public static final int FREMENNIK_SHIRT_3773 = 3773; + public static final int FREMENNIK_SHIRT_3774 = 3774; + public static final int FREMENNIK_SHIRT_3775 = 3775; + public static final int FREMENNIK_SHIRT_3776 = 3776; + public static final int FREMENNIK_CLOAK_3777 = 3777; + public static final int FREMENNIK_CLOAK_3778 = 3778; + public static final int FREMENNIK_CLOAK_3779 = 3779; + public static final int FREMENNIK_CLOAK_3780 = 3780; + public static final int FREMENNIK_CLOAK_3781 = 3781; + public static final int FREMENNIK_CLOAK_3782 = 3782; + public static final int FREMENNIK_CLOAK_3783 = 3783; + public static final int FREMENNIK_CLOAK_3784 = 3784; + public static final int FREMENNIK_CLOAK_3785 = 3785; + public static final int FREMENNIK_CLOAK_3786 = 3786; + public static final int FREMENNIK_CLOAK_3787 = 3787; + public static final int FREMENNIK_CLOAK_3788 = 3788; + public static final int FREMENNIK_CLOAK_3789 = 3789; + public static final int FREMENNIK_CLOAK_3790 = 3790; + public static final int FREMENNIK_BOOTS = 3791; + public static final int FREMENNIK_BOOTS_3792 = 3792; + public static final int FREMENNIK_ROBE = 3793; + public static final int FREMENNIK_ROBE_3794 = 3794; + public static final int FREMENNIK_SKIRT = 3795; + public static final int FREMENNIK_SKIRT_3796 = 3796; + public static final int FREMENNIK_HAT = 3797; + public static final int FREMENNIK_HAT_3798 = 3798; + public static final int GLOVES_3799 = 3799; + public static final int GLOVES_3800 = 3800; + public static final int KEG_OF_BEER_3801 = 3801; + public static final int KEG_OF_BEER_3802 = 3802; + public static final int BEER_3803 = 3803; + public static final int BEER_3804 = 3804; + public static final int TANKARD = 3805; + public static final int TANKARD_3806 = 3806; + public static final int NULL_3807 = 3807; + public static final int NULL_3808 = 3808; + public static final int NULL_3809 = 3809; + public static final int NULL_3810 = 3810; + public static final int NULL_3811 = 3811; + public static final int NULL_3812 = 3812; + public static final int NULL_3813 = 3813; + public static final int NULL_3814 = 3814; + public static final int NULL_3815 = 3815; + public static final int NULL_3816 = 3816; + public static final int NULL_3817 = 3817; + public static final int NULL_3818 = 3818; + public static final int NULL_3819 = 3819; + public static final int NULL_3820 = 3820; + public static final int NULL_3821 = 3821; + public static final int NULL_3822 = 3822; + public static final int NULL_3823 = 3823; + public static final int NULL_3824 = 3824; + public static final int NULL_3825 = 3825; + public static final int NULL_3826 = 3826; + public static final int TORN_PAGE_1S = 3827; + public static final int TORN_PAGE_2S = 3828; + public static final int TORN_PAGE_3S = 3829; + public static final int TORN_PAGE_4S = 3830; + public static final int TORN_PAGE_1Z = 3831; + public static final int TORN_PAGE_2Z = 3832; + public static final int TORN_PAGE_3Z = 3833; + public static final int TORN_PAGE_4Z = 3834; + public static final int TORN_PAGE_1G = 3835; + public static final int TORN_PAGE_2G = 3836; + public static final int TORN_PAGE_3G = 3837; + public static final int TORN_PAGE_4G = 3838; + public static final int DAMAGED_BOOK = 3839; + public static final int HOLY_BOOK = 3840; + public static final int DAMAGED_BOOK_3841 = 3841; + public static final int UNHOLY_BOOK = 3842; + public static final int DAMAGED_BOOK_3843 = 3843; + public static final int BOOK_OF_BALANCE = 3844; + public static final int JOURNAL_3845 = 3845; + public static final int DIARY_3846 = 3846; + public static final int MANUAL = 3847; + public static final int LIGHTHOUSE_KEY = 3848; + public static final int RUSTY_CASKET = 3849; + public static final int NULL_3850 = 3850; + public static final int WHOOPSIE_3851 = 3851; + public static final int UNHOLY_SYMBOL_3852 = 3852; + public static final int GAMES_NECKLACE8 = 3853; + public static final int GAMES_NECKLACE8_3854 = 3854; + public static final int GAMES_NECKLACE7 = 3855; + public static final int GAMES_NECKLACE7_3856 = 3856; + public static final int GAMES_NECKLACE6 = 3857; + public static final int GAMES_NECKLACE6_3858 = 3858; + public static final int GAMES_NECKLACE5 = 3859; + public static final int GAMES_NECKLACE5_3860 = 3860; + public static final int GAMES_NECKLACE4 = 3861; + public static final int GAMES_NECKLACE4_3862 = 3862; + public static final int GAMES_NECKLACE3 = 3863; + public static final int GAMES_NECKLACE3_3864 = 3864; + public static final int GAMES_NECKLACE2 = 3865; + public static final int GAMES_NECKLACE2_3866 = 3866; + public static final int GAMES_NECKLACE1 = 3867; + public static final int GAMES_NECKLACE1_3868 = 3868; + public static final int BOARD_GAME_PIECE = 3869; + public static final int BOARD_GAME_PIECE_3870 = 3870; + public static final int BOARD_GAME_PIECE_3871 = 3871; + public static final int BOARD_GAME_PIECE_3872 = 3872; + public static final int BOARD_GAME_PIECE_3873 = 3873; + public static final int BOARD_GAME_PIECE_3874 = 3874; + public static final int BOARD_GAME_PIECE_3875 = 3875; + public static final int BOARD_GAME_PIECE_3876 = 3876; + public static final int BOARD_GAME_PIECE_3877 = 3877; + public static final int BOARD_GAME_PIECE_3878 = 3878; + public static final int BOARD_GAME_PIECE_3879 = 3879; + public static final int BOARD_GAME_PIECE_3880 = 3880; + public static final int BOARD_GAME_PIECE_3881 = 3881; + public static final int BOARD_GAME_PIECE_3882 = 3882; + public static final int BOARD_GAME_PIECE_3883 = 3883; + public static final int BOARD_GAME_PIECE_3884 = 3884; + public static final int BOARD_GAME_PIECE_3885 = 3885; + public static final int BOARD_GAME_PIECE_3886 = 3886; + public static final int BOARD_GAME_PIECE_3887 = 3887; + public static final int BOARD_GAME_PIECE_3888 = 3888; + public static final int BOARD_GAME_PIECE_3889 = 3889; + public static final int BOARD_GAME_PIECE_3890 = 3890; + public static final int BOARD_GAME_PIECE_3891 = 3891; + public static final int BOARD_GAME_PIECE_3892 = 3892; + public static final int STOOL = 3893; + public static final int AWFUL_ANTHEM = 3894; + public static final int GOOD_ANTHEM = 3895; + public static final int TREATY = 3896; + public static final int GIANT_NIB = 3897; + public static final int GIANT_PEN = 3898; + public static final int IRON_SICKLE = 3899; + public static final int IRON_SICKLE_3900 = 3900; + public static final int GHRIMS_BOOK = 3901; + public static final int SLIDING_BUTTON = 3902; + public static final int SLIDING_BUTTON_3903 = 3903; + public static final int SLIDING_BUTTON_3904 = 3904; + public static final int WHOOPSIE_3905 = 3905; + public static final int SLIDING_BUTTON_3906 = 3906; + public static final int WHOOPSIE_3907 = 3907; + public static final int SLIDING_BUTTON_3908 = 3908; + public static final int WHOOPSIE_3909 = 3909; + public static final int SLIDING_BUTTON_3910 = 3910; + public static final int WHOOPSIE_3911 = 3911; + public static final int SLIDING_BUTTON_3912 = 3912; + public static final int WHOOPSIE_3913 = 3913; + public static final int SLIDING_BUTTON_3914 = 3914; + public static final int WHOOPSIE_3915 = 3915; + public static final int SLIDING_BUTTON_3916 = 3916; + public static final int WHOOPSIE_3917 = 3917; + public static final int SLIDING_BUTTON_3918 = 3918; + public static final int WHOOPSIE_3919 = 3919; + public static final int SLIDING_BUTTON_3920 = 3920; + public static final int WHOOPSIE_3921 = 3921; + public static final int SLIDING_BUTTON_3922 = 3922; + public static final int WHOOPSIE_3923 = 3923; + public static final int SLIDING_BUTTON_3924 = 3924; + public static final int WHOOPSIE_3925 = 3925; + public static final int SLIDING_BUTTON_3926 = 3926; + public static final int WHOOPSIE_3927 = 3927; + public static final int SLIDING_BUTTON_3928 = 3928; + public static final int WHOOPSIE_3929 = 3929; + public static final int SLIDING_BUTTON_3930 = 3930; + public static final int WHOOPSIE_3931 = 3931; + public static final int SLIDING_BUTTON_3932 = 3932; + public static final int WHOOPSIE_3933 = 3933; + public static final int SLIDING_BUTTON_3934 = 3934; + public static final int WHOOPSIE_3935 = 3935; + public static final int SLIDING_BUTTON_3936 = 3936; + public static final int WHOOPSIE_3937 = 3937; + public static final int SLIDING_BUTTON_3938 = 3938; + public static final int WHOOPSIE_3939 = 3939; + public static final int SLIDING_BUTTON_3940 = 3940; + public static final int WHOOPSIE_3941 = 3941; + public static final int SLIDING_BUTTON_3942 = 3942; + public static final int WHOOPSIE_3943 = 3943; + public static final int SLIDING_BUTTON_3944 = 3944; + public static final int WHOOPSIE_3945 = 3945; + public static final int SLIDING_BUTTON_3946 = 3946; + public static final int WHOOPSIE_3947 = 3947; + public static final int SLIDING_BUTTON_3948 = 3948; + public static final int WHOOPSIE_3949 = 3949; + public static final int SLIDING_BUTTON_3950 = 3950; + public static final int WHOOPSIE_3951 = 3951; + public static final int SLIDING_BUTTON_3952 = 3952; + public static final int WHOOPSIE_3953 = 3953; + public static final int SLIDING_BUTTON_3954 = 3954; + public static final int WHOOPSIE_3955 = 3955; + public static final int SLIDING_BUTTON_3956 = 3956; + public static final int WHOOPSIE_3957 = 3957; + public static final int SLIDING_BUTTON_3958 = 3958; + public static final int WHOOPSIE_3959 = 3959; + public static final int SLIDING_BUTTON_3960 = 3960; + public static final int WHOOPSIE_3961 = 3961; + public static final int SLIDING_BUTTON_3962 = 3962; + public static final int WHOOPSIE_3963 = 3963; + public static final int SLIDING_BUTTON_3964 = 3964; + public static final int WHOOPSIE_3965 = 3965; + public static final int SLIDING_BUTTON_3966 = 3966; + public static final int WHOOPSIE_3967 = 3967; + public static final int SLIDING_BUTTON_3968 = 3968; + public static final int WHOOPSIE_3969 = 3969; + public static final int SLIDING_BUTTON_3970 = 3970; + public static final int WHOOPSIE_3971 = 3971; + public static final int SLIDING_BUTTON_3972 = 3972; + public static final int WHOOPSIE_3973 = 3973; + public static final int SLIDING_BUTTON_3974 = 3974; + public static final int WHOOPSIE_3975 = 3975; + public static final int SLIDING_BUTTON_3976 = 3976; + public static final int WHOOPSIE_3977 = 3977; + public static final int SLIDING_BUTTON_3978 = 3978; + public static final int WHOOPSIE_3979 = 3979; + public static final int SLIDING_BUTTON_3980 = 3980; + public static final int WHOOPSIE_3981 = 3981; + public static final int SLIDING_BUTTON_3982 = 3982; + public static final int WHOOPSIE_3983 = 3983; + public static final int SLIDING_BUTTON_3984 = 3984; + public static final int WHOOPSIE_3985 = 3985; + public static final int SLIDING_BUTTON_3986 = 3986; + public static final int WHOOPSIE_3987 = 3987; + public static final int SLIDING_BUTTON_3988 = 3988; + public static final int WHOOPSIE_3989 = 3989; + public static final int SLIDING_BUTTON_3990 = 3990; + public static final int WHOOPSIE_3991 = 3991; + public static final int SLIDING_BUTTON_3992 = 3992; + public static final int WHOOPSIE_3993 = 3993; + public static final int SLIDING_BUTTON_3994 = 3994; + public static final int WHOOPSIE_3995 = 3995; + public static final int SLIDING_BUTTON_3996 = 3996; + public static final int WHOOPSIE_3997 = 3997; + public static final int SLIDING_BUTTON_3998 = 3998; + public static final int WHOOPSIE_3999 = 3999; + public static final int IODINE = 4000; + public static final int SHRINE = 4001; + public static final int SPARE_CONTROLS = 4002; + public static final int SPARE_CONTROLS_4003 = 4003; + public static final int GNOME_ROYAL_SEAL = 4004; + public static final int NARNODES_ORDERS = 4005; + public static final int MONKEY_DENTURES = 4006; + public static final int ENCHANTED_BAR = 4007; + public static final int EYE_OF_GNOME = 4008; + public static final int EYE_OF_GNOME_4009 = 4009; + public static final int MONKEY_MAGIC = 4010; + public static final int MONKEY_MAGIC_4011 = 4011; + public static final int MONKEY_NUTS = 4012; + public static final int MONKEY_NUTS_4013 = 4013; + public static final int MONKEY_BAR = 4014; + public static final int MONKEY_BAR_4015 = 4015; + public static final int BANANA_STEW = 4016; + public static final int BANANA_STEW_4017 = 4017; + public static final int MONKEY_WRENCH = 4018; + public static final int MONKEY_WRENCH_4019 = 4019; + public static final int MAMULET_MOULD = 4020; + public static final int MSPEAK_AMULET = 4021; + public static final int MSPEAK_AMULET_4022 = 4022; + public static final int MONKEY_TALISMAN = 4023; + public static final int MONKEY_GREEGREE = 4024; + public static final int MONKEY_GREEGREE_4025 = 4025; + public static final int MONKEY_GREEGREE_4026 = 4026; + public static final int MONKEY_GREEGREE_4027 = 4027; + public static final int MONKEY_GREEGREE_4028 = 4028; + public static final int MONKEY_GREEGREE_4029 = 4029; + public static final int MONKEY_GREEGREE_4030 = 4030; + public static final int MONKEY_GREEGREE_4031 = 4031; + public static final int DUMMY = 4032; + public static final int MONKEY = 4033; + public static final int MONKEY_SKULL = 4034; + public static final int _10TH_SQUAD_SIGIL = 4035; + public static final int WHOOPSIE_4036 = 4036; + public static final int SARADOMIN_BANNER = 4037; + public static final int SARADOMIN_BANNER_4038 = 4038; + public static final int ZAMORAK_BANNER = 4039; + public static final int ZAMORAK_BANNER_4040 = 4040; + public static final int HOODED_CLOAK = 4041; + public static final int HOODED_CLOAK_4042 = 4042; + public static final int ROCK_4043 = 4043; + public static final int ROCK_4044 = 4044; + public static final int EXPLOSIVE_POTION = 4045; + public static final int EXPLOSIVE_POTION_4046 = 4046; + public static final int CLIMBING_ROPE = 4047; + public static final int CLIMBING_ROPE_4048 = 4048; + public static final int BANDAGES = 4049; + public static final int BANDAGES_4050 = 4050; + public static final int TOOLBOX = 4051; + public static final int TOOLBOX_4052 = 4052; + public static final int BARRICADE = 4053; + public static final int BARRICADE_4054 = 4054; + public static final int CASTLEWARS_MANUAL = 4055; + public static final int NULL_4056 = 4056; + public static final int NULL_4057 = 4057; + public static final int NULL_4058 = 4058; + public static final int NULL_4059 = 4059; + public static final int NULL_4060 = 4060; + public static final int NULL_4061 = 4061; + public static final int NULL_4062 = 4062; + public static final int NULL_4063 = 4063; + public static final int NULL_4064 = 4064; + public static final int NULL_4065 = 4065; + public static final int NULL_4066 = 4066; + public static final int CASTLE_WARS_TICKET = 4067; + public static final int DECORATIVE_SWORD = 4068; + public static final int DECORATIVE_ARMOUR = 4069; + public static final int DECORATIVE_ARMOUR_4070 = 4070; + public static final int DECORATIVE_HELM = 4071; + public static final int DECORATIVE_SHIELD = 4072; + public static final int DAMP_TINDERBOX = 4073; + public static final int DAMP_TINDERBOX_4074 = 4074; + public static final int GLOWING_FUNGUS = 4075; + public static final int NEZIKCHENEDS_MUM = 4076; + public static final int CRYSTALMINE_KEY = 4077; + public static final int ZEALOTS_KEY = 4078; + public static final int YOYO = 4079; + public static final int NULL_4080 = 4080; + public static final int SALVE_AMULET = 4081; + public static final int SALVE_SHARD = 4082; + public static final int SLED = 4083; + public static final int SLED_4084 = 4084; + public static final int WAX = 4085; + public static final int TROLLWEISS = 4086; + public static final int DRAGON_PLATELEGS = 4087; + public static final int DRAGON_PLATELEGS_4088 = 4088; + public static final int MYSTIC_HAT = 4089; + public static final int MYSTIC_HAT_4090 = 4090; + public static final int MYSTIC_ROBE_TOP = 4091; + public static final int MYSTIC_ROBE_TOP_4092 = 4092; + public static final int MYSTIC_ROBE_BOTTOM = 4093; + public static final int MYSTIC_ROBE_BOTTOM_4094 = 4094; + public static final int MYSTIC_GLOVES = 4095; + public static final int MYSTIC_GLOVES_4096 = 4096; + public static final int MYSTIC_BOOTS = 4097; + public static final int MYSTIC_BOOTS_4098 = 4098; + public static final int MYSTIC_HAT_4099 = 4099; + public static final int MYSTIC_HAT_4100 = 4100; + public static final int MYSTIC_ROBE_TOP_4101 = 4101; + public static final int MYSTIC_ROBE_TOP_4102 = 4102; + public static final int MYSTIC_ROBE_BOTTOM_4103 = 4103; + public static final int MYSTIC_ROBE_BOTTOM_4104 = 4104; + public static final int MYSTIC_GLOVES_4105 = 4105; + public static final int MYSTIC_GLOVES_4106 = 4106; + public static final int MYSTIC_BOOTS_4107 = 4107; + public static final int MYSTIC_BOOTS_4108 = 4108; + public static final int MYSTIC_HAT_4109 = 4109; + public static final int MYSTIC_HAT_4110 = 4110; + public static final int MYSTIC_ROBE_TOP_4111 = 4111; + public static final int MYSTIC_ROBE_TOP_4112 = 4112; + public static final int MYSTIC_ROBE_BOTTOM_4113 = 4113; + public static final int MYSTIC_ROBE_BOTTOM_4114 = 4114; + public static final int MYSTIC_GLOVES_4115 = 4115; + public static final int MYSTIC_GLOVES_4116 = 4116; + public static final int MYSTIC_BOOTS_4117 = 4117; + public static final int MYSTIC_BOOTS_4118 = 4118; + public static final int BRONZE_BOOTS = 4119; + public static final int BRONZE_BOOTS_4120 = 4120; + public static final int IRON_BOOTS = 4121; + public static final int IRON_BOOTS_4122 = 4122; + public static final int STEEL_BOOTS = 4123; + public static final int STEEL_BOOTS_4124 = 4124; + public static final int BLACK_BOOTS = 4125; + public static final int BLACK_BOOTS_4126 = 4126; + public static final int MITHRIL_BOOTS = 4127; + public static final int MITHRIL_BOOTS_4128 = 4128; + public static final int ADAMANT_BOOTS = 4129; + public static final int ADAMANT_BOOTS_4130 = 4130; + public static final int RUNE_BOOTS = 4131; + public static final int RUNE_BOOTS_4132 = 4132; + public static final int CRAWLING_HAND = 4133; + public static final int CAVE_CRAWLER = 4134; + public static final int BANSHEE = 4135; + public static final int ROCKSLUG = 4136; + public static final int COCKATRICE = 4137; + public static final int PYREFIEND = 4138; + public static final int BASILISK = 4139; + public static final int INFERNAL_MAGE = 4140; + public static final int BLOODVELD = 4141; + public static final int JELLY = 4142; + public static final int TUROTH = 4143; + public static final int ABERRANT_SPECTER = 4144; + public static final int DUST_DEVIL = 4145; + public static final int KURASK = 4146; + public static final int GARGOYLE = 4147; + public static final int NECHRYAEL = 4148; + public static final int ABYSSAL_DEMON = 4149; + public static final int BROAD_ARROWS = 4150; + public static final int ABYSSAL_WHIP = 4151; + public static final int ABYSSAL_WHIP_4152 = 4152; + public static final int GRANITE_MAUL = 4153; + public static final int GRANITE_MAUL_4154 = 4154; + public static final int ENCHANTED_GEM = 4155; + public static final int MIRROR_SHIELD = 4156; + public static final int MIRROR_SHIELD_4157 = 4157; + public static final int LEAFBLADED_SPEAR = 4158; + public static final int LEAFBLADED_SPEAR_4159 = 4159; + public static final int BROAD_ARROWS_4160 = 4160; + public static final int BAG_OF_SALT = 4161; + public static final int ROCK_HAMMER = 4162; + public static final int ROCK_HAMMER_4163 = 4163; + public static final int FACEMASK = 4164; + public static final int FACEMASK_4165 = 4165; + public static final int EARMUFFS = 4166; + public static final int EARMUFFS_4167 = 4167; + public static final int NOSE_PEG = 4168; + public static final int NOSE_PEG_4169 = 4169; + public static final int SLAYERS_STAFF = 4170; + public static final int SLAYERS_STAFF_4171 = 4171; + public static final int BROAD_ARROWS_4172 = 4172; + public static final int BROAD_ARROWS_4173 = 4173; + public static final int BROAD_ARROWS_4174 = 4174; + public static final int BROAD_ARROWS_4175 = 4175; + public static final int NULL_4176 = 4176; + public static final int WOLFBANE_LEVER = 4177; + public static final int OLIVE_STUFFER = 4178; + public static final int STICK = 4179; + public static final int COCONUT_BUNCH = 4180; + public static final int MOUTH_GRIP = 4181; + public static final int ELVEN_SHEEP = 4182; + public static final int STAR_AMULET = 4183; + public static final int CAVERN_KEY = 4184; + public static final int TOWER_KEY = 4185; + public static final int SHED_KEY = 4186; + public static final int MARBLE_AMULET = 4187; + public static final int OBSIDIAN_AMULET = 4188; + public static final int GARDEN_CANE = 4189; + public static final int GARDEN_BRUSH = 4190; + public static final int EXTENDED_BRUSH = 4191; + public static final int EXTENDED_BRUSH_4192 = 4192; + public static final int EXTENDED_BRUSH_4193 = 4193; + public static final int TORSO = 4194; + public static final int ARMS = 4195; + public static final int LEGS = 4196; + public static final int DECAPITATED_HEAD = 4197; + public static final int DECAPITATED_HEAD_4198 = 4198; + public static final int PICKLED_BRAIN = 4199; + public static final int CONDUCTOR_MOULD = 4200; + public static final int CONDUCTOR = 4201; + public static final int RING_OF_CHAROS = 4202; + public static final int JOURNAL_4203 = 4203; + public static final int LETTER = 4204; + public static final int CONSECRATION_SEED = 4205; + public static final int CONSECRATION_SEED_4206 = 4206; + public static final int CRYSTAL_SEED = 4207; + public static final int CRYSTAL_SEED_4208 = 4208; + public static final int CADARN_LINEAGE = 4209; + public static final int CADARN_LINEAGE_4210 = 4210; + public static final int ELF_CRYSTAL = 4211; + public static final int NEW_CRYSTAL_BOW = 4212; + public static final int NEW_CRYSTAL_BOW_4213 = 4213; + public static final int CRYSTAL_BOW_FULL = 4214; + public static final int CRYSTAL_BOW_910 = 4215; + public static final int CRYSTAL_BOW_810 = 4216; + public static final int CRYSTAL_BOW_710 = 4217; + public static final int CRYSTAL_BOW_610 = 4218; + public static final int CRYSTAL_BOW_510 = 4219; + public static final int CRYSTAL_BOW_410 = 4220; + public static final int CRYSTAL_BOW_310 = 4221; + public static final int CRYSTAL_BOW_210 = 4222; + public static final int CRYSTAL_BOW_110 = 4223; + public static final int NEW_CRYSTAL_SHIELD = 4224; + public static final int CRYSTAL_SHIELD_FULL = 4225; + public static final int CRYSTAL_SHIELD_910 = 4226; + public static final int CRYSTAL_SHIELD_810 = 4227; + public static final int CRYSTAL_SHIELD_710 = 4228; + public static final int CRYSTAL_SHIELD_610 = 4229; + public static final int CRYSTAL_SHIELD_510 = 4230; + public static final int CRYSTAL_SHIELD_410 = 4231; + public static final int CRYSTAL_SHIELD_310 = 4232; + public static final int CRYSTAL_SHIELD_210 = 4233; + public static final int CRYSTAL_SHIELD_110 = 4234; + public static final int NEW_CRYSTAL_SHIELD_4235 = 4235; + public static final int OAK_LONGBOW_4236 = 4236; + public static final int NETTLEWATER = 4237; + public static final int PUDDLE_OF_SLIME = 4238; + public static final int NETTLE_TEA = 4239; + public static final int NETTLE_TEA_4240 = 4240; + public static final int NETTLES = 4241; + public static final int CUP_OF_TEA_4242 = 4242; + public static final int CUP_OF_TEA_4243 = 4243; + public static final int PORCELAIN_CUP = 4244; + public static final int CUP_OF_TEA_4245 = 4245; + public static final int CUP_OF_TEA_4246 = 4246; + public static final int MYSTICAL_ROBES = 4247; + public static final int BOOK_OF_HARICANTO = 4248; + public static final int TRANSLATION_MANUAL = 4249; + public static final int GHOSTSPEAK_AMULET_4250 = 4250; + public static final int ECTOPHIAL = 4251; + public static final int ECTOPHIAL_4252 = 4252; + public static final int MODEL_SHIP = 4253; + public static final int MODEL_SHIP_4254 = 4254; + public static final int BONEMEAL = 4255; + public static final int BONEMEAL_4256 = 4256; + public static final int BONEMEAL_4257 = 4257; + public static final int BONEMEAL_4258 = 4258; + public static final int BONEMEAL_4259 = 4259; + public static final int BONEMEAL_4260 = 4260; + public static final int BONEMEAL_4261 = 4261; + public static final int BONEMEAL_4262 = 4262; + public static final int BONEMEAL_4263 = 4263; + public static final int BONEMEAL_4264 = 4264; + public static final int BONEMEAL_4265 = 4265; + public static final int BONEMEAL_4266 = 4266; + public static final int BONEMEAL_4267 = 4267; + public static final int BONEMEAL_4268 = 4268; + public static final int BONEMEAL_4269 = 4269; + public static final int BONEMEAL_4270 = 4270; + public static final int BONEMEAL_4271 = 4271; + public static final int BONE_KEY_4272 = 4272; + public static final int CHEST_KEY_4273 = 4273; + public static final int MAP_SCRAP = 4274; + public static final int MAP_SCRAP_4275 = 4275; + public static final int MAP_SCRAP_4276 = 4276; + public static final int TREASURE_MAP = 4277; + public static final int ECTOTOKEN = 4278; + public static final int NULL_4279 = 4279; + public static final int WHOOPSIE_4280 = 4280; + public static final int NULL_4281 = 4281; + public static final int WHOOPSIE_4282 = 4282; + public static final int PETITION_FORM = 4283; + public static final int BEDSHEET = 4284; + public static final int BEDSHEET_4285 = 4285; + public static final int BUCKET_OF_SLIME = 4286; + public static final int RAW_BEEF_4287 = 4287; + public static final int RAW_BEEF_4288 = 4288; + public static final int RAW_CHICKEN_4289 = 4289; + public static final int RAW_CHICKEN_4290 = 4290; + public static final int COOKED_CHICKEN_4291 = 4291; + public static final int COOKED_CHICKEN_4292 = 4292; + public static final int COOKED_MEAT_4293 = 4293; + public static final int COOKED_MEAT_4294 = 4294; + public static final int FEMALE_HAM = 4295; + public static final int WHOOPSIE_4296 = 4296; + public static final int MALE_HAM = 4297; + public static final int HAM_SHIRT = 4298; + public static final int HAM_SHIRT_4299 = 4299; + public static final int HAM_ROBE = 4300; + public static final int HAM_ROBE_4301 = 4301; + public static final int HAM_HOOD = 4302; + public static final int HAM_HOOD_4303 = 4303; + public static final int HAM_CLOAK = 4304; + public static final int HAM_CLOAK_4305 = 4305; + public static final int HAM_LOGO = 4306; + public static final int HAM_LOGO_4307 = 4307; + public static final int GLOVES_4308 = 4308; + public static final int GLOVES_4309 = 4309; + public static final int BOOTS_4310 = 4310; + public static final int BOOTS_4311 = 4311; + public static final int WHOOPSIE_4312 = 4312; + public static final int CRYSTAL_OF_SEREN = 4313; + public static final int CRYSTAL_OF_SEREN_4314 = 4314; + public static final int TEAM1_CAPE = 4315; + public static final int TEAM1_CAPE_4316 = 4316; + public static final int TEAM2_CAPE = 4317; + public static final int TEAM2_CAPE_4318 = 4318; + public static final int TEAM3_CAPE = 4319; + public static final int TEAM3_CAPE_4320 = 4320; + public static final int TEAM4_CAPE = 4321; + public static final int TEAM4_CAPE_4322 = 4322; + public static final int TEAM5_CAPE = 4323; + public static final int TEAM5_CAPE_4324 = 4324; + public static final int TEAM6_CAPE = 4325; + public static final int TEAM6_CAPE_4326 = 4326; + public static final int TEAM7_CAPE = 4327; + public static final int TEAM7_CAPE_4328 = 4328; + public static final int TEAM8_CAPE = 4329; + public static final int TEAM8_CAPE_4330 = 4330; + public static final int TEAM9_CAPE = 4331; + public static final int TEAM9_CAPE_4332 = 4332; + public static final int TEAM10_CAPE = 4333; + public static final int TEAM10_CAPE_4334 = 4334; + public static final int TEAM11_CAPE = 4335; + public static final int TEAM11_CAPE_4336 = 4336; + public static final int TEAM12_CAPE = 4337; + public static final int TEAM12_CAPE_4338 = 4338; + public static final int TEAM13_CAPE = 4339; + public static final int TEAM13_CAPE_4340 = 4340; + public static final int TEAM14_CAPE = 4341; + public static final int TEAM14_CAPE_4342 = 4342; + public static final int TEAM15_CAPE = 4343; + public static final int TEAM15_CAPE_4344 = 4344; + public static final int TEAM16_CAPE = 4345; + public static final int TEAM16_CAPE_4346 = 4346; + public static final int TEAM17_CAPE = 4347; + public static final int TEAM17_CAPE_4348 = 4348; + public static final int TEAM18_CAPE = 4349; + public static final int TEAM18_CAPE_4350 = 4350; + public static final int TEAM19_CAPE = 4351; + public static final int TEAM19_CAPE_4352 = 4352; + public static final int TEAM20_CAPE = 4353; + public static final int TEAM20_CAPE_4354 = 4354; + public static final int TEAM21_CAPE = 4355; + public static final int TEAM21_CAPE_4356 = 4356; + public static final int TEAM22_CAPE = 4357; + public static final int TEAM22_CAPE_4358 = 4358; + public static final int TEAM23_CAPE = 4359; + public static final int TEAM23_CAPE_4360 = 4360; + public static final int TEAM24_CAPE = 4361; + public static final int TEAM24_CAPE_4362 = 4362; + public static final int TEAM25_CAPE = 4363; + public static final int TEAM25_CAPE_4364 = 4364; + public static final int TEAM26_CAPE = 4365; + public static final int TEAM26_CAPE_4366 = 4366; + public static final int TEAM27_CAPE = 4367; + public static final int TEAM27_CAPE_4368 = 4368; + public static final int TEAM28_CAPE = 4369; + public static final int TEAM28_CAPE_4370 = 4370; + public static final int TEAM29_CAPE = 4371; + public static final int TEAM29_CAPE_4372 = 4372; + public static final int TEAM30_CAPE = 4373; + public static final int TEAM30_CAPE_4374 = 4374; + public static final int TEAM31_CAPE = 4375; + public static final int TEAM31_CAPE_4376 = 4376; + public static final int TEAM32_CAPE = 4377; + public static final int TEAM32_CAPE_4378 = 4378; + public static final int TEAM33_CAPE = 4379; + public static final int TEAM33_CAPE_4380 = 4380; + public static final int TEAM34_CAPE = 4381; + public static final int TEAM34_CAPE_4382 = 4382; + public static final int TEAM35_CAPE = 4383; + public static final int TEAM35_CAPE_4384 = 4384; + public static final int TEAM36_CAPE = 4385; + public static final int TEAM36_CAPE_4386 = 4386; + public static final int TEAM37_CAPE = 4387; + public static final int TEAM37_CAPE_4388 = 4388; + public static final int TEAM38_CAPE = 4389; + public static final int TEAM38_CAPE_4390 = 4390; + public static final int TEAM39_CAPE = 4391; + public static final int TEAM39_CAPE_4392 = 4392; + public static final int TEAM40_CAPE = 4393; + public static final int TEAM40_CAPE_4394 = 4394; + public static final int TEAM41_CAPE = 4395; + public static final int TEAM41_CAPE_4396 = 4396; + public static final int TEAM42_CAPE = 4397; + public static final int TEAM42_CAPE_4398 = 4398; + public static final int TEAM43_CAPE = 4399; + public static final int TEAM43_CAPE_4400 = 4400; + public static final int TEAM44_CAPE = 4401; + public static final int TEAM44_CAPE_4402 = 4402; + public static final int TEAM45_CAPE = 4403; + public static final int TEAM45_CAPE_4404 = 4404; + public static final int TEAM46_CAPE = 4405; + public static final int TEAM46_CAPE_4406 = 4406; + public static final int TEAM47_CAPE = 4407; + public static final int TEAM47_CAPE_4408 = 4408; + public static final int TEAM48_CAPE = 4409; + public static final int TEAM48_CAPE_4410 = 4410; + public static final int TEAM49_CAPE = 4411; + public static final int TEAM49_CAPE_4412 = 4412; + public static final int TEAM50_CAPE = 4413; + public static final int TEAM50_CAPE_4414 = 4414; + public static final int BLUNT_AXE = 4415; + public static final int HERBAL_TINCTURE = 4416; + public static final int GUTHIX_REST4 = 4417; + public static final int GUTHIX_REST4_4418 = 4418; + public static final int GUTHIX_REST3 = 4419; + public static final int GUTHIX_REST3_4420 = 4420; + public static final int GUTHIX_REST2 = 4421; + public static final int GUTHIX_REST2_4422 = 4422; + public static final int GUTHIX_REST1 = 4423; + public static final int GUTHIX_REST1_4424 = 4424; + public static final int STODGY_MATTRESS = 4425; + public static final int COMFY_MATTRESS = 4426; + public static final int IRON_OXIDE = 4427; + public static final int ANIMATE_ROCK_SCROLL = 4428; + public static final int BROKEN_VANE_PART = 4429; + public static final int DIRECTIONALS = 4430; + public static final int BROKEN_VANE_PART_4431 = 4431; + public static final int ORNAMENT = 4432; + public static final int BROKEN_VANE_PART_4433 = 4433; + public static final int WEATHERVANE_PILLAR = 4434; + public static final int WEATHER_REPORT = 4435; + public static final int AIRTIGHT_POT = 4436; + public static final int AIRTIGHT_POT_4437 = 4437; + public static final int UNFIRED_POT_LID = 4438; + public static final int UNFIRED_POT_LID_4439 = 4439; + public static final int POT_LID = 4440; + public static final int POT_LID_4441 = 4441; + public static final int BREATHING_SALTS = 4442; + public static final int CHICKEN_CAGE = 4443; + public static final int SHARPENED_AXE = 4444; + public static final int RED_MAHOGANY_LOG = 4445; + public static final int STEEL_KEY_RING = 4446; + public static final int ANTIQUE_LAMP = 4447; + public static final int NULL_4448 = 4448; + public static final int WHOOPSIE_4449 = 4449; + public static final int NULL_4450 = 4450; + public static final int WHOOPSIE_4451 = 4451; + public static final int NULL_4452 = 4452; + public static final int WHOOPSIE_4453 = 4453; + public static final int NULL_4454 = 4454; + public static final int WHOOPSIE_4455 = 4455; + public static final int BOWL_OF_HOT_WATER = 4456; + public static final int BOWL_OF_HOT_WATER_4457 = 4457; + public static final int CUP_OF_WATER = 4458; + public static final int CUP_OF_WATER_4459 = 4459; + public static final int CUP_OF_HOT_WATER = 4460; + public static final int CUP_OF_HOT_WATER_4461 = 4461; + public static final int RUINED_HERB_TEA = 4462; + public static final int RUINED_HERB_TEA_4463 = 4463; + public static final int HERB_TEA_MIX = 4464; + public static final int HERB_TEA_MIX_4465 = 4465; + public static final int HERB_TEA_MIX_4466 = 4466; + public static final int HERB_TEA_MIX_4467 = 4467; + public static final int HERB_TEA_MIX_4468 = 4468; + public static final int HERB_TEA_MIX_4469 = 4469; + public static final int HERB_TEA_MIX_4470 = 4470; + public static final int HERB_TEA_MIX_4471 = 4471; + public static final int HERB_TEA_MIX_4472 = 4472; + public static final int HERB_TEA_MIX_4473 = 4473; + public static final int HERB_TEA_MIX_4474 = 4474; + public static final int HERB_TEA_MIX_4475 = 4475; + public static final int HERB_TEA_MIX_4476 = 4476; + public static final int HERB_TEA_MIX_4477 = 4477; + public static final int HERB_TEA_MIX_4478 = 4478; + public static final int HERB_TEA_MIX_4479 = 4479; + public static final int HERB_TEA_MIX_4480 = 4480; + public static final int HERB_TEA_MIX_4481 = 4481; + public static final int HERB_TEA_MIX_4482 = 4482; + public static final int HERB_TEA_MIX_4483 = 4483; + public static final int SAFETY_GUARANTEE = 4484; + public static final int WHITE_PEARL = 4485; + public static final int WHITE_PEARL_SEED = 4486; + public static final int HALF_A_ROCK = 4487; + public static final int CORPSE_OF_WOMAN = 4488; + public static final int ASLEIFS_NECKLACE = 4489; + public static final int MUD = 4490; + public static final int MUD_4491 = 4491; + public static final int ROCK_4492 = 4492; + public static final int ROCK_4493 = 4493; + public static final int POLE = 4494; + public static final int POLE_4495 = 4495; + public static final int BROKEN_POLE = 4496; + public static final int BROKEN_POLE_4497 = 4497; + public static final int ROPE_4498 = 4498; + public static final int ROPE_4499 = 4499; + public static final int POLE_4500 = 4500; + public static final int POLE_4501 = 4501; + public static final int BEARHEAD = 4502; + public static final int DECORATIVE_SWORD_4503 = 4503; + public static final int DECORATIVE_ARMOUR_4504 = 4504; + public static final int DECORATIVE_ARMOUR_4505 = 4505; + public static final int DECORATIVE_HELM_4506 = 4506; + public static final int DECORATIVE_SHIELD_4507 = 4507; + public static final int DECORATIVE_SWORD_4508 = 4508; + public static final int DECORATIVE_ARMOUR_4509 = 4509; + public static final int DECORATIVE_ARMOUR_4510 = 4510; + public static final int DECORATIVE_HELM_4511 = 4511; + public static final int DECORATIVE_SHIELD_4512 = 4512; + public static final int CASTLEWARS_HOOD = 4513; + public static final int CASTLEWARS_CLOAK = 4514; + public static final int CASTLEWARS_HOOD_4515 = 4515; + public static final int CASTLEWARS_CLOAK_4516 = 4516; + public static final int GIANT_FROG_LEGS = 4517; + public static final int GIANT_FROG_LEGS_4518 = 4518; + public static final int SWAMP_WALLBEAST = 4519; + public static final int SWAMP_CAVE_SLIME = 4520; + public static final int SWAMP_CAVE_BUG = 4521; + public static final int OIL_LAMP = 4522; + public static final int OIL_LAMP_4523 = 4523; + public static final int OIL_LAMP_4524 = 4524; + public static final int OIL_LAMP_4525 = 4525; + public static final int OIL_LAMP_4526 = 4526; + public static final int CANDLE_LANTERN = 4527; + public static final int CANDLE_LANTERN_4528 = 4528; + public static final int CANDLE_LANTERN_4529 = 4529; + public static final int CANDLE_LANTERN_4530 = 4530; + public static final int CANDLE_LANTERN_4531 = 4531; + public static final int CANDLE_LANTERN_4532 = 4532; + public static final int CANDLE_LANTERN_4533 = 4533; + public static final int CANDLE_LANTERN_4534 = 4534; + public static final int OIL_LANTERN = 4535; + public static final int OIL_LANTERN_4536 = 4536; + public static final int OIL_LANTERN_4537 = 4537; + public static final int OIL_LANTERN_4538 = 4538; + public static final int OIL_LANTERN_4539 = 4539; + public static final int OIL_LANTERN_FRAME = 4540; + public static final int OIL_LANTERN_FRAME_4541 = 4541; + public static final int LANTERN_LENS = 4542; + public static final int LANTERN_LENS_4543 = 4543; + public static final int BULLSEYE_LANTERN = 4544; + public static final int BULLSEYE_LANTERN_4545 = 4545; + public static final int BULLSEYE_LANTERN_4546 = 4546; + public static final int BULLSEYE_LANTERN_4547 = 4547; + public static final int BULLSEYE_LANTERN_4548 = 4548; + public static final int BULLSEYE_LANTERN_4549 = 4549; + public static final int BULLSEYE_LANTERN_4550 = 4550; + public static final int SPINY_HELMET = 4551; + public static final int SPINY_HELMET_4552 = 4552; + public static final int NULL_4553 = 4553; + public static final int NULL_4554 = 4554; + public static final int NULL_4555 = 4555; + public static final int NULL_4556 = 4556; + public static final int NULL_4557 = 4557; + public static final int BLUE_SWEETS = 4558; + public static final int DEEP_BLUE_SWEETS = 4559; + public static final int WHITE_SWEETS = 4560; + public static final int PURPLE_SWEETS = 4561; + public static final int RED_SWEETS = 4562; + public static final int GREEN_SWEETS = 4563; + public static final int PINK_SWEETS = 4564; + public static final int BASKET_OF_EGGS = 4565; + public static final int RUBBER_CHICKEN = 4566; + public static final int GOLD_HELMET = 4567; + public static final int DWARVEN_LORE = 4568; + public static final int BOOK_PAGE_1 = 4569; + public static final int BOOK_PAGE_2 = 4570; + public static final int BOOK_PAGE_3 = 4571; + public static final int PAGES = 4572; + public static final int PAGES_4573 = 4573; + public static final int BASE_SCHEMATICS = 4574; + public static final int SCHEMATIC = 4575; + public static final int SCHEMATICS = 4576; + public static final int SCHEMATICS_4577 = 4577; + public static final int SCHEMATIC_4578 = 4578; + public static final int CANNON_BALL = 4579; + public static final int BLACK_SPEAR = 4580; + public static final int BLACK_SPEAR_4581 = 4581; + public static final int BLACK_SPEARP = 4582; + public static final int BLACK_SPEARP_4583 = 4583; + public static final int BLACK_SPEARKP = 4584; + public static final int DRAGON_PLATESKIRT = 4585; + public static final int DRAGON_PLATESKIRT_4586 = 4586; + public static final int DRAGON_SCIMITAR = 4587; + public static final int DRAGON_SCIMITAR_4588 = 4588; + public static final int KEYS = 4589; + public static final int JEWELS = 4590; + public static final int KARIDIAN_HEADPIECE = 4591; + public static final int KARIDIAN_HEADPIECE_4592 = 4592; + public static final int FAKE_BEARD = 4593; + public static final int FAKE_BEARD_4594 = 4594; + public static final int KARIDIAN_DISGUISE = 4595; + public static final int KARIDIAN_DISGUISE_4596 = 4596; + public static final int NOTE = 4597; + public static final int NOTE_4598 = 4598; + public static final int OAKBLACKJACK = 4599; + public static final int WILLOWBLACKJACK = 4600; + public static final int UGTHANKI_DUNG = 4601; + public static final int UGTHANKI_DUNG_4602 = 4602; + public static final int RECEIPT = 4603; + public static final int HAGS_POISON = 4604; + public static final int SNAKE_CHARM = 4605; + public static final int SNAKE_BASKET = 4606; + public static final int SNAKE_BASKET_FULL = 4607; + public static final int SUPER_KEBAB = 4608; + public static final int SUPER_KEBAB_4609 = 4609; + public static final int RED_HOT_SAUCE = 4610; + public static final int DESERT_DISGUISE = 4611; + public static final int WILLOWBLACKJACK_4612 = 4612; + public static final int SPINNING_PLATE = 4613; + public static final int BROKEN_PLATE = 4614; + public static final int LETTER_4615 = 4615; + public static final int VARMENS_NOTES = 4616; + public static final int DISPLAY_CABINET_KEY = 4617; + public static final int STATUETTE = 4618; + public static final int STRANGE_IMPLEMENT = 4619; + public static final int BLACK_MUSHROOM = 4620; + public static final int PHOENIX_FEATHER = 4621; + public static final int BLACK_MUSHROOM_INK = 4622; + public static final int PHOENIX_QUILL_PEN = 4623; + public static final int GOLEM_PROGRAM = 4624; + public static final int BANDIT = 4625; + public static final int WHOOPSIE_4626 = 4626; + public static final int BANDITS_BREW = 4627; + public static final int BANDITS_BREW_4628 = 4628; + public static final int NULL_4629 = 4629; + public static final int NULL_4630 = 4630; + public static final int NULL_4631 = 4631; + public static final int NULL_4632 = 4632; + public static final int NULL_4633 = 4633; + public static final int NULL_4634 = 4634; + public static final int NULL_4635 = 4635; + public static final int NULL_4636 = 4636; + public static final int NULL_4637 = 4637; + public static final int NULL_4638 = 4638; + public static final int NULL_4639 = 4639; + public static final int NULL_4640 = 4640; + public static final int NULL_4641 = 4641; + public static final int NULL_4642 = 4642; + public static final int NULL_4643 = 4643; + public static final int NULL_4644 = 4644; + public static final int NULL_4645 = 4645; + public static final int NULL_4646 = 4646; + public static final int NULL_4647 = 4647; + public static final int NULL_4648 = 4648; + public static final int NULL_4649 = 4649; + public static final int NULL_4650 = 4650; + public static final int NULL_4651 = 4651; + public static final int NULL_4652 = 4652; + public static final int FIRE = 4653; + public static final int ETCHINGS = 4654; + public static final int TRANSLATION = 4655; + public static final int WARM_KEY = 4656; + public static final int RING_OF_VISIBILITY = 4657; + public static final int SILVER_POT_4658 = 4658; + public static final int BLESSED_POT = 4659; + public static final int SILVER_POT_4660 = 4660; + public static final int BLESSED_POT_4661 = 4661; + public static final int SILVER_POT_4662 = 4662; + public static final int BLESSED_POT_4663 = 4663; + public static final int SILVER_POT_4664 = 4664; + public static final int BLESSED_POT_4665 = 4665; + public static final int SILVER_POT_4666 = 4666; + public static final int BLESSED_POT_4667 = 4667; + public static final int GARLIC_POWDER = 4668; + public static final int GARLIC_POWDER_4669 = 4669; + public static final int BLOOD_DIAMOND = 4670; + public static final int ICE_DIAMOND = 4671; + public static final int SMOKE_DIAMOND = 4672; + public static final int SHADOW_DIAMOND = 4673; + public static final int GILDED_CROSS = 4674; + public static final int ANCIENT_STAFF = 4675; + public static final int ANCIENT_STAFF_4676 = 4676; + public static final int CATSPEAK_AMULET = 4677; + public static final int CANOPIC_JAR = 4678; + public static final int CANOPIC_JAR_4679 = 4679; + public static final int CANOPIC_JAR_4680 = 4680; + public static final int CANOPIC_JAR_4681 = 4681; + public static final int HOLY_SYMBOL_4682 = 4682; + public static final int UNHOLY_SYMBOL_4683 = 4683; + public static final int LINEN = 4684; + public static final int LINEN_4685 = 4685; + public static final int EMBALMING_MANUAL = 4686; + public static final int BUCKET_OF_SAP = 4687; + public static final int BUCKET_OF_SAP_4688 = 4688; + public static final int PILE_OF_SALT = 4689; + public static final int PILE_OF_SALT_4690 = 4690; + public static final int SPHINXS_TOKEN = 4691; + public static final int GOLD_LEAF = 4692; + public static final int FULL_BUCKET_4693 = 4693; + public static final int STEAM_RUNE = 4694; + public static final int MIST_RUNE = 4695; + public static final int DUST_RUNE = 4696; + public static final int SMOKE_RUNE = 4697; + public static final int MUD_RUNE = 4698; + public static final int LAVA_RUNE = 4699; + public static final int SAPPHIRE_LANTERN = 4700; + public static final int SAPPHIRE_LANTERN_4701 = 4701; + public static final int SAPPHIRE_LANTERN_4702 = 4702; + public static final int MAGIC_STONE = 4703; + public static final int STONE_BOWL = 4704; + public static final int NULL_4705 = 4705; + public static final int WHOOPSIE_4706 = 4706; + public static final int CRUMBLING_TOME = 4707; + public static final int AHRIMS_HOOD = 4708; + public static final int AHRIMS_HOOD_4709 = 4709; + public static final int AHRIMS_STAFF = 4710; + public static final int AHRIMS_STAFF_4711 = 4711; + public static final int AHRIMS_ROBETOP = 4712; + public static final int AHRIMS_ROBETOP_4713 = 4713; + public static final int AHRIMS_ROBESKIRT = 4714; + public static final int AHRIMS_ROBESKIRT_4715 = 4715; + public static final int DHAROKS_HELM = 4716; + public static final int DHAROKS_HELM_4717 = 4717; + public static final int DHAROKS_GREATAXE = 4718; + public static final int DHAROKS_GREATAXE_4719 = 4719; + public static final int DHAROKS_PLATEBODY = 4720; + public static final int DHAROKS_PLATEBODY_4721 = 4721; + public static final int DHAROKS_PLATELEGS = 4722; + public static final int DHAROKS_PLATELEGS_4723 = 4723; + public static final int GUTHANS_HELM = 4724; + public static final int GUTHANS_HELM_4725 = 4725; + public static final int GUTHANS_WARSPEAR = 4726; + public static final int GUTHANS_WARSPEAR_4727 = 4727; + public static final int GUTHANS_PLATEBODY = 4728; + public static final int GUTHANS_PLATEBODY_4729 = 4729; + public static final int GUTHANS_CHAINSKIRT = 4730; + public static final int GUTHANS_CHAINSKIRT_4731 = 4731; + public static final int KARILS_COIF = 4732; + public static final int KARILS_COIF_4733 = 4733; + public static final int KARILS_CROSSBOW = 4734; + public static final int KARILS_CROSSBOW_4735 = 4735; + public static final int KARILS_LEATHERTOP = 4736; + public static final int KARILS_LEATHERTOP_4737 = 4737; + public static final int KARILS_LEATHERSKIRT = 4738; + public static final int KARILS_LEATHERSKIRT_4739 = 4739; + public static final int BOLT_RACK = 4740; + public static final int NULL_4741 = 4741; + public static final int NULL_4742 = 4742; + public static final int NULL_4743 = 4743; + public static final int NULL_4744 = 4744; + public static final int TORAGS_HELM = 4745; + public static final int TORAGS_HELM_4746 = 4746; + public static final int TORAGS_HAMMERS = 4747; + public static final int TORAGS_HAMMERS_4748 = 4748; + public static final int TORAGS_PLATEBODY = 4749; + public static final int TORAGS_PLATEBODY_4750 = 4750; + public static final int TORAGS_PLATELEGS = 4751; + public static final int TORAGS_PLATELEGS_4752 = 4752; + public static final int VERACS_HELM = 4753; + public static final int VERACS_HELM_4754 = 4754; + public static final int VERACS_FLAIL = 4755; + public static final int VERACS_FLAIL_4756 = 4756; + public static final int VERACS_BRASSARD = 4757; + public static final int VERACS_BRASSARD_4758 = 4758; + public static final int VERACS_PLATESKIRT = 4759; + public static final int VERACS_PLATESKIRT_4760 = 4760; + public static final int NULL_4761 = 4761; + public static final int NULL_4762 = 4762; + public static final int NULL_4763 = 4763; + public static final int NULL_4764 = 4764; + public static final int NULL_4765 = 4765; + public static final int NULL_4766 = 4766; + public static final int NULL_4767 = 4767; + public static final int NULL_4768 = 4768; + public static final int NULL_4769 = 4769; + public static final int NULL_4770 = 4770; + public static final int NULL_4771 = 4771; + public static final int NULL_4772 = 4772; + public static final int BRONZE_BRUTAL = 4773; + public static final int NULL_4774 = 4774; + public static final int NULL_4775 = 4775; + public static final int NULL_4776 = 4776; + public static final int NULL_4777 = 4777; + public static final int IRON_BRUTAL = 4778; + public static final int NULL_4779 = 4779; + public static final int NULL_4780 = 4780; + public static final int NULL_4781 = 4781; + public static final int NULL_4782 = 4782; + public static final int STEEL_BRUTAL = 4783; + public static final int NULL_4784 = 4784; + public static final int NULL_4785 = 4785; + public static final int NULL_4786 = 4786; + public static final int NULL_4787 = 4787; + public static final int BLACK_BRUTAL = 4788; + public static final int NULL_4789 = 4789; + public static final int NULL_4790 = 4790; + public static final int NULL_4791 = 4791; + public static final int NULL_4792 = 4792; + public static final int MITHRIL_BRUTAL = 4793; + public static final int NULL_4794 = 4794; + public static final int NULL_4795 = 4795; + public static final int NULL_4796 = 4796; + public static final int NULL_4797 = 4797; + public static final int ADAMANT_BRUTAL = 4798; + public static final int NULL_4799 = 4799; + public static final int NULL_4800 = 4800; + public static final int NULL_4801 = 4801; + public static final int NULL_4802 = 4802; + public static final int RUNE_BRUTAL = 4803; + public static final int NULL_4804 = 4804; + public static final int NULL_4805 = 4805; + public static final int NULL_4806 = 4806; + public static final int NULL_4807 = 4807; + public static final int BLACK_PRISM = 4808; + public static final int TORN_PAGE = 4809; + public static final int RUINED_BACKPACK = 4810; + public static final int DRAGON_INN_TANKARD = 4811; + public static final int ZOGRE_BONES = 4812; + public static final int ZOGRE_BONES_4813 = 4813; + public static final int SITHIK_PORTRAIT = 4814; + public static final int SITHIK_PORTRAIT_4815 = 4815; + public static final int SIGNED_PORTRAIT = 4816; + public static final int BOOK_OF_PORTRAITURE = 4817; + public static final int OGRE_ARTEFACT = 4818; + public static final int BRONZE_NAILS = 4819; + public static final int IRON_NAILS = 4820; + public static final int BLACK_NAILS = 4821; + public static final int MITHRIL_NAILS = 4822; + public static final int ADAMANTITE_NAILS = 4823; + public static final int RUNE_NAILS = 4824; + public static final int UNSTRUNG_COMP_BOW = 4825; + public static final int UNSTRUNG_COMP_BOW_4826 = 4826; + public static final int COMP_OGRE_BOW = 4827; + public static final int COMP_OGRE_BOW_4828 = 4828; + public static final int BOOK_OF_HAM = 4829; + public static final int FAYRG_BONES = 4830; + public static final int FAYRG_BONES_4831 = 4831; + public static final int RAURG_BONES = 4832; + public static final int RAURG_BONES_4833 = 4833; + public static final int OURG_BONES = 4834; + public static final int OURG_BONES_4835 = 4835; + public static final int STRANGE_POTION = 4836; + public static final int NECROMANCY_BOOK = 4837; + public static final int CUP_OF_TEA_4838 = 4838; + public static final int OGRE_GATE_KEY = 4839; + public static final int UNFINISHED_POTION_4840 = 4840; + public static final int UNFINISHED_POTION_4841 = 4841; + public static final int RELICYMS_BALM4 = 4842; + public static final int RELICYMS_BALM4_4843 = 4843; + public static final int RELICYMS_BALM3 = 4844; + public static final int RELICYMS_BALM3_4845 = 4845; + public static final int RELICYMS_BALM2 = 4846; + public static final int RELICYMS_BALM2_4847 = 4847; + public static final int RELICYMS_BALM1 = 4848; + public static final int RELICYMS_BALM1_4849 = 4849; + public static final int OGRE_COFFIN_KEY = 4850; + public static final int OGRE_COFFIN_KEY_4851 = 4851; + public static final int BONEMEAL_4852 = 4852; + public static final int BONEMEAL_4853 = 4853; + public static final int BONEMEAL_4854 = 4854; + public static final int BONEMEAL_4855 = 4855; + public static final int AHRIMS_HOOD_100 = 4856; + public static final int AHRIMS_HOOD_75 = 4857; + public static final int AHRIMS_HOOD_50 = 4858; + public static final int AHRIMS_HOOD_25 = 4859; + public static final int AHRIMS_HOOD_0 = 4860; + public static final int AHRIMS_HOOD_0_4861 = 4861; + public static final int AHRIMS_STAFF_100 = 4862; + public static final int AHRIMS_STAFF_75 = 4863; + public static final int AHRIMS_STAFF_50 = 4864; + public static final int AHRIMS_STAFF_25 = 4865; + public static final int AHRIMS_STAFF_0 = 4866; + public static final int AHRIMS_STAFF_0_4867 = 4867; + public static final int AHRIMS_TOP_100 = 4868; + public static final int AHRIMS_TOP_75 = 4869; + public static final int AHRIMS_TOP_50 = 4870; + public static final int AHRIMS_TOP_25 = 4871; + public static final int AHRIMS_TOP_0 = 4872; + public static final int AHRIMS_TOP_0_4873 = 4873; + public static final int AHRIMS_SKIRT_100 = 4874; + public static final int AHRIMS_SKIRT_75 = 4875; + public static final int AHRIMS_SKIRT_50 = 4876; + public static final int AHRIMS_SKIRT_25 = 4877; + public static final int AHRIMS_SKIRT_0 = 4878; + public static final int AHRIMS_SKIRT_0_4879 = 4879; + public static final int DHAROKS_HELM_100 = 4880; + public static final int DHAROKS_HELM_75 = 4881; + public static final int DHAROKS_HELM_50 = 4882; + public static final int DHAROKS_HELM_25 = 4883; + public static final int DHAROKS_HELM_0 = 4884; + public static final int DHAROKS_HELM_0_4885 = 4885; + public static final int DHAROKS_AXE_100 = 4886; + public static final int DHAROKS_AXE_75 = 4887; + public static final int DHAROKS_AXE_50 = 4888; + public static final int DHAROKS_AXE_25 = 4889; + public static final int DHAROKS_AXE_0 = 4890; + public static final int DHAROKS_AXE_0_4891 = 4891; + public static final int DHAROKS_BODY_100 = 4892; + public static final int DHAROKS_BODY_75 = 4893; + public static final int DHAROKS_BODY_50 = 4894; + public static final int DHAROKS_BODY_25 = 4895; + public static final int DHAROKS_BODY_0 = 4896; + public static final int DHAROKS_BODY_0_4897 = 4897; + public static final int DHAROKS_LEGS_100 = 4898; + public static final int DHAROKS_LEGS_75 = 4899; + public static final int DHAROKS_LEGS_50 = 4900; + public static final int DHAROKS_LEGS_25 = 4901; + public static final int DHAROKS_LEGS_0 = 4902; + public static final int DHAROKS_LEGS_0_4903 = 4903; + public static final int GUTHANS_HELM_100 = 4904; + public static final int GUTHANS_HELM_75 = 4905; + public static final int GUTHANS_HELM_50 = 4906; + public static final int GUTHANS_HELM_25 = 4907; + public static final int GUTHANS_HELM_0 = 4908; + public static final int GUTHANS_HELM_0_4909 = 4909; + public static final int GUTHANS_SPEAR_100 = 4910; + public static final int GUTHANS_SPEAR_75 = 4911; + public static final int GUTHANS_SPEAR_50 = 4912; + public static final int GUTHANS_SPEAR_25 = 4913; + public static final int GUTHANS_SPEAR_0 = 4914; + public static final int GUTHANS_SPEAR_0_4915 = 4915; + public static final int GUTHANS_BODY_100 = 4916; + public static final int GUTHANS_BODY_75 = 4917; + public static final int GUTHANS_BODY_50 = 4918; + public static final int GUTHANS_BODY_25 = 4919; + public static final int GUTHANS_BODY_0 = 4920; + public static final int GUTHANS_BODY_0_4921 = 4921; + public static final int GUTHANS_SKIRT_100 = 4922; + public static final int GUTHANS_SKIRT_75 = 4923; + public static final int GUTHANS_SKIRT_50 = 4924; + public static final int GUTHANS_SKIRT_25 = 4925; + public static final int GUTHANS_SKIRT_0 = 4926; + public static final int GUTHANS_SKIRT_0_4927 = 4927; + public static final int KARILS_COIF_100 = 4928; + public static final int KARILS_COIF_75 = 4929; + public static final int KARILS_COIF_50 = 4930; + public static final int KARILS_COIF_25 = 4931; + public static final int KARILS_COIF_0 = 4932; + public static final int KARILS_COIF_0_4933 = 4933; + public static final int KARILS_XBOW_100 = 4934; + public static final int KARILS_XBOW_75 = 4935; + public static final int KARILS_XBOW_50 = 4936; + public static final int KARILS_XBOW_25 = 4937; + public static final int KARILS_XBOW_0 = 4938; + public static final int KARILS_XBOW_0_4939 = 4939; + public static final int KARILS_TOP_100 = 4940; + public static final int KARILS_TOP_75 = 4941; + public static final int KARILS_TOP_50 = 4942; + public static final int KARILS_TOP_25 = 4943; + public static final int KARILS_TOP_0 = 4944; + public static final int KARILS_TOP_0_4945 = 4945; + public static final int KARILS_SKIRT_100 = 4946; + public static final int KARILS_SKIRT_75 = 4947; + public static final int KARILS_SKIRT_50 = 4948; + public static final int KARILS_SKIRT_25 = 4949; + public static final int KARILS_SKIRT_0 = 4950; + public static final int KARILS_SKIRT_0_4951 = 4951; + public static final int TORAGS_HELM_100 = 4952; + public static final int TORAGS_HELM_75 = 4953; + public static final int TORAGS_HELM_50 = 4954; + public static final int TORAGS_HELM_25 = 4955; + public static final int TORAGS_HELM_0 = 4956; + public static final int TORAGS_HELM_0_4957 = 4957; + public static final int TORAGS_HAMMER_100 = 4958; + public static final int TORAGS_HAMMER_75 = 4959; + public static final int TORAGS_HAMMER_50 = 4960; + public static final int TORAGS_HAMMER_25 = 4961; + public static final int TORAGS_HAMMER_0 = 4962; + public static final int TORAGS_HAMMER_0_4963 = 4963; + public static final int TORAGS_BODY_100 = 4964; + public static final int TORAGS_BODY_75 = 4965; + public static final int TORAGS_BODY_50 = 4966; + public static final int TORAGS_BODY_25 = 4967; + public static final int TORAGS_BODY_0 = 4968; + public static final int TORAGS_BODY_0_4969 = 4969; + public static final int TORAGS_LEGS_100 = 4970; + public static final int TORAGS_LEGS_75 = 4971; + public static final int TORAGS_LEGS_50 = 4972; + public static final int TORAGS_LEGS_25 = 4973; + public static final int TORAGS_LEGS_0 = 4974; + public static final int TORAGS_LEGS_0_4975 = 4975; + public static final int VERACS_HELM_100 = 4976; + public static final int VERACS_HELM_75 = 4977; + public static final int VERACS_HELM_50 = 4978; + public static final int VERACS_HELM_25 = 4979; + public static final int VERACS_HELM_0 = 4980; + public static final int VERACS_HELM_0_4981 = 4981; + public static final int VERACS_FLAIL_100 = 4982; + public static final int VERACS_FLAIL_75 = 4983; + public static final int VERACS_FLAIL_50 = 4984; + public static final int VERACS_FLAIL_25 = 4985; + public static final int VERACS_FLAIL_0 = 4986; + public static final int VERACS_FLAIL_0_4987 = 4987; + public static final int VERACS_TOP_100 = 4988; + public static final int VERACS_TOP_75 = 4989; + public static final int VERACS_TOP_50 = 4990; + public static final int VERACS_TOP_25 = 4991; + public static final int VERACS_TOP_0 = 4992; + public static final int VERACS_TOP_0_4993 = 4993; + public static final int VERACS_SKIRT_100 = 4994; + public static final int VERACS_SKIRT_75 = 4995; + public static final int VERACS_SKIRT_50 = 4996; + public static final int VERACS_SKIRT_25 = 4997; + public static final int VERACS_SKIRT_0 = 4998; + public static final int VERACS_SKIRT_0_4999 = 4999; + public static final int NULL_5000 = 5000; + public static final int RAW_CAVE_EEL = 5001; + public static final int BURNT_CAVE_EEL = 5002; + public static final int CAVE_EEL = 5003; + public static final int FROG_SPAWN = 5004; + public static final int RAW_CAVE_EEL_5005 = 5005; + public static final int BURNT_CAVE_EEL_5006 = 5006; + public static final int CAVE_EEL_5007 = 5007; + public static final int BROOCH = 5008; + public static final int GOBLIN_SYMBOL_BOOK = 5009; + public static final int KEY_5010 = 5010; + public static final int SILVERWARE = 5011; + public static final int PEACE_TREATY = 5012; + public static final int MINING_HELMET = 5013; + public static final int MINING_HELMET_5014 = 5014; + public static final int MINING_HELMET_5015 = 5015; + public static final int BONE_SPEAR = 5016; + public static final int BONE_SPEAR_5017 = 5017; + public static final int BONE_CLUB = 5018; + public static final int BONE_CLUB_5019 = 5019; + public static final int MINECART_TICKET = 5020; + public static final int MINECART_TICKET_5021 = 5021; + public static final int MINECART_TICKET_5022 = 5022; + public static final int MINECART_TICKET_5023 = 5023; + public static final int WOVEN_TOP = 5024; + public static final int WOVEN_TOP_5025 = 5025; + public static final int WOVEN_TOP_5026 = 5026; + public static final int WOVEN_TOP_5027 = 5027; + public static final int WOVEN_TOP_5028 = 5028; + public static final int WOVEN_TOP_5029 = 5029; + public static final int SHIRT = 5030; + public static final int SHIRT_5031 = 5031; + public static final int SHIRT_5032 = 5032; + public static final int SHIRT_5033 = 5033; + public static final int SHIRT_5034 = 5034; + public static final int SHIRT_5035 = 5035; + public static final int TROUSERS = 5036; + public static final int TROUSERS_5037 = 5037; + public static final int TROUSERS_5038 = 5038; + public static final int TROUSERS_5039 = 5039; + public static final int TROUSERS_5040 = 5040; + public static final int TROUSERS_5041 = 5041; + public static final int SHORTS = 5042; + public static final int SHORTS_5043 = 5043; + public static final int SHORTS_5044 = 5044; + public static final int SHORTS_5045 = 5045; + public static final int SHORTS_5046 = 5046; + public static final int SHORTS_5047 = 5047; + public static final int SKIRT = 5048; + public static final int SKIRT_5049 = 5049; + public static final int SKIRT_5050 = 5050; + public static final int SKIRT_5051 = 5051; + public static final int SKIRT_5052 = 5052; + public static final int SKIRT_5053 = 5053; + public static final int DWARF = 5054; + public static final int DWARF_5055 = 5055; + public static final int DWARVEN_BATTLEAXE = 5056; + public static final int DWARVEN_BATTLEAXE_5057 = 5057; + public static final int DWARVEN_BATTLEAXE_5058 = 5058; + public static final int DWARVEN_BATTLEAXE_5059 = 5059; + public static final int DWARVEN_BATTLEAXE_5060 = 5060; + public static final int DWARVEN_BATTLEAXE_5061 = 5061; + public static final int LEFT_BOOT = 5062; + public static final int RIGHT_BOOT = 5063; + public static final int EXQUISITE_BOOTS = 5064; + public static final int BOOK_ON_COSTUMES = 5065; + public static final int MEETING_NOTES = 5066; + public static final int EXQUISITE_CLOTHES = 5067; + public static final int MASTER_FARMER = 5068; + public static final int WHOOPSIE_5069 = 5069; + public static final int BIRD_NEST = 5070; + public static final int BIRD_NEST_5071 = 5071; + public static final int BIRD_NEST_5072 = 5072; + public static final int BIRD_NEST_5073 = 5073; + public static final int BIRD_NEST_5074 = 5074; + public static final int BIRD_NEST_5075 = 5075; + public static final int BIRDS_EGG = 5076; + public static final int BIRDS_EGG_5077 = 5077; + public static final int BIRDS_EGG_5078 = 5078; + public static final int NULL_5079 = 5079; + public static final int NULL_5080 = 5080; + public static final int WHOOPSIE_5081 = 5081; + public static final int NULL_5082 = 5082; + public static final int WHOOPSIE_5083 = 5083; + public static final int NULL_5084 = 5084; + public static final int WHOOPSIE_5085 = 5085; + public static final int NULL_5086 = 5086; + public static final int WHOOPSIE_5087 = 5087; + public static final int NULL_5088 = 5088; + public static final int WHOOPSIE_5089 = 5089; + public static final int NULL_5090 = 5090; + public static final int WHOOPSIE_5091 = 5091; + public static final int NULL_5092 = 5092; + public static final int WHOOPSIE_5093 = 5093; + public static final int NULL_5094 = 5094; + public static final int WHOOPSIE_5095 = 5095; + public static final int MARIGOLD_SEED = 5096; + public static final int ROSEMARY_SEED = 5097; + public static final int NASTURTIUM_SEED = 5098; + public static final int WOAD_SEED = 5099; + public static final int LIMPWURT_SEED = 5100; + public static final int REDBERRY_SEED = 5101; + public static final int CADAVABERRY_SEED = 5102; + public static final int DWELLBERRY_SEED = 5103; + public static final int JANGERBERRY_SEED = 5104; + public static final int WHITEBERRY_SEED = 5105; + public static final int POISON_IVY_SEED = 5106; + public static final int NULL_5107 = 5107; + public static final int NULL_5108 = 5108; + public static final int NULL_5109 = 5109; + public static final int NULL_5110 = 5110; + public static final int NULL_5111 = 5111; + public static final int NULL_5112 = 5112; + public static final int NULL_5113 = 5113; + public static final int NULL_5114 = 5114; + public static final int NULL_5115 = 5115; + public static final int NULL_5116 = 5116; + public static final int NULL_5117 = 5117; + public static final int NULL_5118 = 5118; + public static final int NULL_5119 = 5119; + public static final int NULL_5120 = 5120; + public static final int NULL_5121 = 5121; + public static final int NULL_5122 = 5122; + public static final int NULL_5123 = 5123; + public static final int NULL_5124 = 5124; + public static final int NULL_5125 = 5125; + public static final int NULL_5126 = 5126; + public static final int NULL_5127 = 5127; + public static final int NULL_5128 = 5128; + public static final int NULL_5129 = 5129; + public static final int NULL_5130 = 5130; + public static final int NULL_5131 = 5131; + public static final int NULL_5132 = 5132; + public static final int NULL_5133 = 5133; + public static final int NULL_5134 = 5134; + public static final int NULL_5135 = 5135; + public static final int NULL_5136 = 5136; + public static final int NULL_5137 = 5137; + public static final int NULL_5138 = 5138; + public static final int NULL_5139 = 5139; + public static final int NULL_5140 = 5140; + public static final int NULL_5141 = 5141; + public static final int NULL_5142 = 5142; + public static final int NULL_5143 = 5143; + public static final int NULL_5144 = 5144; + public static final int NULL_5145 = 5145; + public static final int NULL_5146 = 5146; + public static final int NULL_5147 = 5147; + public static final int NULL_5148 = 5148; + public static final int NULL_5149 = 5149; + public static final int NULL_5150 = 5150; + public static final int NULL_5151 = 5151; + public static final int NULL_5152 = 5152; + public static final int NULL_5153 = 5153; + public static final int NULL_5154 = 5154; + public static final int NULL_5155 = 5155; + public static final int NULL_5156 = 5156; + public static final int NULL_5157 = 5157; + public static final int NULL_5158 = 5158; + public static final int NULL_5159 = 5159; + public static final int NULL_5160 = 5160; + public static final int NULL_5161 = 5161; + public static final int NULL_5162 = 5162; + public static final int NULL_5163 = 5163; + public static final int NULL_5164 = 5164; + public static final int NULL_5165 = 5165; + public static final int NULL_5166 = 5166; + public static final int NULL_5167 = 5167; + public static final int NULL_5168 = 5168; + public static final int NULL_5169 = 5169; + public static final int NULL_5170 = 5170; + public static final int SEEDS = 5171; + public static final int NULL_5172 = 5172; + public static final int NULL_5173 = 5173; + public static final int NULL_5174 = 5174; + public static final int NULL_5175 = 5175; + public static final int NULL_5176 = 5176; + public static final int NULL_5177 = 5177; + public static final int NULL_5178 = 5178; + public static final int NULL_5179 = 5179; + public static final int NULL_5180 = 5180; + public static final int NULL_5181 = 5181; + public static final int NULL_5182 = 5182; + public static final int NULL_5183 = 5183; + public static final int NULL_5184 = 5184; + public static final int NULL_5185 = 5185; + public static final int NULL_5186 = 5186; + public static final int NULL_5187 = 5187; + public static final int NULL_5188 = 5188; + public static final int NULL_5189 = 5189; + public static final int NULL_5190 = 5190; + public static final int NULL_5191 = 5191; + public static final int NULL_5192 = 5192; + public static final int NULL_5193 = 5193; + public static final int NULL_5194 = 5194; + public static final int NULL_5195 = 5195; + public static final int NULL_5196 = 5196; + public static final int NULL_5197 = 5197; + public static final int NULL_5198 = 5198; + public static final int NULL_5199 = 5199; + public static final int NULL_5200 = 5200; + public static final int NULL_5201 = 5201; + public static final int NULL_5202 = 5202; + public static final int NULL_5203 = 5203; + public static final int NULL_5204 = 5204; + public static final int NULL_5205 = 5205; + public static final int NULL_5206 = 5206; + public static final int NULL_5207 = 5207; + public static final int NULL_5208 = 5208; + public static final int NULL_5209 = 5209; + public static final int NULL_5210 = 5210; + public static final int NULL_5211 = 5211; + public static final int NULL_5212 = 5212; + public static final int NULL_5213 = 5213; + public static final int NULL_5214 = 5214; + public static final int NULL_5215 = 5215; + public static final int NULL_5216 = 5216; + public static final int NULL_5217 = 5217; + public static final int NULL_5218 = 5218; + public static final int NULL_5219 = 5219; + public static final int NULL_5220 = 5220; + public static final int NULL_5221 = 5221; + public static final int NULL_5222 = 5222; + public static final int NULL_5223 = 5223; + public static final int NULL_5224 = 5224; + public static final int NULL_5225 = 5225; + public static final int NULL_5226 = 5226; + public static final int NULL_5227 = 5227; + public static final int NULL_5228 = 5228; + public static final int NULL_5229 = 5229; + public static final int NULL_5230 = 5230; + public static final int NULL_5231 = 5231; + public static final int NULL_5232 = 5232; + public static final int NULL_5233 = 5233; + public static final int NULL_5234 = 5234; + public static final int NULL_5235 = 5235; + public static final int NULL_5236 = 5236; + public static final int NULL_5237 = 5237; + public static final int NULL_5238 = 5238; + public static final int NULL_5239 = 5239; + public static final int NULL_5240 = 5240; + public static final int NULL_5241 = 5241; + public static final int NULL_5242 = 5242; + public static final int NULL_5243 = 5243; + public static final int NULL_5244 = 5244; + public static final int NULL_5245 = 5245; + public static final int NULL_5246 = 5246; + public static final int NULL_5247 = 5247; + public static final int NULL_5248 = 5248; + public static final int NULL_5249 = 5249; + public static final int NULL_5250 = 5250; + public static final int NULL_5251 = 5251; + public static final int NULL_5252 = 5252; + public static final int NULL_5253 = 5253; + public static final int NULL_5254 = 5254; + public static final int NULL_5255 = 5255; + public static final int NULL_5256 = 5256; + public static final int NULL_5257 = 5257; + public static final int NULL_5258 = 5258; + public static final int NULL_5259 = 5259; + public static final int NULL_5260 = 5260; + public static final int NULL_5261 = 5261; + public static final int NULL_5262 = 5262; + public static final int NULL_5263 = 5263; + public static final int NULL_5264 = 5264; + public static final int NULL_5265 = 5265; + public static final int NULL_5266 = 5266; + public static final int NULL_5267 = 5267; + public static final int NULL_5268 = 5268; + public static final int NULL_5269 = 5269; + public static final int NULL_5270 = 5270; + public static final int NULL_5271 = 5271; + public static final int NULL_5272 = 5272; + public static final int NULL_5273 = 5273; + public static final int NULL_5274 = 5274; + public static final int NULL_5275 = 5275; + public static final int NULL_5276 = 5276; + public static final int NULL_5277 = 5277; + public static final int NULL_5278 = 5278; + public static final int NULL_5279 = 5279; + public static final int CACTUS_SEED = 5280; + public static final int BELLADONNA_SEED = 5281; + public static final int MUSHROOM_SPORE = 5282; + public static final int APPLE_TREE_SEED = 5283; + public static final int BANANA_TREE_SEED = 5284; + public static final int ORANGE_TREE_SEED = 5285; + public static final int CURRY_TREE_SEED = 5286; + public static final int PINEAPPLE_SEED = 5287; + public static final int PAPAYA_TREE_SEED = 5288; + public static final int PALM_TREE_SEED = 5289; + public static final int CALQUAT_TREE_SEED = 5290; + public static final int GUAM_SEED = 5291; + public static final int MARRENTILL_SEED = 5292; + public static final int TARROMIN_SEED = 5293; + public static final int HARRALANDER_SEED = 5294; + public static final int RANARR_SEED = 5295; + public static final int TOADFLAX_SEED = 5296; + public static final int IRIT_SEED = 5297; + public static final int AVANTOE_SEED = 5298; + public static final int KWUARM_SEED = 5299; + public static final int SNAPDRAGON_SEED = 5300; + public static final int CADANTINE_SEED = 5301; + public static final int LANTADYME_SEED = 5302; + public static final int DWARF_WEED_SEED = 5303; + public static final int TORSTOL_SEED = 5304; + public static final int BARLEY_SEED = 5305; + public static final int JUTE_SEED = 5306; + public static final int HAMMERSTONE_SEED = 5307; + public static final int ASGARNIAN_SEED = 5308; + public static final int YANILLIAN_SEED = 5309; + public static final int KRANDORIAN_SEED = 5310; + public static final int WILDBLOOD_SEED = 5311; + public static final int ACORN = 5312; + public static final int WILLOW_SEED = 5313; + public static final int MAPLE_SEED = 5314; + public static final int YEW_SEED = 5315; + public static final int MAGIC_SEED = 5316; + public static final int SPIRIT_SEED = 5317; + public static final int POTATO_SEED = 5318; + public static final int ONION_SEED = 5319; + public static final int SWEETCORN_SEED = 5320; + public static final int WATERMELON_SEED = 5321; + public static final int TOMATO_SEED = 5322; + public static final int STRAWBERRY_SEED = 5323; + public static final int CABBAGE_SEED = 5324; + public static final int GARDENING_TROWEL = 5325; + public static final int GARDENING_TROWEL_5326 = 5326; + public static final int SPADE_HANDLE = 5327; + public static final int SPADE_HEAD = 5328; + public static final int SECATEURS = 5329; + public static final int SECATEURS_5330 = 5330; + public static final int WATERING_CAN = 5331; + public static final int WATERING_CAN_5332 = 5332; + public static final int WATERING_CAN1 = 5333; + public static final int WATERING_CAN2 = 5334; + public static final int WATERING_CAN3 = 5335; + public static final int WATERING_CAN4 = 5336; + public static final int WATERING_CAN5 = 5337; + public static final int WATERING_CAN6 = 5338; + public static final int WATERING_CAN7 = 5339; + public static final int WATERING_CAN8 = 5340; + public static final int RAKE = 5341; + public static final int RAKE_5342 = 5342; + public static final int SEED_DIBBER = 5343; + public static final int SEED_DIBBER_5344 = 5344; + public static final int GARDENING_BOOTS = 5345; + public static final int GARDENING_BOOTS_5346 = 5346; + public static final int RAKE_HANDLE = 5347; + public static final int RAKE_HEAD = 5348; + public static final int WHOOPSIE_5349 = 5349; + public static final int PLANT_POT = 5350; + public static final int PLANT_POT_5351 = 5351; + public static final int UNFIRED_PLANT_POT = 5352; + public static final int UNFIRED_PLANT_POT_5353 = 5353; + public static final int PLANT_POT_5354 = 5354; + public static final int PLANT_POT_5355 = 5355; + public static final int PLANT_POT_5356 = 5356; + public static final int PLANT_POT_5357 = 5357; + public static final int OAK_SEEDLING = 5358; + public static final int WILLOW_SEEDLING = 5359; + public static final int MAPLE_SEEDLING = 5360; + public static final int YEW_SEEDLING = 5361; + public static final int MAGIC_SEEDLING = 5362; + public static final int SPIRIT_SEEDLING = 5363; + public static final int OAK_SEEDLING_5364 = 5364; + public static final int WILLOW_SEEDLING_5365 = 5365; + public static final int MAPLE_SEEDLING_5366 = 5366; + public static final int YEW_SEEDLING_5367 = 5367; + public static final int MAGIC_SEEDLING_5368 = 5368; + public static final int SPIRIT_SEEDLING_5369 = 5369; + public static final int OAK_SAPLING = 5370; + public static final int WILLOW_SAPLING = 5371; + public static final int MAPLE_SAPLING = 5372; + public static final int YEW_SAPLING = 5373; + public static final int MAGIC_SAPLING = 5374; + public static final int SPIRIT_SAPLING = 5375; + public static final int BASKET = 5376; + public static final int BASKET_5377 = 5377; + public static final int APPLES1 = 5378; + public static final int APPLES1_5379 = 5379; + public static final int APPLES2 = 5380; + public static final int APPLES2_5381 = 5381; + public static final int APPLES3 = 5382; + public static final int APPLES3_5383 = 5383; + public static final int APPLES4 = 5384; + public static final int APPLES4_5385 = 5385; + public static final int APPLES5 = 5386; + public static final int APPLES5_5387 = 5387; + public static final int ORANGES1 = 5388; + public static final int ORANGES1_5389 = 5389; + public static final int ORANGES2 = 5390; + public static final int ORANGES2_5391 = 5391; + public static final int ORANGES3 = 5392; + public static final int ORANGES3_5393 = 5393; + public static final int ORANGES4 = 5394; + public static final int ORANGES4_5395 = 5395; + public static final int ORANGES5 = 5396; + public static final int ORANGES5_5397 = 5397; + public static final int STRAWBERRIES1 = 5398; + public static final int STRAWBERRIES1_5399 = 5399; + public static final int STRAWBERRIES2 = 5400; + public static final int STRAWBERRIES2_5401 = 5401; + public static final int STRAWBERRIES3 = 5402; + public static final int STRAWBERRIES3_5403 = 5403; + public static final int STRAWBERRIES4 = 5404; + public static final int STRAWBERRIES4_5405 = 5405; + public static final int STRAWBERRIES5 = 5406; + public static final int STRAWBERRIES5_5407 = 5407; + public static final int BANANAS1 = 5408; + public static final int BANANAS1_5409 = 5409; + public static final int BANANAS2 = 5410; + public static final int BANANAS2_5411 = 5411; + public static final int BANANAS3 = 5412; + public static final int BANANAS3_5413 = 5413; + public static final int BANANAS4 = 5414; + public static final int BANANAS4_5415 = 5415; + public static final int BANANAS5 = 5416; + public static final int BANANAS5_5417 = 5417; + public static final int EMPTY_SACK = 5418; + public static final int EMPTY_SACK_5419 = 5419; + public static final int POTATOES1 = 5420; + public static final int POTATOES1_5421 = 5421; + public static final int POTATOES2 = 5422; + public static final int POTATOES2_5423 = 5423; + public static final int POTATOES3 = 5424; + public static final int POTATOES3_5425 = 5425; + public static final int POTATOES4 = 5426; + public static final int POTATOES4_5427 = 5427; + public static final int POTATOES5 = 5428; + public static final int POTATOES5_5429 = 5429; + public static final int POTATOES6 = 5430; + public static final int POTATOES6_5431 = 5431; + public static final int POTATOES7 = 5432; + public static final int POTATOES7_5433 = 5433; + public static final int POTATOES8 = 5434; + public static final int POTATOES8_5435 = 5435; + public static final int POTATOES9 = 5436; + public static final int POTATOES9_5437 = 5437; + public static final int POTATOES10 = 5438; + public static final int POTATOES10_5439 = 5439; + public static final int ONIONS1 = 5440; + public static final int ONIONS1_5441 = 5441; + public static final int ONIONS2 = 5442; + public static final int ONIONS2_5443 = 5443; + public static final int ONIONS3 = 5444; + public static final int ONIONS3_5445 = 5445; + public static final int ONIONS4 = 5446; + public static final int ONIONS4_5447 = 5447; + public static final int ONIONS5 = 5448; + public static final int ONIONS5_5449 = 5449; + public static final int ONIONS6 = 5450; + public static final int ONIONS6_5451 = 5451; + public static final int ONIONS7 = 5452; + public static final int ONIONS7_5453 = 5453; + public static final int ONIONS8 = 5454; + public static final int ONIONS8_5455 = 5455; + public static final int ONIONS9 = 5456; + public static final int ONIONS9_5457 = 5457; + public static final int ONIONS10 = 5458; + public static final int ONIONS10_5459 = 5459; + public static final int CABBAGES1 = 5460; + public static final int CABBAGES1_5461 = 5461; + public static final int CABBAGES2 = 5462; + public static final int CABBAGES2_5463 = 5463; + public static final int CABBAGES3 = 5464; + public static final int CABBAGES3_5465 = 5465; + public static final int CABBAGES4 = 5466; + public static final int CABBAGES4_5467 = 5467; + public static final int CABBAGES5 = 5468; + public static final int CABBAGES5_5469 = 5469; + public static final int CABBAGES6 = 5470; + public static final int CABBAGES6_5471 = 5471; + public static final int CABBAGES7 = 5472; + public static final int CABBAGES7_5473 = 5473; + public static final int CABBAGES8 = 5474; + public static final int CABBAGES8_5475 = 5475; + public static final int CABBAGES9 = 5476; + public static final int CABBAGES9_5477 = 5477; + public static final int CABBAGES10 = 5478; + public static final int CABBAGES10_5479 = 5479; + public static final int APPLE_SEEDLING = 5480; + public static final int BANANA_SEEDLING = 5481; + public static final int ORANGE_SEEDLING = 5482; + public static final int CURRY_SEEDLING = 5483; + public static final int PINEAPPLE_SEEDLING = 5484; + public static final int PAPAYA_SEEDLING = 5485; + public static final int PALM_SEEDLING = 5486; + public static final int CALQUAT_SEEDLING = 5487; + public static final int APPLE_SEEDLING_5488 = 5488; + public static final int BANANA_SEEDLING_5489 = 5489; + public static final int ORANGE_SEEDLING_5490 = 5490; + public static final int CURRY_SEEDLING_5491 = 5491; + public static final int PINEAPPLE_SEEDLING_5492 = 5492; + public static final int PAPAYA_SEEDLING_5493 = 5493; + public static final int PALM_SEEDLING_5494 = 5494; + public static final int CALQUAT_SEEDLING_5495 = 5495; + public static final int APPLE_SAPLING = 5496; + public static final int BANANA_SAPLING = 5497; + public static final int ORANGE_SAPLING = 5498; + public static final int CURRY_SAPLING = 5499; + public static final int PINEAPPLE_SAPLING = 5500; + public static final int PAPAYA_SAPLING = 5501; + public static final int PALM_SAPLING = 5502; + public static final int CALQUAT_SAPLING = 5503; + public static final int STRAWBERRY = 5504; + public static final int STRAWBERRY_5505 = 5505; + public static final int OLD_MANS_MESSAGE = 5506; + public static final int STRANGE_BOOK = 5507; + public static final int BOOK_OF_FOLKLORE = 5508; + public static final int SMALL_POUCH = 5509; + public static final int MEDIUM_POUCH = 5510; + public static final int MEDIUM_POUCH_5511 = 5511; + public static final int LARGE_POUCH = 5512; + public static final int LARGE_POUCH_5513 = 5513; + public static final int GIANT_POUCH = 5514; + public static final int GIANT_POUCH_5515 = 5515; + public static final int ELEMENTAL_TALISMAN = 5516; + public static final int ELEMENTAL_TALISMAN_5517 = 5517; + public static final int SCRYING_ORB = 5518; + public static final int SCRYING_ORB_5519 = 5519; + public static final int ABYSSAL_BOOK = 5520; + public static final int BINDING_NECKLACE = 5521; + public static final int BINDING_NECKLACE_5522 = 5522; + public static final int TIARA_MOULD = 5523; + public static final int TIARA_MOULD_5524 = 5524; + public static final int TIARA = 5525; + public static final int TIARA_5526 = 5526; + public static final int AIR_TIARA = 5527; + public static final int AIR_TIARA_5528 = 5528; + public static final int MIND_TIARA = 5529; + public static final int MIND_TIARA_5530 = 5530; + public static final int WATER_TIARA = 5531; + public static final int WATER_TIARA_5532 = 5532; + public static final int BODY_TIARA = 5533; + public static final int BODY_TIARA_5534 = 5534; + public static final int EARTH_TIARA = 5535; + public static final int EARTH_TIARA_5536 = 5536; + public static final int FIRE_TIARA = 5537; + public static final int FIRE_TIARA_5538 = 5538; + public static final int COSMIC_TIARA = 5539; + public static final int COSMIC_TIARA_5540 = 5540; + public static final int NATURE_TIARA = 5541; + public static final int NATURE_TIARA_5542 = 5542; + public static final int CHAOS_TIARA = 5543; + public static final int CHAOS_TIARA_5544 = 5544; + public static final int LAW_TIARA = 5545; + public static final int BROKEN_TIARA = 5546; + public static final int DEATH_TIARA = 5547; + public static final int DEATH_TIARA_5548 = 5548; + public static final int BLOOD_TIARA = 5549; + public static final int BLOOD_TIARA_5550 = 5550; + public static final int SOUL_TIARA = 5551; + public static final int SOUL_TIARA_5552 = 5552; + public static final int ROGUE_TOP = 5553; + public static final int ROGUE_MASK = 5554; + public static final int ROGUE_TROUSERS = 5555; + public static final int ROGUE_GLOVES = 5556; + public static final int ROGUE_BOOTS = 5557; + public static final int ROGUE_KIT = 5558; + public static final int FLASH_POWDER = 5559; + public static final int STETHOSCOPE = 5560; + public static final int MYSTIC_JEWEL = 5561; + public static final int GEAR = 5562; + public static final int GEAR_5563 = 5563; + public static final int GEAR_5564 = 5564; + public static final int GEAR_5565 = 5565; + public static final int GEAR_5566 = 5566; + public static final int GEAR_5567 = 5567; + public static final int TILE_5568 = 5568; + public static final int TILES = 5569; + public static final int TILES_5570 = 5570; + public static final int TILES_5571 = 5571; + public static final int DIAL = 5572; + public static final int WHOOPSIE_5573 = 5573; + public static final int INITIATE_HELM = 5574; + public static final int INITIATE_PLATEMAIL = 5575; + public static final int INITIATE_PLATELEGS = 5576; + public static final int CUPRIC_SULFATE = 5577; + public static final int ACETIC_ACID = 5578; + public static final int GYPSUM = 5579; + public static final int SODIUM_CHLORIDE = 5580; + public static final int NITROUS_OXIDE = 5581; + public static final int VIAL_OF_LIQUID = 5582; + public static final int TIN_ORE_POWDER = 5583; + public static final int CUPRIC_ORE_POWDER = 5584; + public static final int BRONZE_KEY_5585 = 5585; + public static final int METAL_SPADE = 5586; + public static final int METAL_SPADE_5587 = 5587; + public static final int ALCHEMICAL_NOTES = 5588; + public static final int _MIXTURE = 5589; + public static final int _MIXTURE_5590 = 5590; + public static final int _MIXTURE_5591 = 5591; + public static final int TIN = 5592; + public static final int TIN_5593 = 5593; + public static final int TIN_5594 = 5594; + public static final int TIN_5595 = 5595; + public static final int TIN_5596 = 5596; + public static final int TIN_5597 = 5597; + public static final int TIN_5598 = 5598; + public static final int TIN_5599 = 5599; + public static final int TIN_5600 = 5600; + public static final int CHISEL_5601 = 5601; + public static final int BRONZE_WIRE_5602 = 5602; + public static final int SHEARS_5603 = 5603; + public static final int MAGNET_5604 = 5604; + public static final int KNIFE_5605 = 5605; + public static final int MAKEOVER_VOUCHER = 5606; + public static final int GRAIN_5607 = 5607; + public static final int FOX = 5608; + public static final int CHICKEN = 5609; + public static final int HOURGLASS = 5610; + public static final int INITIATE_HELM_5611 = 5611; + public static final int INITIATE_PLATEMAIL_5612 = 5612; + public static final int INITIATE_PLATELEGS_5613 = 5613; + public static final int MAGIC_CARPET = 5614; + public static final int BONEMEAL_5615 = 5615; + public static final int BRONZE_ARROW_5616 = 5616; + public static final int IRON_ARROW_5617 = 5617; + public static final int STEEL_ARROW_5618 = 5618; + public static final int MITHRIL_ARROW_5619 = 5619; + public static final int ADAMANT_ARROW_5620 = 5620; + public static final int RUNE_ARROW_5621 = 5621; + public static final int BRONZE_ARROWS = 5622; + public static final int IRON_ARROWS = 5623; + public static final int STEEL_ARROWS = 5624; + public static final int MITHRIL_ARROWS = 5625; + public static final int ADAMANT_ARROWS = 5626; + public static final int RUNE_ARROWS = 5627; + public static final int BRONZE_DART_5628 = 5628; + public static final int IRON_DART_5629 = 5629; + public static final int STEEL_DART_5630 = 5630; + public static final int BLACK_DART_5631 = 5631; + public static final int MITHRIL_DART_5632 = 5632; + public static final int ADAMANT_DART_5633 = 5633; + public static final int RUNE_DART_5634 = 5634; + public static final int BRONZE_DARTS = 5635; + public static final int IRON_DARTS = 5636; + public static final int STEEL_DARTS = 5637; + public static final int BLACK_DARTS = 5638; + public static final int MITHRIL_DARTS = 5639; + public static final int ADAMANT_DARTS = 5640; + public static final int RUNE_DARTS = 5641; + public static final int BRONZE_JAVELIN_5642 = 5642; + public static final int IRON_JAVELIN_5643 = 5643; + public static final int STEEL_JAVELIN_5644 = 5644; + public static final int MITHRIL_JAVELIN_5645 = 5645; + public static final int ADAMANT_JAVELIN_5646 = 5646; + public static final int RUNE_JAVELIN_5647 = 5647; + public static final int BRONZE_JAVELINS = 5648; + public static final int IRON_JAVELINS = 5649; + public static final int STEEL_JAVELINS = 5650; + public static final int MITHRIL_JAVELINS = 5651; + public static final int ADAMANT_JAVELINS = 5652; + public static final int RUNE_JAVELINS = 5653; + public static final int BRONZE_KNIFE_5654 = 5654; + public static final int IRON_KNIFE_5655 = 5655; + public static final int STEEL_KNIFE_5656 = 5656; + public static final int MITHRIL_KNIFE_5657 = 5657; + public static final int BLACK_KNIFE_5658 = 5658; + public static final int ADAMANT_KNIFE_5659 = 5659; + public static final int RUNE_KNIFE_5660 = 5660; + public static final int BRONZE_KNIFES = 5661; + public static final int IRON_KNIFES = 5662; + public static final int STEEL_KNIFES = 5663; + public static final int MITHRIL_KNIFES = 5664; + public static final int BLACK_KNIFES = 5665; + public static final int ADAMANT_KNIFES = 5666; + public static final int RUNE_KNIFES = 5667; + public static final int IRON_DAGGER_5668 = 5668; + public static final int IRON_DAGGER_5669 = 5669; + public static final int BRONZE_DAGGER_5670 = 5670; + public static final int BRONZE_DAGGER_5671 = 5671; + public static final int STEEL_DAGGER_5672 = 5672; + public static final int STEEL_DAGGER_5673 = 5673; + public static final int MITHRIL_DAGGER_5674 = 5674; + public static final int MITHRIL_DAGGER_5675 = 5675; + public static final int ADAMANT_DAGGER_5676 = 5676; + public static final int ADAMANT_DAGGER_5677 = 5677; + public static final int RUNE_DAGGER_5678 = 5678; + public static final int RUNE_DAGGER_5679 = 5679; + public static final int DRAGON_DAGGER_5680 = 5680; + public static final int DRAGON_DAGGER_5681 = 5681; + public static final int BLACK_DAGGER_5682 = 5682; + public static final int BLACK_DAGGER_5683 = 5683; + public static final int POISONED_DAGGER = 5684; + public static final int POISONED_DAGGER_5685 = 5685; + public static final int IRON_DAGGERS = 5686; + public static final int IRON_DAGGERS_5687 = 5687; + public static final int BRONZE_DAGGERS = 5688; + public static final int BRONZE_DAGGERS_5689 = 5689; + public static final int STEEL_DAGGERS = 5690; + public static final int STEEL_DAGGERS_5691 = 5691; + public static final int MITHRIL_DAGGERS = 5692; + public static final int MITHRIL_DAGGERS_5693 = 5693; + public static final int ADAMANT_DAGGERS = 5694; + public static final int ADAMANT_DAGGERS_5695 = 5695; + public static final int RUNE_DAGGERS = 5696; + public static final int RUNE_DAGGERS_5697 = 5697; + public static final int DRAGON_DAGGERS = 5698; + public static final int DRAGON_DAGGERS_5699 = 5699; + public static final int BLACK_DAGGERS = 5700; + public static final int BLACK_DAGGERS_5701 = 5701; + public static final int POISONED_DAGGERS = 5702; + public static final int POISONED_DAGGERS_5703 = 5703; + public static final int BRONZE_SPEAR_5704 = 5704; + public static final int BRONZE_SPEAR_5705 = 5705; + public static final int IRON_SPEAR_5706 = 5706; + public static final int IRON_SPEAR_5707 = 5707; + public static final int STEEL_SPEAR_5708 = 5708; + public static final int STEEL_SPEAR_5709 = 5709; + public static final int MITHRIL_SPEAR_5710 = 5710; + public static final int MITHRIL_SPEAR_5711 = 5711; + public static final int ADAMANT_SPEAR_5712 = 5712; + public static final int ADAMANT_SPEAR_5713 = 5713; + public static final int RUNE_SPEAR_5714 = 5714; + public static final int RUNE_SPEAR_5715 = 5715; + public static final int DRAGON_SPEAR_5716 = 5716; + public static final int DRAGON_SPEAR_5717 = 5717; + public static final int BRONZE_SPEARS = 5718; + public static final int BRONZE_SPEARS_5719 = 5719; + public static final int IRON_SPEARS = 5720; + public static final int IRON_SPEARS_5721 = 5721; + public static final int STEEL_SPEARS = 5722; + public static final int STEEL_SPEARS_5723 = 5723; + public static final int MITHRIL_SPEARS = 5724; + public static final int MITHRIL_SPEARS_5725 = 5725; + public static final int ADAMANT_SPEARS = 5726; + public static final int ADAMANT_SPEARS_5727 = 5727; + public static final int RUNE_SPEARS = 5728; + public static final int RUNE_SPEARS_5729 = 5729; + public static final int DRAGON_SPEARS = 5730; + public static final int DRAGON_SPEARS_5731 = 5731; + public static final int STOOL_5732 = 5732; + public static final int ROTTEN_POTATO = 5733; + public static final int BLACK_SPEAR_5734 = 5734; + public static final int BLACK_SPEAR_5735 = 5735; + public static final int BLACK_SPEARS = 5736; + public static final int BLACK_SPEARS_5737 = 5737; + public static final int WOAD_LEAF_5738 = 5738; + public static final int ASGARNIAN_ALEM = 5739; + public static final int ASGARNIAN_ALEM_5740 = 5740; + public static final int MATURE_WMB = 5741; + public static final int MATURE_WMB_5742 = 5742; + public static final int GREENMANS_ALEM = 5743; + public static final int GREENMANS_ALEM_5744 = 5744; + public static final int DRAGON_BITTERM = 5745; + public static final int DRAGON_BITTERM_5746 = 5746; + public static final int DWARVEN_STOUTM = 5747; + public static final int DWARVEN_STOUTM_5748 = 5748; + public static final int MOONLIGHT_MEADM = 5749; + public static final int MOONLIGHT_MEADM_5750 = 5750; + public static final int AXEMANS_FOLLY = 5751; + public static final int AXEMANS_FOLLY_5752 = 5752; + public static final int AXEMANS_FOLLYM = 5753; + public static final int AXEMANS_FOLLYM_5754 = 5754; + public static final int CHEFS_DELIGHT = 5755; + public static final int CHEFS_DELIGHT_5756 = 5756; + public static final int CHEFS_DELIGHTM = 5757; + public static final int CHEFS_DELIGHTM_5758 = 5758; + public static final int SLAYERS_RESPITE = 5759; + public static final int SLAYERS_RESPITE_5760 = 5760; + public static final int SLAYERS_RESPITEM = 5761; + public static final int SLAYERS_RESPITEM_5762 = 5762; + public static final int CIDER = 5763; + public static final int CIDER_5764 = 5764; + public static final int MATURE_CIDER = 5765; + public static final int MATURE_CIDER_5766 = 5766; + public static final int ALE_YEAST = 5767; + public static final int ALE_YEAST_5768 = 5768; + public static final int CALQUAT_KEG = 5769; + public static final int CALQUAT_KEG_5770 = 5770; + public static final int DWARVEN_STOUT1 = 5771; + public static final int DWARVEN_STOUT1_5772 = 5772; + public static final int DWARVEN_STOUT2 = 5773; + public static final int DWARVEN_STOUT2_5774 = 5774; + public static final int DWARVEN_STOUT3 = 5775; + public static final int DWARVEN_STOUT3_5776 = 5776; + public static final int DWARVEN_STOUT4 = 5777; + public static final int DWARVEN_STOUT4_5778 = 5778; + public static final int ASGARNIAN_ALE1 = 5779; + public static final int ASGARNIAN_ALE1_5780 = 5780; + public static final int ASGARNIAN_ALE2 = 5781; + public static final int ASGARNIAN_ALE2_5782 = 5782; + public static final int ASGARNIAN_ALE3 = 5783; + public static final int ASGARNIAN_ALE3_5784 = 5784; + public static final int ASGARNIAN_ALE4 = 5785; + public static final int ASGARNIAN_ALE4_5786 = 5786; + public static final int GREENMANS_ALE1 = 5787; + public static final int GREENMANS_ALE1_5788 = 5788; + public static final int GREENMANS_ALE2 = 5789; + public static final int GREENMANS_ALE2_5790 = 5790; + public static final int GREENMANS_ALE3 = 5791; + public static final int GREENMANS_ALE3_5792 = 5792; + public static final int GREENMANS_ALE4 = 5793; + public static final int GREENMANS_ALE4_5794 = 5794; + public static final int MIND_BOMB1 = 5795; + public static final int MIND_BOMB1_5796 = 5796; + public static final int MIND_BOMB2 = 5797; + public static final int MIND_BOMB2_5798 = 5798; + public static final int MIND_BOMB3 = 5799; + public static final int MIND_BOMB3_5800 = 5800; + public static final int MIND_BOMB4 = 5801; + public static final int MIND_BOMB4_5802 = 5802; + public static final int DRAGON_BITTER1 = 5803; + public static final int DRAGON_BITTER1_5804 = 5804; + public static final int DRAGON_BITTER2 = 5805; + public static final int DRAGON_BITTER2_5806 = 5806; + public static final int DRAGON_BITTER3 = 5807; + public static final int DRAGON_BITTER3_5808 = 5808; + public static final int DRAGON_BITTER4 = 5809; + public static final int DRAGON_BITTER4_5810 = 5810; + public static final int MOONLIGHT_MEAD1 = 5811; + public static final int MOONLIGHT_MEAD1_5812 = 5812; + public static final int MOONLIGHT_MEAD2 = 5813; + public static final int MOONLIGHT_MEAD2_5814 = 5814; + public static final int MOONLIGHT_MEAD3 = 5815; + public static final int MOONLIGHT_MEAD3_5816 = 5816; + public static final int MOONLIGHT_MEAD4 = 5817; + public static final int MOONLIGHT_MEAD4_5818 = 5818; + public static final int AXEMANS_FOLLY1 = 5819; + public static final int AXEMANS_FOLLY1_5820 = 5820; + public static final int AXEMANS_FOLLY2 = 5821; + public static final int AXEMANS_FOLLY2_5822 = 5822; + public static final int AXEMANS_FOLLY3 = 5823; + public static final int AXEMANS_FOLLY3_5824 = 5824; + public static final int AXEMANS_FOLLY4 = 5825; + public static final int AXEMANS_FOLLY4_5826 = 5826; + public static final int CHEFS_DELIGHT1 = 5827; + public static final int CHEFS_DELIGHT1_5828 = 5828; + public static final int CHEFS_DELIGHT2 = 5829; + public static final int CHEFS_DELIGHT2_5830 = 5830; + public static final int CHEFS_DELIGHT3 = 5831; + public static final int CHEFS_DELIGHT3_5832 = 5832; + public static final int CHEFS_DELIGHT4 = 5833; + public static final int CHEFS_DELIGHT4_5834 = 5834; + public static final int SLAYERS_RESPITE1 = 5835; + public static final int SLAYERS_RESPITE1_5836 = 5836; + public static final int SLAYERS_RESPITE2 = 5837; + public static final int SLAYERS_RESPITE2_5838 = 5838; + public static final int SLAYERS_RESPITE3 = 5839; + public static final int SLAYERS_RESPITE3_5840 = 5840; + public static final int SLAYERS_RESPITE4 = 5841; + public static final int SLAYERS_RESPITE4_5842 = 5842; + public static final int CIDER1 = 5843; + public static final int CIDER1_5844 = 5844; + public static final int CIDER2 = 5845; + public static final int CIDER2_5846 = 5846; + public static final int CIDER3 = 5847; + public static final int CIDER3_5848 = 5848; + public static final int CIDER4 = 5849; + public static final int CIDER4_5850 = 5850; + public static final int DWARVEN_STOUTM1 = 5851; + public static final int DWARVEN_STOUTM1_5852 = 5852; + public static final int DWARVEN_STOUTM2 = 5853; + public static final int DWARVEN_STOUTM2_5854 = 5854; + public static final int DWARVEN_STOUTM3 = 5855; + public static final int DWARVEN_STOUTM3_5856 = 5856; + public static final int DWARVEN_STOUTM4 = 5857; + public static final int DWARVEN_STOUTM4_5858 = 5858; + public static final int ASGARNIAN_ALEM1 = 5859; + public static final int ASGARNIAN_ALEM1_5860 = 5860; + public static final int ASGARNIAN_ALEM2 = 5861; + public static final int ASGARNIAN_ALEM2_5862 = 5862; + public static final int ASGARNIAN_ALEM3 = 5863; + public static final int ASGARNIAN_ALEM3_5864 = 5864; + public static final int ASGARNIAN_ALEM4 = 5865; + public static final int ASGARNIAN_ALEM4_5866 = 5866; + public static final int GREENMANS_ALEM1 = 5867; + public static final int GREENMANS_ALEM1_5868 = 5868; + public static final int GREENMANS_ALEM2 = 5869; + public static final int GREENMANS_ALEM2_5870 = 5870; + public static final int GREENMANS_ALEM3 = 5871; + public static final int GREENMANS_ALEM3_5872 = 5872; + public static final int GREENMANS_ALEM4 = 5873; + public static final int GREENMANS_ALEM4_5874 = 5874; + public static final int MIND_BOMBM1 = 5875; + public static final int MIND_BOMBM1_5876 = 5876; + public static final int MIND_BOMBM2 = 5877; + public static final int MIND_BOMBM2_5878 = 5878; + public static final int MIND_BOMBM3 = 5879; + public static final int MIND_BOMBM3_5880 = 5880; + public static final int MIND_BOMBM4 = 5881; + public static final int MIND_BOMBM4_5882 = 5882; + public static final int DRAGON_BITTERM1 = 5883; + public static final int DRAGON_BITTERM1_5884 = 5884; + public static final int DRAGON_BITTERM2 = 5885; + public static final int DRAGON_BITTERM2_5886 = 5886; + public static final int DRAGON_BITTERM3 = 5887; + public static final int DRAGON_BITTERM3_5888 = 5888; + public static final int DRAGON_BITTERM4 = 5889; + public static final int DRAGON_BITTERM4_5890 = 5890; + public static final int MLIGHT_MEADM1 = 5891; + public static final int MLIGHT_MEADM1_5892 = 5892; + public static final int MLIGHT_MEADM2 = 5893; + public static final int MLIGHT_MEADM2_5894 = 5894; + public static final int MLIGHT_MEADM3 = 5895; + public static final int MLIGHT_MEADM3_5896 = 5896; + public static final int MLIGHT_MEADM4 = 5897; + public static final int MLIGHT_MEADM4_5898 = 5898; + public static final int AXEMANS_FOLLYM1 = 5899; + public static final int AXEMANS_FOLLYM1_5900 = 5900; + public static final int AXEMANS_FOLLYM2 = 5901; + public static final int AXEMANS_FOLLYM2_5902 = 5902; + public static final int AXEMANS_FOLLYM3 = 5903; + public static final int AXEMANS_FOLLYM3_5904 = 5904; + public static final int AXEMANS_FOLLYM4 = 5905; + public static final int AXEMANS_FOLLYM4_5906 = 5906; + public static final int CHEFS_DELIGHTM1 = 5907; + public static final int CHEFS_DELIGHTM1_5908 = 5908; + public static final int CHEFS_DELIGHTM2 = 5909; + public static final int CHEFS_DELIGHTM2_5910 = 5910; + public static final int CHEFS_DELIGHTM3 = 5911; + public static final int CHEFS_DELIGHTM3_5912 = 5912; + public static final int CHEFS_DELIGHTM4 = 5913; + public static final int CHEFS_DELIGHTM4_5914 = 5914; + public static final int SLAYER_RESPITEM1 = 5915; + public static final int SLAYER_RESPITEM1_5916 = 5916; + public static final int SLAYER_RESPITEM2 = 5917; + public static final int SLAYER_RESPITEM2_5918 = 5918; + public static final int SLAYER_RESPITEM3 = 5919; + public static final int SLAYER_RESPITEM3_5920 = 5920; + public static final int SLAYER_RESPITEM4 = 5921; + public static final int SLAYER_RESPITEM4_5922 = 5922; + public static final int CIDERM1 = 5923; + public static final int CIDERM1_5924 = 5924; + public static final int CIDERM2 = 5925; + public static final int CIDERM2_5926 = 5926; + public static final int CIDERM3 = 5927; + public static final int CIDERM3_5928 = 5928; + public static final int CIDERM4 = 5929; + public static final int CIDERM4_5930 = 5930; + public static final int JUTE_FIBRE = 5931; + public static final int JUTE_FIBRE_5932 = 5932; + public static final int WILLOW_BRANCH = 5933; + public static final int WILLOW_BRANCH_5934 = 5934; + public static final int COCONUT_MILK = 5935; + public static final int UNFINISHED_POTION_5936 = 5936; + public static final int WEAPON_POISON_5937 = 5937; + public static final int WEAPON_POISON_5938 = 5938; + public static final int UNFINISHED_POTION_5939 = 5939; + public static final int WEAPON_POISONS = 5940; + public static final int WEAPON_POISONS_5941 = 5941; + public static final int UNFINISHED_POTION_5942 = 5942; + public static final int ANTIDOTE4 = 5943; + public static final int ANTIDOTE4_5944 = 5944; + public static final int ANTIDOTE3 = 5945; + public static final int ANTIDOTE3_5946 = 5946; + public static final int ANTIDOTE2 = 5947; + public static final int ANTIDOTE2_5948 = 5948; + public static final int ANTIDOTE1 = 5949; + public static final int ANTIDOTE1_5950 = 5950; + public static final int UNFINISHED_POTION_5951 = 5951; + public static final int ANTIDOTE4_5952 = 5952; + public static final int ANTIDOTE4_5953 = 5953; + public static final int ANTIDOTE3_5954 = 5954; + public static final int ANTIDOTE3_5955 = 5955; + public static final int ANTIDOTE2_5956 = 5956; + public static final int ANTIDOTE2_5957 = 5957; + public static final int ANTIDOTE1_5958 = 5958; + public static final int ANTIDOTE1_5959 = 5959; + public static final int TOMATOES1 = 5960; + public static final int TOMATOES1_5961 = 5961; + public static final int TOMATOES2 = 5962; + public static final int TOMATOES2_5963 = 5963; + public static final int TOMATOES3 = 5964; + public static final int TOMATOES3_5965 = 5965; + public static final int TOMATOES4 = 5966; + public static final int TOMATOES4_5967 = 5967; + public static final int TOMATOES5 = 5968; + public static final int TOMATOES5_5969 = 5969; + public static final int CURRY_LEAF = 5970; + public static final int CURRY_LEAF_5971 = 5971; + public static final int PAPAYA_FRUIT = 5972; + public static final int PAPAYA_FRUIT_5973 = 5973; + public static final int COCONUT = 5974; + public static final int COCONUT_5975 = 5975; + public static final int COCONUT_5976 = 5976; + public static final int COCONUT_5977 = 5977; + public static final int COCONUT_SHELL = 5978; + public static final int COCONUT_SHELL_5979 = 5979; + public static final int CALQUAT_FRUIT = 5980; + public static final int CALQUAT_FRUIT_5981 = 5981; + public static final int WATERMELON = 5982; + public static final int WATERMELON_5983 = 5983; + public static final int WATERMELON_SLICE = 5984; + public static final int WATERMELON_SLICE_5985 = 5985; + public static final int SWEETCORN = 5986; + public static final int SWEETCORN_5987 = 5987; + public static final int SWEETCORN_5988 = 5988; + public static final int SWEETCORN_5989 = 5989; + public static final int BURNT_SWEETCORN = 5990; + public static final int BURNT_SWEETCORN_5991 = 5991; + public static final int APPLE_MUSH = 5992; + public static final int APPLE_MUSH_5993 = 5993; + public static final int HAMMERSTONE_HOPS = 5994; + public static final int HAMMERSTONE_HOPS_5995 = 5995; + public static final int ASGARNIAN_HOPS = 5996; + public static final int ASGARNIAN_HOPS_5997 = 5997; + public static final int YANILLIAN_HOPS = 5998; + public static final int YANILLIAN_HOPS_5999 = 5999; + public static final int KRANDORIAN_HOPS = 6000; + public static final int KRANDORIAN_HOPS_6001 = 6001; + public static final int WILDBLOOD_HOPS = 6002; + public static final int WILDBLOOD_HOPS_6003 = 6003; + public static final int MUSHROOM = 6004; + public static final int MUSHROOM_6005 = 6005; + public static final int BARLEY = 6006; + public static final int BARLEY_6007 = 6007; + public static final int BARLEY_MALT = 6008; + public static final int BARLEY_MALT_6009 = 6009; + public static final int MARIGOLDS = 6010; + public static final int MARIGOLDS_6011 = 6011; + public static final int NASTURTIUMS = 6012; + public static final int NASTURTIUMS_6013 = 6013; + public static final int ROSEMARY = 6014; + public static final int ROSEMARY_6015 = 6015; + public static final int CACTUS_SPINE = 6016; + public static final int CACTUS_SPINE_6017 = 6017; + public static final int POISONIVY_BERRIES = 6018; + public static final int POISONIVY_BERRIES_6019 = 6019; + public static final int LEAVES = 6020; + public static final int LEAVES_6021 = 6021; + public static final int LEAVES_6022 = 6022; + public static final int LEAVES_6023 = 6023; + public static final int LEAVES_6024 = 6024; + public static final int LEAVES_6025 = 6025; + public static final int LEAVES_6026 = 6026; + public static final int LEAVES_6027 = 6027; + public static final int LEAVES_6028 = 6028; + public static final int LEAVES_6029 = 6029; + public static final int LEAVES_6030 = 6030; + public static final int LEAVES_6031 = 6031; + public static final int COMPOST = 6032; + public static final int COMPOST_6033 = 6033; + public static final int SUPER_COMPOST = 6034; + public static final int SUPER_COMPOST_6035 = 6035; + public static final int PLANT_CURE = 6036; + public static final int PLANT_CURE_6037 = 6037; + public static final int MAGIC_STRING = 6038; + public static final int MAGIC_STRING_6039 = 6039; + public static final int AMULET_OF_NATURE = 6040; + public static final int EMERALD_AMULET_6041 = 6041; + public static final int EMERALD_AMULET_6042 = 6042; + public static final int OAK_ROOTS = 6043; + public static final int OAK_ROOTS_6044 = 6044; + public static final int WILLOW_ROOTS = 6045; + public static final int WILLOW_ROOTS_6046 = 6046; + public static final int MAPLE_ROOTS = 6047; + public static final int MAPLE_ROOTS_6048 = 6048; + public static final int YEW_ROOTS = 6049; + public static final int YEW_ROOTS_6050 = 6050; + public static final int MAGIC_ROOTS = 6051; + public static final int MAGIC_ROOTS_6052 = 6052; + public static final int SPIRIT_ROOTS = 6053; + public static final int SPIRIT_ROOTS_6054 = 6054; + public static final int WEEDS = 6055; + public static final int WEEDS_6056 = 6056; + public static final int HAY_SACK = 6057; + public static final int HAY_SACK_6058 = 6058; + public static final int SCARECROW = 6059; + public static final int STOOL_6060 = 6060; + public static final int BOLTS_6061 = 6061; + public static final int BOLTSS = 6062; + public static final int SPIRIT_TREE = 6063; + public static final int BLOODY_MOURNER_TOP = 6064; + public static final int MOURNER_TOP = 6065; + public static final int MOURNER_TROUSERS = 6066; + public static final int MOURNER_TROUSERS_6067 = 6067; + public static final int MOURNER_GLOVES = 6068; + public static final int MOURNER_BOOTS = 6069; + public static final int MOURNER_CLOAK = 6070; + public static final int MOURNER_LETTER = 6071; + public static final int TEGIDS_SOAP = 6072; + public static final int PRIFDDINAS_HISTORY = 6073; + public static final int PRIFDDINAS_HISTORY_6074 = 6074; + public static final int EASTERN_DISCOVERY = 6075; + public static final int EASTERN_DISCOVERY_6076 = 6076; + public static final int EASTERN_SETTLEMENT = 6077; + public static final int EASTERN_SETTLEMENT_6078 = 6078; + public static final int THE_GREAT_DIVIDE = 6079; + public static final int THE_GREAT_DIVIDE_6080 = 6080; + public static final int BROKEN_DEVICE = 6081; + public static final int FIXED_DEVICE = 6082; + public static final int TARNISHED_KEY = 6083; + public static final int WORN_KEY = 6084; + public static final int RED_DYE_BELLOWS = 6085; + public static final int BLUE_DYE_BELLOWS = 6086; + public static final int YELLOW_DYE_BELLOWS = 6087; + public static final int GREEN_DYE_BELLOWS = 6088; + public static final int BLUE_TOAD = 6089; + public static final int RED_TOAD = 6090; + public static final int YELLOW_TOAD = 6091; + public static final int GREEN_TOAD = 6092; + public static final int ROTTEN_APPLES = 6093; + public static final int APPLE_BARREL = 6094; + public static final int NAPHTHA_APPLE_MIX = 6095; + public static final int TOXIC_NAPHTHA = 6096; + public static final int SIEVE = 6097; + public static final int TOXIC_POWDER = 6098; + public static final int TELEPORT_CRYSTAL_4 = 6099; + public static final int TELEPORT_CRYSTAL_3 = 6100; + public static final int TELEPORT_CRYSTAL_2 = 6101; + public static final int TELEPORT_CRYSTAL_1 = 6102; + public static final int TINY_ELF_CRYSTAL = 6103; + public static final int NEW_KEY = 6104; + public static final int ELF = 6105; + public static final int GHOSTLY_BOOTS = 6106; + public static final int GHOSTLY_ROBE = 6107; + public static final int GHOSTLY_ROBE_6108 = 6108; + public static final int GHOSTLY_HOOD = 6109; + public static final int GHOSTLY_GLOVES = 6110; + public static final int GHOSTLY_CLOAK = 6111; + public static final int KELDA_SEED = 6112; + public static final int KELDA_HOPS = 6113; + public static final int NULL_6114 = 6114; + public static final int NULL_6115 = 6115; + public static final int NULL_6116 = 6116; + public static final int NULL_6117 = 6117; + public static final int KELDA_STOUT = 6118; + public static final int SQUARE_STONE = 6119; + public static final int SQUARE_STONE_6120 = 6120; + public static final int LETTER_6121 = 6121; + public static final int A_CHAIR = 6122; + public static final int BEER_GLASS_6123 = 6123; + public static final int COCONUT_MILK_6124 = 6124; + public static final int ENCHANTED_LYRE2 = 6125; + public static final int ENCHANTED_LYRE3 = 6126; + public static final int ENCHANTED_LYRE4 = 6127; + public static final int ROCKSHELL_HELM = 6128; + public static final int ROCKSHELL_PLATE = 6129; + public static final int ROCKSHELL_LEGS = 6130; + public static final int SPINED_HELM = 6131; + public static final int SPINED_HELM_6132 = 6132; + public static final int SPINED_BODY = 6133; + public static final int SPINED_BODY_6134 = 6134; + public static final int SPINED_CHAPS = 6135; + public static final int SPINED_CHAPS_6136 = 6136; + public static final int SKELETAL_HELM = 6137; + public static final int SKELETAL_HELM_6138 = 6138; + public static final int SKELETAL_TOP = 6139; + public static final int SKELETAL_TOP_6140 = 6140; + public static final int SKELETAL_BOTTOMS = 6141; + public static final int SKELETAL_BOTTOMS_6142 = 6142; + public static final int SPINED_BOOTS = 6143; + public static final int SPINED_BOOTS_6144 = 6144; + public static final int ROCKSHELL_BOOTS = 6145; + public static final int ROCKSHELL_BOOTS_6146 = 6146; + public static final int SKELETAL_BOOTS = 6147; + public static final int SKELETAL_BOOTS_6148 = 6148; + public static final int SPINED_GLOVES = 6149; + public static final int SPINED_GLOVES_6150 = 6150; + public static final int ROCKSHELL_GLOVES = 6151; + public static final int ROCKSHELL_GLOVES_6152 = 6152; + public static final int SKELETAL_GLOVES = 6153; + public static final int SKELETAL_GLOVES_6154 = 6154; + public static final int DAGANNOTH_HIDE = 6155; + public static final int DAGANNOTH_HIDE_6156 = 6156; + public static final int ROCKSHELL_CHUNK = 6157; + public static final int ROCKSHELL_CHUNK_6158 = 6158; + public static final int ROCKSHELL_SHARD = 6159; + public static final int ROCKSHELL_SHARD_6160 = 6160; + public static final int ROCKSHELL_SPLINTER = 6161; + public static final int ROCKSHELL_SPLINTER_6162 = 6162; + public static final int SKULL_PIECE = 6163; + public static final int SKULL_PIECE_6164 = 6164; + public static final int RIBCAGE_PIECE = 6165; + public static final int RIBCAGE_PIECE_6166 = 6166; + public static final int FIBULA_PIECE = 6167; + public static final int FIBULA_PIECE_6168 = 6168; + public static final int CIRCULAR_HIDE = 6169; + public static final int CIRCULAR_HIDE_6170 = 6170; + public static final int FLATTENED_HIDE = 6171; + public static final int FLATTENED_HIDE_6172 = 6172; + public static final int STRETCHED_HIDE = 6173; + public static final int STRETCHED_HIDE_6174 = 6174; + public static final int ROCKSHELL_HELM_6175 = 6175; + public static final int ROCKSHELL_PLATE_6176 = 6176; + public static final int ROCKSHELL_LEGS_6177 = 6177; + public static final int RAW_PHEASANT = 6178; + public static final int RAW_PHEASANT_6179 = 6179; + public static final int LEDERHOSEN_TOP = 6180; + public static final int LEDERHOSEN_SHORTS = 6181; + public static final int LEDERHOSEN_HAT = 6182; + public static final int FROG_TOKEN = 6183; + public static final int PRINCE_TUNIC = 6184; + public static final int PRINCE_LEGGINGS = 6185; + public static final int PRINCESS_BLOUSE = 6186; + public static final int PRINCESS_SKIRT = 6187; + public static final int FROG_MASK = 6188; + public static final int NULL_6189 = 6189; + public static final int NULL_6190 = 6190; + public static final int NULL_6191 = 6191; + public static final int NULL_6192 = 6192; + public static final int NULL_6193 = 6193; + public static final int NULL_6194 = 6194; + public static final int NULL_6195 = 6195; + public static final int NULL_6196 = 6196; + public static final int NULL_6197 = 6197; + public static final int NULL_6198 = 6198; + public static final int MYSTERY_BOX = 6199; + public static final int RAW_FISHLIKE_THING = 6200; + public static final int FISHMONGER = 6201; + public static final int FISHLIKE_THING = 6202; + public static final int SINE_WAVE = 6203; + public static final int RAW_FISHLIKE_THING_6204 = 6204; + public static final int _9MM_REVOLVER = 6205; + public static final int FISHLIKE_THING_6206 = 6206; + public static final int MOBILE_PHONE = 6207; + public static final int MAN_SPEAK_AMULET = 6208; + public static final int SMALL_FISHING_NET_6209 = 6209; + public static final int SPHINX_BABY = 6210; + public static final int TEAK_PYRE_LOGS = 6211; + public static final int TEAK_PYRE_LOGS_6212 = 6212; + public static final int MAHOGANY_PYRE_LOG = 6213; + public static final int MAHOGANY_PYRE_LOG_6214 = 6214; + public static final int BROODOO_SHIELD_10 = 6215; + public static final int BROODOO_SHIELD_10_6216 = 6216; + public static final int BROODOO_SHIELD_9 = 6217; + public static final int BROODOO_SHIELD_9_6218 = 6218; + public static final int BROODOO_SHIELD_8 = 6219; + public static final int BROODOO_SHIELD_8_6220 = 6220; + public static final int BROODOO_SHIELD_7 = 6221; + public static final int BROODOO_SHIELD_7_6222 = 6222; + public static final int BROODOO_SHIELD_6 = 6223; + public static final int BROODOO_SHIELD_6_6224 = 6224; + public static final int BROODOO_SHIELD_5 = 6225; + public static final int BROODOO_SHIELD_5_6226 = 6226; + public static final int BROODOO_SHIELD_4 = 6227; + public static final int BROODOO_SHIELD_4_6228 = 6228; + public static final int BROODOO_SHIELD_3 = 6229; + public static final int BROODOO_SHIELD_3_6230 = 6230; + public static final int BROODOO_SHIELD_2 = 6231; + public static final int BROODOO_SHIELD_2_6232 = 6232; + public static final int BROODOO_SHIELD_1 = 6233; + public static final int BROODOO_SHIELD_1_6234 = 6234; + public static final int BROODOO_SHIELD = 6235; + public static final int BROODOO_SHIELD_6236 = 6236; + public static final int BROODOO_SHIELD_10_6237 = 6237; + public static final int BROODOO_SHIELD_10_6238 = 6238; + public static final int BROODOO_SHIELD_9_6239 = 6239; + public static final int BROODOO_SHIELD_9_6240 = 6240; + public static final int BROODOO_SHIELD_8_6241 = 6241; + public static final int BROODOO_SHIELD_8_6242 = 6242; + public static final int BROODOO_SHIELD_7_6243 = 6243; + public static final int BROODOO_SHIELD_7_6244 = 6244; + public static final int BROODOO_SHIELD_6_6245 = 6245; + public static final int BROODOO_SHIELD_6_6246 = 6246; + public static final int BROODOO_SHIELD_5_6247 = 6247; + public static final int BROODOO_SHIELD_5_6248 = 6248; + public static final int BROODOO_SHIELD_4_6249 = 6249; + public static final int BROODOO_SHIELD_4_6250 = 6250; + public static final int BROODOO_SHIELD_3_6251 = 6251; + public static final int BROODOO_SHIELD_3_6252 = 6252; + public static final int BROODOO_SHIELD_2_6253 = 6253; + public static final int BROODOO_SHIELD_2_6254 = 6254; + public static final int BROODOO_SHIELD_1_6255 = 6255; + public static final int BROODOO_SHIELD_1_6256 = 6256; + public static final int BROODOO_SHIELD_6257 = 6257; + public static final int BROODOO_SHIELD_6258 = 6258; + public static final int BROODOO_SHIELD_10_6259 = 6259; + public static final int BROODOO_SHIELD_10_6260 = 6260; + public static final int BROODOO_SHIELD_9_6261 = 6261; + public static final int BROODOO_SHIELD_9_6262 = 6262; + public static final int BROODOO_SHIELD_8_6263 = 6263; + public static final int BROODOO_SHIELD_8_6264 = 6264; + public static final int BROODOO_SHIELD_7_6265 = 6265; + public static final int BROODOO_SHIELD_7_6266 = 6266; + public static final int BROODOO_SHIELD_6_6267 = 6267; + public static final int BROODOO_SHIELD_6_6268 = 6268; + public static final int BROODOO_SHIELD_5_6269 = 6269; + public static final int BROODOO_SHIELD_5_6270 = 6270; + public static final int BROODOO_SHIELD_4_6271 = 6271; + public static final int BROODOO_SHIELD_4_6272 = 6272; + public static final int BROODOO_SHIELD_3_6273 = 6273; + public static final int BROODOO_SHIELD_3_6274 = 6274; + public static final int BROODOO_SHIELD_2_6275 = 6275; + public static final int BROODOO_SHIELD_2_6276 = 6276; + public static final int BROODOO_SHIELD_1_6277 = 6277; + public static final int BROODOO_SHIELD_1_6278 = 6278; + public static final int BROODOO_SHIELD_6279 = 6279; + public static final int BROODOO_SHIELD_6280 = 6280; + public static final int THATCH_SPAR_LIGHT = 6281; + public static final int THATCH_SPAR_LIGHT_6282 = 6282; + public static final int THATCH_SPAR_MED = 6283; + public static final int THATCH_SPAR_MED_6284 = 6284; + public static final int THATCH_SPAR_DENSE = 6285; + public static final int THATCH_SPAR_DENSE_6286 = 6286; + public static final int SNAKE_HIDE = 6287; + public static final int SNAKE_HIDE_6288 = 6288; + public static final int SNAKESKIN = 6289; + public static final int SNAKESKIN_6290 = 6290; + public static final int SPIDER_CARCASS = 6291; + public static final int SPIDER_CARCASS_6292 = 6292; + public static final int SPIDER_ON_STICK = 6293; + public static final int SPIDER_ON_STICK_6294 = 6294; + public static final int SPIDER_ON_SHAFT = 6295; + public static final int SPIDER_ON_SHAFT_6296 = 6296; + public static final int SPIDER_ON_STICK_6297 = 6297; + public static final int SPIDER_ON_STICK_6298 = 6298; + public static final int SPIDER_ON_SHAFT_6299 = 6299; + public static final int SPIDER_ON_SHAFT_6300 = 6300; + public static final int BURNT_SPIDER = 6301; + public static final int BURNT_SPIDER_6302 = 6302; + public static final int SPIDER_ON_SHAFT_6303 = 6303; + public static final int SPIDER_ON_SHAFT_6304 = 6304; + public static final int SKEWER_STICK = 6305; + public static final int TRADING_STICKS = 6306; + public static final int NULL_6307 = 6307; + public static final int NULL_6308 = 6308; + public static final int NULL_6309 = 6309; + public static final int NULL_6310 = 6310; + public static final int GOUT_TUBER = 6311; + public static final int GOUT_TUBER_6312 = 6312; + public static final int OPAL_MACHETE = 6313; + public static final int OPAL_MACHETE_6314 = 6314; + public static final int JADE_MACHETE = 6315; + public static final int JADE_MACHETE_6316 = 6316; + public static final int RED_TOPAZ_MACHETE = 6317; + public static final int RED_TOPAZ_MACHETE_6318 = 6318; + public static final int PROBOSCIS = 6319; + public static final int NULL_6320 = 6320; + public static final int NULL_6321 = 6321; + public static final int SNAKESKIN_BODY = 6322; + public static final int SNAKESKIN_BODY_6323 = 6323; + public static final int SNAKESKIN_CHAPS = 6324; + public static final int SNAKESKIN_CHAPS_6325 = 6325; + public static final int SNAKESKIN_BANDANA = 6326; + public static final int SNAKESKIN_BANDANA_6327 = 6327; + public static final int SNAKESKIN_BOOTS = 6328; + public static final int SNAKESKIN_BOOTS_6329 = 6329; + public static final int SNAKESKIN_VBRACE = 6330; + public static final int SNAKESKIN_VBRACE_6331 = 6331; + public static final int MAHOGANY_LOGS = 6332; + public static final int TEAK_LOGS = 6333; + public static final int TEAK_LOGS_6334 = 6334; + public static final int TRIBAL_MASK = 6335; + public static final int TRIBAL_MASK_6336 = 6336; + public static final int TRIBAL_MASK_6337 = 6337; + public static final int TRIBAL_MASK_6338 = 6338; + public static final int TRIBAL_MASK_6339 = 6339; + public static final int TRIBAL_MASK_6340 = 6340; + public static final int TRIBAL_TOP = 6341; + public static final int TRIBAL_TOP_6342 = 6342; + public static final int VILLAGER_ROBE = 6343; + public static final int VILLAGER_ROBE_6344 = 6344; + public static final int VILLAGER_HAT = 6345; + public static final int VILLAGER_HAT_6346 = 6346; + public static final int VILLAGER_ARMBAND = 6347; + public static final int VILLAGER_ARMBAND_6348 = 6348; + public static final int VILLAGER_SANDALS = 6349; + public static final int VILLAGER_SANDALS_6350 = 6350; + public static final int TRIBAL_TOP_6351 = 6351; + public static final int TRIBAL_TOP_6352 = 6352; + public static final int VILLAGER_ROBE_6353 = 6353; + public static final int VILLAGER_ROBE_6354 = 6354; + public static final int VILLAGER_HAT_6355 = 6355; + public static final int VILLAGER_HAT_6356 = 6356; + public static final int VILLAGER_SANDALS_6357 = 6357; + public static final int VILLAGER_SANDALS_6358 = 6358; + public static final int VILLAGER_ARMBAND_6359 = 6359; + public static final int VILLAGER_ARMBAND_6360 = 6360; + public static final int TRIBAL_TOP_6361 = 6361; + public static final int TRIBAL_TOP_6362 = 6362; + public static final int VILLAGER_ROBE_6363 = 6363; + public static final int VILLAGER_ROBE_6364 = 6364; + public static final int VILLAGER_HAT_6365 = 6365; + public static final int VILLAGER_HAT_6366 = 6366; + public static final int VILLAGER_SANDALS_6367 = 6367; + public static final int VILLAGER_SANDALS_6368 = 6368; + public static final int VILLAGER_ARMBAND_6369 = 6369; + public static final int VILLAGER_ARMBAND_6370 = 6370; + public static final int TRIBAL_TOP_6371 = 6371; + public static final int TRIBAL_TOP_6372 = 6372; + public static final int VILLAGER_ROBE_6373 = 6373; + public static final int VILLAGER_ROBE_6374 = 6374; + public static final int VILLAGER_HAT_6375 = 6375; + public static final int VILLAGER_HAT_6376 = 6376; + public static final int VILLAGER_SANDALS_6377 = 6377; + public static final int VILLAGER_SANDALS_6378 = 6378; + public static final int VILLAGER_ARMBAND_6379 = 6379; + public static final int VILLAGER_ARMBAND_6380 = 6380; + public static final int TAX_RELIEF = 6381; + public static final int FEZ = 6382; + public static final int FEZ_6383 = 6383; + public static final int DESERT_TOP = 6384; + public static final int DESERT_TOP_6385 = 6385; + public static final int DESERT_ROBES = 6386; + public static final int DESERT_ROBES_6387 = 6387; + public static final int DESERT_TOP_6388 = 6388; + public static final int DESERT_TOP_6389 = 6389; + public static final int DESERT_LEGS = 6390; + public static final int DESERT_LEGS_6391 = 6391; + public static final int MENAP_HEADGEAR = 6392; + public static final int MENAP_HEADGEAR_6393 = 6393; + public static final int MENAPHITE_TOP = 6394; + public static final int MENAPHITE_TOP_6395 = 6395; + public static final int MENAPHITE_ROBE = 6396; + public static final int MENAPHITE_ROBE_6397 = 6397; + public static final int MENAP_ACTION_KILT = 6398; + public static final int MENAP_ACTION_KILT_6399 = 6399; + public static final int MENAP_HEADGEAR_6400 = 6400; + public static final int MENAP_HEADGEAR_6401 = 6401; + public static final int MENAPHITE_TOP_6402 = 6402; + public static final int MENAPHITE_TOP_6403 = 6403; + public static final int MENAPHITE_ROBE_6404 = 6404; + public static final int MENAPHITE_ROBE_6405 = 6405; + public static final int MENAP_ACTION_KILT_6406 = 6406; + public static final int MENAP_ACTION_KILT_6407 = 6407; + public static final int OAK_BLACKJACKA = 6408; + public static final int OAK_BLACKJACKA_6409 = 6409; + public static final int OAK_BLACKJACKD = 6410; + public static final int OAK_BLACKJACKD_6411 = 6411; + public static final int WILLOW_BLACKJACKA = 6412; + public static final int WILLOW_BLACKJACKA_6413 = 6413; + public static final int WILLOW_BLACKJACKD = 6414; + public static final int WILLOW_BLACKJACKD_6415 = 6415; + public static final int MAPLE_BLACKJACK = 6416; + public static final int MAPLE_BLACKJACK_6417 = 6417; + public static final int MAPLE_BLACKJACKA = 6418; + public static final int MAPLE_BLACKJACKA_6419 = 6419; + public static final int MAPLE_BLACKJACKD = 6420; + public static final int MAPLE_BLACKJACKD_6421 = 6421; + public static final int AIR_RUNE_6422 = 6422; + public static final int AIR_RUNE_6423 = 6423; + public static final int WATER_RUNE_6424 = 6424; + public static final int WATER_RUNE_6425 = 6425; + public static final int EARTH_RUNE_6426 = 6426; + public static final int EARTH_RUNE_6427 = 6427; + public static final int FIRE_RUNE_6428 = 6428; + public static final int FIRE_RUNE_6429 = 6429; + public static final int CHAOS_RUNE_6430 = 6430; + public static final int CHAOS_RUNE_6431 = 6431; + public static final int DEATH_RUNE_6432 = 6432; + public static final int DEATH_RUNE_6433 = 6433; + public static final int LAW_RUNE_6434 = 6434; + public static final int LAW_RUNE_6435 = 6435; + public static final int MIND_RUNE_6436 = 6436; + public static final int MIND_RUNE_6437 = 6437; + public static final int BODY_RUNE_6438 = 6438; + public static final int BODY_RUNE_6439 = 6439; + public static final int NULL_6440 = 6440; + public static final int NULL_6441 = 6441; + public static final int NULL_6442 = 6442; + public static final int NULL_6443 = 6443; + public static final int NULL_6444 = 6444; + public static final int NULL_6445 = 6445; + public static final int NULL_6446 = 6446; + public static final int NULL_6447 = 6447; + public static final int SPADEFUL_OF_COKE = 6448; + public static final int NULL_6449 = 6449; + public static final int WHOOPSIE_6450 = 6450; + public static final int NULL_6451 = 6451; + public static final int WHOOPSIE_6452 = 6452; + public static final int WHITE_ROSE_SEED = 6453; + public static final int RED_ROSE_SEED = 6454; + public static final int PINK_ROSE_SEED = 6455; + public static final int VINE_SEED = 6456; + public static final int DELPHINIUM_SEED = 6457; + public static final int ORCHID_SEED = 6458; + public static final int ORCHID_SEED_6459 = 6459; + public static final int SNOWDROP_SEED = 6460; + public static final int WHITE_TREE_SHOOT = 6461; + public static final int WHITE_TREE_SHOOT_6462 = 6462; + public static final int WHITE_TREE_SHOOT_6463 = 6463; + public static final int WHITE_TREE_SAPLING = 6464; + public static final int RING_OF_CHAROSU = 6465; + public static final int RUNE_SHARDS = 6466; + public static final int RUNE_DUST = 6467; + public static final int PLANT_CURE_6468 = 6468; + public static final int WHITE_TREE_FRUIT = 6469; + public static final int COMPOST_POTION4 = 6470; + public static final int COMPOST_POTION4_6471 = 6471; + public static final int COMPOST_POTION3 = 6472; + public static final int COMPOST_POTION3_6473 = 6473; + public static final int COMPOST_POTION2 = 6474; + public static final int COMPOST_POTION2_6475 = 6475; + public static final int COMPOST_POTION1 = 6476; + public static final int COMPOST_POTION1_6477 = 6477; + public static final int TROLLEY = 6478; + public static final int LIST = 6479; + public static final int NULL_6480 = 6480; + public static final int NULL_6481 = 6481; + public static final int NULL_6482 = 6482; + public static final int NULL_6483 = 6483; + public static final int NULL_6484 = 6484; + public static final int NULL_6485 = 6485; + public static final int NULL_6486 = 6486; + public static final int NULL_6487 = 6487; + public static final int NULL_6488 = 6488; + public static final int NULL_6489 = 6489; + public static final int NULL_6490 = 6490; + public static final int NULL_6491 = 6491; + public static final int NULL_6492 = 6492; + public static final int NULL_6493 = 6493; + public static final int NULL_6494 = 6494; + public static final int NULL_6495 = 6495; + public static final int NULL_6496 = 6496; + public static final int NULL_6497 = 6497; + public static final int NULL_6498 = 6498; + public static final int NULL_6499 = 6499; + public static final int NULL_6500 = 6500; + public static final int NULL_6501 = 6501; + public static final int NULL_6502 = 6502; + public static final int NULL_6503 = 6503; + public static final int NULL_6504 = 6504; + public static final int NULL_6505 = 6505; + public static final int NULL_6506 = 6506; + public static final int NULL_6507 = 6507; + public static final int NULL_6508 = 6508; + public static final int NULL_6509 = 6509; + public static final int NULL_6510 = 6510; + public static final int NULL_6511 = 6511; + public static final int NULL_6512 = 6512; + public static final int NULL_6513 = 6513; + public static final int AGILITY_JUMP = 6514; + public static final int AGILITY_BALANCE = 6515; + public static final int AGILITY_CONTORTION = 6516; + public static final int AGILITY_CLIMB = 6517; + public static final int AGILITY_JUMP_6518 = 6518; + public static final int AGILITY_BALANCE_6519 = 6519; + public static final int AGILITY_CONTORTION_6520 = 6520; + public static final int AGILITY_CLIMB_6521 = 6521; + public static final int TOKTZXILUL = 6522; + public static final int TOKTZXILAK = 6523; + public static final int TOKTZKETXIL = 6524; + public static final int TOKTZXILEK = 6525; + public static final int TOKTZMEJTAL = 6526; + public static final int TZHAARKETEM = 6527; + public static final int TZHAARKETOM = 6528; + public static final int TOKKUL = 6529; + public static final int NULL_6530 = 6530; + public static final int NULL_6531 = 6531; + public static final int NULL_6532 = 6532; + public static final int NULL_6533 = 6533; + public static final int NULL_6534 = 6534; + public static final int TOKTZXILAK_6535 = 6535; + public static final int TOKTZKETXIL_6536 = 6536; + public static final int TOKTZXILEK_6537 = 6537; + public static final int TOKTZMEJTAL_6538 = 6538; + public static final int TZHAARKETEM_6539 = 6539; + public static final int TZHAARKETOM_6540 = 6540; + public static final int MOUSE_TOY = 6541; + public static final int PRESENT = 6542; + public static final int ANTIQUE_LAMP_6543 = 6543; + public static final int CATSPEAK_AMULETE = 6544; + public static final int CHORES = 6545; + public static final int RECIPE = 6546; + public static final int DOCTORS_HAT = 6547; + public static final int NURSE_HAT = 6548; + public static final int LAZY_CAT = 6549; + public static final int LAZY_CAT_6550 = 6550; + public static final int LAZY_CAT_6551 = 6551; + public static final int LAZY_CAT_6552 = 6552; + public static final int LAZY_CAT_6553 = 6553; + public static final int LAZY_CAT_6554 = 6554; + public static final int WILY_CAT = 6555; + public static final int WILY_CAT_6556 = 6556; + public static final int WILY_CAT_6557 = 6557; + public static final int WILY_CAT_6558 = 6558; + public static final int WILY_CAT_6559 = 6559; + public static final int WILY_CAT_6560 = 6560; + public static final int AHABS_BEER = 6561; + public static final int MUD_BATTLESTAFF = 6562; + public static final int MYSTIC_MUD_STAFF = 6563; + public static final int ONYX_RING = 6564; + public static final int ONYX_NECKLACE = 6565; + public static final int ONYX_AMULET = 6566; + public static final int NULL_6567 = 6567; + public static final int OBSIDIAN_CAPE = 6568; + public static final int OBSIDIAN_CAPE_6569 = 6569; + public static final int FIRE_CAPE = 6570; + public static final int UNCUT_ONYX = 6571; + public static final int UNCUT_ONYX_6572 = 6572; + public static final int ONYX = 6573; + public static final int ONYX_6574 = 6574; + public static final int ONYX_RING_6575 = 6575; + public static final int ONYX_RING_6576 = 6576; + public static final int ONYX_NECKLACE_6577 = 6577; + public static final int ONYX_NECKLACE_6578 = 6578; + public static final int ONYX_AMULET_6579 = 6579; + public static final int ONYX_AMULET_6580 = 6580; + public static final int ONYX_AMULET_6581 = 6581; + public static final int ONYX_AMULET_6582 = 6582; + public static final int RING_OF_STONE = 6583; + public static final int RING_OF_STONE_6584 = 6584; + public static final int AMULET_OF_FURY = 6585; + public static final int AMULET_OF_FURY_6586 = 6586; + public static final int WHITE_CLAWS = 6587; + public static final int WHITE_CLAWS_6588 = 6588; + public static final int WHITE_BATTLEAXE = 6589; + public static final int WHITE_BATTLEAXE_6590 = 6590; + public static final int WHITE_DAGGER = 6591; + public static final int WHITE_DAGGER_6592 = 6592; + public static final int WHITE_DAGGERP = 6593; + public static final int WHITE_DAGGERP_6594 = 6594; + public static final int WHITE_DAGGER_6595 = 6595; + public static final int WHITE_DAGGER_6596 = 6596; + public static final int WHITE_DAGGERS = 6597; + public static final int WHITE_DAGGERS_6598 = 6598; + public static final int WHITE_HALBERD = 6599; + public static final int WHITE_HALBERD_6600 = 6600; + public static final int WHITE_MACE = 6601; + public static final int WHITE_MACE_6602 = 6602; + public static final int MAGIC_STAFF_6603 = 6603; + public static final int MAGIC_STAFF_6604 = 6604; + public static final int WHITE_SWORD = 6605; + public static final int WHITE_SWORD_6606 = 6606; + public static final int WHITE_LONGSWORD = 6607; + public static final int WHITE_LONGSWORD_6608 = 6608; + public static final int WHITE_2H_SWORD = 6609; + public static final int WHITE_2H_SWORD_6610 = 6610; + public static final int WHITE_SCIMITAR = 6611; + public static final int WHITE_SCIMITAR_6612 = 6612; + public static final int WHITE_WARHAMMER = 6613; + public static final int WHITE_WARHAMMER_6614 = 6614; + public static final int WHITE_CHAINBODY = 6615; + public static final int WHITE_CHAINBODY_6616 = 6616; + public static final int WHITE_PLATEBODY = 6617; + public static final int WHITE_PLATEBODY_6618 = 6618; + public static final int WHITE_BOOTS = 6619; + public static final int WHITE_BOOTS_6620 = 6620; + public static final int WHITE_MED_HELM = 6621; + public static final int WHITE_MED_HELM_6622 = 6622; + public static final int WHITE_FULL_HELM = 6623; + public static final int WHITE_FULL_HELM_6624 = 6624; + public static final int WHITE_PLATELEGS = 6625; + public static final int WHITE_PLATELEGS_6626 = 6626; + public static final int WHITE_PLATESKIRT = 6627; + public static final int WHITE_PLATESKIRT_6628 = 6628; + public static final int WHITE_GLOVES = 6629; + public static final int WHITE_GLOVES_6630 = 6630; + public static final int WHITE_SQ_SHIELD = 6631; + public static final int WHITE_SQ_SHIELD_6632 = 6632; + public static final int WHITE_KITESHIELD = 6633; + public static final int WHITE_KITESHIELD_6634 = 6634; + public static final int COMMORB = 6635; + public static final int SOLUSS_HAT = 6636; + public static final int DARK_BEAST = 6637; + public static final int COLOUR_WHEEL = 6638; + public static final int HAND_MIRROR = 6639; + public static final int RED_CRYSTAL = 6640; + public static final int YELLOW_CRYSTAL = 6641; + public static final int GREEN_CRYSTAL = 6642; + public static final int CYAN_CRYSTAL = 6643; + public static final int BLUE_CRYSTAL = 6644; + public static final int MAGENTA_CRYSTAL = 6645; + public static final int FRACTURED_CRYSTAL = 6646; + public static final int FRACTURED_CRYSTAL_6647 = 6647; + public static final int ITEM_LIST = 6648; + public static final int EDERNS_JOURNAL = 6649; + public static final int BLACKENED_CRYSTAL = 6650; + public static final int NEWLY_MADE_CRYSTAL = 6651; + public static final int NEWLY_MADE_CRYSTAL_6652 = 6652; + public static final int CRYSTAL_TRINKET = 6653; + public static final int CAMO_TOP = 6654; + public static final int CAMO_BOTTOMS = 6655; + public static final int CAMO_HELMET = 6656; + public static final int CAMO_TOP_6657 = 6657; + public static final int CAMO_BOTTOMS_6658 = 6658; + public static final int CAMO_HELMET_6659 = 6659; + public static final int FISHING_EXPLOSIVE = 6660; + public static final int MOGRE = 6661; + public static final int BROKEN_FISHING_ROD = 6662; + public static final int FORLORN_BOOT = 6663; + public static final int FISHING_EXPLOSIVE_6664 = 6664; + public static final int MUDSKIPPER_HAT = 6665; + public static final int FLIPPERS = 6666; + public static final int FISHBOWL = 6667; + public static final int FISHBOWL_6668 = 6668; + public static final int FISHBOWL_6669 = 6669; + public static final int FISHBOWL_6670 = 6670; + public static final int FISHBOWL_6671 = 6671; + public static final int FISHBOWL_6672 = 6672; + public static final int FISHBOWL_AND_NET = 6673; + public static final int TINY_NET = 6674; + public static final int AN_EMPTY_BOX = 6675; + public static final int AN_EMPTY_BOX_6676 = 6676; + public static final int GUAM_IN_A_BOX = 6677; + public static final int GUAM_IN_A_BOX_6678 = 6678; + public static final int SEAWEED_IN_A_BOX = 6679; + public static final int SEAWEED_IN_A_BOX_6680 = 6680; + public static final int GROUND_GUAM = 6681; + public static final int GROUND_GUAM_6682 = 6682; + public static final int GROUND_SEAWEED = 6683; + public static final int GROUND_SEAWEED_6684 = 6684; + public static final int SARADOMIN_BREW4 = 6685; + public static final int SARADOMIN_BREW4_6686 = 6686; + public static final int SARADOMIN_BREW3 = 6687; + public static final int SARADOMIN_BREW3_6688 = 6688; + public static final int SARADOMIN_BREW2 = 6689; + public static final int SARADOMIN_BREW2_6690 = 6690; + public static final int SARADOMIN_BREW1 = 6691; + public static final int SARADOMIN_BREW1_6692 = 6692; + public static final int CRUSHED_NEST = 6693; + public static final int CRUSHED_NEST_6694 = 6694; + public static final int DESERT_LIZARD = 6695; + public static final int ICE_COOLER = 6696; + public static final int PAT_OF_BUTTER = 6697; + public static final int PAT_OF_BUTTER_6698 = 6698; + public static final int BURNT_POTATO = 6699; + public static final int BURNT_POTATO_6700 = 6700; + public static final int BAKED_POTATO = 6701; + public static final int BAKED_POTATO_6702 = 6702; + public static final int POTATO_WITH_BUTTER = 6703; + public static final int POTATO_WITH_BUTTER_6704 = 6704; + public static final int POTATO_WITH_CHEESE = 6705; + public static final int POTATO_WITH_CHEESE_6706 = 6706; + public static final int CAMULET = 6707; + public static final int SLAYER_GLOVES = 6708; + public static final int FEVER_SPIDER = 6709; + public static final int BLINDWEED_SEED = 6710; + public static final int BLINDWEED = 6711; + public static final int BUCKET_OF_WATER_6712 = 6712; + public static final int WRENCH = 6713; + public static final int HOLY_WRENCH = 6714; + public static final int SLUGLINGS = 6715; + public static final int KARAMTHULHU = 6716; + public static final int KARAMTHULHU_6717 = 6717; + public static final int FEVER_SPIDER_BODY = 6718; + public static final int UNSANITARY_SWILL = 6719; + public static final int SLAYER_GLOVES_6720 = 6720; + public static final int RUSTY_SCIMITAR = 6721; + public static final int ZOMBIE_HEAD = 6722; + public static final int FISHBOWL_6723 = 6723; + public static final int SEERCULL = 6724; + public static final int SEERCULL_6725 = 6725; + public static final int MUD_BATTLESTAFF_6726 = 6726; + public static final int MYSTIC_MUD_STAFF_6727 = 6727; + public static final int BONEMEAL_6728 = 6728; + public static final int DAGANNOTH_BONES = 6729; + public static final int DAGANNOTH_BONES_6730 = 6730; + public static final int SEERS_RING = 6731; + public static final int SEERS_RING_6732 = 6732; + public static final int ARCHERS_RING = 6733; + public static final int ARCHERS_RING_6734 = 6734; + public static final int WARRIOR_RING = 6735; + public static final int WARRIOR_RING_6736 = 6736; + public static final int BERSERKER_RING = 6737; + public static final int BERSERKER_RING_6738 = 6738; + public static final int DRAGON_AXE = 6739; + public static final int DRAGON_AXE_6740 = 6740; + public static final int BROKEN_AXE_6741 = 6741; + public static final int BROKEN_AXE_6742 = 6742; + public static final int DRAGON_AXE_HEAD = 6743; + public static final int DRAGON_AXE_HEAD_6744 = 6744; + public static final int SILVERLIGHT_6745 = 6745; + public static final int DARKLIGHT = 6746; + public static final int DEMONIC_SIGIL_MOULD = 6747; + public static final int DEMONIC_SIGIL = 6748; + public static final int DEMONIC_TOME = 6749; + public static final int BLACK_DESERT_SHIRT = 6750; + public static final int BLACK_DESERT_SHIRT_6751 = 6751; + public static final int BLACK_DESERT_ROBE = 6752; + public static final int BLACK_DESERT_ROBE_6753 = 6753; + public static final int ENCHANTED_KEY = 6754; + public static final int JOURNAL_6755 = 6755; + public static final int LETTER_6756 = 6756; + public static final int LETTER_6757 = 6757; + public static final int SCROLL_6758 = 6758; + public static final int CHEST = 6759; + public static final int GUTHIX_MJOLNIR = 6760; + public static final int GUTHIX_MJOLNIR_6761 = 6761; + public static final int SARADOMIN_MJOLNIR = 6762; + public static final int SARADOMIN_MJOLNIR_6763 = 6763; + public static final int ZAMORAK_MJOLNIR = 6764; + public static final int ZAMORAK_MJOLNIR_6765 = 6765; + public static final int CAT_ANTIPOISON = 6766; + public static final int BOOK_6767 = 6767; + public static final int POISONED_CHEESE = 6768; + public static final int MUSIC_SCROLL = 6769; + public static final int DIRECTIONS = 6770; + public static final int POT_OF_WEEDS = 6771; + public static final int SMOULDERING_POT = 6772; + public static final int RAT_POLE = 6773; + public static final int RAT_POLE_6774 = 6774; + public static final int RAT_POLE_6775 = 6775; + public static final int RAT_POLE_6776 = 6776; + public static final int RAT_POLE_6777 = 6777; + public static final int RAT_POLE_6778 = 6778; + public static final int RAT_POLE_6779 = 6779; + public static final int MENAPHITE_THUG = 6780; + public static final int BANDIT_6781 = 6781; + public static final int BANDIT_6782 = 6782; + public static final int NULL_6783 = 6783; + public static final int WHOOPSIE_6784 = 6784; + public static final int STATUETTE_6785 = 6785; + public static final int ROBE_OF_ELIDINIS = 6786; + public static final int ROBE_OF_ELIDINIS_6787 = 6787; + public static final int TORN_ROBE = 6788; + public static final int TORN_ROBE_6789 = 6789; + public static final int SHOES = 6790; + public static final int SOLE = 6791; + public static final int ANCESTRAL_KEY = 6792; + public static final int BALLAD = 6793; + public static final int CHOCICE = 6794; + public static final int CHOCICE_6795 = 6795; + public static final int LAMP_6796 = 6796; + public static final int WATERING_CAN_6797 = 6797; + public static final int CHAMPION_SCROLL = 6798; + public static final int CHAMPION_SCROLL_6799 = 6799; + public static final int CHAMPION_SCROLL_6800 = 6800; + public static final int CHAMPION_SCROLL_6801 = 6801; + public static final int CHAMPION_SCROLL_6802 = 6802; + public static final int CHAMPION_SCROLL_6803 = 6803; + public static final int CHAMPION_SCROLL_6804 = 6804; + public static final int CHAMPION_SCROLL_6805 = 6805; + public static final int CHAMPION_SCROLL_6806 = 6806; + public static final int CHAMPION_SCROLL_6807 = 6807; + public static final int CHAMPION_SCROLL_6808 = 6808; + public static final int GRANITE_LEGS = 6809; + public static final int BONEMEAL_6810 = 6810; + public static final int SKELETAL_WYVERN = 6811; + public static final int WYVERN_BONES = 6812; + public static final int GRANITE_LEGS_6813 = 6813; + public static final int FUR = 6814; + public static final int FUR_6815 = 6815; + public static final int WYVERN_BONES_6816 = 6816; + public static final int SLENDER_BLADE = 6817; + public static final int BOWSWORD = 6818; + public static final int LARGE_POUCH_6819 = 6819; + public static final int RELIC = 6820; + public static final int ORB = 6821; + public static final int STAR_BAUBLE = 6822; + public static final int STAR_BAUBLE_6823 = 6823; + public static final int STAR_BAUBLE_6824 = 6824; + public static final int STAR_BAUBLE_6825 = 6825; + public static final int STAR_BAUBLE_6826 = 6826; + public static final int STAR_BAUBLE_6827 = 6827; + public static final int BOX_BAUBLE = 6828; + public static final int BOX_BAUBLE_6829 = 6829; + public static final int BOX_BAUBLE_6830 = 6830; + public static final int BOX_BAUBLE_6831 = 6831; + public static final int BOX_BAUBLE_6832 = 6832; + public static final int BOX_BAUBLE_6833 = 6833; + public static final int DIAMOND_BAUBLE = 6834; + public static final int DIAMOND_BAUBLE_6835 = 6835; + public static final int DIAMOND_BAUBLE_6836 = 6836; + public static final int DIAMOND_BAUBLE_6837 = 6837; + public static final int DIAMOND_BAUBLE_6838 = 6838; + public static final int DIAMOND_BAUBLE_6839 = 6839; + public static final int TREE_BAUBLE = 6840; + public static final int TREE_BAUBLE_6841 = 6841; + public static final int TREE_BAUBLE_6842 = 6842; + public static final int TREE_BAUBLE_6843 = 6843; + public static final int TREE_BAUBLE_6844 = 6844; + public static final int TREE_BAUBLE_6845 = 6845; + public static final int BELL_BAUBLE = 6846; + public static final int BELL_BAUBLE_6847 = 6847; + public static final int BELL_BAUBLE_6848 = 6848; + public static final int BELL_BAUBLE_6849 = 6849; + public static final int BELL_BAUBLE_6850 = 6850; + public static final int BELL_BAUBLE_6851 = 6851; + public static final int PUPPET_BOX = 6852; + public static final int BAUBLE_BOX = 6853; + public static final int PUPPET_BOX_6854 = 6854; + public static final int BAUBLE_BOX_6855 = 6855; + public static final int BOBBLE_HAT = 6856; + public static final int BOBBLE_SCARF = 6857; + public static final int JESTER_HAT = 6858; + public static final int JESTER_SCARF = 6859; + public static final int TRIJESTER_HAT = 6860; + public static final int TRIJESTER_SCARF = 6861; + public static final int WOOLLY_HAT = 6862; + public static final int WOOLLY_SCARF = 6863; + public static final int MARIONETTE_HANDLE = 6864; + public static final int BLUE_MARIONETTE = 6865; + public static final int GREEN_MARIONETTE = 6866; + public static final int RED_MARIONETTE = 6867; + public static final int BLUE_MARIONETTE_6868 = 6868; + public static final int GREEN_MARIONETTE_6869 = 6869; + public static final int RED_MARIONETTE_6870 = 6870; + public static final int RED_MARIONETTE_6871 = 6871; + public static final int RED_MARIONETTE_6872 = 6872; + public static final int RED_MARIONETTE_6873 = 6873; + public static final int RED_MARIONETTE_6874 = 6874; + public static final int BLUE_MARIONETTE_6875 = 6875; + public static final int BLUE_MARIONETTE_6876 = 6876; + public static final int BLUE_MARIONETTE_6877 = 6877; + public static final int BLUE_MARIONETTE_6878 = 6878; + public static final int GREEN_MARIONETTE_6879 = 6879; + public static final int GREEN_MARIONETTE_6880 = 6880; + public static final int GREEN_MARIONETTE_6881 = 6881; + public static final int GREEN_MARIONETTE_6882 = 6882; + public static final int PEACH = 6883; + public static final int NULL_6884 = 6884; + public static final int PROGRESS_HAT = 6885; + public static final int PROGRESS_HAT_6886 = 6886; + public static final int PROGRESS_HAT_6887 = 6887; + public static final int GUARDIAN_STATUE = 6888; + public static final int MAGES_BOOK = 6889; + public static final int MAGES_BOOK_6890 = 6890; + public static final int ARENA_BOOK = 6891; + public static final int ARENA_BOOK_6892 = 6892; + public static final int LEATHER_BOOTS_6893 = 6893; + public static final int ADAMANT_KITESHIELD_6894 = 6894; + public static final int ADAMANT_MED_HELM_6895 = 6895; + public static final int EMERALD_6896 = 6896; + public static final int RUNE_LONGSWORD_6897 = 6897; + public static final int CYLINDER = 6898; + public static final int CUBE = 6899; + public static final int ICOSAHEDRON = 6900; + public static final int PENTAMID = 6901; + public static final int ORB_6902 = 6902; + public static final int DRAGONSTONE_6903 = 6903; + public static final int ANIMALS_BONES = 6904; + public static final int ANIMALS_BONES_6905 = 6905; + public static final int ANIMALS_BONES_6906 = 6906; + public static final int ANIMALS_BONES_6907 = 6907; + public static final int BEGINNER_WAND = 6908; + public static final int BEGINNER_WAND_6909 = 6909; + public static final int APPRENTICE_WAND = 6910; + public static final int APPRENTICE_WAND_6911 = 6911; + public static final int TEACHER_WAND = 6912; + public static final int TEACHER_WAND_6913 = 6913; + public static final int MASTER_WAND = 6914; + public static final int MASTER_WAND_6915 = 6915; + public static final int INFINITY_TOP = 6916; + public static final int INFINITY_TOP_6917 = 6917; + public static final int INFINITY_HAT = 6918; + public static final int INFINITY_HAT_6919 = 6919; + public static final int INFINITY_BOOTS = 6920; + public static final int INFINITY_BOOTS_6921 = 6921; + public static final int INFINITY_GLOVES = 6922; + public static final int INFINITY_GLOVES_6923 = 6923; + public static final int INFINITY_BOTTOMS = 6924; + public static final int INFINITY_BOTTOMS_6925 = 6925; + public static final int BONES_TO_PEACHES = 6926; + public static final int NULL_6927 = 6927; + public static final int NULL_6928 = 6928; + public static final int NULL_6929 = 6929; + public static final int NULL_6930 = 6930; + public static final int NULL_6931 = 6931; + public static final int NULL_6932 = 6932; + public static final int NULL_6933 = 6933; + public static final int NULL_6934 = 6934; + public static final int NULL_6935 = 6935; + public static final int NULL_6936 = 6936; + public static final int NULL_6937 = 6937; + public static final int NULL_6938 = 6938; + public static final int NULL_6939 = 6939; + public static final int NULL_6940 = 6940; + public static final int NULL_6941 = 6941; + public static final int NULL_6942 = 6942; + public static final int NULL_6943 = 6943; + public static final int NULL_6944 = 6944; + public static final int SANDY_HAND = 6945; + public static final int BEER_SOAKED_HAND = 6946; + public static final int BERTS_ROTA = 6947; + public static final int SANDYS_ROTA = 6948; + public static final int A_MAGIC_SCROLL_6949 = 6949; + public static final int MAGICAL_ORB = 6950; + public static final int MAGICAL_ORB_A = 6951; + public static final int TRUTH_SERUM = 6952; + public static final int BOTTLED_WATER = 6953; + public static final int REDBERRY_JUICE = 6954; + public static final int PINK_DYE = 6955; + public static final int ROSE_TINTED_LENS = 6956; + public static final int WIZARDS_HEAD = 6957; + public static final int SAND = 6958; + public static final int CAPE_6959 = 6959; + public static final int CAPE_6960 = 6960; + public static final int BAGUETTE = 6961; + public static final int TRIANGLE_SANDWICH = 6962; + public static final int ROLL = 6963; + public static final int WASTE_DISPOSAL_6964 = 6964; + public static final int SQUARE_SANDWICH = 6965; + public static final int PRISON_KEY_6966 = 6966; + public static final int WASTE_DISPOSAL_6967 = 6967; + public static final int WASTE_DISPOSAL_6968 = 6968; + public static final int WASTE_DISPOSAL_6969 = 6969; + public static final int PYRAMID_TOP = 6970; + public static final int SANDSTONE_1KG = 6971; + public static final int SANDSTONE_1KG_6972 = 6972; + public static final int SANDSTONE_2KG = 6973; + public static final int SANDSTONE_2KG_6974 = 6974; + public static final int SANDSTONE_5KG = 6975; + public static final int SANDSTONE_5KG_6976 = 6976; + public static final int SANDSTONE_10KG = 6977; + public static final int SANDSTONE_10KG_6978 = 6978; + public static final int GRANITE_500G = 6979; + public static final int GRANITE_500G_6980 = 6980; + public static final int GRANITE_2KG = 6981; + public static final int GRANITE_2KG_6982 = 6982; + public static final int GRANITE_5KG = 6983; + public static final int GRANITE_5KG_6984 = 6984; + public static final int SANDSTONE_20KG = 6985; + public static final int SANDSTONE_32KG = 6986; + public static final int SANDSTONE_BODY = 6987; + public static final int SANDSTONE_BASE = 6988; + public static final int STONE_HEAD = 6989; + public static final int STONE_HEAD_6990 = 6990; + public static final int STONE_HEAD_6991 = 6991; + public static final int STONE_HEAD_6992 = 6992; + public static final int Z_SIGIL = 6993; + public static final int M_SIGIL = 6994; + public static final int R_SIGIL = 6995; + public static final int K_SIGIL = 6996; + public static final int STONE_LEFT_ARM = 6997; + public static final int STONE_RIGHT_ARM = 6998; + public static final int STONE_LEFT_LEG = 6999; + public static final int STONE_RIGHT_LEG = 7000; + public static final int CAMEL_MOULD_P = 7001; + public static final int STONE_HEAD_7002 = 7002; + public static final int CAMEL_MASK = 7003; + public static final int CHISEL_7004 = 7004; + public static final int NULL_7005 = 7005; + public static final int NULL_7006 = 7006; + public static final int NULL_7007 = 7007; + public static final int NULL_7008 = 7008; + public static final int NULL_7009 = 7009; + public static final int NULL_7010 = 7010; + public static final int NULL_7011 = 7011; + public static final int NULL_7012 = 7012; + public static final int NULL_7013 = 7013; + public static final int NULL_7014 = 7014; + public static final int NULL_7015 = 7015; + public static final int NULL_7016 = 7016; + public static final int NULL_7017 = 7017; + public static final int NULL_7018 = 7018; + public static final int NULL_7019 = 7019; + public static final int NULL_7020 = 7020; + public static final int NULL_7021 = 7021; + public static final int NULL_7022 = 7022; + public static final int NULL_7023 = 7023; + public static final int NULL_7024 = 7024; + public static final int NULL_7025 = 7025; + public static final int NULL_7026 = 7026; + public static final int NULL_7027 = 7027; + public static final int NULL_7028 = 7028; + public static final int NULL_7029 = 7029; + public static final int NULL_7030 = 7030; + public static final int NULL_7031 = 7031; + public static final int NULL_7032 = 7032; + public static final int NULL_7033 = 7033; + public static final int NULL_7034 = 7034; + public static final int NULL_7035 = 7035; + public static final int NULL_7036 = 7036; + public static final int NULL_7037 = 7037; + public static final int NULL_7038 = 7038; + public static final int NULL_7039 = 7039; + public static final int NULL_7040 = 7040; + public static final int NULL_7041 = 7041; + public static final int NULL_7042 = 7042; + public static final int NULL_7043 = 7043; + public static final int NULL_7044 = 7044; + public static final int NULL_7045 = 7045; + public static final int NULL_7046 = 7046; + public static final int NULL_7047 = 7047; + public static final int NULL_7048 = 7048; + public static final int NULL_7049 = 7049; + public static final int SWARM = 7050; + public static final int UNLIT_BUG_LANTERN = 7051; + public static final int UNLIT_BUG_LANTERN_7052 = 7052; + public static final int LIT_BUG_LANTERN = 7053; + public static final int CHILLI_POTATO = 7054; + public static final int CHILLI_POTATO_7055 = 7055; + public static final int EGG_POTATO = 7056; + public static final int EGG_POTATO_7057 = 7057; + public static final int MUSHROOM_POTATO = 7058; + public static final int MUSHROOM_POTATO_7059 = 7059; + public static final int TUNA_POTATO = 7060; + public static final int TUNA_POTATO_7061 = 7061; + public static final int CHILLI_CON_CARNE = 7062; + public static final int CHILLI_CON_CARNE_7063 = 7063; + public static final int EGG_AND_TOMATO = 7064; + public static final int EGG_AND_TOMATO_7065 = 7065; + public static final int MUSHROOM__ONION = 7066; + public static final int MUSHROOM__ONION_7067 = 7067; + public static final int TUNA_AND_CORN = 7068; + public static final int TUNA_AND_CORN_7069 = 7069; + public static final int MINCED_MEAT = 7070; + public static final int MINCED_MEAT_7071 = 7071; + public static final int SPICY_SAUCE = 7072; + public static final int SPICY_SAUCE_7073 = 7073; + public static final int CHOPPED_GARLIC = 7074; + public static final int CHOPPED_GARLIC_7075 = 7075; + public static final int UNCOOKED_EGG = 7076; + public static final int UNCOOKED_EGG_7077 = 7077; + public static final int SCRAMBLED_EGG = 7078; + public static final int SCRAMBLED_EGG_7079 = 7079; + public static final int SLICED_MUSHROOMS = 7080; + public static final int SLICED_MUSHROOMS_7081 = 7081; + public static final int FRIED_MUSHROOMS = 7082; + public static final int FRIED_MUSHROOMS_7083 = 7083; + public static final int FRIED_ONIONS = 7084; + public static final int FRIED_ONIONS_7085 = 7085; + public static final int CHOPPED_TUNA = 7086; + public static final int CHOPPED_TUNA_7087 = 7087; + public static final int SWEETCORN_7088 = 7088; + public static final int SWEETCORN_7089 = 7089; + public static final int BURNT_EGG = 7090; + public static final int BURNT_EGG_7091 = 7091; + public static final int BURNT_ONION = 7092; + public static final int BURNT_ONION_7093 = 7093; + public static final int BURNT_MUSHROOM = 7094; + public static final int BURNT_MUSHROOM_7095 = 7095; + public static final int BOARD_GAME_PIECE_7096 = 7096; + public static final int BOARD_GAME_PIECE_7097 = 7097; + public static final int BOARD_GAME_PIECE_7098 = 7098; + public static final int BOARD_GAME_PIECE_7099 = 7099; + public static final int BOARD_GAME_PIECE_7100 = 7100; + public static final int BOARD_GAME_PIECE_7101 = 7101; + public static final int BOARD_GAME_PIECE_7102 = 7102; + public static final int BOARD_GAME_PIECE_7103 = 7103; + public static final int BOARD_GAME_PIECE_7104 = 7104; + public static final int BOARD_GAME_PIECE_7105 = 7105; + public static final int BOARD_GAME_PIECE_7106 = 7106; + public static final int BOARD_GAME_PIECE_7107 = 7107; + public static final int GUNPOWDER = 7108; + public static final int FUSE = 7109; + public static final int STRIPY_PIRATE_SHIRT = 7110; + public static final int STRIPY_PIRATE_SHIRT_7111 = 7111; + public static final int PIRATE_BANDANNA = 7112; + public static final int PIRATE_BANDANNA_7113 = 7113; + public static final int PIRATE_BOOTS = 7114; + public static final int PIRATE_BOOTS_7115 = 7115; + public static final int PIRATE_LEGGINGS = 7116; + public static final int PIRATE_LEGGINGS_7117 = 7117; + public static final int CANNISTER = 7118; + public static final int CANNON_BALL_7119 = 7119; + public static final int RAMROD = 7120; + public static final int REPAIR_PLANK = 7121; + public static final int STRIPY_PIRATE_SHIRT_7122 = 7122; + public static final int STRIPY_PIRATE_SHIRT_7123 = 7123; + public static final int PIRATE_BANDANNA_7124 = 7124; + public static final int PIRATE_BANDANNA_7125 = 7125; + public static final int PIRATE_LEGGINGS_7126 = 7126; + public static final int PIRATE_LEGGINGS_7127 = 7127; + public static final int STRIPY_PIRATE_SHIRT_7128 = 7128; + public static final int STRIPY_PIRATE_SHIRT_7129 = 7129; + public static final int PIRATE_BANDANNA_7130 = 7130; + public static final int PIRATE_BANDANNA_7131 = 7131; + public static final int PIRATE_LEGGINGS_7132 = 7132; + public static final int PIRATE_LEGGINGS_7133 = 7133; + public static final int STRIPY_PIRATE_SHIRT_7134 = 7134; + public static final int STRIPY_PIRATE_SHIRT_7135 = 7135; + public static final int PIRATE_BANDANNA_7136 = 7136; + public static final int PIRATE_BANDANNA_7137 = 7137; + public static final int PIRATE_LEGGINGS_7138 = 7138; + public static final int PIRATE_LEGGINGS_7139 = 7139; + public static final int LUCKY_CUTLASS = 7140; + public static final int HARRYS_CUTLASS = 7141; + public static final int RAPIER = 7142; + public static final int PLUNDER = 7143; + public static final int BOOK_O_PIRACY = 7144; + public static final int CANNON_BARREL = 7145; + public static final int BROKEN_CANNON = 7146; + public static final int CANNON_BALLS = 7147; + public static final int REPAIR_PLANK_7148 = 7148; + public static final int CANNISTER_7149 = 7149; + public static final int TACKS = 7150; + public static final int NULL_7151 = 7151; + public static final int NULL_7152 = 7152; + public static final int NULL_7153 = 7153; + public static final int NULL_7154 = 7154; + public static final int ROPE_7155 = 7155; + public static final int TINDERBOX_7156 = 7156; + public static final int BRAINDEATH_RUM = 7157; + public static final int DRAGON_2H_SWORD = 7158; + public static final int SLAYER_BOOTS = 7159; + public static final int KILLERWATT = 7160; + public static final int SLAYER_BOOTS_7161 = 7161; + public static final int PIE_RECIPE_BOOK = 7162; + public static final int PIE_RECIPE_BOOK_7163 = 7163; + public static final int PART_MUD_PIE = 7164; + public static final int PART_MUD_PIE_7165 = 7165; + public static final int PART_MUD_PIE_7166 = 7166; + public static final int PART_MUD_PIE_7167 = 7167; + public static final int RAW_MUD_PIE = 7168; + public static final int RAW_MUD_PIE_7169 = 7169; + public static final int MUD_PIE = 7170; + public static final int MUD_PIE_7171 = 7171; + public static final int PART_GARDEN_PIE = 7172; + public static final int PART_GARDEN_PIE_7173 = 7173; + public static final int PART_GARDEN_PIE_7174 = 7174; + public static final int PART_GARDEN_PIE_7175 = 7175; + public static final int RAW_GARDEN_PIE = 7176; + public static final int RAW_GARDEN_PIE_7177 = 7177; + public static final int GARDEN_PIE = 7178; + public static final int GARDEN_PIE_7179 = 7179; + public static final int HALF_A_GARDEN_PIE = 7180; + public static final int HALF_A_GARDEN_PIE_7181 = 7181; + public static final int PART_FISH_PIE = 7182; + public static final int PART_FISH_PIE_7183 = 7183; + public static final int PART_FISH_PIE_7184 = 7184; + public static final int PART_FISH_PIE_7185 = 7185; + public static final int RAW_FISH_PIE = 7186; + public static final int RAW_FISH_PIE_7187 = 7187; + public static final int FISH_PIE = 7188; + public static final int FISH_PIE_7189 = 7189; + public static final int HALF_A_FISH_PIE = 7190; + public static final int HALF_A_FISH_PIE_7191 = 7191; + public static final int PART_ADMIRAL_PIE = 7192; + public static final int PART_ADMIRAL_PIE_7193 = 7193; + public static final int PART_ADMIRAL_PIE_7194 = 7194; + public static final int PART_ADMIRAL_PIE_7195 = 7195; + public static final int RAW_ADMIRAL_PIE = 7196; + public static final int RAW_ADMIRAL_PIE_7197 = 7197; + public static final int ADMIRAL_PIE = 7198; + public static final int ADMIRAL_PIE_7199 = 7199; + public static final int HALF_A_ADMIRAL_PIE = 7200; + public static final int HALF_A_ADMIRAL_PIE_7201 = 7201; + public static final int PART_WILD_PIE = 7202; + public static final int PART_WILD_PIE_7203 = 7203; + public static final int PART_WILD_PIE_7204 = 7204; + public static final int PART_WILD_PIE_7205 = 7205; + public static final int RAW_WILD_PIE = 7206; + public static final int RAW_WILD_PIE_7207 = 7207; + public static final int WILD_PIE = 7208; + public static final int WILD_PIE_7209 = 7209; + public static final int HALF_A_WILD_PIE = 7210; + public static final int HALF_A_WILD_PIE_7211 = 7211; + public static final int PART_SUMMER_PIE = 7212; + public static final int PART_SUMMER_PIE_7213 = 7213; + public static final int PART_SUMMER_PIE_7214 = 7214; + public static final int PART_SUMMER_PIE_7215 = 7215; + public static final int RAW_SUMMER_PIE = 7216; + public static final int RAW_SUMMER_PIE_7217 = 7217; + public static final int SUMMER_PIE = 7218; + public static final int SUMMER_PIE_7219 = 7219; + public static final int HALF_A_SUMMER_PIE = 7220; + public static final int HALF_A_SUMMER_PIE_7221 = 7221; + public static final int BURNT_RABBIT = 7222; + public static final int ROAST_RABBIT = 7223; + public static final int SKEWERED_RABBIT = 7224; + public static final int IRON_SPIT = 7225; + public static final int BURNT_CHOMPY = 7226; + public static final int BURNT_CHOMPY_7227 = 7227; + public static final int COOKED_CHOMPY_7228 = 7228; + public static final int COOKED_CHOMPY_7229 = 7229; + public static final int SKEWERED_CHOMPY = 7230; + public static final int BURNT_RABBIT_7231 = 7231; + public static final int ROAST_RABBIT_7232 = 7232; + public static final int SKEWERED_RABBIT_7233 = 7233; + public static final int IRON_SPIT_7234 = 7234; + public static final int SKEWERED_CHOMPY_7235 = 7235; + public static final int CLUE_SCROLL_7236 = 7236; + public static final int CASKET_7237 = 7237; + public static final int CLUE_SCROLL_7238 = 7238; + public static final int CLUE_SCROLL_7239 = 7239; + public static final int CASKET_7240 = 7240; + public static final int CLUE_SCROLL_7241 = 7241; + public static final int CASKET_7242 = 7242; + public static final int CLUE_SCROLL_7243 = 7243; + public static final int CASKET_7244 = 7244; + public static final int CLUE_SCROLL_7245 = 7245; + public static final int CASKET_7246 = 7246; + public static final int CLUE_SCROLL_7247 = 7247; + public static final int CLUE_SCROLL_7248 = 7248; + public static final int CLUE_SCROLL_7249 = 7249; + public static final int CLUE_SCROLL_7250 = 7250; + public static final int CLUE_SCROLL_7251 = 7251; + public static final int CLUE_SCROLL_7252 = 7252; + public static final int CLUE_SCROLL_7253 = 7253; + public static final int CLUE_SCROLL_7254 = 7254; + public static final int CLUE_SCROLL_7255 = 7255; + public static final int CLUE_SCROLL_7256 = 7256; + public static final int CASKET_7257 = 7257; + public static final int CLUE_SCROLL_7258 = 7258; + public static final int CASKET_7259 = 7259; + public static final int CLUE_SCROLL_7260 = 7260; + public static final int CASKET_7261 = 7261; + public static final int CLUE_SCROLL_7262 = 7262; + public static final int CASKET_7263 = 7263; + public static final int CLUE_SCROLL_7264 = 7264; + public static final int CASKET_7265 = 7265; + public static final int CLUE_SCROLL_7266 = 7266; + public static final int CASKET_7267 = 7267; + public static final int CLUE_SCROLL_7268 = 7268; + public static final int CHALLENGE_SCROLL_7269 = 7269; + public static final int CLUE_SCROLL_7270 = 7270; + public static final int CHALLENGE_SCROLL_7271 = 7271; + public static final int CLUE_SCROLL_7272 = 7272; + public static final int CHALLENGE_SCROLL_7273 = 7273; + public static final int CLUE_SCROLL_7274 = 7274; + public static final int CHALLENGE_SCROLL_7275 = 7275; + public static final int CLUE_SCROLL_7276 = 7276; + public static final int CHALLENGE_SCROLL_7277 = 7277; + public static final int CLUE_SCROLL_7278 = 7278; + public static final int CHALLENGE_SCROLL_7279 = 7279; + public static final int CLUE_SCROLL_7280 = 7280; + public static final int CHALLENGE_SCROLL_7281 = 7281; + public static final int CLUE_SCROLL_7282 = 7282; + public static final int CHALLENGE_SCROLL_7283 = 7283; + public static final int CLUE_SCROLL_7284 = 7284; + public static final int CHALLENGE_SCROLL_7285 = 7285; + public static final int CLUE_SCROLL_7286 = 7286; + public static final int CASKET_7287 = 7287; + public static final int CLUE_SCROLL_7288 = 7288; + public static final int CASKET_7289 = 7289; + public static final int CLUE_SCROLL_7290 = 7290; + public static final int CASKET_7291 = 7291; + public static final int CLUE_SCROLL_7292 = 7292; + public static final int CASKET_7293 = 7293; + public static final int CLUE_SCROLL_7294 = 7294; + public static final int CASKET_7295 = 7295; + public static final int CLUE_SCROLL_7296 = 7296; + public static final int KEY_7297 = 7297; + public static final int CLUE_SCROLL_7298 = 7298; + public static final int KEY_7299 = 7299; + public static final int CLUE_SCROLL_7300 = 7300; + public static final int CLUE_SCROLL_7301 = 7301; + public static final int KEY_7302 = 7302; + public static final int CLUE_SCROLL_7303 = 7303; + public static final int CLUE_SCROLL_7304 = 7304; + public static final int CLUE_SCROLL_7305 = 7305; + public static final int CASKET_7306 = 7306; + public static final int CLUE_SCROLL_7307 = 7307; + public static final int CASKET_7308 = 7308; + public static final int CLUE_SCROLL_7309 = 7309; + public static final int CASKET_7310 = 7310; + public static final int CLUE_SCROLL_7311 = 7311; + public static final int CASKET_7312 = 7312; + public static final int CLUE_SCROLL_7313 = 7313; + public static final int CASKET_7314 = 7314; + public static final int CLUE_SCROLL_7315 = 7315; + public static final int CASKET_7316 = 7316; + public static final int CLUE_SCROLL_7317 = 7317; + public static final int CASKET_7318 = 7318; + public static final int RED_BOATER = 7319; + public static final int RED_BOATER_7320 = 7320; + public static final int ORANGE_BOATER = 7321; + public static final int ORANGE_BOATER_7322 = 7322; + public static final int GREEN_BOATER = 7323; + public static final int GREEN_BOATER_7324 = 7324; + public static final int BLUE_BOATER = 7325; + public static final int BLUE_BOATER_7326 = 7326; + public static final int BLACK_BOATER = 7327; + public static final int BLACK_BOATER_7328 = 7328; + public static final int RED_FIRELIGHTER = 7329; + public static final int GREEN_FIRELIGHTER = 7330; + public static final int BLUE_FIRELIGHTER = 7331; + public static final int BLACK_KITESHIELDH = 7332; + public static final int BLACK_KITESHIELDH_7333 = 7333; + public static final int ADAM_KITESHIELDH = 7334; + public static final int ADAM_KITESHIELDH_7335 = 7335; + public static final int RUNE_KITESHIELDH = 7336; + public static final int RUNE_KITESHIELDH_7337 = 7337; + public static final int BLACK_KITESHIELDH_7338 = 7338; + public static final int BLACK_KITESHIELDH_7339 = 7339; + public static final int ADAM_KITESHIELDH_7340 = 7340; + public static final int ADAM_KITESHIELDH_7341 = 7341; + public static final int RUNE_KITESHIELDH_7342 = 7342; + public static final int RUNE_KITESHIELDH_7343 = 7343; + public static final int BLACK_KITESHIELDH_7344 = 7344; + public static final int BLACK_KITESHIELDH_7345 = 7345; + public static final int ADAM_KITESHIELDH_7346 = 7346; + public static final int ADAM_KITESHIELDH_7347 = 7347; + public static final int RUNE_KITESHIELDH_7348 = 7348; + public static final int RUNE_KITESHIELDH_7349 = 7349; + public static final int BLACK_KITESHIELDH_7350 = 7350; + public static final int BLACK_KITESHIELDH_7351 = 7351; + public static final int ADAM_KITESHIELDH_7352 = 7352; + public static final int ADAM_KITESHIELDH_7353 = 7353; + public static final int RUNE_KITESHIELDH_7354 = 7354; + public static final int RUNE_KITESHIELDH_7355 = 7355; + public static final int BLACK_KITESHIELDH_7356 = 7356; + public static final int BLACK_KITESHIELDH_7357 = 7357; + public static final int ADAM_KITESHIELDH_7358 = 7358; + public static final int ADAM_KITESHIELDH_7359 = 7359; + public static final int RUNE_KITESHIELDH_7360 = 7360; + public static final int RUNE_KITESHIELDH_7361 = 7361; + public static final int STUDDED_BODY_G = 7362; + public static final int STUDDED_BODY_G_7363 = 7363; + public static final int STUDDED_BODY_T = 7364; + public static final int STUDDED_BODY_T_7365 = 7365; + public static final int STUDDED_CHAPS_G = 7366; + public static final int STUDDED_CHAPS_G_7367 = 7367; + public static final int STUDDED_CHAPS_T = 7368; + public static final int STUDDED_CHAPS_T_7369 = 7369; + public static final int DHIDE_BODYG = 7370; + public static final int DHIDE_BODYG_7371 = 7371; + public static final int DHIDE_BODY_T = 7372; + public static final int DHIDE_BODY_T_7373 = 7373; + public static final int DHIDE_BODY_G = 7374; + public static final int DHIDE_BODY_G_7375 = 7375; + public static final int DHIDE_BODY_T_7376 = 7376; + public static final int DHIDE_BODY_T_7377 = 7377; + public static final int DHIDE_CHAPS_G = 7378; + public static final int DHIDE_CHAPS_G_7379 = 7379; + public static final int DHIDE_CHAPS_T = 7380; + public static final int DHIDE_CHAPS_T_7381 = 7381; + public static final int DHIDE_CHAPS_G_7382 = 7382; + public static final int DHIDE_CHAPS_G_7383 = 7383; + public static final int DHIDE_CHAPS_T_7384 = 7384; + public static final int DHIDE_CHAPS_T_7385 = 7385; + public static final int BLUE_SKIRT_G = 7386; + public static final int BLUE_SKIRT_G_7387 = 7387; + public static final int BLUE_SKIRT_T = 7388; + public static final int BLUE_SKIRT_T_7389 = 7389; + public static final int WIZARD_ROBE_G = 7390; + public static final int WIZARD_ROBE_G_7391 = 7391; + public static final int WIZARD_ROBE_T = 7392; + public static final int WIZARD_ROBE_T_7393 = 7393; + public static final int WIZARD_HAT_G = 7394; + public static final int WIZARD_HAT_G_7395 = 7395; + public static final int WIZARD_HAT_T = 7396; + public static final int WIZARD_HAT_T_7397 = 7397; + public static final int ENCHANTED_ROBE = 7398; + public static final int ENCHANTED_TOP = 7399; + public static final int ENCHANTED_HAT = 7400; + public static final int ENCHANTED_ROBE_7401 = 7401; + public static final int ENCHANTED_TOP_7402 = 7402; + public static final int ENCHANTED_HAT_7403 = 7403; + public static final int RED_LOGS = 7404; + public static final int GREEN_LOGS = 7405; + public static final int BLUE_LOGS = 7406; + public static final int DRAGON_2H_SWORD_7407 = 7407; + public static final int DRAYNOR_SKULL = 7408; + public static final int MAGIC_SECATEURS = 7409; + public static final int QUEENS_SECATEURS = 7410; + public static final int SYMPTOMS_LIST = 7411; + public static final int NULL_7412 = 7412; + public static final int BIRD_NEST_7413 = 7413; + public static final int PADDLE = 7414; + public static final int PADDLE_7415 = 7415; + public static final int MOLE_CLAW = 7416; + public static final int MOLE_CLAW_7417 = 7417; + public static final int MOLE_SKIN = 7418; + public static final int MOLE_SKIN_7419 = 7419; + public static final int MUTATED_ZYGOMITE = 7420; + public static final int FUNGICIDE_SPRAY_10 = 7421; + public static final int FUNGICIDE_SPRAY_9 = 7422; + public static final int FUNGICIDE_SPRAY_8 = 7423; + public static final int FUNGICIDE_SPRAY_7 = 7424; + public static final int FUNGICIDE_SPRAY_6 = 7425; + public static final int FUNGICIDE_SPRAY_5 = 7426; + public static final int FUNGICIDE_SPRAY_4 = 7427; + public static final int FUNGICIDE_SPRAY_3 = 7428; + public static final int FUNGICIDE_SPRAY_2 = 7429; + public static final int FUNGICIDE_SPRAY_1 = 7430; + public static final int FUNGICIDE_SPRAY_0 = 7431; + public static final int FUNGICIDE = 7432; + public static final int WOODEN_SPOON = 7433; + public static final int WOODEN_SPOON_7434 = 7434; + public static final int EGG_WHISK = 7435; + public static final int EGG_WHISK_7436 = 7436; + public static final int SPORK = 7437; + public static final int SPORK_7438 = 7438; + public static final int SPATULA = 7439; + public static final int SPATULA_7440 = 7440; + public static final int FRYING_PAN = 7441; + public static final int FRYING_PAN_7442 = 7442; + public static final int SKEWER = 7443; + public static final int SKEWER_7444 = 7444; + public static final int ROLLING_PIN = 7445; + public static final int ROLLING_PIN_7446 = 7446; + public static final int KITCHEN_KNIFE = 7447; + public static final int KITCHEN_KNIFE_7448 = 7448; + public static final int MEAT_TENDERISER = 7449; + public static final int MEAT_TENDERISER_7450 = 7450; + public static final int CLEAVER = 7451; + public static final int CLEAVER_7452 = 7452; + public static final int GLOVES_7453 = 7453; + public static final int GLOVES_7454 = 7454; + public static final int GLOVES_7455 = 7455; + public static final int GLOVES_7456 = 7456; + public static final int GLOVES_7457 = 7457; + public static final int GLOVES_7458 = 7458; + public static final int GLOVES_7459 = 7459; + public static final int GLOVES_7460 = 7460; + public static final int GLOVES_7461 = 7461; + public static final int GLOVES_7462 = 7462; + public static final int CORNFLOUR = 7463; + public static final int BOOK_ON_CHICKENS = 7464; + public static final int VANILLA_POD = 7465; + public static final int CORNFLOUR_7466 = 7466; + public static final int CORNFLOUR_7467 = 7467; + public static final int POT_OF_CORNFLOUR = 7468; + public static final int POT_OF_CORNFLOUR_7469 = 7469; + public static final int CORNFLOUR_MIXTURE = 7470; + public static final int MILKY_MIXTURE = 7471; + public static final int CINNAMON = 7472; + public static final int BRULEE = 7473; + public static final int BRULEE_7474 = 7474; + public static final int BRULEE_7475 = 7475; + public static final int BRULEE_SUPREME = 7476; + public static final int EVIL_CHICKENS_EGG = 7477; + public static final int DRAGON_TOKEN = 7478; + public static final int SPICY_STEW = 7479; + public static final int RED_SPICE_4 = 7480; + public static final int RED_SPICE_3 = 7481; + public static final int RED_SPICE_2 = 7482; + public static final int RED_SPICE_1 = 7483; + public static final int ORANGE_SPICE_4 = 7484; + public static final int ORANGE_SPICE_3 = 7485; + public static final int ORANGE_SPICE_2 = 7486; + public static final int ORANGE_SPICE_1 = 7487; + public static final int BROWN_SPICE_4 = 7488; + public static final int BROWN_SPICE_3 = 7489; + public static final int BROWN_SPICE_2 = 7490; + public static final int BROWN_SPICE_1 = 7491; + public static final int YELLOW_SPICE_4 = 7492; + public static final int YELLOW_SPICE_3 = 7493; + public static final int YELLOW_SPICE_2 = 7494; + public static final int YELLOW_SPICE_1 = 7495; + public static final int EMPTY_SPICE_SHAKER = 7496; + public static final int DIRTY_BLAST = 7497; + public static final int ANTIQUE_LAMP_7498 = 7498; + public static final int EVIL_DAVE = 7499; + public static final int DWARF_7500 = 7500; + public static final int GOBLINS = 7501; + public static final int LUMBRIDGE_GUIDE = 7502; + public static final int MONKEY_7503 = 7503; + public static final int OSMAN = 7504; + public static final int PIRATE_PETE = 7505; + public static final int SIR_AMIK_VARZE = 7506; + public static final int SKRACH = 7507; + public static final int ASGARNIAN_ALE_G = 7508; + public static final int DWARVEN_ROCK_CAKE = 7509; + public static final int DWARVEN_ROCK_CAKE_7510 = 7510; + public static final int SLOP_OF_COMPROMISE = 7511; + public static final int SOGGY_BREAD = 7512; + public static final int SPICY_MAGGOTS = 7513; + public static final int DYED_ORANGE = 7514; + public static final int BREADCRUMBS = 7515; + public static final int KELP = 7516; + public static final int GROUND_KELP = 7517; + public static final int CRAB_MEAT = 7518; + public static final int CRAB_MEAT_7519 = 7519; + public static final int BURNT_CRAB_MEAT = 7520; + public static final int COOKED_CRAB_MEAT = 7521; + public static final int COOKED_CRAB_MEAT_7522 = 7522; + public static final int COOKED_CRAB_MEAT_7523 = 7523; + public static final int COOKED_CRAB_MEAT_7524 = 7524; + public static final int COOKED_CRAB_MEAT_7525 = 7525; + public static final int COOKED_CRAB_MEAT_7526 = 7526; + public static final int GROUND_CRAB_MEAT = 7527; + public static final int GROUND_COD = 7528; + public static final int RAW_FISHCAKE = 7529; + public static final int COOKED_FISHCAKE = 7530; + public static final int BURNT_FISHCAKE = 7531; + public static final int MUDSKIPPER_HIDE = 7532; + public static final int ROCK_7533 = 7533; + public static final int FISHBOWL_HELMET = 7534; + public static final int DIVING_APPARATUS = 7535; + public static final int FRESH_CRAB_CLAW = 7536; + public static final int CRAB_CLAW = 7537; + public static final int FRESH_CRAB_SHELL = 7538; + public static final int CRAB_HELMET = 7539; + public static final int BROKEN_CRAB_CLAW = 7540; + public static final int BROKEN_CRAB_SHELL = 7541; + public static final int CAKE_OF_GUIDANCE = 7542; + public static final int RAW_GUIDE_CAKE = 7543; + public static final int ENCHANTED_EGG = 7544; + public static final int ENCHANTED_MILK = 7545; + public static final int ENCHANTED_FLOUR = 7546; + public static final int DRUID_POUCH_7547 = 7547; + public static final int POTATO_SEED_7548 = 7548; + public static final int POTATO_SEED_7549 = 7549; + public static final int ONION_SEED_7550 = 7550; + public static final int ONION_SEED_7551 = 7551; + public static final int MITHRIL_ARROW_7552 = 7552; + public static final int MITHRIL_ARROW_7553 = 7553; + public static final int FIRE_RUNE_7554 = 7554; + public static final int FIRE_RUNE_7555 = 7555; + public static final int WATER_RUNE_7556 = 7556; + public static final int WATER_RUNE_7557 = 7557; + public static final int AIR_RUNE_7558 = 7558; + public static final int AIR_RUNE_7559 = 7559; + public static final int CHAOS_RUNE_7560 = 7560; + public static final int CHAOS_RUNE_7561 = 7561; + public static final int TOMATO_SEED_7562 = 7562; + public static final int TOMATO_SEED_7563 = 7563; + public static final int BALLOON_TOAD = 7564; + public static final int BALLOON_TOAD_7565 = 7565; + public static final int RAW_JUBBLY = 7566; + public static final int RAW_JUBBLY_7567 = 7567; + public static final int COOKED_JUBBLY = 7568; + public static final int COOKED_JUBBLY_7569 = 7569; + public static final int BURNT_JUBBLY = 7570; + public static final int BURNT_JUBBLY_7571 = 7571; + public static final int RED_BANANA = 7572; + public static final int TCHIKI_MONKEY_NUTS = 7573; + public static final int SLICED_RED_BANANA = 7574; + public static final int TCHIKI_NUT_PASTE = 7575; + public static final int SNAKE_CORPSE = 7576; + public static final int RAW_STUFFED_SNAKE = 7577; + public static final int ODD_STUFFED_SNAKE = 7578; + public static final int STUFFED_SNAKE = 7579; + public static final int SNAKE_OVERCOOKED = 7580; + public static final int OVERGROWN_HELLCAT = 7581; + public static final int HELL_CAT = 7582; + public static final int HELLKITTEN = 7583; + public static final int LAZY_HELL_CAT = 7584; + public static final int WILY_HELLCAT = 7585; + public static final int DUMMY_7586 = 7586; + public static final int COFFIN = 7587; + public static final int COFFIN_7588 = 7588; + public static final int COFFIN_7589 = 7589; + public static final int COFFIN_7590 = 7590; + public static final int COFFIN_7591 = 7591; + public static final int ZOMBIE_SHIRT = 7592; + public static final int ZOMBIE_TROUSERS = 7593; + public static final int ZOMBIE_MASK = 7594; + public static final int ZOMBIE_GLOVES = 7595; + public static final int ZOMBIE_BOOTS = 7596; + public static final int ITEM = 7597; + public static final int ITEM_7598 = 7598; + public static final int ITEM_7599 = 7599; + public static final int ITEM_7600 = 7600; + public static final int ITEM_7601 = 7601; + public static final int ITEM_7602 = 7602; + public static final int ITEM_7603 = 7603; + public static final int ITEM_7604 = 7604; + public static final int ITEM_7605 = 7605; + public static final int ITEM_7606 = 7606; + public static final int ITEM_7607 = 7607; + public static final int ITEM_7608 = 7608; + public static final int ITEM_7609 = 7609; + public static final int ITEM_7610 = 7610; + public static final int ITEM_7611 = 7611; + public static final int ITEM_7612 = 7612; + public static final int ITEM_7613 = 7613; + public static final int ITEM_7614 = 7614; + public static final int ITEM_7615 = 7615; + public static final int ITEM_7616 = 7616; + public static final int ITEM_7617 = 7617; + public static final int ITEM_7618 = 7618; + public static final int NULL_7619 = 7619; + public static final int SILVTHRILL_ROD = 7620; + public static final int NULL_7621 = 7621; + public static final int BUCKET_OF_RUBBLE = 7622; + public static final int BUCKET_OF_RUBBLE_7623 = 7623; + public static final int BUCKET_OF_RUBBLE_7624 = 7624; + public static final int BUCKET_OF_RUBBLE_7625 = 7625; + public static final int BUCKET_OF_RUBBLE_7626 = 7626; + public static final int BUCKET_OF_RUBBLE_7627 = 7627; + public static final int PLASTER_FRAGMENT = 7628; + public static final int DUSTY_SCROLL = 7629; + public static final int CRATE = 7630; + public static final int CRATE_7631 = 7631; + public static final int TEMPLE_LIBRARY_KEY = 7632; + public static final int ANCIENT_BOOK = 7633; + public static final int BATTERED_TOME = 7634; + public static final int LEATHER_BOOK = 7635; + public static final int ROD_DUST = 7636; + public static final int SILVTHRILL_ROD_7637 = 7637; + public static final int SILVTHRILL_ROD_7638 = 7638; + public static final int ROD_OF_IVANDIS10 = 7639; + public static final int ROD_OF_IVANDIS9 = 7640; + public static final int ROD_OF_IVANDIS8 = 7641; + public static final int ROD_OF_IVANDIS7 = 7642; + public static final int ROD_OF_IVANDIS6 = 7643; + public static final int ROD_OF_IVANDIS5 = 7644; + public static final int ROD_OF_IVANDIS4 = 7645; + public static final int ROD_OF_IVANDIS3 = 7646; + public static final int ROD_OF_IVANDIS2 = 7647; + public static final int ROD_OF_IVANDIS1 = 7648; + public static final int ROD_CLAY_MOULD = 7649; + public static final int SILVER_DUST = 7650; + public static final int SILVER_DUST_7651 = 7651; + public static final int UNFINISHED_POTION_7652 = 7652; + public static final int UNFINISHED_POTION_7653 = 7653; + public static final int UNFINISHED_POTION_7654 = 7654; + public static final int UNFINISHED_POTION_7655 = 7655; + public static final int UNFINISHED_POTION_7656 = 7656; + public static final int UNFINISHED_POTION_7657 = 7657; + public static final int UNFINISHED_POTION_7658 = 7658; + public static final int UNFINISHED_POTION_7659 = 7659; + public static final int GUTHIX_BALANCE4 = 7660; + public static final int GUTHIX_BALANCE4_7661 = 7661; + public static final int GUTHIX_BALANCE3 = 7662; + public static final int GUTHIX_BALANCE3_7663 = 7663; + public static final int GUTHIX_BALANCE2 = 7664; + public static final int GUTHIX_BALANCE2_7665 = 7665; + public static final int GUTHIX_BALANCE1 = 7666; + public static final int GUTHIX_BALANCE1_7667 = 7667; + public static final int GADDERHAMMER = 7668; + public static final int GADDERHAMMER_7669 = 7669; + public static final int NULL_7670 = 7670; + public static final int BOXING_GLOVES = 7671; + public static final int BOXING_GLOVES_7672 = 7672; + public static final int BOXING_GLOVES_7673 = 7673; + public static final int BOXING_GLOVES_7674 = 7674; + public static final int WOODEN_SWORD = 7675; + public static final int WOODEN_SHIELD_7676 = 7676; + public static final int MAGIC_STONE_7677 = 7677; + public static final int PRIZE_KEY = 7678; + public static final int PUGEL = 7679; + public static final int PUGEL_7680 = 7680; + public static final int GAME_BOOK = 7681; + public static final int HOOP = 7682; + public static final int HOOP_7683 = 7683; + public static final int DART = 7684; + public static final int DART_7685 = 7685; + public static final int BOW_AND_ARROW = 7686; + public static final int BOW_AND_ARROW_7687 = 7687; + public static final int KETTLE = 7688; + public static final int KETTLE_7689 = 7689; + public static final int FULL_KETTLE = 7690; + public static final int HOT_KETTLE = 7691; + public static final int POT_OF_TEA_4 = 7692; + public static final int POT_OF_TEA_4_7693 = 7693; + public static final int POT_OF_TEA_3 = 7694; + public static final int POT_OF_TEA_3_7695 = 7695; + public static final int POT_OF_TEA_2 = 7696; + public static final int POT_OF_TEA_2_7697 = 7697; + public static final int POT_OF_TEA_1 = 7698; + public static final int POT_OF_TEA_1_7699 = 7699; + public static final int TEAPOT_WITH_LEAVES = 7700; + public static final int TEAPOT_WITH_LEAVES_7701 = 7701; + public static final int TEAPOT = 7702; + public static final int TEAPOT_7703 = 7703; + public static final int POT_OF_TEA = 7704; + public static final int POT_OF_TEA_7705 = 7705; + public static final int POT_OF_TEA_7706 = 7706; + public static final int POT_OF_TEA_7707 = 7707; + public static final int POT_OF_TEA_7708 = 7708; + public static final int POT_OF_TEA_7709 = 7709; + public static final int POT_OF_TEA_7710 = 7710; + public static final int POT_OF_TEA_7711 = 7711; + public static final int TEAPOT_WITH_LEAVES_7712 = 7712; + public static final int TEAPOT_WITH_LEAVES_7713 = 7713; + public static final int TEAPOT_7714 = 7714; + public static final int TEAPOT_7715 = 7715; + public static final int POT_OF_TEA_7716 = 7716; + public static final int POT_OF_TEA_7717 = 7717; + public static final int POT_OF_TEA_7718 = 7718; + public static final int POT_OF_TEA_7719 = 7719; + public static final int POT_OF_TEA_7720 = 7720; + public static final int POT_OF_TEA_7721 = 7721; + public static final int POT_OF_TEA_7722 = 7722; + public static final int POT_OF_TEA_7723 = 7723; + public static final int TEAPOT_WITH_LEAVES_7724 = 7724; + public static final int TEAPOT_WITH_LEAVES_7725 = 7725; + public static final int TEAPOT_7726 = 7726; + public static final int TEAPOT_7727 = 7727; + public static final int EMPTY_CUP_7728 = 7728; + public static final int EMPTY_CUP_7729 = 7729; + public static final int CUP_OF_TEA_7730 = 7730; + public static final int CUP_OF_TEA_7731 = 7731; + public static final int PORCELAIN_CUP_7732 = 7732; + public static final int CUP_OF_TEA_7733 = 7733; + public static final int CUP_OF_TEA_7734 = 7734; + public static final int PORCELAIN_CUP_7735 = 7735; + public static final int CUP_OF_TEA_7736 = 7736; + public static final int CUP_OF_TEA_7737 = 7737; + public static final int TEA_LEAVES = 7738; + public static final int TEA_LEAVES_7739 = 7739; + public static final int BEER_7740 = 7740; + public static final int BEER_7741 = 7741; + public static final int BEER_GLASS_7742 = 7742; + public static final int BEER_GLASS_7743 = 7743; + public static final int ASGARNIAN_ALE_7744 = 7744; + public static final int ASGARNIAN_ALE_7745 = 7745; + public static final int GREENMANS_ALE_7746 = 7746; + public static final int GREENMANS_ALE_7747 = 7747; + public static final int DRAGON_BITTER_7748 = 7748; + public static final int DRAGON_BITTER_7749 = 7749; + public static final int MOONLIGHT_MEAD_7750 = 7750; + public static final int MOONLIGHT_MEAD_7751 = 7751; + public static final int CIDER_7752 = 7752; + public static final int CIDER_7753 = 7753; + public static final int CHEFS_DELIGHT_7754 = 7754; + public static final int CHEFS_DELIGHT_7755 = 7755; + public static final int PAINTBRUSH = 7756; + public static final int PAINTBRUSH_7757 = 7757; + public static final int RUSTY_SWORD_7758 = 7758; + public static final int TOY_SOLDIER = 7759; + public static final int TOY_SOLDIER_7760 = 7760; + public static final int TOY_SOLDIER_WOUND = 7761; + public static final int TOY_SOLDIER_WOUND_7762 = 7762; + public static final int TOY_DOLL = 7763; + public static final int TOY_DOLL_7764 = 7764; + public static final int TOY_DOLL_WOUND = 7765; + public static final int TOY_DOLL_WOUND_7766 = 7766; + public static final int TOY_MOUSE = 7767; + public static final int TOY_MOUSE_7768 = 7768; + public static final int TOY_MOUSE_WOUND = 7769; + public static final int TOY_MOUSE_WOUND_7770 = 7770; + public static final int TOY_CAT = 7771; + public static final int TOY_CAT_7772 = 7772; + public static final int BRANCH_7773 = 7773; + public static final int REWARD_TOKEN = 7774; + public static final int REWARD_TOKEN_7775 = 7775; + public static final int REWARD_TOKEN_7776 = 7776; + public static final int LONG_VINE = 7777; + public static final int SHORT_VINE = 7778; + public static final int FISHING_TOME = 7779; + public static final int FISHING_TOME_7780 = 7780; + public static final int FISHING_TOME_7781 = 7781; + public static final int AGILITY_TOME = 7782; + public static final int AGILITY_TOME_7783 = 7783; + public static final int AGILITY_TOME_7784 = 7784; + public static final int THIEVING_TOME = 7785; + public static final int THIEVING_TOME_7786 = 7786; + public static final int THIEVING_TOME_7787 = 7787; + public static final int SLAYER_TOME = 7788; + public static final int SLAYER_TOME_7789 = 7789; + public static final int SLAYER_TOME_7790 = 7790; + public static final int MINING_TOME = 7791; + public static final int MINING_TOME_7792 = 7792; + public static final int MINING_TOME_7793 = 7793; + public static final int FIREMAKING_TOME = 7794; + public static final int FIREMAKING_TOME_7795 = 7795; + public static final int FIREMAKING_TOME_7796 = 7796; + public static final int WOODCUTTING_TOME = 7797; + public static final int WOODCUTTING_TOME_7798 = 7798; + public static final int WOODCUTTING_TOME_7799 = 7799; + public static final int SNAIL_SHELL = 7800; + public static final int SNAKE_HIDE_7801 = 7801; + public static final int SNAKE_HIDE_7802 = 7802; + public static final int YIN_YANG_AMULET = 7803; + public static final int ZAROS_MJOLNIR = 7804; + public static final int ZAROS_MJOLNIR_7805 = 7805; + public static final int ANGER_SWORD = 7806; + public static final int ANGER_BATTLEAXE = 7807; + public static final int ANGER_MACE = 7808; + public static final int ANGER_SPEAR = 7809; + public static final int JUG_OF_VINEGAR = 7810; + public static final int POT_OF_VINEGAR = 7811; + public static final int GOBLIN_SKULL = 7812; + public static final int BONE_IN_VINEGAR = 7813; + public static final int GOBLIN_SKULL_7814 = 7814; + public static final int BEAR_RIBS = 7815; + public static final int BONE_IN_VINEGAR_7816 = 7816; + public static final int BEAR_RIBS_7817 = 7817; + public static final int RAM_SKULL = 7818; + public static final int BONE_IN_VINEGAR_7819 = 7819; + public static final int RAM_SKULL_7820 = 7820; + public static final int UNICORN_BONE = 7821; + public static final int BONE_IN_VINEGAR_7822 = 7822; + public static final int UNICORN_BONE_7823 = 7823; + public static final int GIANT_RAT_BONE = 7824; + public static final int BONE_IN_VINEGAR_7825 = 7825; + public static final int GIANT_RAT_BONE_7826 = 7826; + public static final int GIANT_BAT_WING = 7827; + public static final int BONE_IN_VINEGAR_7828 = 7828; + public static final int GIANT_BAT_WING_7829 = 7829; + public static final int WOLF_BONE = 7830; + public static final int BONE_IN_VINEGAR_7831 = 7831; + public static final int WOLF_BONE_7832 = 7832; + public static final int BAT_WING = 7833; + public static final int BONE_IN_VINEGAR_7834 = 7834; + public static final int BAT_WING_7835 = 7835; + public static final int RAT_BONE = 7836; + public static final int BONE_IN_VINEGAR_7837 = 7837; + public static final int RAT_BONE_7838 = 7838; + public static final int BABY_DRAGON_BONE = 7839; + public static final int BONE_IN_VINEGAR_7840 = 7840; + public static final int BABY_DRAGON_BONE_7841 = 7841; + public static final int OGRE_RIBS = 7842; + public static final int BONE_IN_VINEGAR_7843 = 7843; + public static final int OGRE_RIBS_7844 = 7844; + public static final int JOGRE_BONE = 7845; + public static final int BONE_IN_VINEGAR_7846 = 7846; + public static final int JOGRE_BONE_7847 = 7847; + public static final int ZOGRE_BONE = 7848; + public static final int BONE_IN_VINEGAR_7849 = 7849; + public static final int ZOGRE_BONE_7850 = 7850; + public static final int MOGRE_BONE = 7851; + public static final int BONE_IN_VINEGAR_7852 = 7852; + public static final int MOGRE_BONE_7853 = 7853; + public static final int MONKEY_PAW = 7854; + public static final int BONE_IN_VINEGAR_7855 = 7855; + public static final int MONKEY_PAW_7856 = 7856; + public static final int DAGANNOTH_RIBS = 7857; + public static final int BONE_IN_VINEGAR_7858 = 7858; + public static final int DAGANNOTH_RIBS_7859 = 7859; + public static final int SNAKE_SPINE = 7860; + public static final int BONE_IN_VINEGAR_7861 = 7861; + public static final int SNAKE_SPINE_7862 = 7862; + public static final int ZOMBIE_BONE = 7863; + public static final int BONE_IN_VINEGAR_7864 = 7864; + public static final int ZOMBIE_BONE_7865 = 7865; + public static final int WEREWOLF_BONE = 7866; + public static final int BONE_IN_VINEGAR_7867 = 7867; + public static final int WEREWOLF_BONE_7868 = 7868; + public static final int MOSS_GIANT_BONE = 7869; + public static final int BONE_IN_VINEGAR_7870 = 7870; + public static final int MOSS_GIANT_BONE_7871 = 7871; + public static final int FIRE_GIANT_BONE = 7872; + public static final int BONE_IN_VINEGAR_7873 = 7873; + public static final int FIRE_GIANT_BONE_7874 = 7874; + public static final int ICE_GIANT_RIBS = 7875; + public static final int BONE_IN_VINEGAR_7876 = 7876; + public static final int ICE_GIANT_RIBS_7877 = 7877; + public static final int TERRORBIRD_WING = 7878; + public static final int BONE_IN_VINEGAR_7879 = 7879; + public static final int TERRORBIRD_WING_7880 = 7880; + public static final int GHOUL_BONE = 7881; + public static final int BONE_IN_VINEGAR_7882 = 7882; + public static final int GHOUL_BONE_7883 = 7883; + public static final int TROLL_BONE = 7884; + public static final int BONE_IN_VINEGAR_7885 = 7885; + public static final int TROLL_BONE_7886 = 7886; + public static final int SEAGULL_WING = 7887; + public static final int BONE_IN_VINEGAR_7888 = 7888; + public static final int SEAGULL_WING_7889 = 7889; + public static final int UNDEAD_COW_RIBS = 7890; + public static final int BONE_IN_VINEGAR_7891 = 7891; + public static final int UNDEAD_COW_RIBS_7892 = 7892; + public static final int EXPERIMENT_BONE = 7893; + public static final int BONE_IN_VINEGAR_7894 = 7894; + public static final int EXPERIMENT_BONE_7895 = 7895; + public static final int RABBIT_BONE = 7896; + public static final int BONE_IN_VINEGAR_7897 = 7897; + public static final int RABBIT_BONE_7898 = 7898; + public static final int BASILISK_BONE = 7899; + public static final int BONE_IN_VINEGAR_7900 = 7900; + public static final int BASILISK_BONE_7901 = 7901; + public static final int DESERT_LIZARD_BONE = 7902; + public static final int BONE_IN_VINEGAR_7903 = 7903; + public static final int DESERT_LIZARD_BONE_7904 = 7904; + public static final int CAVE_GOBLIN_SKULL = 7905; + public static final int BONE_IN_VINEGAR_7906 = 7906; + public static final int CAVE_GOBLIN_SKULL_7907 = 7907; + public static final int BIG_FROG_LEG = 7908; + public static final int BONE_IN_VINEGAR_7909 = 7909; + public static final int BIG_FROG_LEG_7910 = 7910; + public static final int VULTURE_WING = 7911; + public static final int BONE_IN_VINEGAR_7912 = 7912; + public static final int VULTURE_WING_7913 = 7913; + public static final int JACKAL_BONE = 7914; + public static final int BONE_IN_VINEGAR_7915 = 7915; + public static final int JACKAL_BONE_7916 = 7916; + public static final int RAM_SKULL_HELM = 7917; + public static final int BONESACK = 7918; + public static final int BOTTLE_OF_WINE = 7919; + public static final int BOTTLE_OF_WINE_7920 = 7920; + public static final int EMPTY_WINE_BOTTLE = 7921; + public static final int AL_KHARID_FLYER = 7922; + public static final int NULL_7923 = 7923; + public static final int NULL_7924 = 7924; + public static final int NULL_7925 = 7925; + public static final int NULL_7926 = 7926; + public static final int EASTER_RING = 7927; + public static final int EASTER_EGG_7928 = 7928; + public static final int EASTER_EGG_7929 = 7929; + public static final int EASTER_EGG_7930 = 7930; + public static final int EASTER_EGG_7931 = 7931; + public static final int EASTER_EGG_7932 = 7932; + public static final int EASTER_EGG_7933 = 7933; + public static final int FIELD_RATION = 7934; + public static final int FIELD_RATION_7935 = 7935; + public static final int PURE_ESSENCE = 7936; + public static final int PURE_ESSENCE_7937 = 7937; + public static final int BOB = 7938; + public static final int TORTOISE_SHELL = 7939; + public static final int TORTOISE_SHELL_7940 = 7940; + public static final int IRON_SHEET = 7941; + public static final int FRESH_MONKFISH = 7942; + public static final int FRESH_MONKFISH_7943 = 7943; + public static final int RAW_MONKFISH = 7944; + public static final int RAW_MONKFISH_7945 = 7945; + public static final int MONKFISH = 7946; + public static final int MONKFISH_7947 = 7947; + public static final int BURNT_MONKFISH = 7948; + public static final int BURNT_MONKFISH_7949 = 7949; + public static final int BONE_SEEDS = 7950; + public static final int HERMANS_BOOK = 7951; + public static final int AXE_HANDLE_7952 = 7952; + public static final int AXE_HANDLE_7953 = 7953; + public static final int BURNT_SHRIMP = 7954; + public static final int BURNT_SHRIMP_7955 = 7955; + +} diff --git a/2006Scape Client/src/main/java/StaticNpcList.java b/2006Scape Client/src/main/java/StaticNpcList.java new file mode 100644 index 00000000..c99a29ea --- /dev/null +++ b/2006Scape Client/src/main/java/StaticNpcList.java @@ -0,0 +1,3864 @@ + +/** + * NPC Constants for 2006scape. + * + * @author Advocatus + * + */ +@SuppressWarnings("unused") +public class StaticNpcList { + + public static final int HANS = 0; + public static final int MAN = 1; + public static final int MAN_2 = 2; + public static final int MAN_3 = 3; + public static final int WOMAN = 4; + public static final int WOMAN_5 = 5; + public static final int WOMAN_6 = 6; + public static final int FARMER = 7; + public static final int THIEF = 8; + public static final int GUARD = 9; + public static final int GUARD_10 = 10; + public static final int TRAMP = 11; + public static final int BARBARIAN = 12; + public static final int WIZARD = 13; + public static final int DRUID = 14; + public static final int WARRIOR_WOMAN = 15; + public static final int MAN_16 = 16; + public static final int BARBARIAN_WOMAN = 17; + public static final int ALKHARID_WARRIOR = 18; + public static final int WHITE_KNIGHT = 19; + public static final int PALADIN = 20; + public static final int HERO = 21; + public static final int FORESTER = 22; + public static final int KNIGHT_OF_ARDOUGNE = 23; + public static final int MAN_24 = 24; + public static final int WOMAN_25 = 25; + public static final int KNIGHT_OF_ARDOUGNE_26 = 26; + public static final int ARCHER = 27; + public static final int ZOO_KEEPER = 28; + public static final int CHUCK = 29; + public static final int BARMAN = 30; + public static final int PRIEST = 31; + public static final int GUARD_32 = 32; + public static final int DOOR_MAN = 33; + public static final int WATCHMAN = 34; + public static final int SOLDIER = 35; + public static final int WYSON_THE_GARDENER = 36; + public static final int SIGBERT_THE_ADVENTURER = 37; + public static final int SHIPYARD_WORKER = 38; + public static final int SHIPYARD_WORKER_39 = 39; + public static final int SHARK = 40; + public static final int CHICKEN = 41; + public static final int SHEEP = 42; + public static final int SHEEP_43 = 43; + public static final int DUCK = 44; + public static final int DUCK_45 = 45; + public static final int DUCKLING = 46; + public static final int RAT = 47; + public static final int OOMLIE_BIRD = 48; + public static final int HELLHOUND = 49; + public static final int KING_BLACK_DRAGON = 50; + public static final int BABY_DRAGON = 51; + public static final int BABY_BLUE_DRAGON = 52; + public static final int RED_DRAGON = 53; + public static final int BLACK_DRAGON = 54; + public static final int BLUE_DRAGON = 55; + public static final int DRYAD = 56; + public static final int FAIRY = 57; + public static final int SHADOW_SPIDER = 58; + public static final int GIANT_SPIDER = 59; + public static final int GIANT_SPIDER_60 = 60; + public static final int SPIDER = 61; + public static final int JUNGLE_SPIDER = 62; + public static final int DEADLY_RED_SPIDER = 63; + public static final int ICE_SPIDER = 64; + public static final int LEPRECHAUN = 65; + public static final int GNOME = 66; + public static final int GNOME_67 = 67; + public static final int GNOME_68 = 68; + public static final int LIZARD_MAN = 69; + public static final int TURAEL = 70; + public static final int ORC = 71; + public static final int TROLL = 72; + public static final int ZOMBIE = 73; + public static final int ZOMBIE_74 = 74; + public static final int ZOMBIE_75 = 75; + public static final int ZOMBIE_76 = 76; + public static final int SUMMONED_ZOMBIE = 77; + public static final int GIANT_BAT = 78; + public static final int DEATH_WING = 79; + public static final int CAMEL = 80; + public static final int COW = 81; + public static final int LESSER_DEMON = 82; + public static final int GREATER_DEMON = 83; + public static final int BLACK_DEMON = 84; + public static final int GOLEM = 85; + public static final int GIANT_RAT = 86; + public static final int GIANT_RAT_87 = 87; + public static final int DUNGEON_RAT = 88; + public static final int UNICORN = 89; + public static final int SKELETON = 90; + public static final int SKELETON_91 = 91; + public static final int SKELETON_92 = 92; + public static final int SKELETON_93 = 93; + public static final int SKELETON_MAGE = 94; + public static final int WOLF = 95; + public static final int WHITE_WOLF = 96; + public static final int WHITE_WOLF_97 = 97; + public static final int DOG = 98; + public static final int GUARD_DOG = 99; + public static final int GOBLIN = 100; + public static final int GOBLIN_101 = 101; + public static final int GOBLIN_102 = 102; + public static final int GHOST = 103; + public static final int GHOST_104 = 104; + public static final int BEAR = 105; + public static final int BEAR_106 = 106; + public static final int SCORPION = 107; + public static final int POISON_SCORPION = 108; + public static final int PIT_SCORPION = 109; + public static final int FIRE_GIANT = 110; + public static final int ICE_GIANT = 111; + public static final int MOSS_GIANT = 112; + public static final int JOGRE = 113; + public static final int OGRE = 114; + public static final int OGRE_115 = 115; + public static final int CYCLOPS = 116; + public static final int HILL_GIANT = 117; + public static final int DWARF = 118; + public static final int CHAOS_DWARF = 119; + public static final int DWARF_120 = 120; + public static final int DWARF_121 = 121; + public static final int HOBGOBLIN = 122; + public static final int HOBGOBLIN_123 = 123; + public static final int EARTH_WARRIOR = 124; + public static final int ICE_WARRIOR = 125; + public static final int OTHERWORLDLY_BEING = 126; + public static final int MAGIC_AXE = 127; + public static final int SNAKE = 128; + public static final int SKAVID = 129; + public static final int YETI = 130; + public static final int PENGUIN = 131; + public static final int MONKEY = 132; + public static final int BLACK_UNICORN = 133; + public static final int POISON_SPIDER = 134; + public static final int MAMMOTH = 135; + public static final int TERRORBIRD = 136; + public static final int MOUNTED_TERRORBIRD_GNOME = 137; + public static final int MOUNTED_TERRORBIRD_GNOME_138 = 138; + public static final int ENTRANA_FIRE_BIRD = 139; + public static final int SOULESS = 140; + public static final int BIG_WOLF = 141; + public static final int WOLF_142 = 142; + public static final int JUNGLE_WOLF = 143; + public static final int KING_SCORPION = 144; + public static final int ICE_WARRIOR_145 = 145; + public static final int GULL = 146; + public static final int CORMORANT = 147; + public static final int ALBATROSS = 148; + public static final int GULL_149 = 149; + public static final int GULL_150 = 150; + public static final int FLY_TRAP = 151; + public static final int TREE = 152; + public static final int BUTTERFLY = 153; + public static final int BUTTERFLY_154 = 154; + public static final int BUTTERFLY_155 = 155; + public static final int BUTTERFLY_156 = 156; + public static final int BUTTERFLY_157 = 157; + public static final int SHADOW_WARRIOR = 158; + public static final int GNOME_CHILD = 159; + public static final int GNOME_CHILD_160 = 160; + public static final int GNOME_CHILD_161 = 161; + public static final int GNOME_TRAINER = 162; + public static final int GNOME_GUARD = 163; + public static final int GNOME_GUARD_164 = 164; + public static final int GNOME_SHOP_KEEPER = 165; + public static final int GNOME_BANKER = 166; + public static final int GNOME_BALLER = 167; + public static final int GNOME_WOMAN = 168; + public static final int GNOME_WOMAN_169 = 169; + public static final int GNOME_PILOT = 170; + public static final int BRIMSTAIL = 171; + public static final int DARK_WIZARD = 172; + public static final int INVRIGAR_THE_NECROMANCER = 173; + public static final int DARK_WIZARD_174 = 174; + public static final int MUGGER = 175; + public static final int WITCH = 176; + public static final int WITCH_177 = 177; + public static final int BLACK_KNIGHT = 178; + public static final int BLACK_KNIGHT_179 = 179; + public static final int HIGHWAYMAN = 180; + public static final int CHAOS_DRUID = 181; + public static final int PIRATE = 182; + public static final int PIRATE_183 = 183; + public static final int PIRATE_184 = 184; + public static final int PIRATE_185 = 185; + public static final int THUG = 186; + public static final int ROGUE = 187; + public static final int MONK_OF_ZAMORAK = 188; + public static final int MONK_OF_ZAMORAK_189 = 189; + public static final int MONK_OF_ZAMORAK_190 = 190; + public static final int TRIBESMAN = 191; + public static final int DARK_WARRIOR = 192; + public static final int CHAOS_DRUID_WARRIOR = 193; + public static final int NECROMANCER = 194; + public static final int BANDIT = 195; + public static final int GUARD_BANDIT = 196; + public static final int BARBARIAN_GUARD = 197; + public static final int GUILD_MASTER = 198; + public static final int GUNTHOR_THE_BRAVE = 199; + public static final int LORD_DAQUARIUS = 200; + public static final int JAILER = 201; + public static final int BLACK_HEATHER = 202; + public static final int DONNY_THE_LAD = 203; + public static final int SPEEDY_KEITH = 204; + public static final int SALARIN_THE_TWISTED = 205; + public static final int GUARD_206 = 206; + public static final int DWARF_YOUNGSTER = 207; + public static final int DWARF_COMMANDER = 208; + public static final int NULODION = 209; + public static final int GRAIL_MAIDEN = 210; + public static final int SIR_PERCIVAL = 211; + public static final int KING_PERCIVAL = 212; + public static final int MERLIN = 213; + public static final int PEASANT = 214; + public static final int PEASANT_215 = 215; + public static final int HIGH_PRIEST = 216; + public static final int CRONE = 217; + public static final int GALAHAD = 218; + public static final int FISHERMAN = 219; + public static final int THE_FISHER_KING = 220; + public static final int BLACK_KNIGHT_TITAN = 221; + public static final int MONK = 222; + public static final int BROTHER_KOJO = 223; + public static final int DUNGEON_RAT_224 = 224; + public static final int BONZO = 225; + public static final int NULL = 226; + public static final int MORRIS = 227; + public static final int BIG_DAVE = 228; + public static final int JOSHUA = 229; + public static final int GRANDPA_JACK = 230; + public static final int FORESTER_231 = 231; + public static final int AUSTRI = 232; + public static final int FISHING_SPOT = 233; + public static final int FISHING_SPOT_234 = 234; + public static final int FISHING_SPOT_235 = 235; + public static final int FISHING_SPOT_236 = 236; + public static final int RENEGADE_KNIGHT = 237; + public static final int THRANTAX_THE_MIGHTY = 238; + public static final int SIR_LANCELOT = 239; + public static final int SIR_GAWAIN = 240; + public static final int SIR_KAY = 241; + public static final int SIR_BEDIVERE = 242; + public static final int SIR_TRISTRAM = 243; + public static final int SIR_PELLEAS = 244; + public static final int SIR_LUCAN = 245; + public static final int SIR_PALOMEDES = 246; + public static final int SIR_MORDRED = 247; + public static final int MORGAN_LE_FAYE = 248; + public static final int MERLIN_249 = 249; + public static final int THE_LADY_OF_THE_LAKE = 250; + public static final int KING_ARTHUR = 251; + public static final int BEGGAR = 252; + public static final int KHAZARD_GUARD = 253; + public static final int KHAZARD_GUARD_254 = 254; + public static final int KHAZARD_GUARD_255 = 255; + public static final int KHAZARD_GUARD_256 = 256; + public static final int KHAZARD_GUARD_257 = 257; + public static final int GENERAL_KHAZARD = 258; + public static final int KHAZARD_BARMAN = 259; + public static final int KELVIN = 260; + public static final int JOE = 261; + public static final int FIGHTSLAVE = 262; + public static final int HENGRAD = 263; + public static final int LADY_SERVIL = 264; + public static final int JEREMY_SERVIL = 265; + public static final int JEREMY_SERVIL_266 = 266; + public static final int JUSTIN_SERVIL = 267; + public static final int LOCAL = 268; + public static final int BOUNCER = 269; + public static final int KHAZARD_OGRE = 270; + public static final int KHAZARD_SCORPION = 271; + public static final int LUCIEN = 272; + public static final int LUCIEN_273 = 273; + public static final int GUARDIAN_OF_ARMADYL = 274; + public static final int GUARDIAN_OF_ARMADYL_275 = 275; + public static final int WINELDA = 276; + public static final int FIRE_WARRIOR_OF_LESARKUS = 277; + public static final int COOK = 278; + public static final int BROTHER_OMAD = 279; + public static final int BROTHER_CEDRIC = 280; + public static final int MONK_281 = 281; + public static final int THIEF_282 = 282; + public static final int HEAD_THIEF = 283; + public static final int DORIC = 284; + public static final int VERONICA = 285; + public static final int PROFESSOR_ODDENSTEIN = 286; + public static final int ERNEST = 287; + public static final int CHICKEN_288 = 288; + public static final int COUNCILLOR_HALGRIVE = 289; + public static final int DOCTOR_ORBON = 290; + public static final int FARMER_BRUMTY = 291; + public static final int NULL_292 = 292; + public static final int NULL_293 = 293; + public static final int NULL_294 = 294; + public static final int NULL_295 = 295; + public static final int GENERAL_BENTNOZE = 296; + public static final int GENERAL_WARTFACE = 297; + public static final int GOBLIN_298 = 298; + public static final int GOBLIN_299 = 299; + public static final int SEDRIDOR = 300; + public static final int TWIG = 301; + public static final int HADLEY = 302; + public static final int GERALD = 303; + public static final int ALMERA = 304; + public static final int HUDON = 305; + public static final int GOLRIE = 306; + public static final int HETTY = 307; + public static final int MASTER_FISHER = 308; + public static final int FISHING_SPOT_309 = 309; + public static final int FISHING_SPOT_310 = 310; + public static final int FISHING_SPOT_311 = 311; + public static final int FISHING_SPOT_312 = 312; + public static final int FISHING_SPOT_313 = 313; + public static final int FISHING_SPOT_314 = 314; + public static final int FISHING_SPOT_315 = 315; + public static final int FISHING_SPOT_316 = 316; + public static final int FISHING_SPOT_317 = 317; + public static final int FISHING_SPOT_318 = 318; + public static final int FISHING_SPOT_319 = 319; + public static final int FISHING_SPOT_320 = 320; + public static final int FISHING_SPOT_321 = 321; + public static final int FISHING_SPOT_322 = 322; + public static final int FISHING_SPOT_323 = 323; + public static final int FISHING_SPOT_324 = 324; + public static final int FISHING_SPOT_325 = 325; + public static final int FISHING_SPOT_326 = 326; + public static final int FISHING_SPOT_327 = 327; + public static final int FISHING_SPOT_328 = 328; + public static final int FISHING_SPOT_329 = 329; + public static final int FISHING_SPOT_330 = 330; + public static final int FISHING_SPOT_331 = 331; + public static final int FISHING_SPOT_332 = 332; + public static final int FISHING_SPOT_333 = 333; + public static final int FISHING_SPOT_334 = 334; + public static final int NULL_335 = 335; + public static final int DA_VINCI = 336; + public static final int DA_VINCI_337 = 337; + public static final int CHANCY = 338; + public static final int CHANCY_339 = 339; + public static final int HOPS = 340; + public static final int HOPS_341 = 341; + public static final int GUIDORS_WIFE = 342; + public static final int GUIDOR = 343; + public static final int GUARD_344 = 344; + public static final int GUARD_345 = 345; + public static final int GUARD_346 = 346; + public static final int MOURNER = 347; + public static final int MOURNER_348 = 348; + public static final int KILRON = 349; + public static final int OMART = 350; + public static final int MAN_351 = 351; + public static final int WOMAN_352 = 352; + public static final int WOMAN_353 = 353; + public static final int WOMAN_354 = 354; + public static final int CHILD = 355; + public static final int CHILD_356 = 356; + public static final int MOURNER_357 = 357; + public static final int PRIEST_358 = 358; + public static final int MAN_359 = 359; + public static final int WOMAN_360 = 360; + public static final int WOMAN_361 = 361; + public static final int WOMAN_362 = 362; + public static final int WOMAN_363 = 363; + public static final int KING_LATHAS = 364; + public static final int PALADIN_365 = 365; + public static final int JERICO = 366; + public static final int CHEMIST = 367; + public static final int GUARD_368 = 368; + public static final int MOURNER_369 = 369; + public static final int MOURNER_370 = 370; + public static final int MOURNER_371 = 371; + public static final int MOURNER_372 = 372; + public static final int NURSE_SARAH = 373; + public static final int OGRE_374 = 374; + public static final int REDBEARD_FRANK = 375; + public static final int CAPTAIN_TOBIAS = 376; + public static final int SEAMAN_LORRIS = 377; + public static final int SEAMAN_THRESNOR = 378; + public static final int LUTHAS = 379; + public static final int CUSTOMS_OFFICER = 380; + public static final int CAPTAIN_BARNABY = 381; + public static final int DWARF_382 = 382; + public static final int STANKERS = 383; + public static final int BARBARIAN_GUARD_384 = 384; + public static final int KHARID_SCORPION = 385; + public static final int KHARID_SCORPION_386 = 386; + public static final int KHARID_SCORPION_387 = 387; + public static final int SEER = 388; + public static final int THORMAC = 389; + public static final int BIG_FISH = 390; + public static final int RIVER_TROLL = 391; + public static final int RIVER_TROLL_392 = 392; + public static final int RIVER_TROLL_393 = 393; + public static final int RIVER_TROLL_394 = 394; + public static final int RIVER_TROLL_395 = 395; + public static final int RIVER_TROLL_396 = 396; + public static final int COW_397 = 397; + public static final int LEGENDS_GUARD = 398; + public static final int LEGENDS_GUARD_399 = 399; + public static final int RADIMUS_ERKLE = 400; + public static final int JUNGLE_FORESTER = 401; + public static final int JUNGLE_FORESTER_402 = 402; + public static final int FISHING_SPOT_403 = 403; + public static final int FISHING_SPOT_404 = 404; + public static final int FISHING_SPOT_405 = 405; + public static final int FISHING_SPOT_406 = 406; + public static final int STRANGE_PLANT = 407; + public static final int STRANGE_PLANT_408 = 408; + public static final int GENIE = 409; + public static final int MYSTERIOUS_OLD_MAN = 410; + public static final int SWARM = 411; + public static final int BAT = 412; + public static final int ROCK_GOLEM = 413; + public static final int ROCK_GOLEM_414 = 414; + public static final int ROCK_GOLEM_415 = 415; + public static final int ROCK_GOLEM_416 = 416; + public static final int ROCK_GOLEM_417 = 417; + public static final int ROCK_GOLEM_418 = 418; + public static final int ZOMBIE_419 = 419; + public static final int ZOMBIE_420 = 420; + public static final int ZOMBIE_421 = 421; + public static final int ZOMBIE_422 = 422; + public static final int ZOMBIE_423 = 423; + public static final int ZOMBIE_424 = 424; + public static final int SHADE = 425; + public static final int SHADE_426 = 426; + public static final int SHADE_427 = 427; + public static final int SHADE_428 = 428; + public static final int SHADE_429 = 429; + public static final int SHADE_430 = 430; + public static final int WATCHMAN_431 = 431; + public static final int WATCHMAN_432 = 432; + public static final int WATCHMAN_433 = 433; + public static final int WATCHMAN_434 = 434; + public static final int WATCHMAN_435 = 435; + public static final int WATCHMAN_436 = 436; + public static final int CAPN_IZZY_NOBEARD = 437; + public static final int TREE_SPIRIT = 438; + public static final int TREE_SPIRIT_439 = 439; + public static final int TREE_SPIRIT_440 = 440; + public static final int TREE_SPIRIT_441 = 441; + public static final int TREE_SPIRIT_442 = 442; + public static final int TREE_SPIRIT_443 = 443; + public static final int GOBLIN_444 = 444; + public static final int GOBLIN_445 = 445; + public static final int GIANT_RAT_446 = 446; + public static final int JAIL_GUARD = 447; + public static final int JAIL_GUARD_448 = 448; + public static final int JAIL_GUARD_449 = 449; + public static final int GULL_450 = 450; + public static final int GULL_451 = 451; + public static final int SETH_GROATS = 452; + public static final int SUIT_OF_ARMOUR = 453; + public static final int SANFEW = 454; + public static final int KAQEMEEX = 455; + public static final int FATHER_AERECK = 456; + public static final int RESTLESS_GHOST = 457; + public static final int FATHER_URHNEY = 458; + public static final int SKELETON_459 = 459; + public static final int WIZARD_FRUMSCONE = 460; + public static final int MAGIC_STORE_OWNER = 461; + public static final int WIZARD_DISTENTOR = 462; + public static final int MURPHY = 463; + public static final int MURPHY_464 = 464; + public static final int MURPHY_465 = 465; + public static final int MURPHY_466 = 466; + public static final int SHARK_467 = 467; + public static final int SHARK_468 = 468; + public static final int KING_BOLREN = 469; + public static final int COMMANDER_MONTAI = 470; + public static final int BOLKOY = 471; + public static final int REMSAI = 472; + public static final int ELKOY = 473; + public static final int ELKOY_474 = 474; + public static final int KHAZARD_TROOPER = 475; + public static final int KHAZARD_TROOPER_476 = 476; + public static final int KHAZARD_WARLORD = 477; + public static final int KHAZARD_COMMANDER = 478; + public static final int GNOME_TROOP = 479; + public static final int GNOME_TROOP_480 = 480; + public static final int TRACKER_GNOME_1 = 481; + public static final int TRACKER_GNOME_2 = 482; + public static final int TRACKER_GNOME_3 = 483; + public static final int LOCAL_GNOME = 484; + public static final int LOCAL_GNOME_485 = 485; + public static final int KALRON = 486; + public static final int OBSERVATORY_ASSISTANT = 487; + public static final int OBSERVATORY_PROFESSOR = 488; + public static final int GOBLIN_GUARD = 489; + public static final int OBSERVATORY_PROFESSOR_490 = 490; + public static final int GHOST_491 = 491; + public static final int SPIRIT_OF_SCORPIUS = 492; + public static final int GRAVE_SCORPION = 493; + public static final int BANKER = 494; + public static final int BANKER_495 = 495; + public static final int BANKER_496 = 496; + public static final int BANKER_497 = 497; + public static final int BANKER_498 = 498; + public static final int BANKER_499 = 499; + public static final int MOSOL_REI = 500; + public static final int SPIRIT_OF_ZADIMUS = 501; + public static final int UNDEAD_ONE = 502; + public static final int UNDEAD_ONE_503 = 503; + public static final int UNDEAD_ONE_504 = 504; + public static final int UNDEAD_ONE_505 = 505; + public static final int RASHILIYIA = 506; + public static final int NAZASTAROOL = 507; + public static final int NAZASTAROOL_508 = 508; + public static final int NAZASTAROOL_509 = 509; + public static final int HAJEDY = 510; + public static final int VIGROY = 511; + public static final int KALEB_PARAMAYA = 512; + public static final int YOHNUS = 513; + public static final int SERAVEL = 514; + public static final int YANNI_SALIKA = 515; + public static final int OBLI = 516; + public static final int FERNAHEI = 517; + public static final int CAPTAIN_SHANKS = 518; + public static final int BOB = 519; + public static final int SHOP_KEEPER = 520; + public static final int SHOP_ASSISTANT = 521; + public static final int SHOP_KEEPER_522 = 522; + public static final int SHOP_ASSISTANT_523 = 523; + public static final int SHOP_KEEPER_524 = 524; + public static final int SHOP_ASSISTANT_525 = 525; + public static final int SHOP_KEEPER_526 = 526; + public static final int SHOP_ASSISTANT_527 = 527; + public static final int SHOP_KEEPER_528 = 528; + public static final int SHOP_ASSISTANT_529 = 529; + public static final int SHOP_KEEPER_530 = 530; + public static final int SHOP_ASSISTANT_531 = 531; + public static final int SHOP_KEEPER_532 = 532; + public static final int SHOP_ASSISTANT_533 = 533; + public static final int FAIRY_SHOP_KEEPER = 534; + public static final int FAIRY_SHOP_ASSISTANT = 535; + public static final int VALAINE = 536; + public static final int SCAVVO = 537; + public static final int PEKSA = 538; + public static final int SILK_TRADER = 539; + public static final int GEM_TRADER = 540; + public static final int ZEKE = 541; + public static final int LOUIE_LEGS = 542; + public static final int KARIM = 543; + public static final int RANAEL = 544; + public static final int DOMMIK = 545; + public static final int ZAFF = 546; + public static final int BARAEK = 547; + public static final int THESSALIA = 548; + public static final int HORVIK = 549; + public static final int LOWE = 550; + public static final int SHOP_KEEPER_551 = 551; + public static final int SHOP_ASSISTANT_552 = 552; + public static final int AUBURY = 553; + public static final int FANCY_DRESS_SHOP_OWNER = 554; + public static final int SHOP_KEEPER_555 = 555; + public static final int GRUM = 556; + public static final int WYDIN = 557; + public static final int GERRANT = 558; + public static final int BRIAN = 559; + public static final int JIMINUA = 560; + public static final int SHOP_KEEPER_561 = 561; + public static final int CANDLE_MAKER = 562; + public static final int ARHEIN = 563; + public static final int JUKAT = 564; + public static final int LUNDERWIN = 565; + public static final int IRKSOL = 566; + public static final int FAIRY_567 = 567; + public static final int ZAMBO = 568; + public static final int SILVER_MERCHANT = 569; + public static final int GEM_MERCHANT = 570; + public static final int BAKER = 571; + public static final int SPICE_SELLER = 572; + public static final int FUR_TRADER = 573; + public static final int SILK_MERCHANT = 574; + public static final int HICKTON = 575; + public static final int HARRY = 576; + public static final int CASSIE = 577; + public static final int FRINCOS = 578; + public static final int DROGO_DWARF = 579; + public static final int FLYNN = 580; + public static final int WAYNE = 581; + public static final int DWARF_582 = 582; + public static final int BETTY = 583; + public static final int HERQUIN = 584; + public static final int ROMMIK = 585; + public static final int GAIUS = 586; + public static final int JATIX = 587; + public static final int DAVON = 588; + public static final int ZENESHA = 589; + public static final int AEMAD = 590; + public static final int KORTAN = 591; + public static final int ROACHEY = 592; + public static final int FRENITA = 593; + public static final int NURMOF = 594; + public static final int TEA_SELLER = 595; + public static final int FAT_TONY = 596; + public static final int NOTERAZZO = 597; + public static final int HAIRDRESSER = 598; + public static final int MAKEOVER_MAGE = 599; + public static final int HUDO = 600; + public static final int ROMETTI = 601; + public static final int GULLUCK = 602; + public static final int HECKEL_FUNCH = 603; + public static final int THURGO = 604; + public static final int SIR_VYVIN = 605; + public static final int SQUIRE = 606; + public static final int GUNNJORN = 607; + public static final int SIR_AMIK_VARZE = 608; + public static final int FORTRESS_GUARD = 609; + public static final int BLACK_KNIGHT_610 = 610; + public static final int WITCH_611 = 611; + public static final int GRELDO = 612; + public static final int DIGSITE_WORKMAN = 613; + public static final int DIGSITE_WORKMAN_614 = 614; + public static final int STUDENT = 615; + public static final int STUDENT_616 = 616; + public static final int STUDENT_617 = 617; + public static final int EXAMINER = 618; + public static final int ARCHAEOLOGICAL_EXPERT = 619; + public static final int PANNING_GUIDE = 620; + public static final int GNOME_BALLER_621 = 621; + public static final int GNOME_BALLER_622 = 622; + public static final int GNOME_BALLER_623 = 623; + public static final int GNOME_BALLER_624 = 624; + public static final int GNOME_BALLER_625 = 625; + public static final int GNOME_BALLER_626 = 626; + public static final int GNOME_BALLER_627 = 627; + public static final int GNOME_BALLER_628 = 628; + public static final int GNOME_BALLER_629 = 629; + public static final int GNOME_BALLER_630 = 630; + public static final int GNOME_BALLER_631 = 631; + public static final int GNOME_BALLER_632 = 632; + public static final int GNOME_WINGER = 633; + public static final int GNOME_WINGER_634 = 634; + public static final int GNOME_BALL_REFEREE = 635; + public static final int CHEERLEADER = 636; + public static final int JULIET = 637; + public static final int APOTHECARY = 638; + public static final int ROMEO = 639; + public static final int FATHER_LAWRENCE = 640; + public static final int TRAMP_641 = 641; + public static final int KATRINE = 642; + public static final int WEAPONSMASTER = 643; + public static final int STRAVEN = 644; + public static final int JONNY_THE_BEARD = 645; + public static final int CURATOR = 646; + public static final int NULL_647 = 647; + public static final int KING_ROALD = 648; + public static final int ARCHER_649 = 649; + public static final int WARRIOR = 650; + public static final int MONK_651 = 651; + public static final int WIZARD_652 = 652; + public static final int FAIRY_QUEEN = 653; + public static final int SHAMUS = 654; + public static final int TREE_SPIRIT_655 = 655; + public static final int CAVE_MONK = 656; + public static final int MONK_OF_ENTRANA = 657; + public static final int MONK_OF_ENTRANA_658 = 658; + public static final int PARTY_PETE = 659; + public static final int KNIGHT = 660; + public static final int MEGAN = 661; + public static final int LUCY = 662; + public static final int MAN_663 = 663; + public static final int DIMINTHEIS = 664; + public static final int BOOT = 665; + public static final int CALEB = 666; + public static final int CHRONOZON = 667; + public static final int JOHNATHON = 668; + public static final int HAZELMERE = 669; + public static final int KING_NARNODE_SHAREEN = 670; + public static final int GLOUGH = 671; + public static final int ANITA = 672; + public static final int CHARLIE = 673; + public static final int FOREMAN = 674; + public static final int SHIPYARD_WORKER_675 = 675; + public static final int FEMI = 676; + public static final int BLACK_DEMON_677 = 677; + public static final int GUARD_678 = 678; + public static final int RANGING_GUILD_DOORMAN = 679; + public static final int LEATHERWORKER = 680; + public static final int WEAPON_POISON_SALESMAN = 681; + public static final int ARMOUR_SALESMAN = 682; + public static final int BOW_AND_ARROW_SALESMAN = 683; + public static final int TOWER_ADVISOR = 684; + public static final int TOWER_ADVISOR_685 = 685; + public static final int TOWER_ADVISOR_686 = 686; + public static final int TOWER_ADVISOR_687 = 687; + public static final int TOWER_ARCHER = 688; + public static final int TOWER_ARCHER_689 = 689; + public static final int TOWER_ARCHER_690 = 690; + public static final int TOWER_ARCHER_691 = 691; + public static final int TRIBAL_WEAPON_SALESMAN = 692; + public static final int COMPETITION_JUDGE = 693; + public static final int TICKET_MERCHANT = 694; + public static final int BAILEY = 695; + public static final int CAROLINE = 696; + public static final int KENNITH = 697; + public static final int HOLGART = 698; + public static final int HOLGART_699 = 699; + public static final int HOLGART_700 = 700; + public static final int KENT = 701; + public static final int FISHERMAN_702 = 702; + public static final int FISHERMAN_703 = 703; + public static final int FISHERMAN_704 = 704; + public static final int FISHERMAN_705 = 705; + public static final int WIZARD_MIZGOG = 706; + public static final int WIZARD_GRAYZAG = 707; + public static final int IMP = 708; + public static final int IMP_709 = 709; + public static final int ALRENA = 710; + public static final int BRAVEK = 711; + public static final int CARLA = 712; + public static final int CLERK = 713; + public static final int EDMOND = 714; + public static final int NULL_715 = 715; + public static final int HEAD_MOURNER = 716; + public static final int MOURNER_717 = 717; + public static final int MOURNER_718 = 718; + public static final int MOURNER_719 = 719; + public static final int RECRUITER = 720; + public static final int TED_REHNISON = 721; + public static final int MARTHA_REHNISON = 722; + public static final int BILLY_REHNISON = 723; + public static final int MILLI_REHNISON = 724; + public static final int JETHICK = 725; + public static final int MAN_726 = 726; + public static final int MAN_727 = 727; + public static final int MAN_728 = 728; + public static final int MAN_729 = 729; + public static final int MAN_730 = 730; + public static final int BARTENDER = 731; + public static final int BARTENDER_732 = 732; + public static final int BARTENDER_733 = 733; + public static final int BARTENDER_734 = 734; + public static final int BARTENDER_735 = 735; + public static final int EMILY = 736; + public static final int BARTENDER_737 = 737; + public static final int BARTENDER_738 = 738; + public static final int BARTENDER_739 = 739; + public static final int TRUFITUS = 740; + public static final int DUKE_HORACIO = 741; + public static final int ELVARG = 742; + public static final int NED = 743; + public static final int KLARENSE = 744; + public static final int WORMBRAIN = 745; + public static final int ORACLE = 746; + public static final int OZIACH = 747; + public static final int GIANT_RAT_748 = 748; + public static final int GHOST_749 = 749; + public static final int SKELETON_750 = 750; + public static final int ZOMBIE_751 = 751; + public static final int LESSER_DEMON_752 = 752; + public static final int MELZAR_THE_MAD = 753; + public static final int CABIN_BOY_JENKINS = 754; + public static final int MORGAN = 755; + public static final int DR_HARLOW = 756; + public static final int COUNT_DRAYNOR = 757; + public static final int FRED_THE_FARMER = 758; + public static final int GERTRUDES_CAT = 759; + public static final int KITTEN = 760; + public static final int KITTEN_761 = 761; + public static final int KITTEN_762 = 762; + public static final int KITTEN_763 = 763; + public static final int KITTEN_764 = 764; + public static final int KITTEN_765 = 765; + public static final int KITTEN_766 = 766; + public static final int CRATE = 767; + public static final int CAT = 768; + public static final int CAT_769 = 769; + public static final int CAT_770 = 770; + public static final int CAT_771 = 771; + public static final int CAT_772 = 772; + public static final int CAT_773 = 773; + public static final int OVERGROWN_CAT = 774; + public static final int OVERGROWN_CAT_775 = 775; + public static final int OVERGROWN_CAT_776 = 776; + public static final int OVERGROWN_CAT_777 = 777; + public static final int OVERGROWN_CAT_778 = 778; + public static final int OVERGROWN_CAT_779 = 779; + public static final int GERTRUDE = 780; + public static final int SHILOP = 781; + public static final int PHILOP = 782; + public static final int WILOUGH = 783; + public static final int KANEL = 784; + public static final int CIVILIAN = 785; + public static final int CIVILIAN_786 = 786; + public static final int CIVILIAN_787 = 787; + public static final int GARV = 788; + public static final int GRUBOR = 789; + public static final int TROBERT = 790; + public static final int SETH = 791; + public static final int GRIP = 792; + public static final int ALFONSE_THE_WAITER = 793; + public static final int CHARLIE_THE_COOK = 794; + public static final int ICE_QUEEN = 795; + public static final int ACHIETTIES = 796; + public static final int HELEMOS = 797; + public static final int VELRAK_THE_EXPLORER = 798; + public static final int PIRATE_GUARD = 799; + public static final int FISHING_SPOT_800 = 800; + public static final int ABBOT_LANGLEY = 801; + public static final int BROTHER_JERED = 802; + public static final int MONK_803 = 803; + public static final int TANNER = 804; + public static final int MASTER_CRAFTER = 805; + public static final int DONOVAN_THE_FAMILY_HANDYMAN = 806; + public static final int PIERRE = 807; + public static final int HOBBES = 808; + public static final int LOUISA = 809; + public static final int MARY = 810; + public static final int STANFORD = 811; + public static final int GUARD_812 = 812; + public static final int GOSSIP = 813; + public static final int ANNA = 814; + public static final int BOB_815 = 815; + public static final int CAROL = 816; + public static final int DAVID = 817; + public static final int ELIZABETH = 818; + public static final int FRANK = 819; + public static final int POISON_SALESMAN = 820; + public static final int SINCLAIR_GUARD_DOG = 821; + public static final int ANA = 822; + public static final int ANA_823 = 823; + public static final int FEMALE_SLAVE = 824; + public static final int MALE_SLAVE = 825; + public static final int ESCAPING_SLAVE = 826; + public static final int ROWDY_SLAVE = 827; + public static final int MERCENARY = 828; + public static final int MERCENARY_829 = 829; + public static final int MERCENARY_CAPTAIN = 830; + public static final int CAPTAIN_SIAD = 831; + public static final int AL_SHABIM = 832; + public static final int BEDABIN_NOMAD = 833; + public static final int BEDABIN_NOMAD_GUARD = 834; + public static final int IRENA = 835; + public static final int SHANTAY = 836; + public static final int SHANTAY_GUARD = 837; + public static final int SHANTAY_GUARD_838 = 838; + public static final int DESERT_WOLF = 839; + public static final int UGTHANKI = 840; + public static final int MINE_CART_DRIVER = 841; + public static final int ROWDY_GUARD = 842; + public static final int RPDT_EMPLOYEE = 843; + public static final int WIZARD_CROMPERTY = 844; + public static final int HORACIO = 845; + public static final int KANGAI_MAU = 846; + public static final int HEAD_CHEF = 847; + public static final int BLURBERRY = 848; + public static final int BARMAN_849 = 849; + public static final int ALUFT_GIANNE = 850; + public static final int GNOME_WAITER = 851; + public static final int OGRE_CHIEFTAIN = 852; + public static final int OG = 853; + public static final int GREW = 854; + public static final int TOBAN = 855; + public static final int GORAD = 856; + public static final int OGRE_GUARD = 857; + public static final int OGRE_GUARD_858 = 858; + public static final int OGRE_GUARD_859 = 859; + public static final int OGRE_GUARD_860 = 860; + public static final int OGRE_GUARD_861 = 861; + public static final int CITY_GUARD = 862; + public static final int SCARED_SKAVID = 863; + public static final int MAD_SKAVID = 864; + public static final int SKAVID_865 = 865; + public static final int SKAVID_866 = 866; + public static final int SKAVID_867 = 867; + public static final int SKAVID_868 = 868; + public static final int SKAVID_869 = 869; + public static final int ENCLAVE_GUARD = 870; + public static final int OGRE_SHAMAN = 871; + public static final int WATCHTOWER_WIZARD = 872; + public static final int OGRE_TRADER = 873; + public static final int OGRE_MERCHANT = 874; + public static final int OGRE_TRADER_875 = 875; + public static final int OGRE_TRADER_876 = 876; + public static final int TOWER_GUARD = 877; + public static final int COLONEL_RADICK = 878; + public static final int DELRITH = 879; + public static final int WEAKENED_DELRITH = 880; + public static final int TRAIBORN = 881; + public static final int GYPSY = 882; + public static final int SIR_PRYSIN = 883; + public static final int CAPTAIN_ROVIN = 884; + public static final int CERIL_CARNILLEAN = 885; + public static final int CLAUS_THE_CHEF = 886; + public static final int GUARD_887 = 887; + public static final int PHILIPE_CARNILLEAN = 888; + public static final int HENRYETA_CARNILLEAN = 889; + public static final int BUTLER_JONES = 890; + public static final int ALOMONE = 891; + public static final int HAZEEL = 892; + public static final int CLIVET = 893; + public static final int HAZEEL_CULTIST = 894; + public static final int BOY = 895; + public static final int NORA_T_HAGG = 896; + public static final int WITCHES_EXPERIMENT = 897; + public static final int WITCHES_EXPERIMENT_SECOND_FORM = 898; + public static final int WITCHES_EXPERIMENT_THIRD_FORM = 899; + public static final int WITCHES_EXPERIMENT_FOURTH_FORM = 900; + public static final int MOUSE = 901; + public static final int GUNDAI = 902; + public static final int LUNDAIL = 903; + public static final int CHAMBER_GUARDIAN = 904; + public static final int KOLODION = 905; + public static final int KOLODION_906 = 906; + public static final int KOLODION_907 = 907; + public static final int KOLODION_908 = 908; + public static final int KOLODION_909 = 909; + public static final int KOLODION_910 = 910; + public static final int KOLODION_911 = 911; + public static final int BATTLE_MAGE = 912; + public static final int BATTLE_MAGE_913 = 913; + public static final int BATTLE_MAGE_914 = 914; + public static final int LEELA = 915; + public static final int JOE_916 = 916; + public static final int JAIL_GUARD_917 = 917; + public static final int NED_918 = 918; + public static final int LADY_KELI = 919; + public static final int PRINCE_ALI = 920; + public static final int PRINCE_ALI_921 = 921; + public static final int AGGIE = 922; + public static final int HASSAN = 923; + public static final int OSMAN = 924; + public static final int BORDER_GUARD = 925; + public static final int BORDER_GUARD_926 = 926; + public static final int FISHING_SPOT_927 = 927; + public static final int GUJUO = 928; + public static final int UNGADULU = 929; + public static final int UNGADULU_930 = 930; + public static final int JUNGLE_SAVAGE = 931; + public static final int FIONELLA = 932; + public static final int SIEGFRIED_ERKLE = 933; + public static final int NEZIKCHENED = 934; + public static final int VIYELDI = 935; + public static final int SAN_TOJALON = 936; + public static final int IRVIG_SENAY = 937; + public static final int RANALPH_DEVERE = 938; + public static final int BOULDER = 939; + public static final int ECHNED_ZEKIN = 940; + public static final int GREEN_DRAGON = 941; + public static final int MASTER_CHEF = 942; + public static final int SURVIVAL_EXPERT = 943; + public static final int COMBAT_INSTRUCTOR = 944; + public static final int RUNESCAPE_GUIDE = 945; + public static final int MAGIC_INSTRUCTOR = 946; + public static final int FINANCIAL_ADVISOR = 947; + public static final int MINING_INSTRUCTOR = 948; + public static final int QUEST_GUIDE = 949; + public static final int GIANT_RAT_950 = 950; + public static final int CHICKEN_951 = 951; + public static final int FISHING_SPOT_952 = 952; + public static final int BANKER_953 = 953; + public static final int BROTHER_BRACE = 954; + public static final int COW_955 = 955; + public static final int DRUNKEN_DWARF = 956; + public static final int MUBARIZ = 957; + public static final int FADLI = 958; + public static final int AABLA = 959; + public static final int SABREEN = 960; + public static final int TAFANI = 961; + public static final int JARAAH = 962; + public static final int ZAHWA = 963; + public static final int IMA = 964; + public static final int SABEIL = 965; + public static final int JADID = 966; + public static final int DALAL = 967; + public static final int AFRAH = 968; + public static final int JEED = 969; + public static final int DIANGO = 970; + public static final int CHADWELL = 971; + public static final int KOFTIK = 972; + public static final int KOFTIK_973 = 973; + public static final int KOFTIK_974 = 974; + public static final int KOFTIK_975 = 975; + public static final int KOFTIK_976 = 976; + public static final int BLESSED_SPIDER = 977; + public static final int BLESSED_GIANT_RAT = 978; + public static final int SLAVE = 979; + public static final int SLAVE_980 = 980; + public static final int SLAVE_981 = 981; + public static final int SLAVE_982 = 982; + public static final int SLAVE_983 = 983; + public static final int SLAVE_984 = 984; + public static final int SLAVE_985 = 985; + public static final int BOULDER_986 = 986; + public static final int UNICORN_987 = 987; + public static final int SIR_JERRO = 988; + public static final int SIR_CARL = 989; + public static final int SIR_HARRY = 990; + public static final int HALFSOULESS = 991; + public static final int KARDIA = 992; + public static final int WITCHS_CAT = 993; + public static final int NILOOF = 994; + public static final int KLANK = 995; + public static final int KAMEN = 996; + public static final int KALRAG = 997; + public static final int OTHAINIAN = 998; + public static final int DOOMION = 999; + public static final int HOLTHION = 1000; + public static final int DARK_MAGE = 1001; + public static final int IBAN_DISCIPLE = 1002; + public static final int LORD_IBAN = 1003; + public static final int SPIDER_1004 = 1004; + public static final int GIANT_BAT_1005 = 1005; + public static final int SEA_SLUG = 1006; + public static final int ZAMORAK_WIZARD = 1007; + public static final int HAMID = 1008; + public static final int POISON_SPIDER_1009 = 1009; + public static final int RANTZ = 1010; + public static final int FYCIE = 1011; + public static final int BUGS = 1012; + public static final int SWAMP_TOAD = 1013; + public static final int BLOATED_TOAD = 1014; + public static final int CHOMPY_BIRD = 1015; + public static final int CHOMPY_BIRD_1016 = 1016; + public static final int CHICKEN_1017 = 1017; + public static final int ROOSTER = 1018; + public static final int FIRE_ELEMENTAL = 1019; + public static final int EARTH_ELEMENTAL = 1020; + public static final int AIR_ELEMENTAL = 1021; + public static final int WATER_ELEMENTAL = 1022; + public static final int EARTH_ELEMENTAL_1023 = 1023; + public static final int MAN_1024 = 1024; + public static final int MAN_1025 = 1025; + public static final int MAN_1026 = 1026; + public static final int WOMAN_1027 = 1027; + public static final int WOMAN_1028 = 1028; + public static final int WOMAN_1029 = 1029; + public static final int WOLFMAN = 1030; + public static final int WOLFMAN_1031 = 1031; + public static final int WOLFMAN_1032 = 1032; + public static final int WOLFWOMAN = 1033; + public static final int WOLFWOMAN_1034 = 1034; + public static final int WOLFWOMAN_1035 = 1035; + public static final int BANKER_1036 = 1036; + public static final int MAN_1037 = 1037; + public static final int RUFUS = 1038; + public static final int BARKER = 1039; + public static final int FIDELIO = 1040; + public static final int SBOTT = 1041; + public static final int ROAVAR = 1042; + public static final int WILL_O_THE_WISP = 1043; + public static final int MONK_OF_ZAMORAK_1044 = 1044; + public static final int MONK_OF_ZAMORAK_1045 = 1045; + public static final int MONK_OF_ZAMORAK_1046 = 1046; + public static final int TEMPLE_GUARDIAN = 1047; + public static final int DREZEL = 1048; + public static final int DREZEL_1049 = 1049; + public static final int FILLIMAN_TARLOCK = 1050; + public static final int NATURE_SPIRIT = 1051; + public static final int GHAST = 1052; + public static final int GHAST_1053 = 1053; + public static final int ULIZIUS = 1054; + public static final int PIRATE_JACKIE_THE_FRUIT = 1055; + public static final int MIME = 1056; + public static final int STRANGE_WATCHER = 1057; + public static final int STRANGE_WATCHER_1058 = 1058; + public static final int STRANGE_WATCHER_1059 = 1059; + public static final int DENULTH = 1060; + public static final int SERGEANT = 1061; + public static final int SERGEANT_1062 = 1062; + public static final int SOLDIER_1063 = 1063; + public static final int SOLDIER_1064 = 1064; + public static final int SOLDIER_1065 = 1065; + public static final int SOLDIER_1066 = 1066; + public static final int SOLDIER_1067 = 1067; + public static final int SOLDIER_1068 = 1068; + public static final int SOLDIER_1069 = 1069; + public static final int SABA = 1070; + public static final int TENZING = 1071; + public static final int EADBURG = 1072; + public static final int ARCHER_1073 = 1073; + public static final int ARCHER_1074 = 1074; + public static final int ARCHER_1075 = 1075; + public static final int GUARD_1076 = 1076; + public static final int GUARD_1077 = 1077; + public static final int HAROLD = 1078; + public static final int TOSTIG = 1079; + public static final int EOHRIC = 1080; + public static final int SERVANT = 1081; + public static final int DUNSTAN = 1082; + public static final int WISTAN = 1083; + public static final int BREOCA = 1084; + public static final int OCGA = 1085; + public static final int MAN_1086 = 1086; + public static final int PENDA = 1087; + public static final int HYGD = 1088; + public static final int CEOLBURG = 1089; + public static final int HILD = 1090; + public static final int BOB_1091 = 1091; + public static final int WHITE_KNIGHT_1092 = 1092; + public static final int BILLY = 1093; + public static final int MOUNTAIN_GOAT = 1094; + public static final int ROCK = 1095; + public static final int STICK = 1096; + public static final int PEE_HAT = 1097; + public static final int KRAKA = 1098; + public static final int DUNG = 1099; + public static final int ASH = 1100; + public static final int THROWER_TROLL = 1101; + public static final int THROWER_TROLL_1102 = 1102; + public static final int THROWER_TROLL_1103 = 1103; + public static final int THROWER_TROLL_1104 = 1104; + public static final int THROWER_TROLL_1105 = 1105; + public static final int MOUNTAIN_TROLL = 1106; + public static final int MOUNTAIN_TROLL_1107 = 1107; + public static final int MOUNTAIN_TROLL_1108 = 1108; + public static final int MOUNTAIN_TROLL_1109 = 1109; + public static final int MOUNTAIN_TROLL_1110 = 1110; + public static final int MOUNTAIN_TROLL_1111 = 1111; + public static final int MOUNTAIN_TROLL_1112 = 1112; + public static final int EADGAR = 1113; + public static final int GODRIC = 1114; + public static final int TROLL_GENERAL = 1115; + public static final int TROLL_GENERAL_1116 = 1116; + public static final int TROLL_GENERAL_1117 = 1117; + public static final int TROLL_SPECTATOR = 1118; + public static final int TROLL_SPECTATOR_1119 = 1119; + public static final int TROLL_SPECTATOR_1120 = 1120; + public static final int TROLL_SPECTATOR_1121 = 1121; + public static final int TROLL_SPECTATOR_1122 = 1122; + public static final int TROLL_SPECTATOR_1123 = 1123; + public static final int TROLL_SPECTATOR_1124 = 1124; + public static final int DAD = 1125; + public static final int TWIG_1126 = 1126; + public static final int BERRY = 1127; + public static final int TWIG_1128 = 1128; + public static final int BERRY_1129 = 1129; + public static final int THROWER_TROLL_1130 = 1130; + public static final int THROWER_TROLL_1131 = 1131; + public static final int THROWER_TROLL_1132 = 1132; + public static final int THROWER_TROLL_1133 = 1133; + public static final int THROWER_TROLL_1134 = 1134; + public static final int COOK_1135 = 1135; + public static final int COOK_1136 = 1136; + public static final int COOK_1137 = 1137; + public static final int MOUNTAIN_TROLL_1138 = 1138; + public static final int MUSHROOM = 1139; + public static final int MOUNTAIN_GOAT_1140 = 1140; + public static final int MOUNTAIN_GOAT_1141 = 1141; + public static final int GUARD_1142 = 1142; + public static final int GUARD_1143 = 1143; + public static final int GUARD_1144 = 1144; + public static final int GUARD_1145 = 1145; + public static final int GUARD_1146 = 1146; + public static final int GUARD_1147 = 1147; + public static final int GUARD_1148 = 1148; + public static final int GUARD_1149 = 1149; + public static final int GUARD_1150 = 1150; + public static final int BURNTMEAT = 1151; + public static final int WEIRD_OLD_MAN = 1152; + public static final int KALPHITE_WORKER = 1153; + public static final int KALPHITE_SOLDIER = 1154; + public static final int KALPHITE_GUARDIAN = 1155; + public static final int KALPHITE_WORKER_1156 = 1156; + public static final int KALPHITE_GUARDIAN_1157 = 1157; + public static final int KALPHITE_QUEEN = 1158; + public static final int KALPHITE_QUEEN_1159 = 1159; + public static final int KALPHITE_QUEEN_1160 = 1160; + public static final int KALPHITE_LARVA = 1161; + public static final int TIMFRAKU = 1162; + public static final int TIADECHE = 1163; + public static final int TIADECHE_1164 = 1164; + public static final int TINSAY = 1165; + public static final int TINSAY_1166 = 1166; + public static final int TAMAYU = 1167; + public static final int TAMAYU_1168 = 1168; + public static final int TAMAYU_1169 = 1169; + public static final int TAMAYU_1170 = 1170; + public static final int LUBUFU = 1171; + public static final int THE_SHAIKAHAN = 1172; + public static final int THE_SHAIKAHAN_1173 = 1173; + public static final int FISHING_SPOT_1174 = 1174; + public static final int FISHING_SPOT_1175 = 1175; + public static final int FISHING_SPOT_1176 = 1176; + public static final int FISHING_SPOT_1177 = 1177; + public static final int FISHING_SPOT_1178 = 1178; + public static final int GULL_1179 = 1179; + public static final int CORMORANT_1180 = 1180; + public static final int ALBATROSS_1181 = 1181; + public static final int LORD_IORWERTH = 1182; + public static final int ELF_WARRIOR = 1183; + public static final int ELF_WARRIOR_1184 = 1184; + public static final int ELVEN_CITY_GUARD = 1185; + public static final int IDRIS = 1186; + public static final int ESSYLLT = 1187; + public static final int MORVRAN = 1188; + public static final int FISHING_SPOT_1189 = 1189; + public static final int FISHING_SPOT_1190 = 1190; + public static final int FISHING_SPOT_1191 = 1191; + public static final int RABBIT = 1192; + public static final int RABBIT_1193 = 1193; + public static final int RABBIT_1194 = 1194; + public static final int GRIZZLY_BEAR = 1195; + public static final int GRIZZLY_BEAR_CUB = 1196; + public static final int GRIZZLY_BEAR_CUB_1197 = 1197; + public static final int DIRE_WOLF = 1198; + public static final int ELF_TRACKER = 1199; + public static final int TYRAS_GUARD = 1200; + public static final int ELF_WARRIOR_1201 = 1201; + public static final int ARIANWYN = 1202; + public static final int TYRAS_GUARD_1203 = 1203; + public static final int TYRAS_GUARD_1204 = 1204; + public static final int TYRAS_GUARD_1205 = 1205; + public static final int TYRAS_GUARD_1206 = 1206; + public static final int GENERAL_HINING = 1207; + public static final int QUARTERMASTER = 1208; + public static final int KOFTIK_1209 = 1209; + public static final int KINGS_MESSENGER = 1210; + public static final int WILL_O_THE_WISP_1211 = 1211; + public static final int WILL_O_THE_WISP_1212 = 1212; + public static final int TEGID = 1213; + public static final int THISTLE = 1214; + public static final int PARROTS = 1215; + public static final int PARROTY_PETE = 1216; + public static final int GARDENER = 1217; + public static final int GHOUL = 1218; + public static final int LEECH = 1219; + public static final int VAMPIRE = 1220; + public static final int SPIDER_1221 = 1221; + public static final int MIST = 1222; + public static final int VAMPIRE_1223 = 1223; + public static final int VAMPYRIC_HOUND = 1224; + public static final int VAMPIRE_1225 = 1225; + public static final int TREE_1226 = 1226; + public static final int MYRE_BLAMISH_SNAIL = 1227; + public static final int BLOOD_BLAMISH_SNAIL = 1228; + public static final int OCHRE_BLAMISH_SNAIL = 1229; + public static final int BRUISE_BLAMISH_SNAIL = 1230; + public static final int BARK_BLAMISH_SNAIL = 1231; + public static final int MYRE_BLAMISH_SNAIL_1232 = 1232; + public static final int BLOOD_BLAMISH_SNAIL_1233 = 1233; + public static final int OCHRE_BLAMISH_SNAIL_1234 = 1234; + public static final int BRUISE_BLAMISH_SNAIL_1235 = 1235; + public static final int FISHING_SPOT_1236 = 1236; + public static final int FISHING_SPOT_1237 = 1237; + public static final int FISHING_SPOT_1238 = 1238; + public static final int BEDABIN_NOMAD_FIGHTER = 1239; + public static final int LOAR_SHADOW = 1240; + public static final int LOAR_SHADE = 1241; + public static final int SHADE_SPIRIT = 1242; + public static final int PHRIN_SHADOW = 1243; + public static final int PHRIN_SHADE = 1244; + public static final int RIYL_SHADOW = 1245; + public static final int RIYL_SHADE = 1246; + public static final int ASYN_SHADOW = 1247; + public static final int ASYN_SHADE = 1248; + public static final int FIYR_SHADOW = 1249; + public static final int FIYR_SHADE = 1250; + public static final int AFFLICTEDULSQUIRE = 1251; + public static final int ULSQUIRE_SHAUNCY = 1252; + public static final int AFFLICTEDRAZMIRE = 1253; + public static final int RAZMIRE_KEELGAN = 1254; + public static final int MORTTON_LOCAL = 1255; + public static final int MORTTON_LOCAL_1256 = 1256; + public static final int AFFLICTED = 1257; + public static final int AFFLICTED_1258 = 1258; + public static final int MORTTON_LOCAL_1259 = 1259; + public static final int MORTTON_LOCAL_1260 = 1260; + public static final int AFFLICTED_1261 = 1261; + public static final int AFFLICTED_1262 = 1262; + public static final int WIZARD_1263 = 1263; + public static final int SARADOMIN_WIZARD = 1264; + public static final int ROCK_CRAB = 1265; + public static final int ROCKS = 1266; + public static final int ROCK_CRAB_1267 = 1267; + public static final int ROCKS_1268 = 1268; + public static final int OLAF_THE_BARD = 1269; + public static final int LALLI = 1270; + public static final int GOLDEN_SHEEP = 1271; + public static final int GOLDEN_SHEEP_1272 = 1272; + public static final int FOSSEGRIMEN = 1273; + public static final int OSPAK = 1274; + public static final int STYRMIR = 1275; + public static final int TORBRUND = 1276; + public static final int FRIDGEIR = 1277; + public static final int LONGHALL_BOUNCER = 1278; + public static final int THE_DRAUGEN = 1279; + public static final int BUTTERFLY_1280 = 1280; + public static final int SIGLI_THE_HUNTSMAN = 1281; + public static final int SIGMUND_THE_MERCHANT = 1282; + public static final int SWENSEN_THE_NAVIGATOR = 1283; + public static final int BJORN = 1284; + public static final int ELDGRIM = 1285; + public static final int MANNI_THE_REVELLER = 1286; + public static final int COUNCIL_WORKMAN = 1287; + public static final int PEER_THE_SEER = 1288; + public static final int THORVALD_THE_WARRIOR = 1289; + public static final int KOSCHEI_THE_DEATHLESS = 1290; + public static final int KOSCHEI_THE_DEATHLESS_1291 = 1291; + public static final int KOSCHEI_THE_DEATHLESS_1292 = 1292; + public static final int KOSCHEI_THE_DEATHLESS_1293 = 1293; + public static final int BRUNDT_THE_CHIEFTAIN = 1294; + public static final int ASKELADDEN = 1295; + public static final int GUARD_1296 = 1296; + public static final int GUARD_1297 = 1297; + public static final int TOWN_GUARD = 1298; + public static final int TOWN_GUARD_1299 = 1299; + public static final int THORA_THE_BARKEEP = 1300; + public static final int YRSA = 1301; + public static final int FISHERMAN_1302 = 1302; + public static final int SKULGRIMEN = 1303; + public static final int SAILOR = 1304; + public static final int AGNAR = 1305; + public static final int FREIDIR = 1306; + public static final int BORROKAR = 1307; + public static final int LANZIG = 1308; + public static final int PONTAK = 1309; + public static final int FREYGERD = 1310; + public static final int LENSA = 1311; + public static final int JENNELLA = 1312; + public static final int SASSILIK = 1313; + public static final int INGA = 1314; + public static final int FISH_MONGER = 1315; + public static final int FUR_TRADER_1316 = 1316; + public static final int MARKET_GUARD = 1317; + public static final int WARRIOR_1318 = 1318; + public static final int FOX = 1319; + public static final int BUNNY = 1320; + public static final int BUNNY_1321 = 1321; + public static final int GULL_1322 = 1322; + public static final int GULL_1323 = 1323; + public static final int GULL_1324 = 1324; + public static final int GULL_1325 = 1325; + public static final int BEAR_CUB = 1326; + public static final int BEAR_CUB_1327 = 1327; + public static final int UNICORN_FOAL = 1328; + public static final int BLACK_UNICORN_FOAL = 1329; + public static final int WOLF_1330 = 1330; + public static final int FISHING_SPOT_1331 = 1331; + public static final int FISHING_SPOT_1332 = 1332; + public static final int FISHING_SPOT_1333 = 1333; + public static final int JOSSIK = 1334; + public static final int JOSSIK_1335 = 1335; + public static final int LARRISSA = 1336; + public static final int LARRISSA_1337 = 1337; + public static final int DAGANNOTH = 1338; + public static final int DAGANNOTH_1339 = 1339; + public static final int DAGANNOTH_1340 = 1340; + public static final int DAGANNOTH_1341 = 1341; + public static final int DAGANNOTH_1342 = 1342; + public static final int DAGANNOTH_1343 = 1343; + public static final int DAGANNOTH_1344 = 1344; + public static final int DAGANNOTH_1345 = 1345; + public static final int DAGANNOTH_1346 = 1346; + public static final int DAGANNOTH_1347 = 1347; + public static final int DAGANNOTH_MOTHER = 1348; + public static final int DAGANNOTH_MOTHER_1349 = 1349; + public static final int DAGANNOTH_MOTHER_1350 = 1350; + public static final int DAGANNOTH_MOTHER_1351 = 1351; + public static final int DAGANNOTH_MOTHER_1352 = 1352; + public static final int DAGANNOTH_MOTHER_1353 = 1353; + public static final int DAGANNOTH_MOTHER_1354 = 1354; + public static final int DAGANNOTH_MOTHER_1355 = 1355; + public static final int DAGANNOTH_MOTHER_1356 = 1356; + public static final int SAM = 1357; + public static final int RACHAEL = 1358; + public static final int QUEEN_SIGRID = 1359; + public static final int BANKER_1360 = 1360; + public static final int ARNOR = 1361; + public static final int HAMING = 1362; + public static final int MOLDOF = 1363; + public static final int HELGA = 1364; + public static final int MATILDA = 1365; + public static final int ASHILD = 1366; + public static final int SKRAELING = 1367; + public static final int SKRAELING_1368 = 1368; + public static final int FISHMONGER = 1369; + public static final int GREENGROCER = 1370; + public static final int PRINCE_BRAND = 1371; + public static final int PRINCESS_ASTRID = 1372; + public static final int KING_VARGAS = 1373; + public static final int GUARD_1374 = 1374; + public static final int ADVISOR_GHRIM = 1375; + public static final int DERRIK = 1376; + public static final int FARMER_1377 = 1377; + public static final int FLOWER_GIRL = 1378; + public static final int RAGNAR = 1379; + public static final int EINAR = 1380; + public static final int ALRIK = 1381; + public static final int THORHILD = 1382; + public static final int HALLA = 1383; + public static final int YRSA_1384 = 1384; + public static final int SAILOR_1385 = 1385; + public static final int RANNVEIG = 1386; + public static final int THORA = 1387; + public static final int VALGERD = 1388; + public static final int SKRAELING_1389 = 1389; + public static final int BRODDI = 1390; + public static final int SKRAELING_1391 = 1391; + public static final int RAGNVALD = 1392; + public static final int FISHMONGER_1393 = 1393; + public static final int GREENGROCER_1394 = 1394; + public static final int LUMBERJACK_LEIF = 1395; + public static final int MINER_MAGNUS = 1396; + public static final int FISHERMAN_FRODI = 1397; + public static final int GARDENER_GUNNHILD = 1398; + public static final int FISHING_SPOT_1399 = 1399; + public static final int GULL_1400 = 1400; + public static final int CHICKEN_1401 = 1401; + public static final int CHICKEN_1402 = 1402; + public static final int ROOSTER_1403 = 1403; + public static final int RABBIT_1404 = 1404; + public static final int FISHING_SPOT_1405 = 1405; + public static final int FISHING_SPOT_1406 = 1406; + public static final int DAERO = 1407; + public static final int WAYDAR = 1408; + public static final int WAYDAR_1409 = 1409; + public static final int WAYDAR_1410 = 1410; + public static final int GARKOR = 1411; + public static final int GARKOR_1412 = 1412; + public static final int LUMO = 1413; + public static final int LUMO_1414 = 1414; + public static final int BUNKDO = 1415; + public static final int BUNKDO_1416 = 1416; + public static final int CARADO = 1417; + public static final int CARADO_1418 = 1418; + public static final int LUMDO = 1419; + public static final int KARAM = 1420; + public static final int KARAM_1421 = 1421; + public static final int KARAM_1422 = 1422; + public static final int BUNKWICKET = 1423; + public static final int WAYMOTTIN = 1424; + public static final int ZOOKNOCK = 1425; + public static final int ZOOKNOCK_1426 = 1426; + public static final int GLO_CARANOCK = 1427; + public static final int GLO_CARANOCK_1428 = 1428; + public static final int DUGOPUL = 1429; + public static final int SALENAB = 1430; + public static final int TREFAJI = 1431; + public static final int ABERAB = 1432; + public static final int SOLIHIB = 1433; + public static final int DAGA = 1434; + public static final int TUTAB = 1435; + public static final int IFABA = 1436; + public static final int HAMAB = 1437; + public static final int HAFUBA = 1438; + public static final int DENADU = 1439; + public static final int LOFU = 1440; + public static final int KRUK = 1441; + public static final int DUKE = 1442; + public static final int OIPUIS = 1443; + public static final int UYORO = 1444; + public static final int OUHAI = 1445; + public static final int UODAI = 1446; + public static final int PADULAH = 1447; + public static final int AWOWOGEI = 1448; + public static final int UWOGO = 1449; + public static final int MURUWOI = 1450; + public static final int SLEEPING_MONKEY = 1451; + public static final int MONKEY_CHILD = 1452; + public static final int THE_MONKEYS_UNCLE = 1453; + public static final int THE_MONKEYS_AUNT = 1454; + public static final int MONKEY_GUARD = 1455; + public static final int MONKEY_ARCHER = 1456; + public static final int MONKEY_ARCHER_1457 = 1457; + public static final int MONKEY_ARCHER_1458 = 1458; + public static final int MONKEY_GUARD_1459 = 1459; + public static final int MONKEY_GUARD_1460 = 1460; + public static final int ELDER_GUARD = 1461; + public static final int ELDER_GUARD_1462 = 1462; + public static final int MONKEY_1463 = 1463; + public static final int MONKEY_1464 = 1464; + public static final int MONKEY_ZOMBIE = 1465; + public static final int MONKEY_ZOMBIE_1466 = 1466; + public static final int MONKEY_ZOMBIE_1467 = 1467; + public static final int BONZARA = 1468; + public static final int MONKEY_MINDER = 1469; + public static final int FOREMAN_1470 = 1470; + public static final int SKELETON_1471 = 1471; + public static final int JUNGLE_DEMON = 1472; + public static final int SPIDER_1473 = 1473; + public static final int SPIDER_1474 = 1474; + public static final int BIRD = 1475; + public static final int BIRD_1476 = 1476; + public static final int SCORPION_1477 = 1477; + public static final int JUNGLE_SPIDER_1478 = 1478; + public static final int SNAKE_1479 = 1479; + public static final int SMALL_NINJA_MONKEY = 1480; + public static final int MEDIUM_NINJA_MONKEY = 1481; + public static final int GORILLA = 1482; + public static final int BEARDED_GORILLA = 1483; + public static final int ANCIENT_MONKEY = 1484; + public static final int SMALL_ZOMBIE_MONKEY = 1485; + public static final int LARGE_ZOMBIE_MONKEY = 1486; + public static final int MONKEY_1487 = 1487; + public static final int MONKEY_1488 = 1488; + public static final int MONKEY_1489 = 1489; + public static final int MONKEY_1490 = 1490; + public static final int MONKEY_1491 = 1491; + public static final int MONKEY_1492 = 1492; + public static final int MONKEY_1493 = 1493; + public static final int MONKEY_1494 = 1494; + public static final int MONKEY_1495 = 1495; + public static final int MONKEY_1496 = 1496; + public static final int MONKEY_1497 = 1497; + public static final int MONKEY_1498 = 1498; + public static final int MONKEY_1499 = 1499; + public static final int MONKEY_1500 = 1500; + public static final int MONKEY_1501 = 1501; + public static final int MONKEY_1502 = 1502; + public static final int MONKEY_1503 = 1503; + public static final int MONKEY_1504 = 1504; + public static final int MONKEY_1505 = 1505; + public static final int MONKEY_1506 = 1506; + public static final int MONKEY_1507 = 1507; + public static final int MONKEY_1508 = 1508; + public static final int MONKEY_1509 = 1509; + public static final int MONKEY_1510 = 1510; + public static final int GNOME_1511 = 1511; + public static final int GNOME_1512 = 1512; + public static final int GNOME_1513 = 1513; + public static final int APE = 1514; + public static final int SKELETON_1515 = 1515; + public static final int DEMON = 1516; + public static final int GNOME_1517 = 1517; + public static final int GNOME_1518 = 1518; + public static final int GNOME_1519 = 1519; + public static final int GNOME_1520 = 1520; + public static final int BIRD_1521 = 1521; + public static final int BIRD_1522 = 1522; + public static final int KING_SCORPION_1523 = 1523; + public static final int JUNGLE_SPIDER_1524 = 1524; + public static final int WEIRD_SNAKE = 1525; + public static final int LANTHUS = 1526; + public static final int MINE_CART = 1527; + public static final int ZEALOT = 1528; + public static final int SHEEP_1529 = 1529; + public static final int RABBIT_1530 = 1530; + public static final int IMP_1531 = 1531; + public static final int BARRICADE = 1532; + public static final int BARRICADE_1533 = 1533; + public static final int BARRICADE_1534 = 1534; + public static final int BARRICADE_1535 = 1535; + public static final int POSSESSED_PICKAXE = 1536; + public static final int BRONZE_PICKAXE = 1537; + public static final int CORPSE = 1538; + public static final int SKELETAL_MINER = 1539; + public static final int TREUS_DAYTH = 1540; + public static final int GHOST_1541 = 1541; + public static final int LOADING_CRANE = 1542; + public static final int INNOCENT_LOOKING_KEY = 1543; + public static final int MINE_CART_1544 = 1544; + public static final int MINE_CART_1545 = 1545; + public static final int MINE_CART_1546 = 1546; + public static final int MINE_CART_1547 = 1547; + public static final int MINE_CART_1548 = 1548; + public static final int GHOST_1549 = 1549; + public static final int HAZE = 1550; + public static final int MISCHIEVOUS_GHOST = 1551; + public static final int SANTA = 1552; + public static final int UG = 1553; + public static final int AGA = 1554; + public static final int ARRG = 1555; + public static final int ARRG_1556 = 1556; + public static final int UG_1557 = 1557; + public static final int ICE_WOLF = 1558; + public static final int ICE_WOLF_1559 = 1559; + public static final int ICE_TROLL = 1560; + public static final int ICE_TROLL_1561 = 1561; + public static final int ICE_TROLL_1562 = 1562; + public static final int ICE_TROLL_1563 = 1563; + public static final int ICE_TROLL_1564 = 1564; + public static final int ICE_TROLL_1565 = 1565; + public static final int ICE_TROLL_1566 = 1566; + public static final int CYREG_PADDLEHORN = 1567; + public static final int CURPILE_FYOD = 1568; + public static final int VELIAF_HURTZ = 1569; + public static final int SANI_PILIU = 1570; + public static final int HAROLD_EVANS = 1571; + public static final int RADIGAD_PONFIT = 1572; + public static final int POLMAFI_FERDYGRIS = 1573; + public static final int IVAN_STROM = 1574; + public static final int SKELETON_HELLHOUND = 1575; + public static final int STRANGER = 1576; + public static final int VANSTROM_KLAUSE = 1577; + public static final int MIST_1578 = 1578; + public static final int VANSTROM_KLAUSE_1579 = 1579; + public static final int VANSTROM_KLAUSE_1580 = 1580; + public static final int VANSTROM_KLAUSE_1581 = 1581; + public static final int FIRE_GIANT_1582 = 1582; + public static final int FIRE_GIANT_1583 = 1583; + public static final int FIRE_GIANT_1584 = 1584; + public static final int FIRE_GIANT_1585 = 1585; + public static final int FIRE_GIANT_1586 = 1586; + public static final int MOSS_GIANT_1587 = 1587; + public static final int MOSS_GIANT_1588 = 1588; + public static final int BABY_RED_DRAGON = 1589; + public static final int BRONZE_DRAGON = 1590; + public static final int IRON_DRAGON = 1591; + public static final int STEEL_DRAGON = 1592; + public static final int WILD_DOG = 1593; + public static final int WILD_DOG_1594 = 1594; + public static final int SANIBOCH = 1595; + public static final int MAZCHNA = 1596; + public static final int VANNAKA = 1597; + public static final int CHAELDAR = 1598; + public static final int DURADEL = 1599; + public static final int CAVE_CRAWLER = 1600; + public static final int CAVE_CRAWLER_1601 = 1601; + public static final int CAVE_CRAWLER_1602 = 1602; + public static final int CAVE_CRAWLER_1603 = 1603; + public static final int ABERRANT_SPECTER = 1604; + public static final int ABERRANT_SPECTER_1605 = 1605; + public static final int ABERRANT_SPECTER_1606 = 1606; + public static final int ABERRANT_SPECTER_1607 = 1607; + public static final int KURASK = 1608; + public static final int KURASK_1609 = 1609; + public static final int GARGOYLE = 1610; + public static final int GARGOYLE_1611 = 1611; + public static final int BANSHEE = 1612; + public static final int NECHRYAEL = 1613; + public static final int DEATH_SPAWN = 1614; + public static final int ABYSSAL_DEMON = 1615; + public static final int BASILISK = 1616; + public static final int BASILISK_1617 = 1617; + public static final int BLOODVELD = 1618; + public static final int BLOODVELD_1619 = 1619; + public static final int COCKATRICE = 1620; + public static final int COCKATRICE_1621 = 1621; + public static final int ROCKSLUG = 1622; + public static final int ROCKSLUG_1623 = 1623; + public static final int DUST_DEVIL = 1624; + public static final int SMOKEDEVIL = 1625; + public static final int TUROTH = 1626; + public static final int TUROTH_1627 = 1627; + public static final int TUROTH_1628 = 1628; + public static final int TUROTH_1629 = 1629; + public static final int TUROTH_1630 = 1630; + public static final int TUROTH_1631 = 1631; + public static final int TUROTH_1632 = 1632; + public static final int PYREFIEND = 1633; + public static final int PYREFIEND_1634 = 1634; + public static final int PYREFIEND_1635 = 1635; + public static final int PYREFIEND_1636 = 1636; + public static final int JELLY = 1637; + public static final int JELLY_1638 = 1638; + public static final int JELLY_1639 = 1639; + public static final int JELLY_1640 = 1640; + public static final int JELLY_1641 = 1641; + public static final int JELLY_1642 = 1642; + public static final int INFERNAL_MAGE = 1643; + public static final int INFERNAL_MAGE_1644 = 1644; + public static final int INFERNAL_MAGE_1645 = 1645; + public static final int INFERNAL_MAGE_1646 = 1646; + public static final int INFERNAL_MAGE_1647 = 1647; + public static final int CRAWLING_HAND = 1648; + public static final int CRAWLING_HAND_1649 = 1649; + public static final int CRAWLING_HAND_1650 = 1650; + public static final int CRAWLING_HAND_1651 = 1651; + public static final int CRAWLING_HAND_1652 = 1652; + public static final int CRAWLING_HAND_1653 = 1653; + public static final int CRAWLING_HAND_1654 = 1654; + public static final int CRAWLING_HAND_1655 = 1655; + public static final int CRAWLING_HAND_1656 = 1656; + public static final int CRAWLING_HAND_1657 = 1657; + public static final int ROBE_STORE_OWNER = 1658; + public static final int SKULLBALL = 1659; + public static final int SKULLBALL_BOSS = 1660; + public static final int AGILITY_BOSS = 1661; + public static final int SKULLBALL_TRAINER = 1662; + public static final int AGILITY_TRAINER = 1663; + public static final int AGILITY_TRAINER_1664 = 1664; + public static final int WEREWOLF = 1665; + public static final int NULL_1666 = 1666; + public static final int NULL_1667 = 1667; + public static final int NULL_1668 = 1668; + public static final int NULL_1669 = 1669; + public static final int DR_FENKENSTRAIN = 1670; + public static final int NULL_1671 = 1671; + public static final int NULL_1672 = 1672; + public static final int FENKENSTRAINS_MONSTER = 1673; + public static final int LORD_ROLOGARTH = 1674; + public static final int GARDENER_GHOST = 1675; + public static final int EXPERIMENT = 1676; + public static final int EXPERIMENT_1677 = 1677; + public static final int EXPERIMENT_1678 = 1678; + public static final int ELUNED = 1679; + public static final int ISLWYN = 1680; + public static final int MOSS_GIANT_1681 = 1681; + public static final int GOLRIE_1682 = 1682; + public static final int VELORINA = 1683; + public static final int NECROVARUS = 1684; + public static final int GRAVINGAS = 1685; + public static final int GHOST_DISCIPLE = 1686; + public static final int NULL_1687 = 1687; + public static final int AKHARANU = 1688; + public static final int NULL_1689 = 1689; + public static final int NULL_1690 = 1690; + public static final int UNDEAD_COW = 1691; + public static final int UNDEAD_CHICKEN = 1692; + public static final int GIANT_LOBSTER = 1693; + public static final int ROBIN = 1694; + public static final int OLD_CRONE = 1695; + public static final int OLD_MAN = 1696; + public static final int GHOST_VILLAGER = 1697; + public static final int TORTURED_SOUL = 1698; + public static final int GHOST_SHOPKEEPER = 1699; + public static final int GHOST_INNKEEPER = 1700; + public static final int GHOST_FARMER = 1701; + public static final int GHOST_BANKER = 1702; + public static final int GHOST_SAILOR = 1703; + public static final int GHOST_CAPTAIN = 1704; + public static final int GHOST_CAPTAIN_1705 = 1705; + public static final int GHOST_GUARD = 1706; + public static final int GHOST_ = 1707; + public static final int GHOST__1708 = 1708; + public static final int JOHANHUS_ULSBRECHT = 1709; + public static final int HAM_GUARD = 1710; + public static final int HAM_GUARD_1711 = 1711; + public static final int HAM_GUARD_1712 = 1712; + public static final int HAM_DEACON = 1713; + public static final int HAM_MEMBER = 1714; + public static final int HAM_MEMBER_1715 = 1715; + public static final int HAM_MEMBER_1716 = 1716; + public static final int HAM_MEMBER_1717 = 1717; + public static final int JIMMY_THE_CHISEL = 1718; + public static final int TREE_1719 = 1719; + public static final int TREE_1720 = 1720; + public static final int TREE_1721 = 1721; + public static final int DEAD_TREE = 1722; + public static final int DEAD_TREE_1723 = 1723; + public static final int DEAD_TREE_1724 = 1724; + public static final int DEAD_TREE_1725 = 1725; + public static final int DEAD_TREE_1726 = 1726; + public static final int DEAD_TREE_1727 = 1727; + public static final int DEAD_TREE_1728 = 1728; + public static final int DEAD_TREE_1729 = 1729; + public static final int DEAD_TREE_1730 = 1730; + public static final int DEAD_TREE_1731 = 1731; + public static final int DEAD_TREE_1732 = 1732; + public static final int DRAMEN_TREE = 1733; + public static final int MAGIC_TREE = 1734; + public static final int MAPLE_TREE = 1735; + public static final int WILLOW = 1736; + public static final int WILLOW_1737 = 1737; + public static final int WILLOW_1738 = 1738; + public static final int OAK = 1739; + public static final int YEW = 1740; + public static final int EVERGREEN = 1741; + public static final int EVERGREEN_1742 = 1742; + public static final int EVERGREEN_1743 = 1743; + public static final int TREE_1744 = 1744; + public static final int DEAD_TREE_1745 = 1745; + public static final int ACHEY_TREE = 1746; + public static final int TREE_1747 = 1747; + public static final int TREE_1748 = 1748; + public static final int HOLLOW_TREE = 1749; + public static final int HOLLOW_TREE_1750 = 1750; + public static final int CROW = 1751; + public static final int CROW_1752 = 1752; + public static final int CROW_1753 = 1753; + public static final int CROW_1754 = 1754; + public static final int CROW_1755 = 1755; + public static final int CROW_1756 = 1756; + public static final int FARMER_1757 = 1757; + public static final int FARMER_1758 = 1758; + public static final int FARMER_1759 = 1759; + public static final int FARMER_1760 = 1760; + public static final int FARMER_1761 = 1761; + public static final int SHEEP_1762 = 1762; + public static final int SHEEP_1763 = 1763; + public static final int SHEEP_1764 = 1764; + public static final int SHEEP_1765 = 1765; + public static final int COW_CALF = 1766; + public static final int COW_1767 = 1767; + public static final int COW_CALF_1768 = 1768; + public static final int GOBLIN_1769 = 1769; + public static final int GOBLIN_1770 = 1770; + public static final int GOBLIN_1771 = 1771; + public static final int GOBLIN_1772 = 1772; + public static final int GOBLIN_1773 = 1773; + public static final int GOBLIN_1774 = 1774; + public static final int GOBLIN_1775 = 1775; + public static final int GOBLIN_1776 = 1776; + public static final int ILFEEN = 1777; + public static final int WILLIAM = 1778; + public static final int IAN = 1779; + public static final int LARRY = 1780; + public static final int DARREN = 1781; + public static final int EDWARD = 1782; + public static final int RICHARD = 1783; + public static final int NEIL = 1784; + public static final int EDMOND_1785 = 1785; + public static final int SIMON = 1786; + public static final int SAM_1787 = 1787; + public static final int LUMDO_1788 = 1788; + public static final int BUNKWICKET_1789 = 1789; + public static final int WAYMOTTIN_1790 = 1790; + public static final int JUNGLE_TREE = 1791; + public static final int JUNGLE_TREE_1792 = 1792; + public static final int TASSIE_SLIPCAST = 1793; + public static final int HAMMERSPIKE_STOUTBEARD = 1794; + public static final int DWARF_GANG_MEMBER = 1795; + public static final int DWARF_GANG_MEMBER_1796 = 1796; + public static final int DWARF_GANG_MEMBER_1797 = 1797; + public static final int PHANTUWTI_FANSTUWI_FARSIGHT = 1798; + public static final int TINDEL_MARCHANT = 1799; + public static final int GNORMADIUM_AVLAFRIM = 1800; + public static final int PETRA_FIYED = 1801; + public static final int SLAGILITH = 1802; + public static final int ROCK_PILE = 1803; + public static final int SLAGILITH_1804 = 1804; + public static final int GUARD_1805 = 1805; + public static final int GUARD_1806 = 1806; + public static final int HAMAL_THE_CHIEFTAIN = 1807; + public static final int RAGNAR_1808 = 1808; + public static final int SVIDI = 1809; + public static final int JOKUL = 1810; + public static final int NULL_1811 = 1811; + public static final int THE_KENDAL = 1812; + public static final int THE_KENDAL_1813 = 1813; + public static final int CAMP_DWELLER = 1814; + public static final int CAMP_DWELLER_1815 = 1815; + public static final int CAMP_DWELLER_1816 = 1816; + public static final int CAMP_DWELLER_1817 = 1817; + public static final int CAMP_DWELLER_1818 = 1818; + public static final int MOUNTAIN_GOAT_1819 = 1819; + public static final int MOUNTAIN_GOAT_1820 = 1820; + public static final int BALD_HEADED_EAGLE = 1821; + public static final int CAVE_GOBLIN = 1822; + public static final int CAVE_GOBLIN_1823 = 1823; + public static final int CAVE_GOBLIN_1824 = 1824; + public static final int CAVE_GOBLIN_1825 = 1825; + public static final int HOLE_IN_THE_WALL = 1826; + public static final int WALL_BEAST = 1827; + public static final int GIANT_FROG = 1828; + public static final int BIG_FROG = 1829; + public static final int FROG = 1830; + public static final int CAVE_SLIME = 1831; + public static final int CAVE_BUG = 1832; + public static final int CAVE_BUG_LARVA = 1833; + public static final int CANDLE_SELLER = 1834; + public static final int EASTER_BUNNY = 1835; + public static final int NULL_1836 = 1836; + public static final int DONDAKAN_THE_DWARF = 1837; + public static final int DONDAKAN_THE_DWARF_1838 = 1838; + public static final int DONDAKAN_THE_DWARF_1839 = 1839; + public static final int DWARVEN_ENGINEER = 1840; + public static final int ROLAD = 1841; + public static final int KHORVAK_A_DWARVEN_ENGINEER = 1842; + public static final int DWARVEN_FERRYMAN = 1843; + public static final int DWARVEN_FERRYMAN_1844 = 1844; + public static final int NULL_1845 = 1845; + public static final int DWARVEN_BOATMAN = 1846; + public static final int MIODVETNIR = 1847; + public static final int DERNU = 1848; + public static final int DERNI = 1849; + public static final int ARZINIAN_AVATAR_OF_STRENGTH = 1850; + public static final int ARZINIAN_AVATAR_OF_STRENGTH_1851 = 1851; + public static final int ARZINIAN_AVATAR_OF_STRENGTH_1852 = 1852; + public static final int ARZINIAN_AVATAR_OF_RANGING = 1853; + public static final int ARZINIAN_AVATAR_OF_RANGING_1854 = 1854; + public static final int ARZINIAN_AVATAR_OF_RANGING_1855 = 1855; + public static final int ARZINIAN_AVATAR_OF_MAGIC = 1856; + public static final int ARZINIAN_AVATAR_OF_MAGIC_1857 = 1857; + public static final int ARZINIAN_AVATAR_OF_MAGIC_1858 = 1858; + public static final int ARZINIAN_BEING_OF_BORDANZAN = 1859; + public static final int BRIAN_1860 = 1860; + public static final int NULL_1861 = 1861; + public static final int ALI_MORRISANE = 1862; + public static final int DRUNKEN_ALI = 1863; + public static final int ALI_THE_BARMAN = 1864; + public static final int ALI_THE_KEBAB_SELLER = 1865; + public static final int MARKET_SELLER = 1866; + public static final int ALI_THE_CAMEL_MAN = 1867; + public static final int STREET_URCHIN = 1868; + public static final int NULL_1869 = 1869; + public static final int ALI_THE_MAYOR = 1870; + public static final int ALI_THE_HAG = 1871; + public static final int ALI_THE_SNAKE_CHARMER = 1872; + public static final int ALI_THE_CAMEL = 1873; + public static final int DESERT_SNAKE = 1874; + public static final int SNAKE_1875 = 1875; + public static final int NULL_1876 = 1876; + public static final int NULL_1877 = 1877; + public static final int BANDIT_LEADER = 1878; + public static final int NULL_1879 = 1879; + public static final int BANDIT_1880 = 1880; + public static final int BANDIT_1881 = 1881; + public static final int NULL_1882 = 1882; + public static final int BANDIT_1883 = 1883; + public static final int BANDIT_1884 = 1884; + public static final int BANDIT_CHAMPION = 1885; + public static final int COWARDLY_BANDIT = 1886; + public static final int NULL_1887 = 1887; + public static final int VILLAGER = 1888; + public static final int VILLAGER_1889 = 1889; + public static final int VILLAGER_1890 = 1890; + public static final int NULL_1891 = 1891; + public static final int VILLAGER_1892 = 1892; + public static final int VILLAGER_1893 = 1893; + public static final int VILLAGER_1894 = 1894; + public static final int NULL_1895 = 1895; + public static final int VILLAGER_1896 = 1896; + public static final int VILLAGER_1897 = 1897; + public static final int VILLAGER_1898 = 1898; + public static final int NULL_1899 = 1899; + public static final int NULL_1900 = 1900; + public static final int MENAPHITE_LEADER = 1901; + public static final int ALI_THE_OPERATOR = 1902; + public static final int NULL_1903 = 1903; + public static final int MENAPHITE_THUG = 1904; + public static final int MENAPHITE_THUG_1905 = 1905; + public static final int TOUGH_GUY = 1906; + public static final int NULL_1907 = 1907; + public static final int BROKEN_CLAY_GOLEM = 1908; + public static final int DAMAGED_CLAY_GOLEM = 1909; + public static final int CLAY_GOLEM = 1910; + public static final int DESERT_PHOENIX = 1911; + public static final int ELISSA = 1912; + public static final int KAMIL = 1913; + public static final int DESSOUS = 1914; + public static final int DESSOUS_1915 = 1915; + public static final int RUANTUN = 1916; + public static final int BANDIT_SHOPKEEPER = 1917; + public static final int ARCHAEOLOGIST = 1918; + public static final int STRANGER_1919 = 1919; + public static final int MALAK = 1920; + public static final int BARTENDER_1921 = 1921; + public static final int NULL_1922 = 1922; + public static final int EBLIS = 1923; + public static final int NULL_1924 = 1924; + public static final int EBLIS_1925 = 1925; + public static final int BANDIT_1926 = 1926; + public static final int BANDIT_1927 = 1927; + public static final int BANDIT_1928 = 1928; + public static final int BANDIT_1929 = 1929; + public static final int BANDIT_1930 = 1930; + public static final int BANDIT_1931 = 1931; + public static final int NULL_1932 = 1932; + public static final int TROLL_CHILD = 1933; + public static final int TROLL_CHILD_1934 = 1934; + public static final int ICE_TROLL_1935 = 1935; + public static final int ICE_TROLL_1936 = 1936; + public static final int ICE_TROLL_1937 = 1937; + public static final int ICE_TROLL_1938 = 1938; + public static final int ICE_TROLL_1939 = 1939; + public static final int ICE_TROLL_1940 = 1940; + public static final int ICE_TROLL_1941 = 1941; + public static final int ICE_TROLL_1942 = 1942; + public static final int NULL_1943 = 1943; + public static final int ICE_BLOCK = 1944; + public static final int NULL_1945 = 1945; + public static final int ICE_BLOCK_1946 = 1946; + public static final int NULL_1947 = 1947; + public static final int TROLL_FATHER = 1948; + public static final int NULL_1949 = 1949; + public static final int TROLL_MOTHER = 1950; + public static final int ICE_WOLF_1951 = 1951; + public static final int ICE_WOLF_1952 = 1952; + public static final int ICE_WOLF_1953 = 1953; + public static final int ICE_WOLF_1954 = 1954; + public static final int ICE_WOLF_1955 = 1955; + public static final int ICE_WOLF_1956 = 1956; + public static final int NULL_1957 = 1957; + public static final int MUMMY = 1958; + public static final int MUMMY_1959 = 1959; + public static final int MUMMY_1960 = 1960; + public static final int MUMMY_1961 = 1961; + public static final int MUMMY_1962 = 1962; + public static final int MUMMY_1963 = 1963; + public static final int MUMMY_1964 = 1964; + public static final int MUMMY_1965 = 1965; + public static final int MUMMY_1966 = 1966; + public static final int MUMMY_1967 = 1967; + public static final int MUMMY_1968 = 1968; + public static final int SCARABS = 1969; + public static final int NULL_1970 = 1970; + public static final int AZZANADRA = 1971; + public static final int RASOLO = 1972; + public static final int GIANT_SKELETON = 1973; + public static final int DAMIS = 1974; + public static final int DAMIS_1975 = 1975; + public static final int SHADOW_HOUND = 1976; + public static final int FAREED = 1977; + public static final int SLAVE_1978 = 1978; + public static final int SLAVE_1979 = 1979; + public static final int EMBALMER = 1980; + public static final int CARPENTER = 1981; + public static final int LINEN_WORKER = 1982; + public static final int SIAMUN = 1983; + public static final int NULL_1984 = 1984; + public static final int NULL_1985 = 1985; + public static final int HIGH_PRIEST_1986 = 1986; + public static final int NULL_1987 = 1987; + public static final int PRIEST_1988 = 1988; + public static final int PRIEST_1989 = 1989; + public static final int SPHINX = 1990; + public static final int POSSESSED_PRIEST = 1991; + public static final int NEITE = 1992; + public static final int CROCODILE = 1993; + public static final int JACKAL = 1994; + public static final int LOCUST = 1995; + public static final int VULTURE = 1996; + public static final int PLAGUE_FROG = 1997; + public static final int PLAGUED_COW = 1998; + public static final int PLAGUED_COW_1999 = 1999; + public static final int PLAGUED_COW_2000 = 2000; + public static final int SCARABS_2001 = 2001; + public static final int NULL_2002 = 2002; + public static final int NULL_2003 = 2003; + public static final int NULL_2004 = 2004; + public static final int WANDERER = 2005; + public static final int WANDERER_2006 = 2006; + public static final int HET = 2007; + public static final int APMEKEN = 2008; + public static final int SCABARAS = 2009; + public static final int CRONDIS = 2010; + public static final int NULL_2011 = 2011; + public static final int ICTHLARIN = 2012; + public static final int NULL_2013 = 2013; + public static final int KLENTER = 2014; + public static final int MUMMY_2015 = 2015; + public static final int MUMMY_2016 = 2016; + public static final int MUMMY_2017 = 2017; + public static final int MUMMY_2018 = 2018; + public static final int MUMMY_2019 = 2019; + public static final int NULL_2020 = 2020; + public static final int LIGHT_CREATURE = 2021; + public static final int LIGHT_CREATURE_2022 = 2022; + public static final int JUNA = 2023; + public static final int STRANGE_OLD_MAN = 2024; + public static final int AHRIM_THE_BLIGHTED = 2025; + public static final int DHAROK_THE_WRETCHED = 2026; + public static final int GUTHAN_THE_INFESTED = 2027; + public static final int KARIL_THE_TAINTED = 2028; + public static final int TORAG_THE_CORRUPTED = 2029; + public static final int VERAC_THE_DEFILED = 2030; + public static final int BLOODWORM = 2031; + public static final int CRYPT_RAT = 2032; + public static final int GIANT_CRYPT_RAT = 2033; + public static final int CRYPT_SPIDER = 2034; + public static final int GIANT_CRYPT_SPIDER = 2035; + public static final int SKELETON_2036 = 2036; + public static final int SKELETON_2037 = 2037; + public static final int GRISH = 2038; + public static final int UGLUG_NAR = 2039; + public static final int PILG = 2040; + public static final int GRUG = 2041; + public static final int OGRE_GUARD_2042 = 2042; + public static final int OGRE_GUARD_2043 = 2043; + public static final int ZOGRE = 2044; + public static final int ZOGRE_2045 = 2045; + public static final int ZOGRE_2046 = 2046; + public static final int ZOGRE_2047 = 2047; + public static final int ZOGRE_2048 = 2048; + public static final int ZOGRE_2049 = 2049; + public static final int SKOGRE = 2050; + public static final int ZOGRE_2051 = 2051; + public static final int ZOGRE_2052 = 2052; + public static final int ZOGRE_2053 = 2053; + public static final int ZOGRE_2054 = 2054; + public static final int ZOGRE_2055 = 2055; + public static final int SKOGRE_2056 = 2056; + public static final int SKOGRE_2057 = 2057; + public static final int ZOMBIE_2058 = 2058; + public static final int ZAVISTIC_RARVE = 2059; + public static final int SLASH_BASH = 2060; + public static final int SITHIK_INTS = 2061; + public static final int SITHIK_INTS_2062 = 2062; + public static final int GARGH = 2063; + public static final int SCARG = 2064; + public static final int GRUH = 2065; + public static final int IRWIN_FEASELBAUM = 2066; + public static final int FISHING_SPOT_2067 = 2067; + public static final int FISHING_SPOT_2068 = 2068; + public static final int CAVE_GOBLIN_MINER = 2069; + public static final int CAVE_GOBLIN_MINER_2070 = 2070; + public static final int CAVE_GOBLIN_MINER_2071 = 2071; + public static final int CAVE_GOBLIN_MINER_2072 = 2072; + public static final int CAVE_GOBLIN_GUARD = 2073; + public static final int CAVE_GOBLIN_GUARD_2074 = 2074; + public static final int CAVE_GOBLIN_MINER_2075 = 2075; + public static final int CAVE_GOBLIN_MINER_2076 = 2076; + public static final int CAVE_GOBLIN_MINER_2077 = 2077; + public static final int CAVE_GOBLIN_MINER_2078 = 2078; + public static final int NULL_2079 = 2079; + public static final int NULL_2080 = 2080; + public static final int NULL_2081 = 2081; + public static final int SIGMUND = 2082; + public static final int SIGMUND_2083 = 2083; + public static final int MISTAG = 2084; + public static final int NULL_2085 = 2085; + public static final int KAZGAR = 2086; + public static final int URTAG = 2087; + public static final int DUKE_HORACIO_2088 = 2088; + public static final int MISTAG_2089 = 2089; + public static final int SIGMUND_2090 = 2090; + public static final int SECRETARY = 2091; + public static final int PURPLE_PEWTER_SECRETARY = 2092; + public static final int YELLOW_FORTUNE_SECRETARY = 2093; + public static final int BLUE_OPAL_SECRETARY = 2094; + public static final int GREEN_GEMSTONE_SECRETARY = 2095; + public static final int WHITE_CHISEL_SECRETARY = 2096; + public static final int SILVER_COG_SECRETARY = 2097; + public static final int BROWN_ENGINE_SECRETARY = 2098; + public static final int RED_AXE_SECRETARY = 2099; + public static final int PURPLE_PEWTER_DIRECTOR = 2100; + public static final int BLUE_OPAL_DIRECTOR = 2101; + public static final int YELLOW_FORTUNE_DIRECTOR = 2102; + public static final int GREEN_GEMSTONE_DIRECTOR = 2103; + public static final int WHITE_CHISEL_DIRECTOR = 2104; + public static final int SILVER_COG_DIRECTOR = 2105; + public static final int BROWN_ENGINE_DIRECTOR = 2106; + public static final int RED_AXE_DIRECTOR = 2107; + public static final int RED_AXE_CAT = 2108; + public static final int TRADER = 2109; + public static final int TRADER_2110 = 2110; + public static final int TRADER_2111 = 2111; + public static final int TRADER_2112 = 2112; + public static final int TRADER_2113 = 2113; + public static final int TRADER_2114 = 2114; + public static final int TRADER_2115 = 2115; + public static final int TRADER_2116 = 2116; + public static final int TRADER_2117 = 2117; + public static final int TRADER_2118 = 2118; + public static final int TRADER_2119 = 2119; + public static final int TRADER_2120 = 2120; + public static final int TRADER_2121 = 2121; + public static final int TRADER_2122 = 2122; + public static final int NULL_2123 = 2123; + public static final int TRADER_2124 = 2124; + public static final int NULL_2125 = 2125; + public static final int TRADER_2126 = 2126; + public static final int TRADE_REFEREE = 2127; + public static final int SUPREME_COMMANDER = 2128; + public static final int COMMANDER_VELDABAN = 2129; + public static final int BLACK_GUARD = 2130; + public static final int BLACK_GUARD_2131 = 2131; + public static final int BLACK_GUARD_2132 = 2132; + public static final int BLACK_GUARD_2133 = 2133; + public static final int BLACK_GUARD_BERSERKER = 2134; + public static final int BLACK_GUARD_BERSERKER_2135 = 2135; + public static final int BLACK_GUARD_BERSERKER_2136 = 2136; + public static final int GNOME_EMISSARY = 2137; + public static final int GNOME_TRAVELLER = 2138; + public static final int GNOME_TRAVELLER_2139 = 2139; + public static final int DROMUNDS_CAT = 2140; + public static final int BLASIDAR_THE_SCULPTOR = 2141; + public static final int NULL_2142 = 2142; + public static final int RIKI_THE_SCULPTORS_MODEL = 2143; + public static final int RIKI_THE_SCULPTORS_MODEL_2144 = 2144; + public static final int RIKI_THE_SCULPTORS_MODEL_2145 = 2145; + public static final int RIKI_THE_SCULPTORS_MODEL_2146 = 2146; + public static final int RIKI_THE_SCULPTORS_MODEL_2147 = 2147; + public static final int RIKI_THE_SCULPTORS_MODEL_2148 = 2148; + public static final int RIKI_THE_SCULPTORS_MODEL_2149 = 2149; + public static final int RIKI_THE_SCULPTORS_MODEL_2150 = 2150; + public static final int VIGR = 2151; + public static final int SANTIRI = 2152; + public static final int SARO = 2153; + public static final int GUNSLIK = 2154; + public static final int WEMUND = 2155; + public static final int RANDIVOR = 2156; + public static final int HERVI = 2157; + public static final int NOLAR = 2158; + public static final int GULLDAMAR = 2159; + public static final int TATI = 2160; + public static final int AGMUNDI = 2161; + public static final int VERMUNDI = 2162; + public static final int BANKER_2163 = 2163; + public static final int BANKER_2164 = 2164; + public static final int LIBRARIAN = 2165; + public static final int ASSISTANT = 2166; + public static final int CUSTOMER = 2167; + public static final int CUSTOMER_2168 = 2168; + public static final int DROMUND = 2169; + public static final int RIND_THE_GARDENER = 2170; + public static final int FACTORY_MANAGER = 2171; + public static final int FACTORY_WORKER = 2172; + public static final int FACTORY_WORKER_2173 = 2173; + public static final int FACTORY_WORKER_2174 = 2174; + public static final int FACTORY_WORKER_2175 = 2175; + public static final int INN_KEEPER = 2176; + public static final int INN_KEEPER_2177 = 2177; + public static final int BARMAID = 2178; + public static final int BARMAN_2179 = 2179; + public static final int CART_CONDUCTOR = 2180; + public static final int CART_CONDUCTOR_2181 = 2181; + public static final int CART_CONDUCTOR_2182 = 2182; + public static final int CART_CONDUCTOR_2183 = 2183; + public static final int CART_CONDUCTOR_2184 = 2184; + public static final int CART_CONDUCTOR_2185 = 2185; + public static final int CART_CONDUCTOR_2186 = 2186; + public static final int ROWDY_DWARF = 2187; + public static final int HEGIR = 2188; + public static final int HAERA = 2189; + public static final int RUNVASTR = 2190; + public static final int SUNE = 2191; + public static final int BENTAMIR = 2192; + public static final int ULIFED = 2193; + public static final int REINALD = 2194; + public static final int KARL = 2195; + public static final int GAUSS = 2196; + public static final int MYNDILL = 2197; + public static final int KJUT = 2198; + public static final int TOMBAR = 2199; + public static final int ODMAR = 2200; + public static final int AUDMANN = 2201; + public static final int NULL_2202 = 2202; + public static final int DRUNKEN_DWARF_2203 = 2203; + public static final int DRUNKEN_DWARF_2204 = 2204; + public static final int DWARVEN_BOATMAN_2205 = 2205; + public static final int DWARVEN_BOATMAN_2206 = 2206; + public static final int DWARVEN_MINER = 2207; + public static final int DWARVEN_MINER_2208 = 2208; + public static final int DWARVEN_MINER_2209 = 2209; + public static final int DWARVEN_MINER_2210 = 2210; + public static final int DWARVEN_MINER_2211 = 2211; + public static final int DWARVEN_MINER_2212 = 2212; + public static final int DWARVEN_MINER_2213 = 2213; + public static final int DWARVEN_MINER_2214 = 2214; + public static final int DWARVEN_MINER_2215 = 2215; + public static final int DWARVEN_MINER_2216 = 2216; + public static final int DWARVEN_MINER_2217 = 2217; + public static final int DWARVEN_MINER_2218 = 2218; + public static final int PURPLE_PEWTER_DIRECTOR_2219 = 2219; + public static final int PURPLE_PEWTER_DIRECTOR_2220 = 2220; + public static final int BLUE_OPAL_DIRECTOR_2221 = 2221; + public static final int YELLOW_FORTUNE_DIRECTOR_2222 = 2222; + public static final int GREEN_GEMSTONE_DIRECTOR_2223 = 2223; + public static final int WHITE_CHISEL_DIRECTOR_2224 = 2224; + public static final int SILVER_COG_DIRECTOR_2225 = 2225; + public static final int BROWN_ENGINE_DIRECTOR_2226 = 2226; + public static final int RED_AXE_DIRECTOR_2227 = 2227; + public static final int COMMANDER_VELDABAN_2228 = 2228; + public static final int RED_AXE_CAT_2229 = 2229; + public static final int RED_AXE_CAT_2230 = 2230; + public static final int NULL_2231 = 2231; + public static final int BLACK_GUARD_BERSERKER_2232 = 2232; + public static final int OLIVIA = 2233; + public static final int MASTER_FARMER = 2234; + public static final int MASTER_FARMER_2235 = 2235; + public static final int MARKET_GUARD_2236 = 2236; + public static final int GEE = 2237; + public static final int DONIE = 2238; + public static final int PIG = 2239; + public static final int PIG_2240 = 2240; + public static final int PIGLET = 2241; + public static final int PIGLET_2242 = 2242; + public static final int PIGLET_2243 = 2243; + public static final int LUMBRIDGE_GUIDE = 2244; + public static final int KHAZARD_TROOPER_2245 = 2245; + public static final int KHAZARD_TROOPER_2246 = 2246; + public static final int GNOME_TROOP_2247 = 2247; + public static final int GNOME_TROOP_2248 = 2248; + public static final int GNOME_2249 = 2249; + public static final int GNOME_2250 = 2250; + public static final int GNOME_2251 = 2251; + public static final int MOUNTED_TERRORBIRD_GNOME_2252 = 2252; + public static final int WISE_OLD_MAN = 2253; + public static final int BED = 2254; + public static final int THING_UNDER_THE_BED = 2255; + public static final int PALADIN_2256 = 2256; + public static final int NULL_2257 = 2257; + public static final int MAGE_OF_ZAMORAK = 2258; + public static final int MAGE_OF_ZAMORAK_2259 = 2259; + public static final int NULL_2260 = 2260; + public static final int MAGE_OF_ZAMORAK_2261 = 2261; + public static final int DARK_MAGE_2262 = 2262; + public static final int ABYSSAL_LEECH = 2263; + public static final int ABYSSAL_GUARDIAN = 2264; + public static final int ABYSSAL_WALKER = 2265; + public static final int BRIAN_ORICHARD = 2266; + public static final int ROGUE_GUARD = 2267; + public static final int ROGUE_GUARD_2268 = 2268; + public static final int ROGUE_GUARD_2269 = 2269; + public static final int MARTIN_THWAIT = 2270; + public static final int EMERALD_BENEDICT = 2271; + public static final int SPIN_BLADES = 2272; + public static final int SPIN_BLADES_2273 = 2273; + public static final int GOBLIN_2274 = 2274; + public static final int GOBLIN_2275 = 2275; + public static final int GOBLIN_2276 = 2276; + public static final int GOBLIN_2277 = 2277; + public static final int GOBLIN_2278 = 2278; + public static final int GOBLIN_2279 = 2279; + public static final int GOBLIN_2280 = 2280; + public static final int GOBLIN_2281 = 2281; + public static final int SIR_SPISHYUS = 2282; + public static final int LADY_TABLE = 2283; + public static final int SIR_KUAM_FERENTSE = 2284; + public static final int SIR_LEYE = 2285; + public static final int SIR_TINLEY = 2286; + public static final int SIR_REN_ITCHOOD = 2287; + public static final int MISS_CHEEVERS = 2288; + public static final int MS_HYNN_TERPRETT = 2289; + public static final int SIR_TIFFY_CASHIEN = 2290; + public static final int RUG_MERCHANT = 2291; + public static final int RUG_MERCHANT_2292 = 2292; + public static final int RUG_MERCHANT_2293 = 2293; + public static final int RUG_MERCHANT_2294 = 2294; + public static final int NULL_2295 = 2295; + public static final int RUG_MERCHANT_2296 = 2296; + public static final int NULL_2297 = 2297; + public static final int RUG_MERCHANT_2298 = 2298; + public static final int NULL_2299 = 2299; + public static final int RUG_STATION_ATTENDANT = 2300; + public static final int MONKEY_2301 = 2301; + public static final int NULL_2302 = 2302; + public static final int NULL_2303 = 2303; + public static final int SARAH = 2304; + public static final int VANESSA = 2305; + public static final int RICHARD_2306 = 2306; + public static final int ALICE = 2307; + public static final int CAPT_ARNAV = 2308; + public static final int NULL_2309 = 2309; + public static final int COW_CALF_2310 = 2310; + public static final int SHEEPDOG = 2311; + public static final int ROOSTER_2312 = 2312; + public static final int CHICKEN_2313 = 2313; + public static final int CHICKEN_2314 = 2314; + public static final int CHICKEN_2315 = 2315; + public static final int PIG_2316 = 2316; + public static final int PIG_2317 = 2317; + public static final int PIGLET_2318 = 2318; + public static final int PIGLET_2319 = 2319; + public static final int PIGLET_2320 = 2320; + public static final int BLANDEBIR = 2321; + public static final int METARIALUS = 2322; + public static final int ELSTAN = 2323; + public static final int DANTAERA = 2324; + public static final int KRAGEN = 2325; + public static final int LYRA = 2326; + public static final int FRANCIS = 2327; + public static final int GARDENER_2328 = 2328; + public static final int IAGO = 2329; + public static final int GARTH = 2330; + public static final int ELLENA = 2331; + public static final int SELENA = 2332; + public static final int VASQUEN = 2333; + public static final int RHONEN = 2334; + public static final int DREVEN = 2335; + public static final int TARIA = 2336; + public static final int RHAZIEN = 2337; + public static final int TORRELL = 2338; + public static final int ALAIN = 2339; + public static final int HESKEL = 2340; + public static final int TREZNOR = 2341; + public static final int FAYETH = 2342; + public static final int BOLONGO = 2343; + public static final int GILETH = 2344; + public static final int SICKLOOKING_SHEEP_1 = 2345; + public static final int SICKLOOKING_SHEEP_2 = 2346; + public static final int SICKLOOKING_SHEEP_3 = 2347; + public static final int SICKLOOKING_SHEEP_4 = 2348; + public static final int MOURNER_2349 = 2349; + public static final int MOURNER_2350 = 2350; + public static final int MOURNER_2351 = 2351; + public static final int EUDAV = 2352; + public static final int ORONWEN = 2353; + public static final int BANKER_2354 = 2354; + public static final int BANKER_2355 = 2355; + public static final int DALLDAV = 2356; + public static final int GETHIN = 2357; + public static final int ARIANWYN_2358 = 2358; + public static final int ELF_WARRIOR_2359 = 2359; + public static final int ELF_WARRIOR_2360 = 2360; + public static final int ELF_WARRIOR_2361 = 2361; + public static final int ELF_WARRIOR_2362 = 2362; + public static final int GOREU = 2363; + public static final int YSGAWYN = 2364; + public static final int ARVEL = 2365; + public static final int MAWRTH = 2366; + public static final int KELYN = 2367; + public static final int EOIN = 2368; + public static final int IONA = 2369; + public static final int NULL_2370 = 2370; + public static final int GNOME_2371 = 2371; + public static final int HEAD_MOURNER_2372 = 2372; + public static final int MOURNER_2373 = 2373; + public static final int MOURNER_2374 = 2374; + public static final int NULL_2375 = 2375; + public static final int ELUNED_2376 = 2376; + public static final int SICKLOOKING_SHEEP_1_2377 = 2377; + public static final int SICKLOOKING_SHEEP_2_2378 = 2378; + public static final int SICKLOOKING_SHEEP_3_2379 = 2379; + public static final int SICKLOOKING_SHEEP_4_2380 = 2380; + public static final int NULL_2381 = 2381; + public static final int NULL_2382 = 2382; + public static final int NULL_2383 = 2383; + public static final int NULL_2384 = 2384; + public static final int NULL_2385 = 2385; + public static final int NULL_2386 = 2386; + public static final int NULL_2387 = 2387; + public static final int NULL_2388 = 2388; + public static final int NULL_2389 = 2389; + public static final int NULL_2390 = 2390; + public static final int NULL_2391 = 2391; + public static final int NULL_2392 = 2392; + public static final int NULL_2393 = 2393; + public static final int NULL_2394 = 2394; + public static final int NULL_2395 = 2395; + public static final int NULL_2396 = 2396; + public static final int MYSTERIOUS_GHOST = 2397; + public static final int MYSTERIOUS_GHOST_2398 = 2398; + public static final int MYSTERIOUS_GHOST_2399 = 2399; + public static final int MYSTERIOUS_GHOST_2400 = 2400; + public static final int MYSTERIOUS_GHOST_2401 = 2401; + public static final int MYSTERIOUS_GHOST_2402 = 2402; + public static final int NULL_2403 = 2403; + public static final int NULL_2404 = 2404; + public static final int NULL_2405 = 2405; + public static final int NULL_2406 = 2406; + public static final int NULL_2407 = 2407; + public static final int NULL_2408 = 2408; + public static final int CART_CONDUCTOR_2409 = 2409; + public static final int RED_AXE_DIRECTOR_2410 = 2410; + public static final int RED_AXE_DIRECTOR_2411 = 2411; + public static final int RED_AXE_HENCHMAN = 2412; + public static final int RED_AXE_HENCHMAN_2413 = 2413; + public static final int RED_AXE_HENCHMAN_2414 = 2414; + public static final int COLONEL_GRIMSSON = 2415; + public static final int COLONEL_GRIMSSON_2416 = 2416; + public static final int OGRE_SHAMAN_2417 = 2417; + public static final int OGRE_SHAMAN_2418 = 2418; + public static final int GRUNSH = 2419; + public static final int GNOME_EMISSARY_2420 = 2420; + public static final int GNOME_COMPANION = 2421; + public static final int GNOME_COMPANION_2422 = 2422; + public static final int CHAOS_DWARF_2423 = 2423; + public static final int GUNSLIK_2424 = 2424; + public static final int NOLAR_2425 = 2425; + public static final int FACTORY_WORKER_2426 = 2426; + public static final int CART_CONDUCTOR_2427 = 2427; + public static final int GAUSS_2428 = 2428; + public static final int DRUNKEN_DWARF_2429 = 2429; + public static final int ROWDY_DWARF_2430 = 2430; + public static final int ULIFED_2431 = 2431; + public static final int RED_AXE_HENCHMAN_2432 = 2432; + public static final int RED_AXE_HENCHMAN_2433 = 2433; + public static final int OGRE_SHAMAN_2434 = 2434; + public static final int NULL_2435 = 2435; + public static final int JARVALD = 2436; + public static final int JARVALD_2437 = 2437; + public static final int JARVALD_2438 = 2438; + public static final int ASKELADDEN_2439 = 2439; + public static final int DOORSUPPORT = 2440; + public static final int DOOR = 2441; + public static final int DOOR_2442 = 2442; + public static final int DOORSUPPORT_2443 = 2443; + public static final int DOOR_2444 = 2444; + public static final int DOOR_2445 = 2445; + public static final int DOORSUPPORT_2446 = 2446; + public static final int DOOR_2447 = 2447; + public static final int DOOR_2448 = 2448; + public static final int EGG = 2449; + public static final int EGG_2450 = 2450; + public static final int EGG_2451 = 2451; + public static final int GIANT_ROCK_CRAB = 2452; + public static final int BOULDER_2453 = 2453; + public static final int DAGANNOTH_SPAWN = 2454; + public static final int DAGANNOTH_2455 = 2455; + public static final int DAGANNOTH_2456 = 2456; + public static final int WALLASALKI = 2457; + public static final int FREAKY_FORESTER = 2458; + public static final int PHEASANT = 2459; + public static final int PHEASANT_2460 = 2460; + public static final int PHEASANT_2461 = 2461; + public static final int PHEASANT_2462 = 2462; + public static final int EVIL_CHICKEN = 2463; + public static final int EVIL_CHICKEN_2464 = 2464; + public static final int EVIL_CHICKEN_2465 = 2465; + public static final int EVIL_CHICKEN_2466 = 2466; + public static final int EVIL_CHICKEN_2467 = 2467; + public static final int EVIL_CHICKEN_2468 = 2468; + public static final int FROG_2469 = 2469; + public static final int FROG_2470 = 2470; + public static final int FROG_2471 = 2471; + public static final int FROG_2472 = 2472; + public static final int FROG_2473 = 2473; + public static final int FROG_PRINCE = 2474; + public static final int FROG_PRINCESS = 2475; + public static final int RICK_TURPENTINE = 2476; + public static final int QUIZ_MASTER = 2477; + public static final int EVIL_BOB = 2478; + public static final int EVIL_BOB_2479 = 2479; + public static final int SERVANT_2480 = 2480; + public static final int SERVANT_2481 = 2481; + public static final int GIANT_BAT_2482 = 2482; + public static final int NULL_2483 = 2483; + public static final int NULL_2484 = 2484; + public static final int NULL_2485 = 2485; + public static final int NULL_2486 = 2486; + public static final int NULL_2487 = 2487; + public static final int NULL_2488 = 2488; + public static final int BUSH_SNAKE = 2489; + public static final int BUSH_SNAKE_2490 = 2490; + public static final int JUNGLE_SPIDER_2491 = 2491; + public static final int JUNGLE_SPIDER_2492 = 2492; + public static final int LARGE_MOSQUITO = 2493; + public static final int MOSQUITO_SWARM = 2494; + public static final int MOSQUITO_SWARM_2495 = 2495; + public static final int TRIBESMAN_2496 = 2496; + public static final int TRIBESMAN_2497 = 2497; + public static final int BROODOO_VICTIM = 2498; + public static final int BROODOO_VICTIM_2499 = 2499; + public static final int BROODOO_VICTIM_2500 = 2500; + public static final int BROODOO_VICTIM_2501 = 2501; + public static final int BROODOO_VICTIM_2502 = 2502; + public static final int BROODOO_VICTIM_2503 = 2503; + public static final int NULL_2504 = 2504; + public static final int SHARIMIKA = 2505; + public static final int SHARIMIKA_2506 = 2506; + public static final int NULL_2507 = 2507; + public static final int MAMMA_BUFETTA = 2508; + public static final int MAMMA_BUFETTA_2509 = 2509; + public static final int NULL_2510 = 2510; + public static final int LAYLEEN = 2511; + public static final int LAYLEEN_2512 = 2512; + public static final int NULL_2513 = 2513; + public static final int KARADAY = 2514; + public static final int KARADAY_2515 = 2515; + public static final int NULL_2516 = 2516; + public static final int SAFTA_DOC = 2517; + public static final int SAFTA_DOC_2518 = 2518; + public static final int NULL_2519 = 2519; + public static final int GABOOTY = 2520; + public static final int GABOOTY_2521 = 2521; + public static final int NULL_2522 = 2522; + public static final int FANELLAMAN = 2523; + public static final int FANELLAMAN_2524 = 2524; + public static final int NULL_2525 = 2525; + public static final int JAGBAKOBA = 2526; + public static final int JAGBAKOBA_2527 = 2527; + public static final int NULL_2528 = 2528; + public static final int MURCAILY = 2529; + public static final int MURCAILY_2530 = 2530; + public static final int NULL_2531 = 2531; + public static final int RIONASTA = 2532; + public static final int RIONASTA_2533 = 2533; + public static final int MAHOGANY = 2534; + public static final int TEAK = 2535; + public static final int NILES = 2536; + public static final int MILES = 2537; + public static final int GILES = 2538; + public static final int CAPN_HAND = 2539; + public static final int DR_JEKYLL = 2540; + public static final int MR_HYDE = 2541; + public static final int MR_HYDE_2542 = 2542; + public static final int MR_HYDE_2543 = 2543; + public static final int MR_HYDE_2544 = 2544; + public static final int MR_HYDE_2545 = 2545; + public static final int MR_HYDE_2546 = 2546; + public static final int DR_FORD = 2547; + public static final int BLACKJACK_SELLER = 2548; + public static final int ALI_THE_DYER = 2549; + public static final int DWARVEN_MINER_2550 = 2550; + public static final int DWARVEN_MINER_2551 = 2551; + public static final int DWARVEN_MINER_2552 = 2552; + public static final int BLAST_FURNACE_FOREMAN = 2553; + public static final int TIN_ORE = 2554; + public static final int COPPER_ORE = 2555; + public static final int IRON_ORE = 2556; + public static final int MITHRIL_ORE = 2557; + public static final int ADAMANTITE_ORE = 2558; + public static final int RUNITE_ORE = 2559; + public static final int SILVER_ORE = 2560; + public static final int GOLD_ORE = 2561; + public static final int COAL = 2562; + public static final int PERFECT_GOLD_ORE = 2563; + public static final int ORDAN = 2564; + public static final int JORZIK = 2565; + public static final int WISE_OLD_MAN_2566 = 2566; + public static final int WISE_OLD_MAN_2567 = 2567; + public static final int BANKER_2568 = 2568; + public static final int BANKER_2569 = 2569; + public static final int BANKER_2570 = 2570; + public static final int MARKET_GUARD_2571 = 2571; + public static final int OLIVIA_2572 = 2572; + public static final int WATCHMAN_2573 = 2573; + public static final int BANK_GUARD = 2574; + public static final int PUREPKER895 = 2575; + public static final int QUTIEDOLL = 2576; + public static final int _1337SP34KR = 2577; + public static final int ELFINLOCKS = 2578; + public static final int COOL_MOM227 = 2579; + public static final int BERNALD = 2580; + public static final int ELLAMARIA = 2581; + public static final int TROLLEY = 2582; + public static final int TROLLEY_2583 = 2583; + public static final int TROLLEY_2584 = 2584; + public static final int NULL_2585 = 2585; + public static final int BILLY_A_GUARD_OF_FALADOR = 2586; + public static final int BOB_ANOTHER_GUARD_OF_FALADOR = 2587; + public static final int BROTHER_ALTHRIC = 2588; + public static final int PKMASTER0036 = 2589; + public static final int KING_ROALD_2590 = 2590; + public static final int TZHAARMEJ = 2591; + public static final int TZHAARMEJ_2592 = 2592; + public static final int TZHAARMEJ_2593 = 2593; + public static final int TZHAARMEJ_2594 = 2594; + public static final int TZHAARMEJ_2595 = 2595; + public static final int TZHAARMEJ_2596 = 2596; + public static final int TZHAARMEJ_2597 = 2597; + public static final int TZHAARHUR = 2598; + public static final int TZHAARHUR_2599 = 2599; + public static final int TZHAARHUR_2600 = 2600; + public static final int TZHAARHUR_2601 = 2601; + public static final int TZHAARHUR_2602 = 2602; + public static final int TZHAARHUR_2603 = 2603; + public static final int TZHAARXIL = 2604; + public static final int TZHAARXIL_2605 = 2605; + public static final int TZHAARXIL_2606 = 2606; + public static final int TZHAARXIL_2607 = 2607; + public static final int TZHAARXIL_2608 = 2608; + public static final int TZHAARXIL_2609 = 2609; + public static final int TZHAARKET = 2610; + public static final int TZHAARKET_2611 = 2611; + public static final int TZHAARKET_2612 = 2612; + public static final int TZHAARKET_2613 = 2613; + public static final int TZHAARKET_2614 = 2614; + public static final int TZHAARKET_2615 = 2615; + public static final int TZHAARKET_2616 = 2616; + public static final int TZHAARMEJJAL = 2617; + public static final int TZHAARMEJKAH = 2618; + public static final int TZHAARKETZUH = 2619; + public static final int TZHAARHURTEL = 2620; + public static final int TZHAARHURKOZ = 2621; + public static final int TZHAARHURLEK = 2622; + public static final int TZHAARMEJROH = 2623; + public static final int TZHAARKET_2624 = 2624; + public static final int TZHAARKET_2625 = 2625; + public static final int ROCKS_2626 = 2626; + public static final int TZKIH = 2627; + public static final int TZKIH_2628 = 2628; + public static final int TZKEK = 2629; + public static final int TZKEK_2630 = 2630; + public static final int TOKXIL = 2631; + public static final int TOKXIL_2632 = 2632; + public static final int WISE_OLD_MAN_2633 = 2633; + public static final int MISS_SCHISM = 2634; + public static final int BOB_2635 = 2635; + public static final int BOB_2636 = 2636; + public static final int SPHINX_2637 = 2637; + public static final int NEITE_2638 = 2638; + public static final int ROBERT_THE_STRONG = 2639; + public static final int ODYSSEUS = 2640; + public static final int DRAGONKIN = 2641; + public static final int KING_BLACK_DRAGON_2642 = 2642; + public static final int R4NG3RNO0B889 = 2643; + public static final int LOVE_CATS = 2644; + public static final int LOVE_CATS_2645 = 2645; + public static final int NEITE_2646 = 2646; + public static final int BOB_2647 = 2647; + public static final int BEITE = 2648; + public static final int GNOME_2649 = 2649; + public static final int GNOME_2650 = 2650; + public static final int ODYSSEUS_2651 = 2651; + public static final int NULL_2652 = 2652; + public static final int NEITE_2653 = 2653; + public static final int NULL_2654 = 2654; + public static final int UNFERTH = 2655; + public static final int UNFERTH_2656 = 2656; + public static final int UNFERTH_2657 = 2657; + public static final int UNFERTH_2658 = 2658; + public static final int UNFERTH_2659 = 2659; + public static final int RELDO = 2660; + public static final int RELDO_2661 = 2661; + public static final int LAZY_CAT = 2662; + public static final int LAZY_CAT_2663 = 2663; + public static final int LAZY_CAT_2664 = 2664; + public static final int LAZY_CAT_2665 = 2665; + public static final int LAZY_CAT_2666 = 2666; + public static final int LAZY_CAT_2667 = 2667; + public static final int WILY_CAT = 2668; + public static final int WILY_CAT_2669 = 2669; + public static final int WILY_CAT_2670 = 2670; + public static final int WILY_CAT_2671 = 2671; + public static final int WILY_CAT_2672 = 2672; + public static final int WILY_CAT_2673 = 2673; + public static final int THIEF_2674 = 2674; + public static final int MAN_2675 = 2675; + public static final int MAKEOVER_MAGE_2676 = 2676; + public static final int HIGHWAYMAN_2677 = 2677; + public static final int GOBLIN_2678 = 2678; + public static final int GOBLIN_2679 = 2679; + public static final int GOBLIN_2680 = 2680; + public static final int GOBLIN_2681 = 2681; + public static final int RAT_2682 = 2682; + public static final int HENGEL = 2683; + public static final int ANJA = 2684; + public static final int HOBGOBLIN_2685 = 2685; + public static final int HOBGOBLIN_2686 = 2686; + public static final int HOBGOBLIN_2687 = 2687; + public static final int HOBGOBLIN_2688 = 2688; + public static final int FROG_2689 = 2689; + public static final int JACK_SEAGULL = 2690; + public static final int LONGBOW_BEN = 2691; + public static final int AHAB = 2692; + public static final int SEAGULL = 2693; + public static final int SEAGULL_2694 = 2694; + public static final int PIRATE_2695 = 2695; + public static final int THIEF_2696 = 2696; + public static final int MUGGER_2697 = 2697; + public static final int BLACK_KNIGHT_2698 = 2698; + public static final int GUARD_2699 = 2699; + public static final int GUARD_2700 = 2700; + public static final int GUARD_2701 = 2701; + public static final int GUARD_2702 = 2702; + public static final int GUARD_2703 = 2703; + public static final int GUARD_2704 = 2704; + public static final int GUARD_2705 = 2705; + public static final int CRAB = 2706; + public static final int SEAGULL_2707 = 2707; + public static final int SEAGULL_2708 = 2708; + public static final int FIRE_WIZARD = 2709; + public static final int WATER_WIZARD = 2710; + public static final int EARTH_WIZARD = 2711; + public static final int AIR_WIZARD = 2712; + public static final int MALIGNIUS_MORTIFER = 2713; + public static final int ZOMBIE_2714 = 2714; + public static final int SKELETON_2715 = 2715; + public static final int GHOST_2716 = 2716; + public static final int SKELETON_MAGE_2717 = 2717; + public static final int BETTY_2718 = 2718; + public static final int GRUM_2719 = 2719; + public static final int GERRANT_2720 = 2720; + public static final int WYDIN_2721 = 2721; + public static final int GIANT_RAT_2722 = 2722; + public static final int GIANT_RAT_2723 = 2723; + public static final int SKELETON_2724 = 2724; + public static final int SKELETON_2725 = 2725; + public static final int GULL_2726 = 2726; + public static final int GULL_2727 = 2727; + public static final int MONK_OF_ENTRANA_2728 = 2728; + public static final int MONK_OF_ENTRANA_2729 = 2729; + public static final int MONK_OF_ENTRANA_2730 = 2730; + public static final int MONK_OF_ENTRANA_2731 = 2731; + public static final int MASTER_CRAFTER_2732 = 2732; + public static final int MASTER_CRAFTER_2733 = 2733; + public static final int TZKIH_2734 = 2734; + public static final int TZKIH_2735 = 2735; + public static final int TZKEK_2736 = 2736; + public static final int TZKEK_2737 = 2737; + public static final int TZKEK_2738 = 2738; + public static final int TOKXIL_2739 = 2739; + public static final int TOKXIL_2740 = 2740; + public static final int YTMEJKOT = 2741; + public static final int YTMEJKOT_2742 = 2742; + public static final int KETZEK = 2743; + public static final int KETZEK_2744 = 2744; + public static final int TZTOKJAD = 2745; + public static final int YTHURKOT = 2746; + public static final int SOLUS_DELLAGAR = 2747; + public static final int SAVANT = 2748; + public static final int LORD_DAQUARIUS_2749 = 2749; + public static final int SOLUS_DELLAGAR_2750 = 2750; + public static final int BLACK_KNIGHT_2751 = 2751; + public static final int LORD_DAQUARIUS_2752 = 2752; + public static final int MAGE_OF_ZAMORAK_2753 = 2753; + public static final int MAGE_OF_ZAMORAK_2754 = 2754; + public static final int MAGE_OF_ZAMORAK_2755 = 2755; + public static final int NULL_2756 = 2756; + public static final int NULL_2757 = 2757; + public static final int NULL_2758 = 2758; + public static final int NULL_2759 = 2759; + public static final int NULL_2760 = 2760; + public static final int NULL_2761 = 2761; + public static final int NULL_2762 = 2762; + public static final int NULL_2763 = 2763; + public static final int NULL_2764 = 2764; + public static final int NULL_2765 = 2765; + public static final int NULL_2766 = 2766; + public static final int NULL_2767 = 2767; + public static final int NULL_2768 = 2768; + public static final int NULL_2769 = 2769; + public static final int NULL_2770 = 2770; + public static final int NULL_2771 = 2771; + public static final int NULL_2772 = 2772; + public static final int NULL_2773 = 2773; + public static final int NULL_2774 = 2774; + public static final int NULL_2775 = 2775; + public static final int WOMAN_2776 = 2776; + public static final int BLACK_KNIGHT_2777 = 2777; + public static final int BLACK_KNIGHT_2778 = 2778; + public static final int RANGER = 2779; + public static final int SOLUS_DELLAGAR_2780 = 2780; + public static final int GNOME_GUARD_2781 = 2781; + public static final int SHADOW = 2782; + public static final int DARK_BEAST = 2783; + public static final int MOURNER_2784 = 2784; + public static final int SLAVE_2785 = 2785; + public static final int SLAVE_2786 = 2786; + public static final int SLAVE_2787 = 2787; + public static final int NULL_2788 = 2788; + public static final int THORGEL = 2789; + public static final int SERGEANT_DAMIEN = 2790; + public static final int PILLORY_GUARD = 2791; + public static final int TRAMP_2792 = 2792; + public static final int TRAMP_2793 = 2793; + public static final int TRAMP_2794 = 2794; + public static final int NULL_2795 = 2795; + public static final int SKIPPY = 2796; + public static final int SKIPPY_2797 = 2797; + public static final int SKIPPY_2798 = 2798; + public static final int SKIPPY_2799 = 2799; + public static final int A_PILE_OF_BROKEN_GLASS = 2800; + public static final int MOGRE = 2801; + public static final int GNOME_COACH = 2802; + public static final int LIZARD = 2803; + public static final int DESERT_LIZARD = 2804; + public static final int DESERT_LIZARD_2805 = 2805; + public static final int DESERT_LIZARD_2806 = 2806; + public static final int SMALL_LIZARD = 2807; + public static final int SMALL_LIZARD_2808 = 2808; + public static final int AL_THE_CAMEL = 2809; + public static final int ELLY_THE_CAMEL = 2810; + public static final int OLLIE_THE_CAMEL = 2811; + public static final int CAM_THE_CAMEL = 2812; + public static final int NULL_2813 = 2813; + public static final int ALICE_THE_CAMEL = 2814; + public static final int NEFERTI_THE_CAMEL = 2815; + public static final int NULL_2816 = 2816; + public static final int NULL_2817 = 2817; + public static final int NULL_2818 = 2818; + public static final int NULL_2819 = 2819; + public static final int ALI_THE_SMITH = 2820; + public static final int ALI_THE_FARMER = 2821; + public static final int ALI_THE_TAILOR = 2822; + public static final int ALI_THE_GUARD = 2823; + public static final int ELLIS = 2824; + public static final int PIRATE_PETE = 2825; + public static final int PIRATE_PETE_2826 = 2826; + public static final int CAPTAIN_BRAINDEATH = 2827; + public static final int _50_LUKE = 2828; + public static final int DAVEY = 2829; + public static final int CAPTAIN_DONNIE = 2830; + public static final int ZOMBIE_PROTESTER = 2831; + public static final int ZOMBIE_PROTESTER_2832 = 2832; + public static final int ZOMBIE_PROTESTER_2833 = 2833; + public static final int ZOMBIE_PROTESTER_2834 = 2834; + public static final int ZOMBIE_PROTESTER_2835 = 2835; + public static final int ZOMBIE_PROTESTER_2836 = 2836; + public static final int ZOMBIE_PIRATE = 2837; + public static final int ZOMBIE_PIRATE_2838 = 2838; + public static final int ZOMBIE_PIRATE_2839 = 2839; + public static final int ZOMBIE_PIRATE_2840 = 2840; + public static final int ZOMBIE_PIRATE_2841 = 2841; + public static final int ZOMBIE_PIRATE_2842 = 2842; + public static final int ZOMBIE_SWAB = 2843; + public static final int ZOMBIE_SWAB_2844 = 2844; + public static final int ZOMBIE_SWAB_2845 = 2845; + public static final int ZOMBIE_SWAB_2846 = 2846; + public static final int ZOMBIE_SWAB_2847 = 2847; + public static final int ZOMBIE_SWAB_2848 = 2848; + public static final int EVIL_SPIRIT = 2849; + public static final int FEVER_SPIDER = 2850; + public static final int BREWER = 2851; + public static final int BREWER_2852 = 2852; + public static final int BREWER_2853 = 2853; + public static final int BREWER_2854 = 2854; + public static final int BREWER_2855 = 2855; + public static final int BREWER_2856 = 2856; + public static final int BREWER_2857 = 2857; + public static final int BREWER_2858 = 2858; + public static final int FISHING_SPOT_2859 = 2859; + public static final int KARAMTHULHU = 2860; + public static final int KARAMTHULHU_2861 = 2861; + public static final int DEATH = 2862; + public static final int ZOMBIE_2863 = 2863; + public static final int MOST_OF_A_ZOMBIE = 2864; + public static final int MOST_OF_A_ZOMBIE_2865 = 2865; + public static final int ZOMBIE_2866 = 2866; + public static final int MOST_OF_A_ZOMBIE_2867 = 2867; + public static final int ZOMBIE_HEAD = 2868; + public static final int ZOMBIE_2869 = 2869; + public static final int HALFZOMBIE = 2870; + public static final int OTHER_HALFZOMBIE = 2871; + public static final int CHILD_2872 = 2872; + public static final int CHILD_2873 = 2873; + public static final int CHILD_2874 = 2874; + public static final int CHILD_2875 = 2875; + public static final int CHILD_2876 = 2876; + public static final int CHILD_2877 = 2877; + public static final int ZOMBIE_2878 = 2878; + public static final int BARDUR = 2879; + public static final int DAGANNOTH_FLEDGELING = 2880; + public static final int DAGANNOTH_SUPREME = 2881; + public static final int DAGANNOTH_PRIME = 2882; + public static final int DAGANNOTH_REX = 2883; + public static final int WALLASALKI_2884 = 2884; + public static final int GIANT_ROCK_CRAB_2885 = 2885; + public static final int BOULDER_2886 = 2886; + public static final int DAGANNOTH_2887 = 2887; + public static final int DAGANNOTH_2888 = 2888; + public static final int ROCK_LOBSTER = 2889; + public static final int ROCK_2890 = 2890; + public static final int SUSPICIOUS_WATER = 2891; + public static final int SPINOLYP = 2892; + public static final int SUSPICIOUS_WATER_2893 = 2893; + public static final int SPINOLYP_2894 = 2894; + public static final int SUSPICIOUS_WATER_2895 = 2895; + public static final int SPINOLYP_2896 = 2896; + public static final int NULL_2897 = 2897; + public static final int NULL_2898 = 2898; + public static final int FATHER_REEN = 2899; + public static final int FATHER_REEN_2900 = 2900; + public static final int NULL_2901 = 2901; + public static final int FATHER_BADDEN = 2902; + public static final int FATHER_BADDEN_2903 = 2903; + public static final int DENATH = 2904; + public static final int DENATH_2905 = 2905; + public static final int ERIC = 2906; + public static final int ERIC_2907 = 2907; + public static final int NULL_2908 = 2908; + public static final int EVIL_DAVE = 2909; + public static final int EVIL_DAVE_2910 = 2910; + public static final int MATTHEW = 2911; + public static final int MATTHEW_2912 = 2912; + public static final int JENNIFER = 2913; + public static final int JENNIFER_2914 = 2914; + public static final int TANYA = 2915; + public static final int TANYA_2916 = 2916; + public static final int PATRICK = 2917; + public static final int PATRICK_2918 = 2918; + public static final int AGRITH_NAAR = 2919; + public static final int NULL_2920 = 2920; + public static final int SAND_STORM = 2921; + public static final int NULL_2922 = 2922; + public static final int NULL_2923 = 2923; + public static final int NULL_2924 = 2924; + public static final int NULL_2925 = 2925; + public static final int NULL_2926 = 2926; + public static final int CLAY_GOLEM_2927 = 2927; + public static final int CLAY_GOLEM_2928 = 2928; + public static final int NULL_2929 = 2929; + public static final int NULL_2930 = 2930; + public static final int GHOST_2931 = 2931; + public static final int JORRAL = 2932; + public static final int NULL_2933 = 2933; + public static final int MELINA = 2934; + public static final int MELINA_2935 = 2935; + public static final int NULL_2936 = 2936; + public static final int DROALAK = 2937; + public static final int DROALAK_2938 = 2938; + public static final int DRON = 2939; + public static final int BLANIN = 2940; + public static final int THE_BEAST = 2941; + public static final int BELLEMORDE = 2942; + public static final int POX = 2943; + public static final int POX_2944 = 2944; + public static final int BONES = 2945; + public static final int GRIMESQUIT = 2946; + public static final int PHINGSPET = 2947; + public static final int HOOKNOSED_JACK = 2948; + public static final int JIMMY_DAZZLER = 2949; + public static final int THE_FACE = 2950; + public static final int FELKRASH = 2951; + public static final int SMOKIN_JOE = 2952; + public static final int CERIL_CARNILLEAN_2953 = 2953; + public static final int COUNCILLOR_HALGRIVE_2954 = 2954; + public static final int SPICE_SELLER_2955 = 2955; + public static final int FUR_TRADER_2956 = 2956; + public static final int GEM_MERCHANT_2957 = 2957; + public static final int SILVER_MERCHANT_2958 = 2958; + public static final int SILK_MERCHANT_2959 = 2959; + public static final int ZENESHA_2960 = 2960; + public static final int ALI_MORRISANE_2961 = 2961; + public static final int GUARD_2962 = 2962; + public static final int GUARD_2963 = 2963; + public static final int GUARD_2964 = 2964; + public static final int GUARD_2965 = 2965; + public static final int GUARD_2966 = 2966; + public static final int GUARD_2967 = 2967; + public static final int GUARD_2968 = 2968; + public static final int GUARD_2969 = 2969; + public static final int GUARD_2970 = 2970; + public static final int GUARD_2971 = 2971; + public static final int GUARD_2972 = 2972; + public static final int GUARD_2973 = 2973; + public static final int NULL_2974 = 2974; + public static final int NULL_2975 = 2975; + public static final int NULL_2976 = 2976; + public static final int NULL_2977 = 2977; + public static final int NULL_2978 = 2978; + public static final int NULL_2979 = 2979; + public static final int RAT_2980 = 2980; + public static final int RAT_2981 = 2981; + public static final int KING_RAT = 2982; + public static final int TURBOGROOMER = 2983; + public static final int PUSSKINS = 2984; + public static final int LOKI = 2985; + public static final int CAPTAIN_TOM = 2986; + public static final int TREACLE = 2987; + public static final int MITTENS = 2988; + public static final int CLAUDE = 2989; + public static final int TOPSY = 2990; + public static final int RAUBORN = 2991; + public static final int VAERINGK = 2992; + public static final int OXI = 2993; + public static final int FIOR = 2994; + public static final int SAGIRA = 2995; + public static final int ANLEIF = 2996; + public static final int GERTRUDES_CAT_2997 = 2997; + public static final int GAMBLER = 2998; + public static final int GAMBLER_2999 = 2999; + public static final int BARMAN_3000 = 3000; + public static final int GAMBLER_3001 = 3001; + public static final int GAMBLER_3002 = 3002; + public static final int GAMBLER_3003 = 3003; + public static final int GAMBLER_3004 = 3004; + public static final int GAMBLER_3005 = 3005; + public static final int GAMBLER_3006 = 3006; + public static final int RAT_3007 = 3007; + public static final int RAT_3008 = 3008; + public static final int RAT_3009 = 3009; + public static final int RAT_3010 = 3010; + public static final int RAT_3011 = 3011; + public static final int RAT_3012 = 3012; + public static final int RAT_3013 = 3013; + public static final int RAT_3014 = 3014; + public static final int RAT_3015 = 3015; + public static final int RAT_3016 = 3016; + public static final int RAT_3017 = 3017; + public static final int RAT_3018 = 3018; + public static final int FISHING_SPOT_3019 = 3019; + public static final int RUG_MERCHANT_3020 = 3020; + public static final int TOOL_LEPRECHAUN = 3021; + public static final int GENIE_3022 = 3022; + public static final int NIRRIE = 3023; + public static final int TIRRIE = 3024; + public static final int HALLAK = 3025; + public static final int BLACK_GOLEM = 3026; + public static final int WHITE_GOLEM = 3027; + public static final int GREY_GOLEM = 3028; + public static final int GHASLOR_THE_ELDER = 3029; + public static final int ALI_THE_CARTER = 3030; + public static final int USI = 3031; + public static final int NKUKU = 3032; + public static final int GARAI = 3033; + public static final int HABIBAH = 3034; + public static final int MESKHENET = 3035; + public static final int ZAHRA = 3036; + public static final int ZAHUR = 3037; + public static final int SEDDU = 3038; + public static final int KAZEMDE = 3039; + public static final int AWUSAH_THE_MAYOR = 3040; + public static final int TARIK = 3041; + public static final int POLTENIP = 3042; + public static final int RADAT = 3043; + public static final int SHIRATTI_THE_CUSTODIAN = 3044; + public static final int ROKUH = 3045; + public static final int NARDAH_BANKER = 3046; + public static final int TARGET = 3047; + public static final int TARGET_3048 = 3048; + public static final int NULL_3049 = 3049; + public static final int LARXUS = 3050; + public static final int MYSTERY_FIGURE = 3051; + public static final int MYSTERY_FIGURE_3052 = 3052; + public static final int MYSTERY_FIGURE_3053 = 3053; + public static final int MYSTERY_FIGURE_3054 = 3054; + public static final int MYSTERY_FIGURE_3055 = 3055; + public static final int MYSTERY_FIGURE_3056 = 3056; + public static final int EARTH_WARRIOR_CHAMPION = 3057; + public static final int GIANT_CHAMPION = 3058; + public static final int GHOUL_CHAMPION = 3059; + public static final int GOBLIN_CHAMPION = 3060; + public static final int HOBGOBLIN_CHAMPION = 3061; + public static final int IMP_CHAMPION = 3062; + public static final int JOGRE_CHAMPION = 3063; + public static final int LESSER_DEMON_CHAMPION = 3064; + public static final int SKELETON_CHAMPION = 3065; + public static final int ZOMBIES_CHAMPION = 3066; + public static final int LEON_DCOUR = 3067; + public static final int SKELETAL_WYVERN = 3068; + public static final int SKELETAL_WYVERN_3069 = 3069; + public static final int SKELETAL_WYVERN_3070 = 3070; + public static final int SKELETAL_WYVERN_3071 = 3071; + public static final int ICE_GIANT_3072 = 3072; + public static final int ICE_WARRIOR_3073 = 3073; + public static final int NULL_3074 = 3074; + public static final int MONK_3075 = 3075; + public static final int NULL_3076 = 3076; + public static final int DEAD_MONK = 3077; + public static final int HIGH_PRIEST_3078 = 3078; + public static final int MONK_3079 = 3079; + public static final int MONK_3080 = 3080; + public static final int ASSASSIN = 3081; + public static final int ROSIE = 3082; + public static final int SORCHA = 3083; + public static final int CAIT = 3084; + public static final int CORMAC = 3085; + public static final int FIONN = 3086; + public static final int DONNACHA = 3087; + public static final int RONAN = 3088; + public static final int NULL_3089 = 3089; + public static final int NULL_3090 = 3090; + public static final int NULL_3091 = 3091; + public static final int HOODED_STRANGER = 3092; + public static final int NULL_3093 = 3093; + public static final int FLYING_BOOK = 3094; + public static final int FLYING_BOOK_3095 = 3095; + public static final int PIZZAZ_HAT = 3096; + public static final int ENTRANCE_GUARDIAN = 3097; + public static final int TELEKINETIC_GUARDIAN = 3098; + public static final int ALCHEMY_GUARDIAN = 3099; + public static final int ENCHANTMENT_GUARDIAN = 3100; + public static final int GRAVEYARD_GUARDIAN = 3101; + public static final int MAZE_GUARDIAN = 3102; + public static final int REWARDS_GUARDIAN = 3103; + public static final int CHARMED_WARRIOR = 3104; + public static final int CHARMED_WARRIOR_3105 = 3105; + public static final int CHARMED_WARRIOR_3106 = 3106; + public static final int CHARMED_WARRIOR_3107 = 3107; + public static final int BERT = 3108; + public static final int GUARD_CAPTAIN = 3109; + public static final int NULL_3110 = 3110; + public static final int NULL_3111 = 3111; + public static final int SANDY = 3112; + public static final int SANDY_3113 = 3113; + public static final int MAZION = 3114; + public static final int BLAEC = 3115; + public static final int REESO = 3116; + public static final int SANDWICH_LADY = 3117; + public static final int PRISON_PETE = 3118; + public static final int BALLOON_ANIMAL = 3119; + public static final int BALLOON_ANIMAL_3120 = 3120; + public static final int BALLOON_ANIMAL_3121 = 3121; + public static final int BALLOON_ANIMAL_3122 = 3122; + public static final int SIMON_TEMPLETON = 3123; + public static final int PYRAMID_BLOCK = 3124; + public static final int PYRAMID_BLOCK_3125 = 3125; + public static final int PENTYN = 3126; + public static final int ARISTARCHUS = 3127; + public static final int NULL_3128 = 3128; + public static final int BONEGUARD = 3129; + public static final int PILE_OF_BONES = 3130; + public static final int DESERT_SPIRIT = 3131; + public static final int NULL_3132 = 3132; + public static final int CRUST_OF_ICE = 3133; + public static final int NULL_3134 = 3134; + public static final int FURNACE_GRATE = 3135; + public static final int NULL_3136 = 3136; + public static final int ENAKHRA = 3137; + public static final int ENAKHRA_3138 = 3138; + public static final int NULL_3139 = 3139; + public static final int BONEGUARD_3140 = 3140; + public static final int AKTHANAKOS = 3141; + public static final int AKTHANAKOS_3142 = 3142; + public static final int NULL_3143 = 3143; + public static final int NULL_3144 = 3144; + public static final int NULL_3145 = 3145; + public static final int NULL_3146 = 3146; + public static final int LAZIM = 3147; + public static final int ENAKHRA_3148 = 3148; + public static final int AKTHANAKOS_3149 = 3149; + public static final int KNIGHT_3150 = 3150; + public static final int SKELETON_3151 = 3151; + public static final int NULL_3152 = 3152; + public static final int HARPIE_BUG_SWARM = 3153; + public static final int COUNT_DRAYNOR_3154 = 3154; + public static final int BILL_TEACH = 3155; + public static final int BILL_TEACH_3156 = 3156; + public static final int BILL_TEACH_3157 = 3157; + public static final int BILL_TEACH_3158 = 3158; + public static final int BILL_TEACH_3159 = 3159; + public static final int BILL_TEACH_3160 = 3160; + public static final int CHARLEY = 3161; + public static final int SMITH = 3162; + public static final int JOE_3163 = 3163; + public static final int MAMA = 3164; + public static final int MAMA_3165 = 3165; + public static final int MIKE = 3166; + public static final int PIRATE_3167 = 3167; + public static final int PIRATE_3168 = 3168; + public static final int PIRATE_3169 = 3169; + public static final int PIRATE_3170 = 3170; + public static final int PIRATE_3171 = 3171; + public static final int PIRATE_3172 = 3172; + public static final int PIRATE_3173 = 3173; + public static final int PIRATE_3174 = 3174; + public static final int PIRATE_3175 = 3175; + public static final int PIRATE_3176 = 3176; + public static final int PIRATE_3177 = 3177; + public static final int PIRATE_3178 = 3178; + public static final int PIRATE_3179 = 3179; + public static final int PIRATE_3180 = 3180; + public static final int PIRATE_3181 = 3181; + public static final int PIRATE_3182 = 3182; + public static final int PIRATE_3183 = 3183; + public static final int PIRATE_3184 = 3184; + public static final int PIRATE_3185 = 3185; + public static final int PIRATE_3186 = 3186; + public static final int PIRATE_3187 = 3187; + public static final int PIRATE_3188 = 3188; + public static final int PIRATE_3189 = 3189; + public static final int PIRATE_3190 = 3190; + public static final int PIRATE_3191 = 3191; + public static final int PIRATE_3192 = 3192; + public static final int PIRATE_3193 = 3193; + public static final int PIRATE_3194 = 3194; + public static final int PIRATE_3195 = 3195; + public static final int PIRATE_3196 = 3196; + public static final int GULL_3197 = 3197; + public static final int BANKER_3198 = 3198; + public static final int BANKER_3199 = 3199; + public static final int CHAOS_ELEMENTAL = 3200; + public static final int KILLERWATT = 3201; + public static final int KILLERWATT_3202 = 3202; + public static final int STORM_CLOUD = 3203; + public static final int STORM_CLOUD_3204 = 3204; + public static final int ROMILY_WEAKLAX = 3205; + public static final int PRIEST_3206 = 3206; + public static final int PIOUS_PETE = 3207; + public static final int TAPER = 3208; + public static final int ELENA = 3209; + public static final int ALRENA_3210 = 3210; + public static final int ALRENA_3211 = 3211; + public static final int BRAVEK_3212 = 3212; + public static final int NULL_3213 = 3213; + public static final int NULL_3214 = 3214; + public static final int ELENA_3215 = 3215; + public static final int MOURNER_3216 = 3216; + public static final int KAYLEE = 3217; + public static final int TINA = 3218; + public static final int DWARF_3219 = 3219; + public static final int DWARF_3220 = 3220; + public static final int DWARF_3221 = 3221; + public static final int DRUNKEN_MAN = 3222; + public static final int MAN_3223 = 3223; + public static final int MAN_3224 = 3224; + public static final int MAN_3225 = 3225; + public static final int WOMAN_3226 = 3226; + public static final int WOMAN_3227 = 3227; + public static final int GUARD_3228 = 3228; + public static final int GUARD_3229 = 3229; + public static final int GUARD_3230 = 3230; + public static final int GUARD_3231 = 3231; + public static final int GUARD_3232 = 3232; + public static final int GUARD_3233 = 3233; + public static final int GARDENER_3234 = 3234; + public static final int APPRENTICE_WORKMAN = 3235; + public static final int WORKMAN = 3236; + public static final int CUFFS = 3237; + public static final int NARF = 3238; + public static final int RUSTY = 3239; + public static final int JEFF = 3240; + public static final int GUARD_3241 = 3241; + public static final int DARK_WIZARD_3242 = 3242; + public static final int DARK_WIZARD_3243 = 3243; + public static final int DARK_WIZARD_3244 = 3244; + public static final int DARK_WIZARD_3245 = 3245; + public static final int BARBARIAN_3246 = 3246; + public static final int BARBARIAN_3247 = 3247; + public static final int BARBARIAN_3248 = 3248; + public static final int BARBARIAN_3249 = 3249; + public static final int BARBARIAN_3250 = 3250; + public static final int BARBARIAN_3251 = 3251; + public static final int BARBARIAN_3252 = 3252; + public static final int BARBARIAN_3253 = 3253; + public static final int HUNDING = 3254; + public static final int BARBARIAN_3255 = 3255; + public static final int BARBARIAN_3256 = 3256; + public static final int BARBARIAN_3257 = 3257; + public static final int BARBARIAN_3258 = 3258; + public static final int BARBARIAN_3259 = 3259; + public static final int BARBARIAN_3260 = 3260; + public static final int BARBARIAN_3261 = 3261; + public static final int BARBARIAN_3262 = 3262; + public static final int BARBARIAN_3263 = 3263; + public static final int GOBLIN_3264 = 3264; + public static final int GOBLIN_3265 = 3265; + public static final int GOBLIN_3266 = 3266; + public static final int GOBLIN_3267 = 3267; + public static final int DWARF_3268 = 3268; + public static final int DWARF_3269 = 3269; + public static final int DWARF_3270 = 3270; + public static final int DWARF_3271 = 3271; + public static final int DWARF_3272 = 3272; + public static final int DWARF_3273 = 3273; + public static final int DWARF_3274 = 3274; + public static final int DWARF_3275 = 3275; + public static final int BLACK_GUARD_3276 = 3276; + public static final int BLACK_GUARD_3277 = 3277; + public static final int BLACK_GUARD_3278 = 3278; + public static final int BLACK_GUARD_3279 = 3279; + public static final int ENGINEERING_ASSISTANT = 3280; + public static final int ENGINEERING_ASSISTANT_3281 = 3281; + public static final int ENGINEER = 3282; + public static final int SQUIRREL = 3283; + public static final int SQUIRREL_3284 = 3284; + public static final int SQUIRREL_3285 = 3285; + public static final int RACCOON = 3286; + public static final int RACCOON_3287 = 3287; + public static final int RACCOON_3288 = 3288; + public static final int NULL_3289 = 3289; + public static final int NULL_3290 = 3290; + public static final int SKELETON_3291 = 3291; + public static final int WITCH_3292 = 3292; + public static final int NULL_3293 = 3293; + public static final int DWARF_3294 = 3294; + public static final int DWARF_3295 = 3295; + public static final int SWAN = 3296; + public static final int BLACK_SWAN = 3297; + public static final int SWEEPER = 3298; + public static final int MARTIN_THE_MASTER_GARDENER = 3299; + public static final int FROG_3300 = 3300; + public static final int STORM_CLOUD_3301 = 3301; + public static final int COORDINATOR = 3302; + public static final int FAIRY_NUFF = 3303; + public static final int FAIRY_GODFATHER = 3304; + public static final int SLIM_LOUIE = 3305; + public static final int FAT_ROCCO = 3306; + public static final int GATE_KEEPER = 3307; + public static final int ZANDAR_HORFYRE = 3308; + public static final int COW_3309 = 3309; + public static final int SHEEP_3310 = 3310; + public static final int SHEEP_3311 = 3311; + public static final int ZANARIS_CHOIR = 3312; + public static final int TANGLEFOOT = 3313; + public static final int NULL_3314 = 3314; + public static final int NULL_3315 = 3315; + public static final int NULL_3316 = 3316; + public static final int NULL_3317 = 3317; + public static final int NULL_3318 = 3318; + public static final int BABY_TANGLEFOOT = 3319; + public static final int BABY_TANGLEFOOT_3320 = 3320; + public static final int GATE_KEEPER_3321 = 3321; + public static final int FAIRY_CHEF = 3322; + public static final int NULL_3323 = 3323; + public static final int DRAUL_LEPTOC = 3324; + public static final int PHILLIPA = 3325; + public static final int MARTINA_SCORSBY = 3326; + public static final int JEREMY_CLERKSIN = 3327; + public static final int TARQUIN = 3328; + public static final int SIGURD = 3329; + public static final int HARI = 3330; + public static final int BARFY_BILL = 3331; + public static final int TREES = 3332; + public static final int TREES_3333 = 3333; + public static final int CAVEMOUTH = 3334; + public static final int BULLRUSH = 3335; + public static final int BULLRUSH_3336 = 3336; + public static final int CAVE_SCENERY = 3337; + public static final int CAVE_SCENERY_3338 = 3338; + public static final int CAVE_SCENERY_3339 = 3339; + public static final int GIANT_MOLE = 3340; + public static final int BABY_MOLE = 3341; + public static final int BABY_MOLE_3342 = 3342; + public static final int BABY_MOLE_3343 = 3343; + public static final int FUNGI = 3344; + public static final int FUNGI_3345 = 3345; + public static final int ZYGOMITE = 3346; + public static final int ZYGOMITE_3347 = 3347; + public static final int WHITE_KNIGHT_3348 = 3348; + public static final int WHITE_KNIGHT_3349 = 3349; + public static final int WHITE_KNIGHT_3350 = 3350; + public static final int GENIE_3351 = 3351; + public static final int MYSTERIOUS_OLD_MAN_3352 = 3352; + public static final int SWARM_3353 = 3353; + public static final int CAPN_HAND_3354 = 3354; + public static final int RICK_TURPENTINE_3355 = 3355; + public static final int NILES_3356 = 3356; + public static final int MILES_3357 = 3357; + public static final int GILES_3358 = 3358; + public static final int DR_JEKYLL_3359 = 3359; + public static final int MR_HYDE_3360 = 3360; + public static final int MR_HYDE_3361 = 3361; + public static final int MR_HYDE_3362 = 3362; + public static final int MR_HYDE_3363 = 3363; + public static final int MR_HYDE_3364 = 3364; + public static final int MR_HYDE_3365 = 3365; + public static final int EVIL_CHICKEN_3366 = 3366; + public static final int EVIL_CHICKEN_3367 = 3367; + public static final int EVIL_CHICKEN_3368 = 3368; + public static final int EVIL_CHICKEN_3369 = 3369; + public static final int EVIL_CHICKEN_3370 = 3370; + public static final int EVIL_CHICKEN_3371 = 3371; + public static final int SIR_AMIK_VARZE_3372 = 3372; + public static final int NULL_3373 = 3373; + public static final int SIR_AMIK_VARZE_3374 = 3374; + public static final int EVIL_CHICKEN_3375 = 3375; + public static final int BABY_BLACK_DRAGON = 3376; + public static final int KKLIK = 3377; + public static final int EVIL_DAVE_3378 = 3378; + public static final int NULL_3379 = 3379; + public static final int EVIL_DAVE_3380 = 3380; + public static final int DORIS = 3381; + public static final int HELLRAT = 3382; + public static final int NULL_3383 = 3383; + public static final int NULL_3384 = 3384; + public static final int GYPSY_3385 = 3385; + public static final int GYPSY_3386 = 3386; + public static final int CULINAROMANCER = 3387; + public static final int OSMAN_3388 = 3388; + public static final int PIRATE_PETE_3389 = 3389; + public static final int MOUNTAIN_DWARF = 3390; + public static final int GENERAL_WARTFACE_3391 = 3391; + public static final int GENERAL_BENTNOZE_3392 = 3392; + public static final int LUMBRIDGE_GUIDE_3393 = 3393; + public static final int EVIL_DAVE_3394 = 3394; + public static final int SIR_AMIK_VARZE_3395 = 3395; + public static final int AWOWOGEI_3396 = 3396; + public static final int AWOWOGEI_3397 = 3397; + public static final int SKRACH_UGLOGWEE = 3398; + public static final int NULL_3399 = 3399; + public static final int CULINAROMANCER_3400 = 3400; + public static final int NULL_3401 = 3401; + public static final int AN_OLD_DWARF = 3402; + public static final int ROHAK = 3403; + public static final int NULL_3404 = 3404; + public static final int ROHAK_3405 = 3405; + public static final int ICEFIEND = 3406; + public static final int GENERAL_WARTFACE_3407 = 3407; + public static final int GENERAL_BENTNOZE_3408 = 3408; + public static final int NULL_3409 = 3409; + public static final int GENERAL_WARTFACE_3410 = 3410; + public static final int NULL_3411 = 3411; + public static final int GENERAL_BENTNOZE_3412 = 3412; + public static final int GOBLIN_COOK = 3413; + public static final int GOBLIN_COOK_3414 = 3414; + public static final int GOBLIN_COOK_3415 = 3415; + public static final int PIRATE_PETE_3416 = 3416; + public static final int NULL_3417 = 3417; + public static final int PIRATE_PETE_3418 = 3418; + public static final int MOGRE_GUARD = 3419; + public static final int NUNG = 3420; + public static final int CRAB_3421 = 3421; + public static final int MUDSKIPPER = 3422; + public static final int MUDSKIPPER_3423 = 3423; + public static final int CRAB_3424 = 3424; + public static final int FISH = 3425; + public static final int FISH_3426 = 3426; + public static final int FISH_3427 = 3427; + public static final int FISH_3428 = 3428; + public static final int FISH_3429 = 3429; + public static final int FISH_3430 = 3430; + public static final int FISH_3431 = 3431; + public static final int FISH_3432 = 3432; + public static final int FISH_3433 = 3433; + public static final int FISH_3434 = 3434; + public static final int FISH_3435 = 3435; + public static final int FISH_3436 = 3436; + public static final int FISH_3437 = 3437; + public static final int FISH_3438 = 3438; + public static final int FISH_3439 = 3439; + public static final int FISH_3440 = 3440; + public static final int FISH_3441 = 3441; + public static final int FISH_3442 = 3442; + public static final int FISH_3443 = 3443; + public static final int FISH_3444 = 3444; + public static final int FISH_3445 = 3445; + public static final int FISH_3446 = 3446; + public static final int FISH_3447 = 3447; + public static final int FISH_3448 = 3448; + public static final int LUMBRIDGE_GUIDE_3449 = 3449; + public static final int NULL_3450 = 3450; + public static final int LUMBRIDGE_GUIDE_3451 = 3451; + public static final int ___ = 3452; + public static final int ____3453 = 3453; + public static final int ____3454 = 3454; + public static final int ____3455 = 3455; + public static final int ____3456 = 3456; + public static final int ____3457 = 3457; + public static final int ____3458 = 3458; + public static final int ____3459 = 3459; + public static final int ____3460 = 3460; + public static final int ____3461 = 3461; + public static final int NULL_3462 = 3462; + public static final int SKRACH_UGLOGWEE_3463 = 3463; + public static final int SKRACH_UGLOGWEE_3464 = 3464; + public static final int NULL_3465 = 3465; + public static final int RANTZ_3466 = 3466; + public static final int RANTZ_3467 = 3467; + public static final int RANTZ_3468 = 3468; + public static final int NULL_3469 = 3469; + public static final int NULL_3470 = 3470; + public static final int OGRE_BOAT = 3471; + public static final int OGRE_BOAT_3472 = 3472; + public static final int BALLOON_TOAD = 3473; + public static final int BALLOON_TOAD_3474 = 3474; + public static final int BALLOON_TOAD_3475 = 3475; + public static final int JUBBLY_BIRD = 3476; + public static final int JUBBLY_BIRD_3477 = 3477; + public static final int KING_AWOWOGEI = 3478; + public static final int NULL_3479 = 3479; + public static final int KING_AWOWOGEI_3480 = 3480; + public static final int MIZARU = 3481; + public static final int KIKAZARU = 3482; + public static final int IWAZARU = 3483; + public static final int BIG_SNAKE = 3484; + public static final int CULINAROMANCER_3485 = 3485; + public static final int CULINAROMANCER_3486 = 3486; + public static final int CULINAROMANCER_3487 = 3487; + public static final int CULINAROMANCER_3488 = 3488; + public static final int CULINAROMANCER_3489 = 3489; + public static final int CULINAROMANCER_3490 = 3490; + public static final int CULINAROMANCER_3491 = 3491; + public static final int CULINAROMANCER_3492 = 3492; + public static final int AGRITHNANA = 3493; + public static final int FLAMBEED = 3494; + public static final int KARAMEL = 3495; + public static final int DESSOURT = 3496; + public static final int GELATINNOTH_MOTHER = 3497; + public static final int GELATINNOTH_MOTHER_3498 = 3498; + public static final int GELATINNOTH_MOTHER_3499 = 3499; + public static final int GELATINNOTH_MOTHER_3500 = 3500; + public static final int GELATINNOTH_MOTHER_3501 = 3501; + public static final int GELATINNOTH_MOTHER_3502 = 3502; + public static final int OVERGROWN_HELLCAT = 3503; + public static final int HELLCAT = 3504; + public static final int KITTEN_3505 = 3505; + public static final int LAZY_HELLCAT = 3506; + public static final int WILY_HELLCAT = 3507; + public static final int LEO = 3508; + public static final int SORIN = 3509; + public static final int NULL_3510 = 3510; + public static final int WISKIT = 3511; + public static final int NULL_3512 = 3512; + public static final int NULL_3513 = 3513; + public static final int VAMPYRE_JUVINATE = 3514; + public static final int VAMPYRE_JUVINATE_3515 = 3515; + public static final int NULL_3516 = 3516; + public static final int GADDERANKS = 3517; + public static final int GADDERANKS_3518 = 3518; + public static final int GADDERANKS_3519 = 3519; + public static final int VAMPYRE_JUVINATE_3520 = 3520; + public static final int VAMPYRE_JUVINATE_3521 = 3521; + public static final int VAMPYRE_JUVINATE_3522 = 3522; + public static final int VAMPYRE_JUVINATE_3523 = 3523; + public static final int VAMPYRE_JUVINATE_3524 = 3524; + public static final int VAMPYRE_JUVINATE_3525 = 3525; + public static final int VAMPYRE_JUVINATE_3526 = 3526; + public static final int HELD_VAMPYRE_JUVINATE = 3527; + public static final int VAMPYRE_JUVINATE_3528 = 3528; + public static final int VAMPYRE_JUVINATE_3529 = 3529; + public static final int MIST_3530 = 3530; + public static final int VAMPYRE_JUVENILE = 3531; + public static final int VAMPYRE_JUVENILE_3532 = 3532; + public static final int VAMPYRE_JUVENILE_3533 = 3533; + public static final int VAMPYRE_JUVENILE_3534 = 3534; + public static final int IVAN_STROM_3535 = 3535; + public static final int IVAN_STROM_3536 = 3536; + public static final int VAMPYRE_JUVINATE_3537 = 3537; + public static final int VAMPYRE_JUVINATE_3538 = 3538; + public static final int VELIAF_HURTZ_3539 = 3539; + public static final int ELISABETA = 3540; + public static final int AUREL = 3541; + public static final int SORIN_3542 = 3542; + public static final int LUSCION = 3543; + public static final int SERGIU = 3544; + public static final int RADU = 3545; + public static final int GRIGORE = 3546; + public static final int ILEANA = 3547; + public static final int VALERIA = 3548; + public static final int EMILIA = 3549; + public static final int FLORIN = 3550; + public static final int CATALINA = 3551; + public static final int IVAN = 3552; + public static final int VICTOR = 3553; + public static final int HELENA = 3554; + public static final int TEODOR = 3555; + public static final int MARIUS = 3556; + public static final int GABRIELA = 3557; + public static final int VLADIMIR = 3558; + public static final int CALIN = 3559; + public static final int MIHAIL = 3560; + public static final int NICOLETA = 3561; + public static final int SIMONA = 3562; + public static final int VASILE = 3563; + public static final int RAZVAN = 3564; + public static final int LUMINATA = 3565; + public static final int NULL_3566 = 3566; + public static final int NULL_3567 = 3567; + public static final int CORNELIUS = 3568; + public static final int CORNELIUS_3569 = 3569; + public static final int BENJAMIN = 3570; + public static final int LIAM = 3571; + public static final int MIALA = 3572; + public static final int VERAK = 3573; + public static final int FISHING_SPOT_3574 = 3574; + public static final int FISHING_SPOT_3575 = 3575; + public static final int JUVINATE = 3576; + public static final int JUVINATE_3577 = 3577; + public static final int JUVINATE_3578 = 3578; + public static final int SHEEP_3579 = 3579; + public static final int TENTACLE = 3580; + public static final int SKELETON_3581 = 3581; + public static final int GUARD_DOG_3582 = 3582; + public static final int HOBGOBLIN_3583 = 3583; + public static final int TROLL_3584 = 3584; + public static final int HUGE_SPIDER = 3585; + public static final int HELLHOUND_3586 = 3586; + public static final int OGRE_3587 = 3587; + public static final int BABY_RED_DRAGON_3588 = 3588; + public static final int KALPHITE_SOLDIER_3589 = 3589; + public static final int STEEL_DRAGON_3590 = 3590; + public static final int DAGANNOTH_3591 = 3591; + public static final int TOKXIL_3592 = 3592; + public static final int DEMON_3593 = 3593; + public static final int ROCNAR = 3594; + public static final int TOY_SOLDIER = 3595; + public static final int TOY_DOLL = 3596; + public static final int TOY_MOUSE = 3597; + public static final int CLOCKWORK_CAT = 3598; + public static final int SWAMP_SNAKE = 3599; + public static final int SWAMP_SNAKE_3600 = 3600; + public static final int SWAMP_SNAKE_3601 = 3601; + public static final int SWAMP_SNAKE_3602 = 3602; + public static final int DEAD_SWAMP_SNAKE = 3603; + public static final int DEAD_SWAMP_SNAKE_3604 = 3604; + public static final int DEAD_SWAMP_SNAKE_3605 = 3605; + public static final int GHAST_3606 = 3606; + public static final int GHAST_3607 = 3607; + public static final int GHAST_3608 = 3608; + public static final int GHAST_3609 = 3609; + public static final int GHAST_3610 = 3610; + public static final int GHAST_3611 = 3611; + public static final int GIANT_SNAIL = 3612; + public static final int GIANT_SNAIL_3613 = 3613; + public static final int GIANT_SNAIL_3614 = 3614; + public static final int RIYL_SHADOW_3615 = 3615; + public static final int ASYN_SHADOW_3616 = 3616; + public static final int SHADE_3617 = 3617; + public static final int TENTACLE_3618 = 3618; + public static final int HEAD = 3619; + public static final int HEAD_3620 = 3620; + public static final int TENTACLE_3621 = 3621; + public static final int ZOMBIE_3622 = 3622; + public static final int NULL_3623 = 3623; + public static final int SMIDDI_RYAK = 3624; + public static final int NULL_3625 = 3625; + public static final int ROLAYNE_TWICKIT = 3626; + public static final int NULL_3627 = 3627; + public static final int JAYENE_KLIYN = 3628; + public static final int NULL_3629 = 3629; + public static final int VALANTAY_EPPEL = 3630; + public static final int NULL_3631 = 3631; + public static final int DALCIAN_FANG = 3632; + public static final int NULL_3633 = 3633; + public static final int FYIONA_FRAY = 3634; + public static final int ABIDOR_CRANK = 3635; + public static final int SPIRIT_TREE = 3636; + public static final int SPIRIT_TREE_3637 = 3637; + public static final int NULL_3638 = 3638; + public static final int LAUNA = 3639; + public static final int LAUNA_3640 = 3640; + public static final int BRANA = 3641; + public static final int NULL_3642 = 3642; + public static final int TOLNA = 3643; + public static final int TOLNA_3644 = 3644; + public static final int ANGRY_BEAR = 3645; + public static final int ANGRY_UNICORN = 3646; + public static final int ANGRY_GIANT_RAT = 3647; + public static final int ANGRY_GOBLIN = 3648; + public static final int FEAR_REAPER = 3649; + public static final int CONFUSION_BEAST = 3650; + public static final int CONFUSION_BEAST_3651 = 3651; + public static final int CONFUSION_BEAST_3652 = 3652; + public static final int CONFUSION_BEAST_3653 = 3653; + public static final int CONFUSION_BEAST_3654 = 3654; + public static final int HOPELESS_CREATURE = 3655; + public static final int HOPELESS_CREATURE_3656 = 3656; + public static final int HOPELESS_CREATURE_3657 = 3657; + public static final int TOLNA_3658 = 3658; + public static final int TOLNA_3659 = 3659; + public static final int TOLNA_3660 = 3660; + public static final int ANGRY_UNICORN_3661 = 3661; + public static final int ANGRY_GIANT_RAT_3662 = 3662; + public static final int ANGRY_GOBLIN_3663 = 3663; + public static final int ANGRY_BEAR_3664 = 3664; + public static final int FEAR_REAPER_3665 = 3665; + public static final int CONFUSION_BEAST_3666 = 3666; + public static final int HOPELESS_CREATURE_3667 = 3667; + public static final int HOPELESS_BEAST = 3668; + public static final int HOPELESS_BEAST_3669 = 3669; + public static final int ODD_OLD_MAN = 3670; + public static final int FORTUNATO = 3671; + public static final int RAM = 3672; + public static final int RAM_3673 = 3673; + public static final int BONES_3674 = 3674; + public static final int VULTURE_3675 = 3675; + public static final int VULTURE_3676 = 3676; + public static final int SINISTER_STRANGER = 3677; + public static final int SINISTER_STRANGER_3678 = 3678; + public static final int VESTRI = 3679; + public static final int ALI_THE_LEAFLET_DROPPER = 3680; + public static final int EASTER_EGG_BIRD = 3681; + public static final int EASTER_BUNNY_3682 = 3682; + public static final int CHILD_3683 = 3683; + public static final int CHILD_3684 = 3684; + public static final int CHILD_3685 = 3685; + public static final int CHILD_3686 = 3686; + public static final int CHILD_3687 = 3687; + public static final int CHILD_3688 = 3688; + public static final int EGG_3689 = 3689; + public static final int EGG_3690 = 3690; + public static final int EGG_3691 = 3691; + public static final int EGG_3692 = 3692; + public static final int EGG_3693 = 3693; + public static final int EGG_3694 = 3694; + public static final int RABBIT_3695 = 3695; + public static final int RABBIT_3696 = 3696; + public static final int RABBIT_3697 = 3697; + public static final int RABBIT_3698 = 3698; + public static final int RABBIT_3699 = 3699; + public static final int RABBIT_3700 = 3700; + public static final int RABBIT_3701 = 3701; + public static final int RABBIT_3702 = 3702; + public static final int RABBIT_3703 = 3703; + public static final int RABBIT_3704 = 3704; + public static final int RABBIT_3705 = 3705; + public static final int RABBIT_3706 = 3706; + public static final int RABBIT_3707 = 3707; + public static final int RABBIT_3708 = 3708; + public static final int RABBIT_3709 = 3709; + public static final int RABBIT_3710 = 3710; + public static final int RABBIT_3711 = 3711; + public static final int RABBIT_3712 = 3712; + public static final int RABBIT_3713 = 3713; + public static final int RABBIT_3714 = 3714; + public static final int RABBIT_3715 = 3715; + public static final int RABBIT_3716 = 3716; + public static final int RABBIT_3717 = 3717; + public static final int RABBIT_3718 = 3718; + public static final int RABBIT_3719 = 3719; + public static final int RABBIT_3720 = 3720; + public static final int RABBIT_3721 = 3721; + public static final int RABBIT_3722 = 3722; + public static final int RABBIT_3723 = 3723; + public static final int RABBIT_3724 = 3724; + public static final int RABBIT_3725 = 3725; + public static final int RABBIT_3726 = 3726; + public static final int SPLATTER = 3727; + public static final int SPLATTER_3728 = 3728; + public static final int SPLATTER_3729 = 3729; + public static final int SPLATTER_3730 = 3730; + public static final int SPLATTER_3731 = 3731; + public static final int SHIFTER = 3732; + public static final int SHIFTER_3733 = 3733; + public static final int SHIFTER_3734 = 3734; + public static final int SHIFTER_3735 = 3735; + public static final int SHIFTER_3736 = 3736; + public static final int SHIFTER_3737 = 3737; + public static final int SHIFTER_3738 = 3738; + public static final int SHIFTER_3739 = 3739; + public static final int SHIFTER_3740 = 3740; + public static final int SHIFTER_3741 = 3741; + public static final int RAVAGER = 3742; + public static final int RAVAGER_3743 = 3743; + public static final int RAVAGER_3744 = 3744; + public static final int RAVAGER_3745 = 3745; + public static final int RAVAGER_3746 = 3746; + public static final int SPINNER = 3747; + public static final int SPINNER_3748 = 3748; + public static final int SPINNER_3749 = 3749; + public static final int SPINNER_3750 = 3750; + public static final int SPINNER_3751 = 3751; + public static final int TORCHER = 3752; + public static final int TORCHER_3753 = 3753; + public static final int TORCHER_3754 = 3754; + public static final int TORCHER_3755 = 3755; + public static final int TORCHER_3756 = 3756; + public static final int TORCHER_3757 = 3757; + public static final int TORCHER_3758 = 3758; + public static final int TORCHER_3759 = 3759; + public static final int TORCHER_3760 = 3760; + public static final int TORCHER_3761 = 3761; + public static final int DEFILER = 3762; + public static final int DEFILER_3763 = 3763; + public static final int DEFILER_3764 = 3764; + public static final int DEFILER_3765 = 3765; + public static final int DEFILER_3766 = 3766; + public static final int DEFILER_3767 = 3767; + public static final int DEFILER_3768 = 3768; + public static final int DEFILER_3769 = 3769; + public static final int DEFILER_3770 = 3770; + public static final int DEFILER_3771 = 3771; + public static final int BRAWLER = 3772; + public static final int BRAWLER_3773 = 3773; + public static final int BRAWLER_3774 = 3774; + public static final int BRAWLER_3775 = 3775; + public static final int BRAWLER_3776 = 3776; + public static final int PORTAL = 3777; + public static final int PORTAL_3778 = 3778; + public static final int PORTAL_3779 = 3779; + public static final int PORTAL_3780 = 3780; + public static final int SQUIRE_3781 = 3781; + public static final int VOID_KNIGHT = 3782; + public static final int VOID_KNIGHT_3783 = 3783; + public static final int VOID_KNIGHT_3784 = 3784; + public static final int VOID_KNIGHT_3785 = 3785; + public static final int VOID_KNIGHT_3786 = 3786; + public static final int VOID_KNIGHT_3787 = 3787; + public static final int VOID_KNIGHT_3788 = 3788; + public static final int VOID_KNIGHT_3789 = 3789; + public static final int SQUIRE_3790 = 3790; + public static final int SQUIRE_3791 = 3791; + public static final int SQUIRE_3792 = 3792; + public static final int SQUIRE_3793 = 3793; + public static final int SQUIRE_3794 = 3794; + public static final int SQUIRE_3795 = 3795; + public static final int SQUIRE_3796 = 3796; + public static final int SQUIRE_3797 = 3797; + public static final int SQUIRE_3798 = 3798; + public static final int SQUIRE_3799 = 3799; + public static final int SQUIRE_3800 = 3800; + public static final int SQUIRE_3801 = 3801; + public static final int SQUIRE_3802 = 3802; + public static final int NULL_3803 = 3803; + public static final int FISHING_SPOT_3804 = 3804; + public static final int POSTIE_PETE = 3805; + public static final int MILLIE_MILLER = 3806; + public static final int GILLIE_GROATS = 3807; + public static final int TORTOISE = 3808; + public static final int CAPTAIN_DALBUR = 3809; + public static final int CAPTAIN_BLEEMADGE = 3810; + public static final int CAPTAIN_ERRDO = 3811; + public static final int CAPTAIN_KLEMFOODLE = 3812; + public static final int CAPTAIN_WIMTO = 3813; + public static final int GNOME_ARCHER = 3814; + public static final int GNOME_DRIVER = 3815; + public static final int GNOME_MAGE = 3816; + public static final int LIEUTENANT_SCHEPBUR = 3817; + public static final int TRAINER_NACKLEPEN = 3818; + public static final int TORTOISE_3819 = 3819; + public static final int NULL_3820 = 3820; + public static final int WISE_OLD_MAN_3821 = 3821; + public static final int HERMAN_CARANOS = 3822; + public static final int FRANKLIN_CARANOS = 3823; + public static final int ARNOLD_LYDSPOR = 3824; + public static final int DEVIN_MENDELBERG = 3825; + public static final int GEORGE_LAXMEISTER = 3826; + public static final int RAMARA_DU_CROISSANT = 3827; + public static final int NULL_3828 = 3828; + public static final int NULL_3829 = 3829; + public static final int KATHY_CORKAT = 3830; + public static final int KATHY_CORKAT_3831 = 3831; + public static final int NULL_3832 = 3832; + public static final int NULL_3833 = 3833; + public static final int NULL_3834 = 3834; + public static final int KALPHITE_QUEEN_3835 = 3835; + public static final int KALPHITE_QUEEN_3836 = 3836; + public static final int DRUNKEN_DWARF_3837 = 3837; + public static final int WISE_OLD_MAN_3838 = 3838; + public static final int WISE_OLD_MAN_3839 = 3839; + public static final int SEA_TROLL = 3840; + public static final int SEA_TROLL_3841 = 3841; + public static final int SEA_TROLL_3842 = 3842; + public static final int SEA_TROLL_3843 = 3843; + public static final int SKELETON_MAGE_3844 = 3844; + public static final int SEA_TROLL_3845 = 3845; + public static final int SEA_TROLL_GENERAL = 3846; + public static final int SEA_TROLL_QUEEN = 3847; + public static final int FISHING_SPOT_3848 = 3848; + public static final int FISHING_SPOT_3849 = 3849; + public static final int SKELETON_MAGE_3850 = 3850; + public static final int SKELETON_MAGE_3851 = 3851; + +} diff --git a/2006Scape Client/src/main/java/StaticObjectList.java b/2006Scape Client/src/main/java/StaticObjectList.java new file mode 100644 index 00000000..b7c4fcaf --- /dev/null +++ b/2006Scape Client/src/main/java/StaticObjectList.java @@ -0,0 +1,14986 @@ + +/** + * Item Constants for 2006scape. + * + * @author Advocatus + * + */ +@SuppressWarnings("unused") +public class StaticObjectList { + + public static final int CRATE = 0; + public static final int CRATE_1 = 1; + public static final int CAVE_ENTRANCE = 2; + public static final int DOOR = 3; + public static final int DOOR_4 = 4; + public static final int BROKEN_MULTICANNON = 5; + public static final int DWARF_MULTICANNON = 6; + public static final int CANNON_BASE = 7; + public static final int CANNON_STAND = 8; + public static final int CANNON_BASE_9 = 9; + public static final int LADDER = 10; + public static final int LADDER_11 = 11; + public static final int ROCK_PILE = 12; + public static final int MUD_PILE = 13; + public static final int RAILING = 14; + public static final int RAILING_15 = 15; + public static final int RAILING_16 = 16; + public static final int RAILING_17 = 17; + public static final int RAILING_18 = 18; + public static final int RAILING_19 = 19; + public static final int RAILING_20 = 20; + public static final int MYSTERIOUS_STATUE = 21; + public static final int DOOR_22 = 22; + public static final int SACKS = 23; + public static final int DOOR_24 = 24; + public static final int CLOCK_SPINDLE = 25; + public static final int CLOCK_SPINDLE_26 = 26; + public static final int CLOCK_SPINDLE_27 = 27; + public static final int CLOCK_SPINDLE_28 = 28; + public static final int CLOCK_SPINDLE_29 = 29; + public static final int CLOCK_SPINDLE_30 = 30; + public static final int CLOCK_SPINDLE_31 = 31; + public static final int CLOCK_SPINDLE_32 = 32; + public static final int LEVER = 33; + public static final int LEVER_34 = 34; + public static final int LEVER_35 = 35; + public static final int LEVER_36 = 36; + public static final int GATE = 37; + public static final int GATE_38 = 38; + public static final int GATE_39 = 39; + public static final int FOOD_TROUGH = 40; + public static final int WALL_PIPE = 41; + public static final int FISHING_SPOT = 42; + public static final int WATER = 43; + public static final int FISHING_SPOT_44 = 44; + public static final int FISHING_SPOT_45 = 45; + public static final int FISHING_SPOT_46 = 46; + public static final int GATE_47 = 47; + public static final int GATE_48 = 48; + public static final int GATE_49 = 49; + public static final int GATE_50 = 50; + public static final int LOOSE_RAILING = 51; + public static final int GATE_52 = 52; + public static final int GATE_53 = 53; + public static final int STAIRS = 54; + public static final int STAIRS_55 = 55; + public static final int STAIRS_56 = 56; + public static final int STAIRS_57 = 57; + public static final int VINE = 58; + public static final int DOOR_59 = 59; + public static final int LADDER_60 = 60; + public static final int CHAOS_ALTAR = 61; + public static final int GIANT_CRYSTAL = 62; + public static final int CRATE_63 = 63; + public static final int CRATE_64 = 64; + public static final int CRATE_WALL = 65; + public static final int CRATE_WALL_66 = 66; + public static final int CRATE_67 = 67; + public static final int BEEHIVE = 68; + public static final int GANGPLANK = 69; + public static final int GANGPLANK_70 = 70; + public static final int LARGE_DOOR = 71; + public static final int LARGE_DOOR_72 = 72; + public static final int LARGE_DOOR_73 = 73; + public static final int LARGE_DOOR_74 = 74; + public static final int CHEST = 75; + public static final int CHEST_76 = 76; + public static final int DOOR_77 = 77; + public static final int DOOR_78 = 78; + public static final int PRISON_DOOR = 79; + public static final int PRISON_DOOR_80 = 80; + public static final int DOOR_81 = 81; + public static final int DOOR_82 = 82; + public static final int NULL = 83; + public static final int NULL_84 = 84; + public static final int NULL_85 = 85; + public static final int LEVER_BRACKET = 86; + public static final int LEVER_87 = 87; + public static final int NULL_88 = 88; + public static final int GATE_89 = 89; + public static final int GATE_90 = 90; + public static final int LEVER_91 = 91; + public static final int DOOR_92 = 92; + public static final int DOOR_93 = 93; + public static final int GATE_94 = 94; + public static final int GATE_95 = 95; + public static final int STAIRS_96 = 96; + public static final int NULL_97 = 97; + public static final int STAIRS_98 = 98; + public static final int DOOR_99 = 99; + public static final int TRAPDOOR = 100; + public static final int LADDER_101 = 101; + public static final int DOOR_102 = 102; + public static final int CLOSED_CHEST = 103; + public static final int OPEN_CHEST = 104; + public static final int TRAPDOOR_105 = 105; + public static final int TRAPDOOR_106 = 106; + public static final int NULL_107 = 107; + public static final int NULL_108 = 108; + public static final int NULL_109 = 109; + public static final int NULL_110 = 110; + public static final int NULL_111 = 111; + public static final int NULL_112 = 112; + public static final int NULL_113 = 113; + public static final int COOKING_RANGE = 114; + public static final int PARTY_BALLOON = 115; + public static final int PARTY_BALLOON_116 = 116; + public static final int PARTY_BALLOON_117 = 117; + public static final int PARTY_BALLOON_118 = 118; + public static final int PARTY_BALLOON_119 = 119; + public static final int PARTY_BALLOON_120 = 120; + public static final int PARTY_BALLOON_121 = 121; + public static final int PARTY_BALLOON_122 = 122; + public static final int PARTY_BALLOON_123 = 123; + public static final int PARTY_BALLOON_124 = 124; + public static final int PARTY_BALLOON_125 = 125; + public static final int PARTY_BALLOON_126 = 126; + public static final int PARTY_BALLOON_127 = 127; + public static final int PARTY_BALLOON_128 = 128; + public static final int PARTY_BALLOON_129 = 129; + public static final int PARTY_BALLOON_130 = 130; + public static final int DOOR_131 = 131; + public static final int LADDER_132 = 132; + public static final int LADDER_133 = 133; + public static final int LARGE_DOOR_134 = 134; + public static final int LARGE_DOOR_135 = 135; + public static final int DOOR_136 = 136; + public static final int NULL_137 = 137; + public static final int NULL_138 = 138; + public static final int NULL_139 = 139; + public static final int NULL_140 = 140; + public static final int NULL_141 = 141; + public static final int NULL_142 = 142; + public static final int NULL_143 = 143; + public static final int NULL_144 = 144; + public static final int NULL_145 = 145; + public static final int NULL_146 = 146; + public static final int NULL_147 = 147; + public static final int NULL_148 = 148; + public static final int NULL_149 = 149; + public static final int NULL_150 = 150; + public static final int NULL_151 = 151; + public static final int COMPOST_HEAP = 152; + public static final int FOUNTAIN = 153; + public static final int OBSTACLE_PIPE = 154; + public static final int BOOKCASE = 155; + public static final int BOOKCASE_156 = 156; + public static final int BOOKCASE_157 = 157; + public static final int WALL = 158; + public static final int WALL_159 = 159; + public static final int LEVER_160 = 160; + public static final int NULL_161 = 161; + public static final int STRANGE_MACHINE = 162; + public static final int STRANGE_MACHINE_163 = 163; + public static final int STRANGE_MACHINE_164 = 164; + public static final int INCINERATOR = 165; + public static final int GATE_166 = 166; + public static final int GATE_167 = 167; + public static final int NULL_168 = 168; + public static final int NULL_169 = 169; + public static final int CLOSED_CHEST_170 = 170; + public static final int OPEN_CHEST_171 = 171; + public static final int CLOSED_CHEST_172 = 172; + public static final int OPEN_CHEST_173 = 173; + public static final int NULL_174 = 174; + public static final int NULL_175 = 175; + public static final int NULL_176 = 176; + public static final int NULL_177 = 177; + public static final int NULL_178 = 178; + public static final int NULL_179 = 179; + public static final int NULL_180 = 180; + public static final int NULL_181 = 181; + public static final int NULL_182 = 182; + public static final int NULL_183 = 183; + public static final int NULL_184 = 184; + public static final int NULL_185 = 185; + public static final int NULL_186 = 186; + public static final int GNOME_GLIDER = 187; + public static final int CRASHED_GLIDER = 188; + public static final int BLURBERRY_BAR = 189; + public static final int GATE_190 = 190; + public static final int NULL_191 = 191; + public static final int NULL_192 = 192; + public static final int NULL_193 = 193; + public static final int HOLLOWED_ROCK = 194; + public static final int LADDER_195 = 195; + public static final int NULL_196 = 196; + public static final int NULL_197 = 197; + public static final int NULL_198 = 198; + public static final int NULL_199 = 199; + public static final int LAMP = 200; + public static final int LAMP_201 = 201; + public static final int CANDLES = 202; + public static final int CANDLES_203 = 203; + public static final int CANDLES_204 = 204; + public static final int NULL_205 = 205; + public static final int NULL_206 = 206; + public static final int NULL_207 = 207; + public static final int CANDLES_208 = 208; + public static final int CHANDELIER = 209; + public static final int ICE_LIGHT = 210; + public static final int CANDLES_211 = 211; + public static final int SAIL = 212; + public static final int NULL_213 = 213; + public static final int NULL_214 = 214; + public static final int NULL_215 = 215; + public static final int NULL_216 = 216; + public static final int NULL_217 = 217; + public static final int SAIL_218 = 218; + public static final int NULL_219 = 219; + public static final int NULL_220 = 220; + public static final int FIGUREHEAD = 221; + public static final int FIGUREHEAD_222 = 222; + public static final int NULL_223 = 223; + public static final int NULL_224 = 224; + public static final int SAIL_225 = 225; + public static final int SAIL_226 = 226; + public static final int PILE_OF_ROPE = 227; + public static final int NULL_228 = 228; + public static final int NULL_229 = 229; + public static final int NULL_230 = 230; + public static final int NULL_231 = 231; + public static final int NULL_232 = 232; + public static final int NULL_233 = 233; + public static final int NULL_234 = 234; + public static final int NULL_235 = 235; + public static final int NULL_236 = 236; + public static final int NULL_237 = 237; + public static final int NULL_238 = 238; + public static final int NULL_239 = 239; + public static final int NULL_240 = 240; + public static final int NULL_241 = 241; + public static final int NULL_242 = 242; + public static final int NULL_243 = 243; + public static final int NULL_244 = 244; + public static final int SHIPS_LADDER = 245; + public static final int SHIPS_LADDER_246 = 246; + public static final int NULL_247 = 247; + public static final int NULL_248 = 248; + public static final int NULL_249 = 249; + public static final int NULL_250 = 250; + public static final int NULL_251 = 251; + public static final int SHIPS_WHEEL = 252; + public static final int NULL_253 = 253; + public static final int FIGUREHEAD_254 = 254; + public static final int WINCH = 255; + public static final int NULL_256 = 256; + public static final int NULL_257 = 257; + public static final int NULL_258 = 258; + public static final int NULL_259 = 259; + public static final int FIGUREHEAD_260 = 260; + public static final int NULL_261 = 261; + public static final int NULL_262 = 262; + public static final int NULL_263 = 263; + public static final int NULL_264 = 264; + public static final int SAIL_265 = 265; + public static final int SAIL_266 = 266; + public static final int SAIL_267 = 267; + public static final int SAIL_268 = 268; + public static final int NULL_269 = 269; + public static final int NULL_270 = 270; + public static final int ANCHOR = 271; + public static final int SHIPS_LADDER_272 = 272; + public static final int SHIPS_LADDER_273 = 273; + public static final int HOISTED_SAIL = 274; + public static final int HOISTED_SAIL_275 = 275; + public static final int HOISTED_SAIL_276 = 276; + public static final int HOISTED_SAIL_277 = 277; + public static final int HOISTED_SAIL_278 = 278; + public static final int HOISTED_SAIL_279 = 279; + public static final int NULL_280 = 280; + public static final int NULL_281 = 281; + public static final int NULL_282 = 282; + public static final int NULL_283 = 283; + public static final int NULL_284 = 284; + public static final int NULL_285 = 285; + public static final int NULL_286 = 286; + public static final int LADDER_287 = 287; + public static final int NULL_288 = 288; + public static final int NULL_289 = 289; + public static final int NULL_290 = 290; + public static final int NULL_291 = 291; + public static final int NULL_292 = 292; + public static final int NULL_293 = 293; + public static final int NULL_294 = 294; + public static final int NULL_295 = 295; + public static final int PLOUGH = 296; + public static final int SCARECROW = 297; + public static final int HAY_BALES = 298; + public static final int HAY_BALES_299 = 299; + public static final int HAYSTACK = 300; + public static final int FOOD_TROUGH_301 = 301; + public static final int EGGS = 302; + public static final int COMPOST = 303; + public static final int HAY_BALE = 304; + public static final int BEEHIVE_305 = 305; + public static final int BROKEN_CART = 306; + public static final int CART = 307; + public static final int CART_308 = 308; + public static final int LOG_PILE = 309; + public static final int MUDPATCH = 310; + public static final int MUDPILE = 311; + public static final int POTATO = 312; + public static final int WHEAT = 313; + public static final int NULL_314 = 314; + public static final int NULL_315 = 315; + public static final int NULL_316 = 316; + public static final int NULL_317 = 317; + public static final int NULL_318 = 318; + public static final int NULL_319 = 319; + public static final int NULL_320 = 320; + public static final int NULL_321 = 321; + public static final int NULL_322 = 322; + public static final int NULL_323 = 323; + public static final int NULL_324 = 324; + public static final int NULL_325 = 325; + public static final int NULL_326 = 326; + public static final int BROKEN_CART_WHEEL = 327; + public static final int NULL_328 = 328; + public static final int NULL_329 = 329; + public static final int NULL_330 = 330; + public static final int NULL_331 = 331; + public static final int NULL_332 = 332; + public static final int NULL_333 = 333; + public static final int NULL_334 = 334; + public static final int NULL_335 = 335; + public static final int NULL_336 = 336; + public static final int NULL_337 = 337; + public static final int NULL_338 = 338; + public static final int NULL_339 = 339; + public static final int NULL_340 = 340; + public static final int NULL_341 = 341; + public static final int NULL_342 = 342; + public static final int NULL_343 = 343; + public static final int NULL_344 = 344; + public static final int NULL_345 = 345; + public static final int CABINET = 346; + public static final int CABINET_347 = 347; + public static final int DRAWERS = 348; + public static final int DRAWERS_349 = 349; + public static final int DRAWERS_350 = 350; + public static final int DRAWERS_351 = 351; + public static final int DRAWERS_352 = 352; + public static final int DRAWERS_353 = 353; + public static final int CRATE_354 = 354; + public static final int CRATE_355 = 355; + public static final int CRATE_356 = 356; + public static final int CRATE_357 = 357; + public static final int CRATE_358 = 358; + public static final int BOXES = 359; + public static final int BOXES_360 = 360; + public static final int BOXES_361 = 361; + public static final int BARREL = 362; + public static final int BARREL_363 = 363; + public static final int BARREL_364 = 364; + public static final int SACKS_365 = 365; + public static final int CRATE_366 = 366; + public static final int CUPBOARD = 367; + public static final int CUPBOARD_368 = 368; + public static final int LARGE_CUPBOARD = 369; + public static final int OPEN_CUPBOARD = 370; + public static final int CUPBOARD_371 = 371; + public static final int LARGE_OPEN_CUPBOARD = 372; + public static final int DRESSER = 373; + public static final int HAT_STAND = 374; + public static final int CLOSED_CHEST_375 = 375; + public static final int CLOSED_CHEST_376 = 376; + public static final int CLOSED_CHEST_377 = 377; + public static final int OPEN_CHEST_378 = 378; + public static final int OPEN_CHEST_379 = 379; + public static final int BOOKCASE_380 = 380; + public static final int BOOKCASE_381 = 381; + public static final int BASKET = 382; + public static final int BASKET_383 = 383; + public static final int BASKET_384 = 384; + public static final int BASKET_385 = 385; + public static final int LARGE_URN = 386; + public static final int BOOKSHELVES = 387; + public static final int WARDROBE = 388; + public static final int WARDROBE_389 = 389; + public static final int WARDROBE_390 = 390; + public static final int NULL_391 = 391; + public static final int FULL_FISHING_NET = 392; + public static final int BOOKCASE_393 = 393; + public static final int BOOKCASE_394 = 394; + public static final int POT = 395; + public static final int POTS = 396; + public static final int CABINET_397 = 397; + public static final int COFFIN = 398; + public static final int COFFIN_399 = 399; + public static final int SMALL_GRAVESTONE = 400; + public static final int GRAVE_MARKER = 401; + public static final int TOMBSTONE = 402; + public static final int LARGE_GRAVE_STONE = 403; + public static final int GRAVESTONE = 404; + public static final int GRAVESTONE_405 = 405; + public static final int LARGE_GRAVE = 406; + public static final int HENGE = 407; + public static final int HENGE_408 = 408; + public static final int ALTAR = 409; + public static final int ALTAR_OF_GUTHIX = 410; + public static final int CHAOS_ALTAR_411 = 411; + public static final int CHAOS_ALTAR_412 = 412; + public static final int DOLMEN = 413; + public static final int COFFIN_414 = 414; + public static final int COFFIN_415 = 415; + public static final int CHURCH_ORGAN = 416; + public static final int BED = 417; + public static final int BED_418 = 418; + public static final int BED_419 = 419; + public static final int BED_420 = 420; + public static final int BED_421 = 421; + public static final int BED_422 = 422; + public static final int BED_423 = 423; + public static final int BED_424 = 424; + public static final int BED_425 = 425; + public static final int BED_426 = 426; + public static final int BED_427 = 427; + public static final int BED_428 = 428; + public static final int BED_429 = 429; + public static final int HAMMOCK = 430; + public static final int CHAISE_LOUNGE = 431; + public static final int BED_432 = 432; + public static final int BED_433 = 433; + public static final int BED_434 = 434; + public static final int BED_435 = 435; + public static final int ROCK = 436; + public static final int ROCK_437 = 437; + public static final int ROCK_438 = 438; + public static final int ROCK_439 = 439; + public static final int ROCK_440 = 440; + public static final int ROCK_441 = 441; + public static final int ROCK_442 = 442; + public static final int NULL_443 = 443; + public static final int BOULDER = 444; + public static final int BOULDER_445 = 445; + public static final int STONES = 446; + public static final int STONES_447 = 447; + public static final int NULL_448 = 448; + public static final int OVERHANGING_ROCK = 449; + public static final int ROCKS = 450; + public static final int ROCKS_451 = 451; + public static final int ROCKS_452 = 452; + public static final int ROCKS_453 = 453; + public static final int CAVE_ROCKS = 454; + public static final int CAVE_ROCKS_455 = 455; + public static final int NULL_456 = 456; + public static final int NULL_457 = 457; + public static final int NULL_458 = 458; + public static final int NULL_459 = 459; + public static final int NULL_460 = 460; + public static final int NULL_461 = 461; + public static final int MOSSY_ROCK = 462; + public static final int MOSSY_ROCK_463 = 463; + public static final int COLUMN = 464; + public static final int COLUMN_465 = 465; + public static final int COLUMN_466 = 466; + public static final int STALACTITE = 467; + public static final int STALAGMITES = 468; + public static final int STALACTITE_469 = 469; + public static final int NULL_470 = 470; + public static final int ROCKSLIDE = 471; + public static final int ROCKSLIDE_472 = 472; + public static final int ROCKSLIDE_473 = 473; + public static final int ROCKSLIDE_474 = 474; + public static final int NULL_475 = 475; + public static final int NULL_476 = 476; + public static final int MOSSY_ROCK_477 = 477; + public static final int MOSSY_ROCK_478 = 478; + public static final int ROCKSLIDE_479 = 479; + public static final int ROCKSLIDE_480 = 480; + public static final int ROCKSLIDE_481 = 481; + public static final int ROCKSLIDE_482 = 482; + public static final int ROCKSLIDE_483 = 483; + public static final int ROCKSLIDE_484 = 484; + public static final int ROCKSLIDE_485 = 485; + public static final int ROCKSLIDE_486 = 486; + public static final int NULL_487 = 487; + public static final int NULL_488 = 488; + public static final int NULL_489 = 489; + public static final int NULL_490 = 490; + public static final int NULL_491 = 491; + public static final int ROCKS_492 = 492; + public static final int NULL_493 = 493; + public static final int NULL_494 = 494; + public static final int NULL_495 = 495; + public static final int NULL_496 = 496; + public static final int NULL_497 = 497; + public static final int NULL_498 = 498; + public static final int NULL_499 = 499; + public static final int NULL_500 = 500; + public static final int NULL_501 = 501; + public static final int NULL_502 = 502; + public static final int NULL_503 = 503; + public static final int NULL_504 = 504; + public static final int NULL_505 = 505; + public static final int NULL_506 = 506; + public static final int ROCKSLIDE_507 = 507; + public static final int ROCKSLIDE_508 = 508; + public static final int ROCKSLIDE_509 = 509; + public static final int ROCKSLIDE_510 = 510; + public static final int ROCKS_511 = 511; + public static final int NULL_512 = 512; + public static final int NULL_513 = 513; + public static final int NULL_514 = 514; + public static final int NULL_515 = 515; + public static final int ICE_COLUMN = 516; + public static final int ROCKSLIDE_517 = 517; + public static final int ROCKSLIDE_518 = 518; + public static final int ROCKSLIDE_519 = 519; + public static final int ROCKSLIDE_520 = 520; + public static final int NULL_521 = 521; + public static final int NULL_522 = 522; + public static final int COLUMN_523 = 523; + public static final int COLUMN_524 = 524; + public static final int COLUMN_525 = 525; + public static final int COLUMN_526 = 526; + public static final int COLUMN_527 = 527; + public static final int COLUMN_528 = 528; + public static final int STALACTITE_529 = 529; + public static final int STALAGMITES_530 = 530; + public static final int STALACTITE_531 = 531; + public static final int STALAGMITES_532 = 532; + public static final int STALACTITE_533 = 533; + public static final int STALAGMITE = 534; + public static final int NULL_535 = 535; + public static final int NULL_536 = 536; + public static final int NULL_537 = 537; + public static final int NULL_538 = 538; + public static final int STALACTITE_539 = 539; + public static final int NULL_540 = 540; + public static final int STALAGMITE_541 = 541; + public static final int STALAGMITE_542 = 542; + public static final int STALACTITE_543 = 543; + public static final int STALAGMITE_544 = 544; + public static final int BOULDER_545 = 545; + public static final int EERIE_STATUE = 546; + public static final int NULL_547 = 547; + public static final int ROCKSLIDE_548 = 548; + public static final int ROCKSLIDE_549 = 549; + public static final int ROCKSLIDE_550 = 550; + public static final int ROCKSLIDE_551 = 551; + public static final int NULL_552 = 552; + public static final int NULL_553 = 553; + public static final int ICICLE = 554; + public static final int ICICLE_555 = 555; + public static final int ICICLE_556 = 556; + public static final int ICICLE_557 = 557; + public static final int CAVE_ENTRANCE_558 = 558; + public static final int NULL_559 = 559; + public static final int NULL_560 = 560; + public static final int NULL_561 = 561; + public static final int STATUE_OF_A_WARRIOR = 562; + public static final int STATUE_OF_A_KING = 563; + public static final int STATUE_OF_A_QUEEN = 564; + public static final int STATUE_OF_A_KING_565 = 565; + public static final int STATUE_OF_A_WARRIOR_566 = 566; + public static final int TRIBAL_STATUE = 567; + public static final int DWARF_STATUE = 568; + public static final int GNOME_STATUE = 569; + public static final int GNOME_STATUE_570 = 570; + public static final int GNOME_STATUE_571 = 571; + public static final int GNOME_STATUE_572 = 572; + public static final int GNOME_STATUE_573 = 573; + public static final int STATUE = 574; + public static final int STATUE_575 = 575; + public static final int STATUE_576 = 576; + public static final int NULL_577 = 577; + public static final int NULL_578 = 578; + public static final int STATUE_579 = 579; + public static final int STATUE_580 = 580; + public static final int STATUE_581 = 581; + public static final int STATUE_582 = 582; + public static final int VASE = 583; + public static final int STATUE_584 = 584; + public static final int STATUE_OF_SARADOMIN = 585; + public static final int STATUE_OF_SARADOMIN_586 = 586; + public static final int STATUE_OF_ZAMORAK = 587; + public static final int STATUE_STEPS = 588; + public static final int CRYSTAL_BALL = 589; + public static final int BANK_TABLE = 590; + public static final int BANK_TABLE_591 = 591; + public static final int BATHROOM_TABLE = 592; + public static final int TABLE = 593; + public static final int TABLE_594 = 594; + public static final int TABLE_595 = 595; + public static final int TABLE_596 = 596; + public static final int TABLE_597 = 597; + public static final int TABLE_598 = 598; + public static final int TABLE_599 = 599; + public static final int TABLE_600 = 600; + public static final int TABLE_601 = 601; + public static final int TABLE_602 = 602; + public static final int TABLE_603 = 603; + public static final int TABLE_604 = 604; + public static final int TABLE_605 = 605; + public static final int TABLE_606 = 606; + public static final int TABLE_607 = 607; + public static final int STUDY_DESK = 608; + public static final int WORKBENCH = 609; + public static final int WORKBENCH_610 = 610; + public static final int PICNIC_BENCH = 611; + public static final int COUNTER = 612; + public static final int TABLE_613 = 613; + public static final int TABLE_614 = 614; + public static final int SMALL_TABLE = 615; + public static final int TABLE_616 = 616; + public static final int COUNTER_617 = 617; + public static final int CHEMISTRY_TABLE = 618; + public static final int CHEMISTRY_TABLE_619 = 619; + public static final int TABLE_620 = 620; + public static final int TABLE_621 = 621; + public static final int TABLE_622 = 622; + public static final int TABLE_623 = 623; + public static final int TABLE_624 = 624; + public static final int NULL_625 = 625; + public static final int NULL_626 = 626; + public static final int NULL_627 = 627; + public static final int SILVER_STALL = 628; + public static final int SILK_STALL = 629; + public static final int BAKERY_STALL = 630; + public static final int GEM_STALL = 631; + public static final int FUR_STALL = 632; + public static final int SPICE_STALL = 633; + public static final int MARKET_STALL = 634; + public static final int TEA_STALL = 635; + public static final int BUFFERS = 636; + public static final int MINE_CART = 637; + public static final int NULL_638 = 638; + public static final int NULL_639 = 639; + public static final int NULL_640 = 640; + public static final int NULL_641 = 641; + public static final int NULL_642 = 642; + public static final int NULL_643 = 643; + public static final int NULL_644 = 644; + public static final int NULL_645 = 645; + public static final int NULL_646 = 646; + public static final int RACK = 647; + public static final int STOCKS = 648; + public static final int GALLOWS = 649; + public static final int NULL_650 = 650; + public static final int BURIED_SKELETON = 651; + public static final int NULL_652 = 652; + public static final int NULL_653 = 653; + public static final int NULL_654 = 654; + public static final int NULL_655 = 655; + public static final int NULL_656 = 656; + public static final int NULL_657 = 657; + public static final int PILE_OF_SKULLS = 658; + public static final int CHARRED_BONES = 659; + public static final int CORPSE = 660; + public static final int CORPSE_661 = 661; + public static final int CORPSE_662 = 662; + public static final int CORPSE_663 = 663; + public static final int CORPSE_664 = 664; + public static final int CORPSE_665 = 665; + public static final int CORPSE_666 = 666; + public static final int CORPSE_667 = 667; + public static final int PILE_OF_SKULLS_668 = 668; + public static final int NULL_669 = 669; + public static final int NULL_670 = 670; + public static final int CATAPULT = 671; + public static final int BROKEN_BARREL = 672; + public static final int NULL_673 = 673; + public static final int NULL_674 = 674; + public static final int NULL_675 = 675; + public static final int NULL_676 = 676; + public static final int NULL_677 = 677; + public static final int FISHING_SPOT_678 = 678; + public static final int FISHING_SPOT_679 = 679; + public static final int PIANO = 680; + public static final int PIANO_681 = 681; + public static final int PIANO_STOOL = 682; + public static final int GRANDFATHER_CLOCK = 683; + public static final int SWAMP_BUBBLES = 684; + public static final int WEATHER_VANE = 685; + public static final int NULL_686 = 686; + public static final int NULL_687 = 687; + public static final int NULL_688 = 688; + public static final int MIRROR = 689; + public static final int BATH_SCREEN = 690; + public static final int SCREEN = 691; + public static final int CAULDRON = 692; + public static final int BROOM = 693; + public static final int CLOTHES_MODEL = 694; + public static final int CLOTHES_MODEL_695 = 695; + public static final int HOLE = 696; + public static final int ANIMAL_SKULL = 697; + public static final int BIG_EGG = 698; + public static final int CARCASS = 699; + public static final int CURVED_BONE = 700; + public static final int CURVED_BONE_701 = 701; + public static final int LARGE_BONE = 702; + public static final int LARGE_BONE_703 = 703; + public static final int NULL_704 = 704; + public static final int NULL_705 = 705; + public static final int NULL_706 = 706; + public static final int BELL = 707; + public static final int BELL_MECHANISM = 708; + public static final int BELL_ROPE = 709; + public static final int HOLE_IN_WALL = 710; + public static final int CRYSTAL_CLUSTER = 711; + public static final int CRYSTAL_CLUSTER_712 = 712; + public static final int CRYSTAL_CLUSTER_713 = 713; + public static final int FIRE_REMAINS = 714; + public static final int NULL_715 = 715; + public static final int NULL_716 = 716; + public static final int NULL_717 = 717; + public static final int BARREL_718 = 718; + public static final int NULL_719 = 719; + public static final int NULL_720 = 720; + public static final int NULL_721 = 721; + public static final int NULL_722 = 722; + public static final int BURIED_SKELETON_723 = 723; + public static final int STANDING_TORCH = 724; + public static final int NULL_725 = 725; + public static final int NULL_726 = 726; + public static final int CAVE_WEB = 727; + public static final int NULL_728 = 728; + public static final int NULL_729 = 729; + public static final int NULL_730 = 730; + public static final int NULL_731 = 731; + public static final int NULL_732 = 732; + public static final int WEB = 733; + public static final int SLASHED_WEB = 734; + public static final int SWAMP_BUBBLES_735 = 735; + public static final int ANIMAL_SKULL_736 = 736; + public static final int CARCASS_737 = 737; + public static final int NULL_738 = 738; + public static final int NULL_739 = 739; + public static final int NULL_740 = 740; + public static final int BROKEN_LADDER = 741; + public static final int NULL_742 = 742; + public static final int LADDER_743 = 743; + public static final int SCAFFOLD = 744; + public static final int NULL_745 = 745; + public static final int NULL_746 = 746; + public static final int NULL_747 = 747; + public static final int CAVE_ENTRANCE_748 = 748; + public static final int NULL_749 = 749; + public static final int NULL_750 = 750; + public static final int NULL_751 = 751; + public static final int NULL_752 = 752; + public static final int NULL_753 = 753; + public static final int NULL_754 = 754; + public static final int NULL_755 = 755; + public static final int NULL_756 = 756; + public static final int NULL_757 = 757; + public static final int NULL_758 = 758; + public static final int NULL_759 = 759; + public static final int NULL_760 = 760; + public static final int NULL_761 = 761; + public static final int NULL_762 = 762; + public static final int NULL_763 = 763; + public static final int NULL_764 = 764; + public static final int NULL_765 = 765; + public static final int NULL_766 = 766; + public static final int NULL_767 = 767; + public static final int NULL_768 = 768; + public static final int NULL_769 = 769; + public static final int NULL_770 = 770; + public static final int ICON = 771; + public static final int NULL_772 = 772; + public static final int NULL_773 = 773; + public static final int NULL_774 = 774; + public static final int NULL_775 = 775; + public static final int NULL_776 = 776; + public static final int NULL_777 = 777; + public static final int NULL_778 = 778; + public static final int BAMBOO_DOOR = 779; + public static final int NULL_780 = 780; + public static final int NULL_781 = 781; + public static final int NULL_782 = 782; + public static final int NULL_783 = 783; + public static final int NULL_784 = 784; + public static final int NULL_785 = 785; + public static final int NULL_786 = 786; + public static final int LOOM = 787; + public static final int CITY_GATE = 788; + public static final int CITY_GATE_789 = 789; + public static final int NULL_790 = 790; + public static final int NULL_791 = 791; + public static final int NULL_792 = 792; + public static final int NULL_793 = 793; + public static final int NULL_794 = 794; + public static final int NULL_795 = 795; + public static final int NULL_796 = 796; + public static final int NULL_797 = 797; + public static final int NULL_798 = 798; + public static final int NULL_799 = 799; + public static final int NULL_800 = 800; + public static final int NULL_801 = 801; + public static final int NULL_802 = 802; + public static final int NULL_803 = 803; + public static final int NULL_804 = 804; + public static final int NULL_805 = 805; + public static final int NULL_806 = 806; + public static final int NULL_807 = 807; + public static final int NULL_808 = 808; + public static final int NULL_809 = 809; + public static final int NULL_810 = 810; + public static final int NULL_811 = 811; + public static final int NULL_812 = 812; + public static final int NULL_813 = 813; + public static final int NULL_814 = 814; + public static final int NULL_815 = 815; + public static final int NULL_816 = 816; + public static final int SUIT_OF_ARMOUR = 817; + public static final int SUIT_OF_ARMOUR_818 = 818; + public static final int SUIT_OF_ARMOUR_819 = 819; + public static final int SUIT_OF_ARMOUR_820 = 820; + public static final int CANNON = 821; + public static final int CANNONBALLS = 822; + public static final int DUMMY = 823; + public static final int WOODEN_DEFENCE = 824; + public static final int NULL_825 = 825; + public static final int NULL_826 = 826; + public static final int NULL_827 = 827; + public static final int NULL_828 = 828; + public static final int TARGET = 829; + public static final int NULL_830 = 830; + public static final int NULL_831 = 831; + public static final int NULL_832 = 832; + public static final int NULL_833 = 833; + public static final int SWORD_CABINET = 834; + public static final int SWORD_CABINET_835 = 835; + public static final int BOW_CABINET = 836; + public static final int AXE_CABINET = 837; + public static final int AXE_CABINET_838 = 838; + public static final int BOW_CABINET_839 = 839; + public static final int NULL_840 = 840; + public static final int NULL_841 = 841; + public static final int NULL_842 = 842; + public static final int NULL_843 = 843; + public static final int NULL_844 = 844; + public static final int NULL_845 = 845; + public static final int NULL_846 = 846; + public static final int NULL_847 = 847; + public static final int SPEAR_WALL = 848; + public static final int SPEAR_WALL_849 = 849; + public static final int NULL_850 = 850; + public static final int STANDARD = 851; + public static final int STANDARD_852 = 852; + public static final int STANDARD_853 = 853; + public static final int STANDARD_854 = 854; + public static final int STANDARD_855 = 855; + public static final int STANDARD_856 = 856; + public static final int STANDARD_857 = 857; + public static final int STANDARD_858 = 858; + public static final int STANDARD_859 = 859; + public static final int FLAGPOLE = 860; + public static final int FLAGPOLE_861 = 861; + public static final int FLAGPOLE_862 = 862; + public static final int STANDARD_863 = 863; + public static final int STANDARD_864 = 864; + public static final int STANDARD_865 = 865; + public static final int STANDARD_866 = 866; + public static final int STANDARD_867 = 867; + public static final int STANDARD_868 = 868; + public static final int FLAGPOLE_869 = 869; + public static final int TOTEM_POLE = 870; + public static final int BATH_PIPES = 871; + public static final int LARGE_SEWER_PIPE = 872; + public static final int SINK = 873; + public static final int SINK_874 = 874; + public static final int BATH = 875; + public static final int NULL_876 = 876; + public static final int NULL_877 = 877; + public static final int WELL = 878; + public static final int FOUNTAIN_879 = 879; + public static final int FOUNTAIN_880 = 880; + public static final int MANHOLE = 881; + public static final int MANHOLE_882 = 882; + public static final int MANHOLE_COVER = 883; + public static final int WELL_884 = 884; + public static final int BAR_PUMPS = 885; + public static final int BAR_PUMPS_886 = 886; + public static final int PORTRAIT = 887; + public static final int PAINTING = 888; + public static final int PAINTING_889 = 889; + public static final int PORTRAIT_890 = 890; + public static final int LANDSCAPE = 891; + public static final int PAINTING_892 = 892; + public static final int PAINTING_893 = 893; + public static final int LANDSCAPE_894 = 894; + public static final int PAINTING_895 = 895; + public static final int STAR_CHART = 896; + public static final int STAR_CHART_897 = 897; + public static final int CROSS = 898; + public static final int HANGING_BANNER = 899; + public static final int HANGING_BANNER_900 = 900; + public static final int HANGING_BANNER_901 = 901; + public static final int HANGING_BANNER_902 = 902; + public static final int UNICORNS_HEAD = 903; + public static final int DRAGONS_HEAD = 904; + public static final int DRAGONS_HEAD_905 = 905; + public static final int BULLS_HEAD = 906; + public static final int CHARMS = 907; + public static final int MAGICAL_SYMBOL = 908; + public static final int PLAQUE = 909; + public static final int EVIL_EYE_DECORATION = 910; + public static final int GLYPHS = 911; + public static final int NULL_912 = 912; + public static final int NULL_913 = 913; + public static final int NULL_914 = 914; + public static final int FONT = 915; + public static final int NULL_916 = 916; + public static final int NULL_917 = 917; + public static final int NULL_918 = 918; + public static final int NULL_919 = 919; + public static final int NULL_920 = 920; + public static final int NULL_921 = 921; + public static final int NULL_922 = 922; + public static final int NULL_923 = 923; + public static final int NULL_924 = 924; + public static final int NULL_925 = 925; + public static final int NULL_926 = 926; + public static final int NULL_927 = 927; + public static final int NULL_928 = 928; + public static final int NULL_929 = 929; + public static final int NULL_930 = 930; + public static final int NULL_931 = 931; + public static final int NULL_932 = 932; + public static final int NULL_933 = 933; + public static final int NULL_934 = 934; + public static final int NULL_935 = 935; + public static final int NULL_936 = 936; + public static final int NULL_937 = 937; + public static final int NULL_938 = 938; + public static final int NULL_939 = 939; + public static final int NULL_940 = 940; + public static final int NULL_941 = 941; + public static final int NULL_942 = 942; + public static final int NULL_943 = 943; + public static final int NULL_944 = 944; + public static final int NULL_945 = 945; + public static final int NULL_946 = 946; + public static final int NULL_947 = 947; + public static final int NULL_948 = 948; + public static final int NULL_949 = 949; + public static final int NULL_950 = 950; + public static final int NULL_951 = 951; + public static final int NULL_952 = 952; + public static final int NULL_953 = 953; + public static final int DOORMAT = 954; + public static final int SPOOKY_PICTURE = 955; + public static final int NULL_956 = 956; + public static final int NULL_957 = 957; + public static final int NULL_958 = 958; + public static final int CLOCK_FACE = 959; + public static final int CLOCK_FACE_960 = 960; + public static final int BANK_NOTICE_BOARD = 961; + public static final int NOTICEBOARD = 962; + public static final int CLOTHES_EQUIPMENT = 963; + public static final int STUFFED_SWORDFISH = 964; + public static final int STUFFED_SWORDFISH_965 = 965; + public static final int JOLLY_ROGER = 966; + public static final int HANGING_WHEEL = 967; + public static final int PIRATE_MAP = 968; + public static final int FISHING_NET = 969; + public static final int PLAQUE_970 = 970; + public static final int BOW_AND_ARROW = 971; + public static final int ARROWS = 972; + public static final int JAVELIN = 973; + public static final int STUDDED_LEATHER = 974; + public static final int DRAGONHIDE_LEATHER = 975; + public static final int NULL_976 = 976; + public static final int NULL_977 = 977; + public static final int NULL_978 = 978; + public static final int NULL_979 = 979; + public static final int NULL_980 = 980; + public static final int NULL_981 = 981; + public static final int NULL_982 = 982; + public static final int NULL_983 = 983; + public static final int NULL_984 = 984; + public static final int NULL_985 = 985; + public static final int NULL_986 = 986; + public static final int NULL_987 = 987; + public static final int NULL_988 = 988; + public static final int NULL_989 = 989; + public static final int NULL_990 = 990; + public static final int NULL_991 = 991; + public static final int NULL_992 = 992; + public static final int STILE = 993; + public static final int NULL_994 = 994; + public static final int NULL_995 = 995; + public static final int NULL_996 = 996; + public static final int NULL_997 = 997; + public static final int NULL_998 = 998; + public static final int NULL_999 = 999; + public static final int NULL_1000 = 1000; + public static final int NULL_1001 = 1001; + public static final int NULL_1002 = 1002; + public static final int NULL_1003 = 1003; + public static final int BROKEN_RAILING = 1004; + public static final int BROKEN_RAILING_1005 = 1005; + public static final int BROKEN_RAILING_1006 = 1006; + public static final int NULL_1007 = 1007; + public static final int NULL_1008 = 1008; + public static final int NULL_1009 = 1009; + public static final int SHELVES = 1010; + public static final int SHELVES_1011 = 1011; + public static final int SHELVES_1012 = 1012; + public static final int COOKING_SHELVES = 1013; + public static final int SHELVES_1014 = 1014; + public static final int SHELVES_1015 = 1015; + public static final int SHELVES_1016 = 1016; + public static final int SHELVES_1017 = 1017; + public static final int SHELVES_1018 = 1018; + public static final int SHELF = 1019; + public static final int SHELF_1020 = 1020; + public static final int SHELF_1021 = 1021; + public static final int NULL_1022 = 1022; + public static final int NULL_1023 = 1023; + public static final int SHELVES_1024 = 1024; + public static final int CLOTHING_SHELVES = 1025; + public static final int NULL_1026 = 1026; + public static final int TANNING_LINE = 1027; + public static final int VAT = 1028; + public static final int VAT_1029 = 1029; + public static final int MANGLE = 1030; + public static final int MANGLE_1031 = 1031; + public static final int DANGER_SIGN = 1032; + public static final int SIGNPOST = 1033; + public static final int SIGNPOST_1034 = 1034; + public static final int SIGNPOST_1035 = 1035; + public static final int NULL_1036 = 1036; + public static final int NULL_1037 = 1037; + public static final int NULL_1038 = 1038; + public static final int NULL_1039 = 1039; + public static final int NULL_1040 = 1040; + public static final int NULL_1041 = 1041; + public static final int NULL_1042 = 1042; + public static final int NULL_1043 = 1043; + public static final int NULL_1044 = 1044; + public static final int NULL_1045 = 1045; + public static final int NULL_1046 = 1046; + public static final int NULL_1047 = 1047; + public static final int NULL_1048 = 1048; + public static final int NULL_1049 = 1049; + public static final int NULL_1050 = 1050; + public static final int NULL_1051 = 1051; + public static final int NULL_1052 = 1052; + public static final int NULL_1053 = 1053; + public static final int NULL_1054 = 1054; + public static final int NULL_1055 = 1055; + public static final int NULL_1056 = 1056; + public static final int SIGN = 1057; + public static final int NULL_1058 = 1058; + public static final int NULL_1059 = 1059; + public static final int NULL_1060 = 1060; + public static final int NULL_1061 = 1061; + public static final int NULL_1062 = 1062; + public static final int NULL_1063 = 1063; + public static final int NULL_1064 = 1064; + public static final int NULL_1065 = 1065; + public static final int NULL_1066 = 1066; + public static final int NULL_1067 = 1067; + public static final int SIGN_1068 = 1068; + public static final int SIGN_1069 = 1069; + public static final int SIGN_1070 = 1070; + public static final int SIGN_1071 = 1071; + public static final int SIGN_1072 = 1072; + public static final int SIGN_1073 = 1073; + public static final int SIGN_1074 = 1074; + public static final int SIGN_1075 = 1075; + public static final int SIGN_1076 = 1076; + public static final int SIGN_1077 = 1077; + public static final int SIGN_1078 = 1078; + public static final int SIGNPOST_1079 = 1079; + public static final int SIGNPOST_1080 = 1080; + public static final int SIGNPOST_1081 = 1081; + public static final int SIGNPOST_1082 = 1082; + public static final int SIGNPOST_1083 = 1083; + public static final int SIGNPOST_1084 = 1084; + public static final int SIGNPOST_1085 = 1085; + public static final int SIGNPOST_1086 = 1086; + public static final int SIGNPOST_1087 = 1087; + public static final int CHAIR = 1088; + public static final int SMASHED_CHAIR = 1089; + public static final int CHAIR_1090 = 1090; + public static final int CHAIR_1091 = 1091; + public static final int CHAIR_1092 = 1092; + public static final int CHAIR_1093 = 1093; + public static final int CHAIR_1094 = 1094; + public static final int STOOL = 1095; + public static final int ROCKING_CHAIR = 1096; + public static final int THRONE = 1097; + public static final int THRONE_1098 = 1098; + public static final int THRONE_1099 = 1099; + public static final int BARSTOOL = 1100; + public static final int CHAIR_1101 = 1101; + public static final int STOOL_1102 = 1102; + public static final int STOOL_1103 = 1103; + public static final int BENCH = 1104; + public static final int THRONE_1105 = 1105; + public static final int BENCH_1106 = 1106; + public static final int NULL_1107 = 1107; + public static final int THRONE_1108 = 1108; + public static final int THRONE_1109 = 1109; + public static final int CHAIR_1110 = 1110; + public static final int CHAIR_1111 = 1111; + public static final int PEW = 1112; + public static final int STOOL_1113 = 1113; + public static final int ICE_THRONE = 1114; + public static final int CHAIR_1115 = 1115; + public static final int HEDGE = 1116; + public static final int HEDGE_1117 = 1117; + public static final int BUSH = 1118; + public static final int BUSH_1119 = 1119; + public static final int BUSH_1120 = 1120; + public static final int BUSH_1121 = 1121; + public static final int BUSH_1122 = 1122; + public static final int BUSH_1123 = 1123; + public static final int BUSH_1124 = 1124; + public static final int BUSH_1125 = 1125; + public static final int ROSEBUSH = 1126; + public static final int NULL_1127 = 1127; + public static final int NULL_1128 = 1128; + public static final int NULL_1129 = 1129; + public static final int NULL_1130 = 1130; + public static final int NULL_1131 = 1131; + public static final int NULL_1132 = 1132; + public static final int NULL_1133 = 1133; + public static final int NULL_1134 = 1134; + public static final int NULL_1135 = 1135; + public static final int NULL_1136 = 1136; + public static final int NULL_1137 = 1137; + public static final int NULL_1138 = 1138; + public static final int NULL_1139 = 1139; + public static final int NULL_1140 = 1140; + public static final int NULL_1141 = 1141; + public static final int NULL_1142 = 1142; + public static final int NULL_1143 = 1143; + public static final int BUSH_1144 = 1144; + public static final int BUSH_1145 = 1145; + public static final int BUSH_1146 = 1146; + public static final int FAIRY_HOUSE = 1147; + public static final int FAIRY_HOUSE_1148 = 1148; + public static final int FAIRY_HOUSE_1149 = 1149; + public static final int FAIRY_BANK = 1150; + public static final int FAIRY_MARKET_STALL = 1151; + public static final int POTTED_FERN = 1152; + public static final int POTTED_FERN_1153 = 1153; + public static final int POTTED_FERN_1154 = 1154; + public static final int POTTED_FERN_1155 = 1155; + public static final int POTTED_FLOWER = 1156; + public static final int POTTED_FLOWER_1157 = 1157; + public static final int POTTED_PLANT = 1158; + public static final int NULL_1159 = 1159; + public static final int POTTED_PLANT_1160 = 1160; + public static final int CABBAGE = 1161; + public static final int BULLRUSHES = 1162; + public static final int MUSHROOM = 1163; + public static final int MUSHROOM_1164 = 1164; + public static final int MUSHROOM_1165 = 1165; + public static final int MUSHROOMS = 1166; + public static final int MUSHROOM_1167 = 1167; + public static final int MUSHROOMS_1168 = 1168; + public static final int MUSHROOM_1169 = 1169; + public static final int FUNGUS = 1170; + public static final int FUNGUS_1171 = 1171; + public static final int FUNGUS_1172 = 1172; + public static final int SMALL_FERN = 1173; + public static final int THISTLE = 1174; + public static final int WATERLILY = 1175; + public static final int WATERLILY_1176 = 1176; + public static final int WATERLILY_1177 = 1177; + public static final int HEATHER = 1178; + public static final int HEATHER_1179 = 1179; + public static final int HEATHER_1180 = 1180; + public static final int NETTLES = 1181; + public static final int NULL_1182 = 1182; + public static final int NULL_1183 = 1183; + public static final int CREEPING_PLANT = 1184; + public static final int ROCKERY = 1185; + public static final int CURLING_PLANT = 1186; + public static final int FLOWER = 1187; + public static final int FLOWER_1188 = 1188; + public static final int DAISIES = 1189; + public static final int SUNFLOWER = 1190; + public static final int SUNFLOWERS = 1191; + public static final int FLOWERS = 1192; + public static final int FLOWERS_1193 = 1193; + public static final int TULIPS = 1194; + public static final int FLOWERS_1195 = 1195; + public static final int FLOWERS_1196 = 1196; + public static final int FLOWER_1197 = 1197; + public static final int FLOWERS_1198 = 1198; + public static final int FLOWERBED = 1199; + public static final int FLOWERBED_1200 = 1200; + public static final int FLOWERBED_1201 = 1201; + public static final int JUNGLE_FLOWER = 1202; + public static final int ORCHID = 1203; + public static final int JUNGLE_PLANT = 1204; + public static final int VINE_1205 = 1205; + public static final int VINE_1206 = 1206; + public static final int VINE_1207 = 1207; + public static final int VINE_1208 = 1208; + public static final int NULL_1209 = 1209; + public static final int NULL_1210 = 1210; + public static final int NULL_1211 = 1211; + public static final int NULL_1212 = 1212; + public static final int NULL_1213 = 1213; + public static final int NULL_1214 = 1214; + public static final int NULL_1215 = 1215; + public static final int NULL_1216 = 1216; + public static final int NULL_1217 = 1217; + public static final int NULL_1218 = 1218; + public static final int NULL_1219 = 1219; + public static final int NULL_1220 = 1220; + public static final int NULL_1221 = 1221; + public static final int NULL_1222 = 1222; + public static final int NULL_1223 = 1223; + public static final int NULL_1224 = 1224; + public static final int NULL_1225 = 1225; + public static final int NULL_1226 = 1226; + public static final int NULL_1227 = 1227; + public static final int NULL_1228 = 1228; + public static final int NULL_1229 = 1229; + public static final int NULL_1230 = 1230; + public static final int VINE_1231 = 1231; + public static final int NULL_1232 = 1232; + public static final int NULL_1233 = 1233; + public static final int NULL_1234 = 1234; + public static final int NULL_1235 = 1235; + public static final int NULL_1236 = 1236; + public static final int NULL_1237 = 1237; + public static final int NULL_1238 = 1238; + public static final int NULL_1239 = 1239; + public static final int NULL_1240 = 1240; + public static final int NULL_1241 = 1241; + public static final int NULL_1242 = 1242; + public static final int NULL_1243 = 1243; + public static final int NULL_1244 = 1244; + public static final int NULL_1245 = 1245; + public static final int NULL_1246 = 1246; + public static final int NULL_1247 = 1247; + public static final int NULL_1248 = 1248; + public static final int NULL_1249 = 1249; + public static final int NULL_1250 = 1250; + public static final int NULL_1251 = 1251; + public static final int NULL_1252 = 1252; + public static final int NULL_1253 = 1253; + public static final int NULL_1254 = 1254; + public static final int NULL_1255 = 1255; + public static final int NULL_1256 = 1256; + public static final int NULL_1257 = 1257; + public static final int NULL_1258 = 1258; + public static final int NULL_1259 = 1259; + public static final int NULL_1260 = 1260; + public static final int NULL_1261 = 1261; + public static final int NULL_1262 = 1262; + public static final int NULL_1263 = 1263; + public static final int NULL_1264 = 1264; + public static final int NULL_1265 = 1265; + public static final int NULL_1266 = 1266; + public static final int NULL_1267 = 1267; + public static final int NULL_1268 = 1268; + public static final int NULL_1269 = 1269; + public static final int NULL_1270 = 1270; + public static final int NULL_1271 = 1271; + public static final int NULL_1272 = 1272; + public static final int NULL_1273 = 1273; + public static final int NULL_1274 = 1274; + public static final int NULL_1275 = 1275; + public static final int TREE = 1276; + public static final int TREE_1277 = 1277; + public static final int TREE_1278 = 1278; + public static final int TREE_1279 = 1279; + public static final int TREE_1280 = 1280; + public static final int OAK = 1281; + public static final int DEAD_TREE = 1282; + public static final int DEAD_TREE_1283 = 1283; + public static final int DEAD_TREE_1284 = 1284; + public static final int DEAD_TREE_1285 = 1285; + public static final int DEAD_TREE_1286 = 1286; + public static final int DEAD_TREE_1287 = 1287; + public static final int DEAD_TREE_1288 = 1288; + public static final int DEAD_TREE_1289 = 1289; + public static final int DEAD_TREE_1290 = 1290; + public static final int DEAD_TREE_1291 = 1291; + public static final int DRAMEN_TREE = 1292; + public static final int SPIRIT_TREE = 1293; + public static final int SPIRIT_TREE_1294 = 1294; + public static final int SPIRIT_TREE_1295 = 1295; + public static final int FALLEN_TREE = 1296; + public static final int FALLEN_TREE_1297 = 1297; + public static final int FERN = 1298; + public static final int FERN_1299 = 1299; + public static final int FERN_1300 = 1300; + public static final int TREE_1301 = 1301; + public static final int LEAFY_TREE = 1302; + public static final int TREE_1303 = 1303; + public static final int TREE_1304 = 1304; + public static final int TREE_1305 = 1305; + public static final int MAGIC_TREE = 1306; + public static final int MAPLE_TREE = 1307; + public static final int WILLOW = 1308; + public static final int YEW = 1309; + public static final int TREE_1310 = 1310; + public static final int PALM = 1311; + public static final int PALM_1312 = 1312; + public static final int PLANT = 1313; + public static final int PLANT_1314 = 1314; + public static final int EVERGREEN = 1315; + public static final int EVERGREEN_1316 = 1316; + public static final int SPIRIT_TREE_1317 = 1317; + public static final int EVERGREEN_1318 = 1318; + public static final int EVERGREEN_1319 = 1319; + public static final int MOSSY_BRANCH = 1320; + public static final int MOSSY_BRANCH_1321 = 1321; + public static final int HOLLOW_TREE = 1322; + public static final int ROOTS = 1323; + public static final int ROOTS_1324 = 1324; + public static final int ROOTS_1325 = 1325; + public static final int TROPICAL_TREE = 1326; + public static final int TROPICAL_TREE_1327 = 1327; + public static final int TROPICAL_TREE_1328 = 1328; + public static final int TROPICAL_LEAVES = 1329; + public static final int TREE_1330 = 1330; + public static final int TREE_1331 = 1331; + public static final int TREE_1332 = 1332; + public static final int DEAD_TREE_1333 = 1333; + public static final int HOLLOW_LOG = 1334; + public static final int HOLLOW_LOG_1335 = 1335; + public static final int HOLLOW_LOG_1336 = 1336; + public static final int HOLLOW_LOG_1337 = 1337; + public static final int HOLLOW_LOG_1338 = 1338; + public static final int ROOTS_1339 = 1339; + public static final int ROOTS_1340 = 1340; + public static final int TREE_STUMP = 1341; + public static final int TREE_STUMP_1342 = 1342; + public static final int TREE_STUMP_1343 = 1343; + public static final int TREE_STUMP_1344 = 1344; + public static final int TREE_STUMP_1345 = 1345; + public static final int TREE_STUMP_1346 = 1346; + public static final int TREE_STUMP_1347 = 1347; + public static final int TREE_STUMP_1348 = 1348; + public static final int TREE_STUMP_1349 = 1349; + public static final int TREE_STUMP_1350 = 1350; + public static final int TREE_STUMP_1351 = 1351; + public static final int TREE_STUMP_1352 = 1352; + public static final int TREE_STUMP_1353 = 1353; + public static final int TREE_STUMP_1354 = 1354; + public static final int TREE_STUMP_1355 = 1355; + public static final int TREE_STUMP_1356 = 1356; + public static final int TREE_STUMP_1357 = 1357; + public static final int TREE_STUMP_1358 = 1358; + public static final int TREE_STUMP_1359 = 1359; + public static final int TROPICAL_TREE_1360 = 1360; + public static final int TROPICAL_TREE_1361 = 1361; + public static final int TROPICAL_TREE_1362 = 1362; + public static final int ROOTS_1363 = 1363; + public static final int ROOTS_1364 = 1364; + public static final int DEAD_TREE_1365 = 1365; + public static final int ROOTS_1366 = 1366; + public static final int ROOTS_1367 = 1367; + public static final int ROOTS_1368 = 1368; + public static final int PLANT_1369 = 1369; + public static final int HOLLOW_LOG_1370 = 1370; + public static final int TROPICAL_TREE_1371 = 1371; + public static final int TROPICAL_TREE_1372 = 1372; + public static final int TROPICAL_TREE_1373 = 1373; + public static final int TROPICAL_TREE_1374 = 1374; + public static final int TROPICAL_TREE_1375 = 1375; + public static final int TROPICAL_TREE_1376 = 1376; + public static final int TROPICAL_TREE_1377 = 1377; + public static final int HOLLOW_LOG_1378 = 1378; + public static final int HOLLOW_LOG_1379 = 1379; + public static final int ROOTS_1380 = 1380; + public static final int ROOTS_1381 = 1381; + public static final int ROOTS_1382 = 1382; + public static final int DEAD_TREE_1383 = 1383; + public static final int DEAD_TREE_1384 = 1384; + public static final int ROOTS_1385 = 1385; + public static final int ROOTS_1386 = 1386; + public static final int ROOTS_1387 = 1387; + public static final int ROOTS_1388 = 1388; + public static final int ROOTS_1389 = 1389; + public static final int JUNGLE_PLANT_1390 = 1390; + public static final int PLANT_1391 = 1391; + public static final int PLANT_1392 = 1392; + public static final int PLANT_1393 = 1393; + public static final int PLANT_1394 = 1394; + public static final int FLY_TRAP = 1395; + public static final int CACTUS = 1396; + public static final int CACTUS_1397 = 1397; + public static final int JUNGLE_PLANT_1398 = 1398; + public static final int JUNGLE_PLANT_1399 = 1399; + public static final int JUNGLE_PLANT_1400 = 1400; + public static final int JUNGLE_PLANT_1401 = 1401; + public static final int JUNGLE_PLANT_1402 = 1402; + public static final int CACTUS_1403 = 1403; + public static final int CACTUS_1404 = 1404; + public static final int CACTUS_1405 = 1405; + public static final int CACTUS_1406 = 1406; + public static final int WHIPPING_PLANT = 1407; + public static final int PINEAPPLE_PLANT = 1408; + public static final int PINEAPPLE_PLANT_1409 = 1409; + public static final int PINEAPPLE_PLANT_1410 = 1410; + public static final int PINEAPPLE_PLANT_1411 = 1411; + public static final int PINEAPPLE_PLANT_1412 = 1412; + public static final int PINEAPPLE_PLANT_1413 = 1413; + public static final int NULL_1414 = 1414; + public static final int NULL_1415 = 1415; + public static final int NULL_1416 = 1416; + public static final int NULL_1417 = 1417; + public static final int NULL_1418 = 1418; + public static final int NULL_1419 = 1419; + public static final int NULL_1420 = 1420; + public static final int NULL_1421 = 1421; + public static final int NULL_1422 = 1422; + public static final int NULL_1423 = 1423; + public static final int NULL_1424 = 1424; + public static final int NULL_1425 = 1425; + public static final int NULL_1426 = 1426; + public static final int NULL_1427 = 1427; + public static final int NULL_1428 = 1428; + public static final int NULL_1429 = 1429; + public static final int NULL_1430 = 1430; + public static final int NULL_1431 = 1431; + public static final int NULL_1432 = 1432; + public static final int NULL_1433 = 1433; + public static final int NULL_1434 = 1434; + public static final int NULL_1435 = 1435; + public static final int NULL_1436 = 1436; + public static final int NULL_1437 = 1437; + public static final int NULL_1438 = 1438; + public static final int NULL_1439 = 1439; + public static final int NULL_1440 = 1440; + public static final int NULL_1441 = 1441; + public static final int NULL_1442 = 1442; + public static final int NULL_1443 = 1443; + public static final int NULL_1444 = 1444; + public static final int NULL_1445 = 1445; + public static final int NULL_1446 = 1446; + public static final int NULL_1447 = 1447; + public static final int NULL_1448 = 1448; + public static final int NULL_1449 = 1449; + public static final int NULL_1450 = 1450; + public static final int NULL_1451 = 1451; + public static final int NULL_1452 = 1452; + public static final int NULL_1453 = 1453; + public static final int NULL_1454 = 1454; + public static final int NULL_1455 = 1455; + public static final int NULL_1456 = 1456; + public static final int NULL_1457 = 1457; + public static final int NULL_1458 = 1458; + public static final int NULL_1459 = 1459; + public static final int NULL_1460 = 1460; + public static final int NULL_1461 = 1461; + public static final int NULL_1462 = 1462; + public static final int NULL_1463 = 1463; + public static final int NULL_1464 = 1464; + public static final int NULL_1465 = 1465; + public static final int NULL_1466 = 1466; + public static final int NULL_1467 = 1467; + public static final int NULL_1468 = 1468; + public static final int NULL_1469 = 1469; + public static final int NULL_1470 = 1470; + public static final int NULL_1471 = 1471; + public static final int NULL_1472 = 1472; + public static final int NULL_1473 = 1473; + public static final int NULL_1474 = 1474; + public static final int NULL_1475 = 1475; + public static final int NULL_1476 = 1476; + public static final int NULL_1477 = 1477; + public static final int NULL_1478 = 1478; + public static final int NULL_1479 = 1479; + public static final int NULL_1480 = 1480; + public static final int NULL_1481 = 1481; + public static final int NULL_1482 = 1482; + public static final int NULL_1483 = 1483; + public static final int NULL_1484 = 1484; + public static final int NULL_1485 = 1485; + public static final int NULL_1486 = 1486; + public static final int NULL_1487 = 1487; + public static final int NULL_1488 = 1488; + public static final int NULL_1489 = 1489; + public static final int NULL_1490 = 1490; + public static final int NULL_1491 = 1491; + public static final int NULL_1492 = 1492; + public static final int NULL_1493 = 1493; + public static final int NULL_1494 = 1494; + public static final int NULL_1495 = 1495; + public static final int NULL_1496 = 1496; + public static final int NULL_1497 = 1497; + public static final int NULL_1498 = 1498; + public static final int NULL_1499 = 1499; + public static final int NULL_1500 = 1500; + public static final int NULL_1501 = 1501; + public static final int NULL_1502 = 1502; + public static final int NULL_1503 = 1503; + public static final int DOOR_1504 = 1504; + public static final int DOOR_1505 = 1505; + public static final int LARGE_DOOR_1506 = 1506; + public static final int LARGE_DOOR_1507 = 1507; + public static final int LARGE_DOOR_1508 = 1508; + public static final int NULL_1509 = 1509; + public static final int NULL_1510 = 1510; + public static final int LARGE_DOOR_1511 = 1511; + public static final int LARGE_DOOR_1512 = 1512; + public static final int LARGE_DOOR_1513 = 1513; + public static final int LARGE_DOOR_1514 = 1514; + public static final int LARGE_DOOR_1515 = 1515; + public static final int LARGE_DOOR_1516 = 1516; + public static final int LARGE_DOOR_1517 = 1517; + public static final int NULL_1518 = 1518; + public static final int LARGE_DOOR_1519 = 1519; + public static final int LARGE_DOOR_1520 = 1520; + public static final int NULL_1521 = 1521; + public static final int NULL_1522 = 1522; + public static final int NULL_1523 = 1523; + public static final int NULL_1524 = 1524; + public static final int NULL_1525 = 1525; + public static final int CURTAIN = 1526; + public static final int NULL_1527 = 1527; + public static final int CURTAIN_1528 = 1528; + public static final int CURTAIN_1529 = 1529; + public static final int DOOR_1530 = 1530; + public static final int DOOR_1531 = 1531; + public static final int NULL_1532 = 1532; + public static final int DOOR_1533 = 1533; + public static final int DOOR_1534 = 1534; + public static final int NULL_1535 = 1535; + public static final int DOOR_1536 = 1536; + public static final int DOOR_1537 = 1537; + public static final int NULL_1538 = 1538; + public static final int DOOR_1539 = 1539; + public static final int DOOR_1540 = 1540; + public static final int NULL_1541 = 1541; + public static final int DOOR_1542 = 1542; + public static final int DOOR_1543 = 1543; + public static final int DOOR_1544 = 1544; + public static final int DOOR_1545 = 1545; + public static final int NULL_1546 = 1546; + public static final int NULL_1547 = 1547; + public static final int NULL_1548 = 1548; + public static final int NULL_1549 = 1549; + public static final int NULL_1550 = 1550; + public static final int GATE_1551 = 1551; + public static final int GATE_1552 = 1552; + public static final int GATE_1553 = 1553; + public static final int NULL_1554 = 1554; + public static final int NULL_1555 = 1555; + public static final int GATE_1556 = 1556; + public static final int GATE_1557 = 1557; + public static final int GATE_1558 = 1558; + public static final int GATE_1559 = 1559; + public static final int GATE_1560 = 1560; + public static final int GATE_1561 = 1561; + public static final int NULL_1562 = 1562; + public static final int NULL_1563 = 1563; + public static final int NULL_1564 = 1564; + public static final int NULL_1565 = 1565; + public static final int NULL_1566 = 1566; + public static final int NULL_1567 = 1567; + public static final int TRAPDOOR_1568 = 1568; + public static final int TRAPDOOR_1569 = 1569; + public static final int TRAPDOOR_1570 = 1570; + public static final int TRAPDOOR_1571 = 1571; + public static final int BOARDEDUP_DOOR = 1572; + public static final int DOORS = 1573; + public static final int DOORS_1574 = 1574; + public static final int DOORS_1575 = 1575; + public static final int DOORS_1576 = 1576; + public static final int DOORWAY = 1577; + public static final int DOORWAY_1578 = 1578; + public static final int DOORWAY_1579 = 1579; + public static final int DOORWAY_1580 = 1580; + public static final int DOORWAY_1581 = 1581; + public static final int NULL_1582 = 1582; + public static final int WALL_1583 = 1583; + public static final int WALL_1584 = 1584; + public static final int NULL_1585 = 1585; + public static final int WALL_1586 = 1586; + public static final int WALL_1587 = 1587; + public static final int NULL_1588 = 1588; + public static final int GATE_1589 = 1589; + public static final int GATE_1590 = 1590; + public static final int DOOR_1591 = 1591; + public static final int ODD_LOOKING_WALL = 1592; + public static final int NULL_1593 = 1593; + public static final int DUNGEON_DOOR = 1594; + public static final int DOOR_1595 = 1595; + public static final int GATE_1596 = 1596; + public static final int GATE_1597 = 1597; + public static final int GATE_1598 = 1598; + public static final int GATE_1599 = 1599; + public static final int MAGIC_GUILD_DOOR = 1600; + public static final int MAGIC_GUILD_DOOR_1601 = 1601; + public static final int NULL_1602 = 1602; + public static final int NULL_1603 = 1603; + public static final int NULL_1604 = 1604; + public static final int NULL_1605 = 1605; + public static final int NULL_1606 = 1606; + public static final int NULL_1607 = 1607; + public static final int NULL_1608 = 1608; + public static final int SCAFFOLD_1609 = 1609; + public static final int SCAFFOLD_1610 = 1610; + public static final int SCAFFOLD_1611 = 1611; + public static final int SCAFFOLD_1612 = 1612; + public static final int TIMBER = 1613; + public static final int TIMBER_1614 = 1614; + public static final int NULL_1615 = 1615; + public static final int NULL_1616 = 1616; + public static final int NULL_1617 = 1617; + public static final int NULL_1618 = 1618; + public static final int NULL_1619 = 1619; + public static final int NULL_1620 = 1620; + public static final int NULL_1621 = 1621; + public static final int NULL_1622 = 1622; + public static final int NULL_1623 = 1623; + public static final int NULL_1624 = 1624; + public static final int NULL_1625 = 1625; + public static final int NULL_1626 = 1626; + public static final int NULL_1627 = 1627; + public static final int NULL_1628 = 1628; + public static final int NULL_1629 = 1629; + public static final int NULL_1630 = 1630; + public static final int NULL_1631 = 1631; + public static final int NULL_1632 = 1632; + public static final int NULL_1633 = 1633; + public static final int NULL_1634 = 1634; + public static final int NULL_1635 = 1635; + public static final int NULL_1636 = 1636; + public static final int NULL_1637 = 1637; + public static final int NULL_1638 = 1638; + public static final int NULL_1639 = 1639; + public static final int NULL_1640 = 1640; + public static final int NULL_1641 = 1641; + public static final int NULL_1642 = 1642; + public static final int NULL_1643 = 1643; + public static final int NULL_1644 = 1644; + public static final int NULL_1645 = 1645; + public static final int NULL_1646 = 1646; + public static final int NULL_1647 = 1647; + public static final int NULL_1648 = 1648; + public static final int NULL_1649 = 1649; + public static final int NULL_1650 = 1650; + public static final int NULL_1651 = 1651; + public static final int NULL_1652 = 1652; + public static final int NULL_1653 = 1653; + public static final int NULL_1654 = 1654; + public static final int NULL_1655 = 1655; + public static final int NULL_1656 = 1656; + public static final int NULL_1657 = 1657; + public static final int NULL_1658 = 1658; + public static final int NULL_1659 = 1659; + public static final int NULL_1660 = 1660; + public static final int BRICKS = 1661; + public static final int BRICKS_1662 = 1662; + public static final int BRICKS_1663 = 1663; + public static final int NULL_1664 = 1664; + public static final int NULL_1665 = 1665; + public static final int NULL_1666 = 1666; + public static final int NULL_1667 = 1667; + public static final int NULL_1668 = 1668; + public static final int NULL_1669 = 1669; + public static final int NULL_1670 = 1670; + public static final int NULL_1671 = 1671; + public static final int NULL_1672 = 1672; + public static final int NULL_1673 = 1673; + public static final int NULL_1674 = 1674; + public static final int NULL_1675 = 1675; + public static final int NULL_1676 = 1676; + public static final int NULL_1677 = 1677; + public static final int NULL_1678 = 1678; + public static final int NULL_1679 = 1679; + public static final int NULL_1680 = 1680; + public static final int NULL_1681 = 1681; + public static final int NULL_1682 = 1682; + public static final int NULL_1683 = 1683; + public static final int NULL_1684 = 1684; + public static final int NULL_1685 = 1685; + public static final int NULL_1686 = 1686; + public static final int NULL_1687 = 1687; + public static final int NULL_1688 = 1688; + public static final int NULL_1689 = 1689; + public static final int NULL_1690 = 1690; + public static final int NULL_1691 = 1691; + public static final int NULL_1692 = 1692; + public static final int NULL_1693 = 1693; + public static final int NULL_1694 = 1694; + public static final int NULL_1695 = 1695; + public static final int NULL_1696 = 1696; + public static final int NULL_1697 = 1697; + public static final int NULL_1698 = 1698; + public static final int NULL_1699 = 1699; + public static final int NULL_1700 = 1700; + public static final int NULL_1701 = 1701; + public static final int NULL_1702 = 1702; + public static final int NULL_1703 = 1703; + public static final int NULL_1704 = 1704; + public static final int NULL_1705 = 1705; + public static final int NULL_1706 = 1706; + public static final int NULL_1707 = 1707; + public static final int NULL_1708 = 1708; + public static final int NULL_1709 = 1709; + public static final int NULL_1710 = 1710; + public static final int NULL_1711 = 1711; + public static final int NULL_1712 = 1712; + public static final int NULL_1713 = 1713; + public static final int NULL_1714 = 1714; + public static final int NULL_1715 = 1715; + public static final int NULL_1716 = 1716; + public static final int NULL_1717 = 1717; + public static final int NULL_1718 = 1718; + public static final int NULL_1719 = 1719; + public static final int NULL_1720 = 1720; + public static final int NULL_1721 = 1721; + public static final int STAIRCASE = 1722; + public static final int STAIRCASE_1723 = 1723; + public static final int STAIRCASE_1724 = 1724; + public static final int STAIRCASE_1725 = 1725; + public static final int STAIRCASE_1726 = 1726; + public static final int STAIRCASE_1727 = 1727; + public static final int STAIRCASE_1728 = 1728; + public static final int STAIRCASE_1729 = 1729; + public static final int STAIRCASE_1730 = 1730; + public static final int STAIRCASE_1731 = 1731; + public static final int STAIRCASE_1732 = 1732; + public static final int STAIRCASE_1733 = 1733; + public static final int STAIRCASE_1734 = 1734; + public static final int STAIRCASE_1735 = 1735; + public static final int STAIRCASE_1736 = 1736; + public static final int STAIRCASE_1737 = 1737; + public static final int STAIRCASE_1738 = 1738; + public static final int STAIRCASE_1739 = 1739; + public static final int STAIRCASE_1740 = 1740; + public static final int STAIRCASE_1741 = 1741; + public static final int STAIRCASE_1742 = 1742; + public static final int STAIRCASE_1743 = 1743; + public static final int STAIRCASE_1744 = 1744; + public static final int STAIRCASE_1745 = 1745; + public static final int LADDER_1746 = 1746; + public static final int LADDER_1747 = 1747; + public static final int LADDER_1748 = 1748; + public static final int LADDER_1749 = 1749; + public static final int LADDER_1750 = 1750; + public static final int LADDER_1751 = 1751; + public static final int LADDER_1752 = 1752; + public static final int LADDER_1753 = 1753; + public static final int LADDER_1754 = 1754; + public static final int LADDER_1755 = 1755; + public static final int LADDER_1756 = 1756; + public static final int LADDER_1757 = 1757; + public static final int LADDER_1758 = 1758; + public static final int LADDER_1759 = 1759; + public static final int STEPLADDER = 1760; + public static final int STEPS = 1761; + public static final int CLIMBING_ROPE = 1762; + public static final int CLIMBING_ROPE_1763 = 1763; + public static final int CLIMBING_ROPE_1764 = 1764; + public static final int LADDER_1765 = 1765; + public static final int LADDER_1766 = 1766; + public static final int LADDER_1767 = 1767; + public static final int LADDER_1768 = 1768; + public static final int NULL_1769 = 1769; + public static final int NULL_1770 = 1770; + public static final int NULL_1771 = 1771; + public static final int NULL_1772 = 1772; + public static final int NULL_1773 = 1773; + public static final int NULL_1774 = 1774; + public static final int NULL_1775 = 1775; + public static final int NULL_1776 = 1776; + public static final int NULL_1777 = 1777; + public static final int MILLSTONES = 1778; + public static final int SAILS = 1779; + public static final int SAILS_1780 = 1780; + public static final int NULL_1781 = 1781; + public static final int FLOUR_BIN = 1782; + public static final int NULL_1783 = 1783; + public static final int NULL_1784 = 1784; + public static final int NULL_1785 = 1785; + public static final int NULL_1786 = 1786; + public static final int NULL_1787 = 1787; + public static final int NULL_1788 = 1788; + public static final int NULL_1789 = 1789; + public static final int NULL_1790 = 1790; + public static final int NULL_1791 = 1791; + public static final int NULL_1792 = 1792; + public static final int NULL_1793 = 1793; + public static final int NULL_1794 = 1794; + public static final int NULL_1795 = 1795; + public static final int NULL_1796 = 1796; + public static final int WATERFALL_ROCKS = 1797; + public static final int NULL_1798 = 1798; + public static final int NULL_1799 = 1799; + public static final int NULL_1800 = 1800; + public static final int NULL_1801 = 1801; + public static final int NULL_1802 = 1802; + public static final int NULL_1803 = 1803; + public static final int DOOR_1804 = 1804; + public static final int DOOR_1805 = 1805; + public static final int NULL_1806 = 1806; + public static final int NULL_1807 = 1807; + public static final int NULL_1808 = 1808; + public static final int NULL_1809 = 1809; + public static final int WEB_1810 = 1810; + public static final int SLICED_WEB = 1811; + public static final int PORTAL = 1812; + public static final int STONE_STAND = 1813; + public static final int LEVER_1814 = 1814; + public static final int LEVER_1815 = 1815; + public static final int LEVER_1816 = 1816; + public static final int LEVER_1817 = 1817; + public static final int NULL_1818 = 1818; + public static final int NULL_1819 = 1819; + public static final int NULL_1820 = 1820; + public static final int NULL_1821 = 1821; + public static final int NULL_1822 = 1822; + public static final int NULL_1823 = 1823; + public static final int NULL_1824 = 1824; + public static final int NULL_1825 = 1825; + public static final int NULL_1826 = 1826; + public static final int NULL_1827 = 1827; + public static final int NULL_1828 = 1828; + public static final int NULL_1829 = 1829; + public static final int NULL_1830 = 1830; + public static final int NULL_1831 = 1831; + public static final int NULL_1832 = 1832; + public static final int NULL_1833 = 1833; + public static final int NULL_1834 = 1834; + public static final int NULL_1835 = 1835; + public static final int NULL_1836 = 1836; + public static final int NULL_1837 = 1837; + public static final int NULL_1838 = 1838; + public static final int NULL_1839 = 1839; + public static final int NULL_1840 = 1840; + public static final int NULL_1841 = 1841; + public static final int NULL_1842 = 1842; + public static final int NULL_1843 = 1843; + public static final int NULL_1844 = 1844; + public static final int NULL_1845 = 1845; + public static final int NULL_1846 = 1846; + public static final int NULL_1847 = 1847; + public static final int NULL_1848 = 1848; + public static final int NULL_1849 = 1849; + public static final int NULL_1850 = 1850; + public static final int NULL_1851 = 1851; + public static final int BAY_WINDOW = 1852; + public static final int NULL_1853 = 1853; + public static final int NULL_1854 = 1854; + public static final int NULL_1855 = 1855; + public static final int NULL_1856 = 1856; + public static final int NULL_1857 = 1857; + public static final int NULL_1858 = 1858; + public static final int NULL_1859 = 1859; + public static final int NULL_1860 = 1860; + public static final int NULL_1861 = 1861; + public static final int NULL_1862 = 1862; + public static final int NULL_1863 = 1863; + public static final int TIMBER_DEFENCE = 1864; + public static final int NULL_1865 = 1865; + public static final int NULL_1866 = 1866; + public static final int NULL_1867 = 1867; + public static final int NULL_1868 = 1868; + public static final int NULL_1869 = 1869; + public static final int NULL_1870 = 1870; + public static final int NULL_1871 = 1871; + public static final int NULL_1872 = 1872; + public static final int NULL_1873 = 1873; + public static final int NULL_1874 = 1874; + public static final int NULL_1875 = 1875; + public static final int ALTAR_SLAB = 1876; + public static final int NULL_1877 = 1877; + public static final int NULL_1878 = 1878; + public static final int NULL_1879 = 1879; + public static final int NULL_1880 = 1880; + public static final int NULL_1881 = 1881; + public static final int NULL_1882 = 1882; + public static final int NULL_1883 = 1883; + public static final int NULL_1884 = 1884; + public static final int NULL_1885 = 1885; + public static final int NULL_1886 = 1886; + public static final int NULL_1887 = 1887; + public static final int NULL_1888 = 1888; + public static final int NULL_1889 = 1889; + public static final int NULL_1890 = 1890; + public static final int NULL_1891 = 1891; + public static final int NULL_1892 = 1892; + public static final int NULL_1893 = 1893; + public static final int NULL_1894 = 1894; + public static final int NULL_1895 = 1895; + public static final int THRONE_1896 = 1896; + public static final int CANDLESTICK_HOLDER = 1897; + public static final int CHAIR_1898 = 1898; + public static final int CHAIR_1899 = 1899; + public static final int SUIT_OF_ARMOUR_1900 = 1900; + public static final int TABLE_1901 = 1901; + public static final int NULL_1902 = 1902; + public static final int NULL_1903 = 1903; + public static final int NULL_1904 = 1904; + public static final int NULL_1905 = 1905; + public static final int NULL_1906 = 1906; + public static final int NULL_1907 = 1907; + public static final int NULL_1908 = 1908; + public static final int NULL_1909 = 1909; + public static final int NULL_1910 = 1910; + public static final int NULL_1911 = 1911; + public static final int NULL_1912 = 1912; + public static final int NULL_1913 = 1913; + public static final int NULL_1914 = 1914; + public static final int NULL_1915 = 1915; + public static final int NULL_1916 = 1916; + public static final int NULL_1917 = 1917; + public static final int NULL_1918 = 1918; + public static final int NULL_1919 = 1919; + public static final int NULL_1920 = 1920; + public static final int NULL_1921 = 1921; + public static final int NULL_1922 = 1922; + public static final int NULL_1923 = 1923; + public static final int NULL_1924 = 1924; + public static final int NULL_1925 = 1925; + public static final int NULL_1926 = 1926; + public static final int NULL_1927 = 1927; + public static final int NULL_1928 = 1928; + public static final int NULL_1929 = 1929; + public static final int NULL_1930 = 1930; + public static final int NULL_1931 = 1931; + public static final int NULL_1932 = 1932; + public static final int NULL_1933 = 1933; + public static final int NULL_1934 = 1934; + public static final int NULL_1935 = 1935; + public static final int NULL_1936 = 1936; + public static final int NULL_1937 = 1937; + public static final int NULL_1938 = 1938; + public static final int TOWER = 1939; + public static final int NULL_1940 = 1940; + public static final int NULL_1941 = 1941; + public static final int NULL_1942 = 1942; + public static final int NULL_1943 = 1943; + public static final int NULL_1944 = 1944; + public static final int NULL_1945 = 1945; + public static final int NULL_1946 = 1946; + public static final int CRUMBLING_WALL = 1947; + public static final int CRUMBLING_WALL_1948 = 1948; + public static final int BRICKS_1949 = 1949; + public static final int BRICKS_1950 = 1950; + public static final int BRICKS_1951 = 1951; + public static final int NULL_1952 = 1952; + public static final int NULL_1953 = 1953; + public static final int NULL_1954 = 1954; + public static final int NULL_1955 = 1955; + public static final int NULL_1956 = 1956; + public static final int NULL_1957 = 1957; + public static final int NULL_1958 = 1958; + public static final int NULL_1959 = 1959; + public static final int NULL_1960 = 1960; + public static final int NULL_1961 = 1961; + public static final int NULL_1962 = 1962; + public static final int NULL_1963 = 1963; + public static final int NULL_1964 = 1964; + public static final int NULL_1965 = 1965; + public static final int NULL_1966 = 1966; + public static final int TREE_DOOR = 1967; + public static final int TREE_DOOR_1968 = 1968; + public static final int NULL_1969 = 1969; + public static final int NULL_1970 = 1970; + public static final int NULL_1971 = 1971; + public static final int NULL_1972 = 1972; + public static final int NULL_1973 = 1973; + public static final int NULL_1974 = 1974; + public static final int NULL_1975 = 1975; + public static final int NULL_1976 = 1976; + public static final int NULL_1977 = 1977; + public static final int NULL_1978 = 1978; + public static final int NULL_1979 = 1979; + public static final int NULL_1980 = 1980; + public static final int NULL_1981 = 1981; + public static final int NULL_1982 = 1982; + public static final int NULL_1983 = 1983; + public static final int NULL_1984 = 1984; + public static final int ROOT = 1985; + public static final int ROOT_1986 = 1986; + public static final int LOG_RAFT = 1987; + public static final int BROKEN_LOG_RAFT = 1988; + public static final int BOOKCASE_1989 = 1989; + public static final int CRATE_1990 = 1990; + public static final int DOOR_1991 = 1991; + public static final int GLARIALS_TOMBSTONE = 1992; + public static final int GLARIALS_TOMB = 1993; + public static final int CLOSED_CHEST_1994 = 1994; + public static final int OPEN_CHEST_1995 = 1995; + public static final int ROCK_1996 = 1996; + public static final int ROCK_1997 = 1997; + public static final int ROPE = 1998; + public static final int CRATE_1999 = 1999; + public static final int DOOR_2000 = 2000; + public static final int NULL_2001 = 2001; + public static final int DOOR_2002 = 2002; + public static final int NULL_2003 = 2003; + public static final int PILLAR = 2004; + public static final int STATUE_OF_BAXTORIAN = 2005; + public static final int STATUE_OF_GLARIAL = 2006; + public static final int NULL_2007 = 2007; + public static final int NULL_2008 = 2008; + public static final int NULL_2009 = 2009; + public static final int LEDGE = 2010; + public static final int LEDGE_2011 = 2011; + public static final int LEDGE_2012 = 2012; + public static final int VINE_2013 = 2013; + public static final int CHALICE_OF_ETERNITY = 2014; + public static final int CHALICE_OF_ETERNITY_2015 = 2015; + public static final int NULL_2016 = 2016; + public static final int NULL_2017 = 2017; + public static final int NULL_2018 = 2018; + public static final int WHIRLPOOL = 2019; + public static final int DEAD_TREE_2020 = 2020; + public static final int NULL_2021 = 2021; + public static final int BARREL_2022 = 2022; + public static final int ACHEY_TREE = 2023; + public static final int CAULDRON_2024 = 2024; + public static final int DOOR_2025 = 2025; + public static final int FISHING_SPOT_2026 = 2026; + public static final int FISHING_SPOT_2027 = 2027; + public static final int FISHING_SPOT_2028 = 2028; + public static final int FISHING_SPOT_2029 = 2029; + public static final int FISHING_SPOT_2030 = 2030; + public static final int FISHING_SPOT_2031 = 2031; + public static final int DOOR_2032 = 2032; + public static final int DOOR_2033 = 2033; + public static final int DOOR_2034 = 2034; + public static final int DOOR_2035 = 2035; + public static final int DOOR_2036 = 2036; + public static final int DOOR_2037 = 2037; + public static final int DUMMY_2038 = 2038; + public static final int GATE_2039 = 2039; + public static final int NULL_2040 = 2040; + public static final int GATE_2041 = 2041; + public static final int NULL_2042 = 2042; + public static final int CAULDRON_2043 = 2043; + public static final int TROUGH = 2044; + public static final int NULL_2045 = 2045; + public static final int NULL_2046 = 2046; + public static final int NULL_2047 = 2047; + public static final int DOOR_2048 = 2048; + public static final int DOOR_2049 = 2049; + public static final int GATE_2050 = 2050; + public static final int GATE_2051 = 2051; + public static final int NULL_2052 = 2052; + public static final int NULL_2053 = 2053; + public static final int DOOR_2054 = 2054; + public static final int NULL_2055 = 2055; + public static final int CUPBOARD_2056 = 2056; + public static final int CUPBOARD_2057 = 2057; + public static final int GATE_2058 = 2058; + public static final int NULL_2059 = 2059; + public static final int GATE_2060 = 2060; + public static final int NULL_2061 = 2061; + public static final int CUPBOARD_2062 = 2062; + public static final int CUPBOARD_2063 = 2063; + public static final int CRATE_2064 = 2064; + public static final int ROPE_LADDER = 2065; + public static final int WALL_2066 = 2066; + public static final int WATCHTOWER = 2067; + public static final int FENCE = 2068; + public static final int DOOR_2069 = 2069; + public static final int NULL_2070 = 2070; + public static final int CRATE_2071 = 2071; + public static final int CRATE_2072 = 2072; + public static final int BANANA_TREE = 2073; + public static final int BANANA_TREE_2074 = 2074; + public static final int BANANA_TREE_2075 = 2075; + public static final int BANANA_TREE_2076 = 2076; + public static final int BANANA_TREE_2077 = 2077; + public static final int BANANA_TREE_2078 = 2078; + public static final int CHEST_2079 = 2079; + public static final int NULL_2080 = 2080; + public static final int GANGPLANK_2081 = 2081; + public static final int GANGPLANK_2082 = 2082; + public static final int GANGPLANK_2083 = 2083; + public static final int GANGPLANK_2084 = 2084; + public static final int GANGPLANK_2085 = 2085; + public static final int GANGPLANK_2086 = 2086; + public static final int GANGPLANK_2087 = 2087; + public static final int GANGPLANK_2088 = 2088; + public static final int ROCKERY_2089 = 2089; + public static final int ROCKS_2090 = 2090; + public static final int ROCKS_2091 = 2091; + public static final int ROCKS_2092 = 2092; + public static final int ROCKS_2093 = 2093; + public static final int ROCKS_2094 = 2094; + public static final int ROCKS_2095 = 2095; + public static final int ROCKS_2096 = 2096; + public static final int ROCKS_2097 = 2097; + public static final int ROCKS_2098 = 2098; + public static final int ROCKS_2099 = 2099; + public static final int ROCKS_2100 = 2100; + public static final int ROCKS_2101 = 2101; + public static final int ROCKS_2102 = 2102; + public static final int ROCKS_2103 = 2103; + public static final int ROCKS_2104 = 2104; + public static final int ROCKS_2105 = 2105; + public static final int ROCKS_2106 = 2106; + public static final int ROCKS_2107 = 2107; + public static final int ROCKS_2108 = 2108; + public static final int ROCKS_2109 = 2109; + public static final int ROCKS_2110 = 2110; + public static final int ROCKS_2111 = 2111; + public static final int DOOR_2112 = 2112; + public static final int LADDER_2113 = 2113; + public static final int COAL_TRUCK = 2114; + public static final int GATE_2115 = 2115; + public static final int GATE_2116 = 2116; + public static final int OLD_WALL = 2117; + public static final int WHIRLPOOL_2118 = 2118; + public static final int ROCKS_2119 = 2119; + public static final int ROCKS_2120 = 2120; + public static final int ROCKS_2121 = 2121; + public static final int ROCKS_2122 = 2122; + public static final int ROCKS_2123 = 2123; + public static final int ROCKS_2124 = 2124; + public static final int ROCKS_2125 = 2125; + public static final int ROCKS_2126 = 2126; + public static final int ROCKS_2127 = 2127; + public static final int ROCKS_2128 = 2128; + public static final int ROCKS_2129 = 2129; + public static final int ROCKS_2130 = 2130; + public static final int ROCKS_2131 = 2131; + public static final int ROCKS_2132 = 2132; + public static final int ROCKS_2133 = 2133; + public static final int ROCKS_2134 = 2134; + public static final int ROCKS_2135 = 2135; + public static final int ROCKS_2136 = 2136; + public static final int ROCKS_2137 = 2137; + public static final int ROCKS_2138 = 2138; + public static final int ROCKS_2139 = 2139; + public static final int ROCKS_2140 = 2140; + public static final int CHEST_2141 = 2141; + public static final int CAULDRON_OF_THUNDER = 2142; + public static final int PRISON_DOOR_2143 = 2143; + public static final int PRISON_DOOR_2144 = 2144; + public static final int COFFIN_2145 = 2145; + public static final int COFFIN_2146 = 2146; + public static final int LADDER_2147 = 2147; + public static final int LADDER_2148 = 2148; + public static final int OBELISK = 2149; + public static final int OBELISK_OF_EARTH = 2150; + public static final int OBELISK_OF_WATER = 2151; + public static final int OBELISK_OF_AIR = 2152; + public static final int OBELISK_OF_FIRE = 2153; + public static final int GATE_2154 = 2154; + public static final int GATE_2155 = 2155; + public static final int MAGIC_PORTAL = 2156; + public static final int MAGIC_PORTAL_2157 = 2157; + public static final int MAGIC_PORTAL_2158 = 2158; + public static final int BARREL_2159 = 2159; + public static final int BARREL_2160 = 2160; + public static final int BARREL_2161 = 2161; + public static final int TRAWLER_NET = 2162; + public static final int TRAWLER_NET_2163 = 2163; + public static final int TRAWLER_NET_2164 = 2164; + public static final int TRAWLER_NET_2165 = 2165; + public static final int TRAWLER_NET_2166 = 2166; + public static final int LEAK = 2167; + public static final int REPAIRED_LEAK = 2168; + public static final int SPRAY = 2169; + public static final int SPRAY_2170 = 2170; + public static final int NULL_2171 = 2171; + public static final int TRAWLER_NET_2172 = 2172; + public static final int TRAWLER_NET_2173 = 2173; + public static final int SHIPS_LADDER_2174 = 2174; + public static final int SHIPS_LADDER_2175 = 2175; + public static final int HOLE_2176 = 2176; + public static final int HULL = 2177; + public static final int GANGPLANK_2178 = 2178; + public static final int GANGPLANK_2179 = 2179; + public static final int CATAPULT_2180 = 2180; + public static final int BALLISTA = 2181; + public static final int OPEN_CHEST_2182 = 2182; + public static final int CLOSED_CHEST_2183 = 2183; + public static final int DOOR_2184 = 2184; + public static final int CRUMBLED_WALL = 2185; + public static final int LOOSE_RAILING_2186 = 2186; + public static final int LADDER_2187 = 2187; + public static final int LADDER_2188 = 2188; + public static final int LADDER_2189 = 2189; + public static final int LADDER_2190 = 2190; + public static final int CHEST_2191 = 2191; + public static final int CHEST_2192 = 2192; + public static final int CHEST_2193 = 2193; + public static final int CHEST_2194 = 2194; + public static final int CHEST_2195 = 2195; + public static final int CHEST_2196 = 2196; + public static final int CHEST_2197 = 2197; + public static final int CHEST_2198 = 2198; + public static final int KEEP_GATE = 2199; + public static final int KEEP_GATE_2200 = 2200; + public static final int NULL_2201 = 2201; + public static final int NULL_2202 = 2202; + public static final int NULL_2203 = 2203; + public static final int NULL_2204 = 2204; + public static final int NULL_2205 = 2205; + public static final int NULL_2206 = 2206; + public static final int NULL_2207 = 2207; + public static final int NULL_2208 = 2208; + public static final int NULL_2209 = 2209; + public static final int TELESCOPE = 2210; + public static final int GRAVE_OF_SCORPIUS = 2211; + public static final int SACK = 2212; + public static final int BANK_BOOTH = 2213; + public static final int BANK_BOOTH_2214 = 2214; + public static final int CLOSED_BANK_BOOTH = 2215; + public static final int BROKEN_CART_2216 = 2216; + public static final int MOUND_OF_EARTH = 2217; + public static final int FISSURE = 2218; + public static final int FISSURE_2219 = 2219; + public static final int CAVE_IN = 2220; + public static final int STRANGE_LOOKING_STONE = 2221; + public static final int LOOSE_ROCKS = 2222; + public static final int OLD_SACKS = 2223; + public static final int ANCIENT_GALLOWS = 2224; + public static final int WATERFALL_ROCKS_2225 = 2225; + public static final int SMASHED_TABLE = 2226; + public static final int CRUDE_RAFT = 2227; + public static final int NULL_2228 = 2228; + public static final int TRIBAL_STATUE_2229 = 2229; + public static final int TRAVEL_CART = 2230; + public static final int ROCKS_2231 = 2231; + public static final int NULL_2232 = 2232; + public static final int NULL_2233 = 2233; + public static final int WELL_STACKED_ROCKS = 2234; + public static final int TOMB_DOLMEN = 2235; + public static final int CLIMBING_ROCKS = 2236; + public static final int PALM_TREE = 2237; + public static final int HILLSIDE_ENTRANCE = 2238; + public static final int HILLSIDE_ENTRANCE_2239 = 2239; + public static final int CARVED_DOORS = 2240; + public static final int CARVED_DOORS_2241 = 2241; + public static final int TOMB_EXIT = 2242; + public static final int TOMB_EXIT_2243 = 2243; + public static final int JUNGLE_PLANT_2244 = 2244; + public static final int JUNGLE_PLANT_2245 = 2245; + public static final int TOMB_DOORS = 2246; + public static final int TOMB_DOORS_2247 = 2247; + public static final int TOMB_DOORS_2248 = 2248; + public static final int TOMB_DOORS_2249 = 2249; + public static final int TOMB_DOORS_2250 = 2250; + public static final int NULL_2251 = 2251; + public static final int NULL_2252 = 2252; + public static final int TOMB_EXIT_2253 = 2253; + public static final int TOMB_EXIT_2254 = 2254; + public static final int ANCIENT_METAL_GATE = 2255; + public static final int ANCIENT_METAL_GATE_2256 = 2256; + public static final int ROCKS_2257 = 2257; + public static final int TOMB_DOLMEN_2258 = 2258; + public static final int METAL_GATE = 2259; + public static final int METAL_GATE_2260 = 2260; + public static final int WOODEN_GATE = 2261; + public static final int WOODEN_GATE_2262 = 2262; + public static final int NULL_2263 = 2263; + public static final int NULL_2264 = 2264; + public static final int TRAVEL_CART_2265 = 2265; + public static final int BLACKSMITHS_DOOR = 2266; + public static final int BLACKSMITHS_DOOR_2267 = 2267; + public static final int LADDER_2268 = 2268; + public static final int LADDER_2269 = 2269; + public static final int PLANT_2270 = 2270; + public static final int CUPBOARD_2271 = 2271; + public static final int CUPBOARD_2272 = 2272; + public static final int ROPE_SWING = 2273; + public static final int ROPE_SWING_2274 = 2274; + public static final int ROCK_2275 = 2275; + public static final int ROCK_2276 = 2276; + public static final int ROCK_2277 = 2277; + public static final int ROCK_2278 = 2278; + public static final int ROPESWING = 2279; + public static final int ROPESWING_2280 = 2280; + public static final int ROPESWING_2281 = 2281; + public static final int ROPESWING_2282 = 2282; + public static final int ROPESWING_2283 = 2283; + public static final int OBSTACLE_NET = 2284; + public static final int OBSTACLE_NET_2285 = 2285; + public static final int OBSTACLE_NET_2286 = 2286; + public static final int OBSTACLE_PIPE_2287 = 2287; + public static final int OBSTACLE_PIPE_2288 = 2288; + public static final int HOLLOW_TREE_2289 = 2289; + public static final int OBSTACLE_PIPE_2290 = 2290; + public static final int NULL_2291 = 2291; + public static final int NULL_2292 = 2292; + public static final int NULL_2293 = 2293; + public static final int LOG_BALANCE = 2294; + public static final int LOG_BALANCE_2295 = 2295; + public static final int LOG_BALANCE_2296 = 2296; + public static final int LOG_BALANCE_2297 = 2297; + public static final int CLIMBING_ROCKS_2298 = 2298; + public static final int CLIMBING_ROCKS_2299 = 2299; + public static final int CLIMBING_ROCKS_2300 = 2300; + public static final int BALANCING_LEDGE = 2301; + public static final int BALANCING_LEDGE_2302 = 2302; + public static final int BALANCING_LEDGE_2303 = 2303; + public static final int SPIKES = 2304; + public static final int SPIKES_2305 = 2305; + public static final int NULL_2306 = 2306; + public static final int GATE_2307 = 2307; + public static final int GATE_2308 = 2308; + public static final int DOOR_2309 = 2309; + public static final int TREE_STUMP_2310 = 2310; + public static final int STEPPING_STONE = 2311; + public static final int BALANCING_ROPE = 2312; + public static final int TREE_BRANCH = 2313; + public static final int TREE_BRANCH_2314 = 2314; + public static final int TREE_BRANCH_2315 = 2315; + public static final int STAIRCASE_2316 = 2316; + public static final int PILE_OF_RUBBLE = 2317; + public static final int PILE_OF_RUBBLE_2318 = 2318; + public static final int MONKEYBARS = 2319; + public static final int MONKEYBARS_2320 = 2320; + public static final int MONKEYBARS_2321 = 2321; + public static final int ROPESWING_2322 = 2322; + public static final int ROPESWING_2323 = 2323; + public static final int ROPESWING_2324 = 2324; + public static final int ROPESWING_2325 = 2325; + public static final int BRANCH = 2326; + public static final int LONG_BRANCHED_TREE = 2327; + public static final int ROCKS_2328 = 2328; + public static final int NULL_2329 = 2329; + public static final int NULL_2330 = 2330; + public static final int NULL_2331 = 2331; + public static final int A_WOODEN_LOG = 2332; + public static final int STEPPING_STONES = 2333; + public static final int STEPPING_STONES_2334 = 2334; + public static final int STEPPING_STONES_2335 = 2335; + public static final int HOLE_2336 = 2336; + public static final int STURDY_DOOR = 2337; + public static final int DOOR_2338 = 2338; + public static final int STURDY_DOOR_2339 = 2339; + public static final int STURDY_DOOR_2340 = 2340; + public static final int WALL_2341 = 2341; + public static final int GRILL = 2342; + public static final int BRICK = 2343; + public static final int BRICK_2344 = 2344; + public static final int BRICK_2345 = 2345; + public static final int BRICK_2346 = 2346; + public static final int BRICK_2347 = 2347; + public static final int BRICK_2348 = 2348; + public static final int BRICK_2349 = 2349; + public static final int WINCH_2350 = 2350; + public static final int WINCH_2351 = 2351; + public static final int ROPE_2352 = 2352; + public static final int ROPE_2353 = 2353; + public static final int SACKS_2354 = 2354; + public static final int SACKS_2355 = 2355; + public static final int SACKS_2356 = 2356; + public static final int BUSH_2357 = 2357; + public static final int BUSH_2358 = 2358; + public static final int BARREL_2359 = 2359; + public static final int CHEST_2360 = 2360; + public static final int CHEST_2361 = 2361; + public static final int BRICK_2362 = 2362; + public static final int PANNING_POINT = 2363; + public static final int CRATE_2364 = 2364; + public static final int CRATE_2365 = 2365; + public static final int SIGNPOST_2366 = 2366; + public static final int SIGNPOST_2367 = 2367; + public static final int SIGNPOST_2368 = 2368; + public static final int SIGNPOST_2369 = 2369; + public static final int SIGNPOST_2370 = 2370; + public static final int SIGNPOST_2371 = 2371; + public static final int BOOKCASE_2372 = 2372; + public static final int CUPBOARD_2373 = 2373; + public static final int CUPBOARD_2374 = 2374; + public static final int SPECIMEN_TRAY = 2375; + public static final int SOIL = 2376; + public static final int SOIL_2377 = 2377; + public static final int SOIL_2378 = 2378; + public static final int CAMPSITE_BED = 2379; + public static final int CHEST_2380 = 2380; + public static final int SOIL_2381 = 2381; + public static final int SOIL_2382 = 2382; + public static final int SOIL_2383 = 2383; + public static final int NULL_2384 = 2384; + public static final int NULL_2385 = 2385; + public static final int NULL_2386 = 2386; + public static final int NULL_2387 = 2387; + public static final int NULL_2388 = 2388; + public static final int NULL_2389 = 2389; + public static final int NULL_2390 = 2390; + public static final int GATE_2391 = 2391; + public static final int GATE_2392 = 2392; + public static final int GNOME_GOAL = 2393; + public static final int GATE_2394 = 2394; + public static final int NULL_2395 = 2395; + public static final int BED_2396 = 2396; + public static final int DOOR_2397 = 2397; + public static final int DOOR_2398 = 2398; + public static final int DOOR_2399 = 2399; + public static final int CUPBOARD_2400 = 2400; + public static final int CUPBOARD_2401 = 2401; + public static final int BOOKCASE_2402 = 2402; + public static final int CHEST_2403 = 2403; + public static final int CHEST_2404 = 2404; + public static final int LADDER_2405 = 2405; + public static final int DOOR_2406 = 2406; + public static final int MAGIC_DOOR = 2407; + public static final int LADDER_2408 = 2408; + public static final int TREE_2409 = 2409; + public static final int LADDER_2410 = 2410; + public static final int STURDY_DOOR_2411 = 2411; + public static final int GANGPLANK_2412 = 2412; + public static final int GANGPLANK_2413 = 2413; + public static final int GANGPLANK_2414 = 2414; + public static final int GANGPLANK_2415 = 2415; + public static final int LEVER_2416 = 2416; + public static final int CLOSED_CHEST_2417 = 2417; + public static final int OPEN_CHEST_2418 = 2418; + public static final int NULL_2419 = 2419; + public static final int NULL_2420 = 2420; + public static final int LEVER_2421 = 2421; + public static final int LEVER_2422 = 2422; + public static final int LEVER_2423 = 2423; + public static final int LEVER_2424 = 2424; + public static final int LEVER_2425 = 2425; + public static final int LEVER_2426 = 2426; + public static final int DOOR_2427 = 2427; + public static final int DOOR_2428 = 2428; + public static final int DOOR_2429 = 2429; + public static final int DOOR_2430 = 2430; + public static final int DOOR_2431 = 2431; + public static final int GATE_2432 = 2432; + public static final int GATE_2433 = 2433; + public static final int CUPBOARD_2434 = 2434; + public static final int CUPBOARD_2435 = 2435; + public static final int CLOSED_CHEST_2436 = 2436; + public static final int NULL_2437 = 2437; + public static final int GATE_2438 = 2438; + public static final int GATE_2439 = 2439; + public static final int PILLAR_2440 = 2440; + public static final int PILLAR_2441 = 2441; + public static final int PILLAR_2442 = 2442; + public static final int PILLAR_2443 = 2443; + public static final int TRAPDOOR_2444 = 2444; + public static final int NULL_2445 = 2445; + public static final int TRAP_DOOR = 2446; + public static final int TREE_2447 = 2447; + public static final int TREE_2448 = 2448; + public static final int DACONIA_ROCKS = 2449; + public static final int DACONIA_ROCKS_2450 = 2450; + public static final int ROOTS_2451 = 2451; + public static final int NULL_2452 = 2452; + public static final int NULL_2453 = 2453; + public static final int NULL_2454 = 2454; + public static final int NULL_2455 = 2455; + public static final int NULL_2456 = 2456; + public static final int NULL_2457 = 2457; + public static final int NULL_2458 = 2458; + public static final int NULL_2459 = 2459; + public static final int NULL_2460 = 2460; + public static final int NULL_2461 = 2461; + public static final int NULL_2462 = 2462; + public static final int NULL_2463 = 2463; + public static final int NULL_2464 = 2464; + public static final int PORTAL_2465 = 2465; + public static final int PORTAL_2466 = 2466; + public static final int PORTAL_2467 = 2467; + public static final int PORTAL_2468 = 2468; + public static final int PORTAL_2469 = 2469; + public static final int PORTAL_2470 = 2470; + public static final int PORTAL_2471 = 2471; + public static final int PORTAL_2472 = 2472; + public static final int PORTAL_2473 = 2473; + public static final int PORTAL_2474 = 2474; + public static final int PORTAL_2475 = 2475; + public static final int PORTAL_2476 = 2476; + public static final int PORTAL_2477 = 2477; + public static final int ALTAR_2478 = 2478; + public static final int ALTAR_2479 = 2479; + public static final int ALTAR_2480 = 2480; + public static final int ALTAR_2481 = 2481; + public static final int ALTAR_2482 = 2482; + public static final int ALTAR_2483 = 2483; + public static final int ALTAR_2484 = 2484; + public static final int ALTAR_2485 = 2485; + public static final int ALTAR_2486 = 2486; + public static final int ALTAR_2487 = 2487; + public static final int ALTAR_2488 = 2488; + public static final int ALTAR_2489 = 2489; + public static final int ALTAR_2490 = 2490; + public static final int RUNE_ESSENCE = 2491; + public static final int PORTAL_2492 = 2492; + public static final int PILLAR_2493 = 2493; + public static final int PILLAR_2494 = 2494; + public static final int PILLAR_2495 = 2495; + public static final int NULL_2496 = 2496; + public static final int MYSTERIOUS_STONE = 2497; + public static final int MYSTERIOUS_GLOW = 2498; + public static final int MYSTERIOUS_GLOW_2499 = 2499; + public static final int MYSTERIOUS_GLOW_2500 = 2500; + public static final int MYSTERIOUS_GLOW_2501 = 2501; + public static final int MYSTERIOUS_GLOW_2502 = 2502; + public static final int RUINED_PILLAR = 2503; + public static final int RUINED_PILLAR_2504 = 2504; + public static final int PILLAR_2505 = 2505; + public static final int RUINED_PILLAR_2506 = 2506; + public static final int PILLAR_2507 = 2507; + public static final int RUBBLE = 2508; + public static final int RUBBLE_2509 = 2509; + public static final int RUBBLE_2510 = 2510; + public static final int TOWER_LADDER = 2511; + public static final int TOWER_LADDER_2512 = 2512; + public static final int TARGET_2513 = 2513; + public static final int GUILD_DOOR = 2514; + public static final int ROW_BOAT = 2515; + public static final int ROW_BOAT_2516 = 2516; + public static final int LADDER_2517 = 2517; + public static final int LOOSE_PANEL = 2518; + public static final int CRATES = 2519; + public static final int CRANE = 2520; + public static final int CRANE_2521 = 2521; + public static final int SPOOKY_STAIRS = 2522; + public static final int SPOOKY_STAIRS_2523 = 2523; + public static final int CUPBOARD_2524 = 2524; + public static final int CUPBOARD_2525 = 2525; + public static final int DOOR_2526 = 2526; + public static final int DOOR_2527 = 2527; + public static final int DOOR_2528 = 2528; + public static final int DOOR_2529 = 2529; + public static final int BARREL_2530 = 2530; + public static final int MUD_PATCH = 2531; + public static final int NULL_2532 = 2532; + public static final int MUD_PILE_2533 = 2533; + public static final int DOOR_2534 = 2534; + public static final int DOOR_2535 = 2535; + public static final int DOOR_2536 = 2536; + public static final int DOOR_2537 = 2537; + public static final int DOOR_2538 = 2538; + public static final int STAIRS_2539 = 2539; + public static final int STAIRS_2540 = 2540; + public static final int SEWER_PIPE = 2541; + public static final int PIPE = 2542; + public static final int MANHOLE_2543 = 2543; + public static final int MANHOLE_2544 = 2544; + public static final int MANHOLE_COVER_2545 = 2545; + public static final int DOOR_2546 = 2546; + public static final int DOOR_2547 = 2547; + public static final int DOOR_2548 = 2548; + public static final int DOOR_2549 = 2549; + public static final int DOOR_2550 = 2550; + public static final int DOOR_2551 = 2551; + public static final int GATE_2552 = 2552; + public static final int GATE_2553 = 2553; + public static final int DOOR_2554 = 2554; + public static final int DOOR_2555 = 2555; + public static final int DOOR_2556 = 2556; + public static final int DOOR_2557 = 2557; + public static final int DOOR_2558 = 2558; + public static final int DOOR_2559 = 2559; + public static final int SILK_STALL_2560 = 2560; + public static final int BAKERS_STALL = 2561; + public static final int GEM_STALL_2562 = 2562; + public static final int FUR_STALL_2563 = 2563; + public static final int SPICE_STALL_2564 = 2564; + public static final int SILVER_STALL_2565 = 2565; + public static final int CHEST_2566 = 2566; + public static final int CHEST_2567 = 2567; + public static final int CHEST_2568 = 2568; + public static final int CHEST_2569 = 2569; + public static final int CHEST_2570 = 2570; + public static final int CHEST_2571 = 2571; + public static final int CHEST_2572 = 2572; + public static final int CHEST_2573 = 2573; + public static final int NULL_2574 = 2574; + public static final int MARSHY_JUNGLE_VINE = 2575; + public static final int MARSHY_JUNGLE_VINE_2576 = 2576; + public static final int PALM_TREE_2577 = 2577; + public static final int PALM_TREE_2578 = 2578; + public static final int SCORCHED_EARTH = 2579; + public static final int SCORCHED_EARTH_2580 = 2580; + public static final int ROCK_2581 = 2581; + public static final int ROCK_2582 = 2582; + public static final int FUNGUS_COVERED_CAVERN_WALL = 2583; + public static final int ROCKS_2584 = 2584; + public static final int HAND_HOLDS = 2585; + public static final int DOOR_2586 = 2586; + public static final int CHEST_2587 = 2587; + public static final int CHEST_2588 = 2588; + public static final int HOLE_2589 = 2589; + public static final int LADDER_2590 = 2590; + public static final int LADDER_2591 = 2591; + public static final int LADDER_2592 = 2592; + public static final int GANGPLANK_2593 = 2593; + public static final int GANGPLANK_2594 = 2594; + public static final int DOOR_2595 = 2595; + public static final int RED_DOOR = 2596; + public static final int ORANGE_DOOR = 2597; + public static final int YELLOW_DOOR = 2598; + public static final int BLUE_DOOR = 2599; + public static final int MAGENTA_DOOR = 2600; + public static final int GREEN_DOOR = 2601; + public static final int EXIT_DOOR = 2602; + public static final int CHEST_2603 = 2603; + public static final int CHEST_2604 = 2604; + public static final int LADDER_2605 = 2605; + public static final int WALL_2606 = 2606; + public static final int GATE_2607 = 2607; + public static final int GATE_2608 = 2608; + public static final int ROCK_OPENING = 2609; + public static final int CLIMBING_ROPE_2610 = 2610; + public static final int LADDER_2611 = 2611; + public static final int CUPBOARD_2612 = 2612; + public static final int CUPBOARD_2613 = 2613; + public static final int COFFIN_2614 = 2614; + public static final int COFFIN_2615 = 2615; + public static final int STAIRS_2616 = 2616; + public static final int STAIRS_2617 = 2617; + public static final int BROKEN_FENCE = 2618; + public static final int BARREL_2619 = 2619; + public static final int CRATE_2620 = 2620; + public static final int DOOR_2621 = 2621; + public static final int DOOR_2622 = 2622; + public static final int GATE_2623 = 2623; + public static final int DOOR_2624 = 2624; + public static final int DOOR_2625 = 2625; + public static final int DOOR_2626 = 2626; + public static final int DOOR_2627 = 2627; + public static final int DOOR_2628 = 2628; + public static final int WALL_2629 = 2629; + public static final int FISHING_SPOT_2630 = 2630; + public static final int DOOR_2631 = 2631; + public static final int CHEST_2632 = 2632; + public static final int CHEST_2633 = 2633; + public static final int ROCK_SLIDE = 2634; + public static final int CUPBOARD_2635 = 2635; + public static final int CUPBOARD_2636 = 2636; + public static final int NULL_2637 = 2637; + public static final int FOUNTAIN_OF_HEROES = 2638; + public static final int NULL_2639 = 2639; + public static final int ALTAR_2640 = 2640; + public static final int LADDER_2641 = 2641; + public static final int POTTERS_WHEEL = 2642; + public static final int POTTERY_OVEN = 2643; + public static final int SPINNING_WHEEL = 2644; + public static final int SAND_PIT = 2645; + public static final int FLAX = 2646; + public static final int GUILD_DOOR_2647 = 2647; + public static final int NULL_2648 = 2648; + public static final int NULL_2649 = 2649; + public static final int SINCLAIR_FAMILY_COMPOST_HEAP = 2650; + public static final int SINCLAIR_FAMILY_BEEHIVE = 2651; + public static final int SINCLAIR_MANSION_DRAIN = 2652; + public static final int SPIDERS_NEST = 2653; + public static final int SINCLAIR_FAMILY_FOUNTAIN = 2654; + public static final int SINCLAIR_FAMILY_CREST = 2655; + public static final int ANNAS_BARREL = 2656; + public static final int BOBS_BARREL = 2657; + public static final int CAROLS_BARREL = 2658; + public static final int DAVIDS_BARREL = 2659; + public static final int ELIZABETHS_BARREL = 2660; + public static final int FRANKS_BARREL = 2661; + public static final int BARREL_OF_FLOUR = 2662; + public static final int SACKS_2663 = 2663; + public static final int STURDY_WOODEN_GATE = 2664; + public static final int STURDY_WOODEN_GATE_2665 = 2665; + public static final int SMASHED_WINDOW = 2666; + public static final int WINCH_2667 = 2667; + public static final int WINCH_BUCKET = 2668; + public static final int NULL_2669 = 2669; + public static final int KHARIDIAN_CACTUS_HEALTHY = 2670; + public static final int KHARIDIAN_CACTUS_DRY = 2671; + public static final int AN_EXPERIMENTAL_ANVIL = 2672; + public static final int GATE_2673 = 2673; + public static final int GATE_2674 = 2674; + public static final int MINE_DOOR_ENTRANCE = 2675; + public static final int MINE_DOOR_ENTRANCE_2676 = 2676; + public static final int CHEST_2677 = 2677; + public static final int BOOKCASE_2678 = 2678; + public static final int CAPTAIN_SIADS_DESK = 2679; + public static final int BARREL_2680 = 2680; + public static final int BARREL_2681 = 2681; + public static final int MINE_CART_2682 = 2682; + public static final int WINDOW = 2683; + public static final int MINE_CART_2684 = 2684; + public static final int GATE_2685 = 2685; + public static final int GATE_2686 = 2686; + public static final int GATE_2687 = 2687; + public static final int GATE_2688 = 2688; + public static final int PRISON_DOOR_2689 = 2689; + public static final int MINE_DOOR_ENTRANCE_2690 = 2690; + public static final int MINE_DOOR_ENTRANCE_2691 = 2691; + public static final int PRISON_DOOR_2692 = 2692; + public static final int SHANTAY_CHEST = 2693; + public static final int ROCK_2694 = 2694; + public static final int ROCK_2695 = 2695; + public static final int ROCK_2696 = 2696; + public static final int ROCK_2697 = 2697; + public static final int MINE_CAVE = 2698; + public static final int MINE_CAVE_2699 = 2699; + public static final int TENT_DOOR = 2700; + public static final int NULL_2701 = 2701; + public static final int TRACKS = 2702; + public static final int TRACKS_2703 = 2703; + public static final int ROCKS_2704 = 2704; + public static final int DOOR_2705 = 2705; + public static final int DOOR_2706 = 2706; + public static final int CRATE_2707 = 2707; + public static final int CRATE_2708 = 2708; + public static final int CHEST_2709 = 2709; + public static final int CHEST_2710 = 2710; + public static final int STAIRS_2711 = 2711; + public static final int DOOR_2712 = 2712; + public static final int HOPPER = 2713; + public static final int HOPPER_2714 = 2714; + public static final int HOPPER_2715 = 2715; + public static final int HOPPER_2716 = 2716; + public static final int HOPPER_2717 = 2717; + public static final int HOPPER_CONTROLS = 2718; + public static final int HOPPER_CONTROLS_2719 = 2719; + public static final int HOPPER_CONTROLS_2720 = 2720; + public static final int HOPPER_CONTROLS_2721 = 2721; + public static final int HOPPER_CONTROLS_2722 = 2722; + public static final int KEBAB = 2723; + public static final int FIREPLACE = 2724; + public static final int FIREPLACE_2725 = 2725; + public static final int FIREPLACE_2726 = 2726; + public static final int COOKING_POT = 2727; + public static final int RANGE = 2728; + public static final int RANGE_2729 = 2729; + public static final int RANGE_2730 = 2730; + public static final int RANGE_2731 = 2731; + public static final int FIRE = 2732; + public static final int NULL_2733 = 2733; + public static final int NULL_2734 = 2734; + public static final int NULL_2735 = 2735; + public static final int NULL_2736 = 2736; + public static final int NULL_2737 = 2737; + public static final int NULL_2738 = 2738; + public static final int NULL_2739 = 2739; + public static final int NULL_2740 = 2740; + public static final int NULL_2741 = 2741; + public static final int NULL_2742 = 2742; + public static final int NULL_2743 = 2743; + public static final int NULL_2744 = 2744; + public static final int NULL_2745 = 2745; + public static final int NULL_2746 = 2746; + public static final int NULL_2747 = 2747; + public static final int NULL_2748 = 2748; + public static final int NULL_2749 = 2749; + public static final int NULL_2750 = 2750; + public static final int NULL_2751 = 2751; + public static final int NULL_2752 = 2752; + public static final int NULL_2753 = 2753; + public static final int NULL_2754 = 2754; + public static final int NULL_2755 = 2755; + public static final int NULL_2756 = 2756; + public static final int NULL_2757 = 2757; + public static final int NULL_2758 = 2758; + public static final int NULL_2759 = 2759; + public static final int NULL_2760 = 2760; + public static final int NULL_2761 = 2761; + public static final int NULL_2762 = 2762; + public static final int NULL_2763 = 2763; + public static final int NULL_2764 = 2764; + public static final int NULL_2765 = 2765; + public static final int NULL_2766 = 2766; + public static final int NULL_2767 = 2767; + public static final int NULL_2768 = 2768; + public static final int NULL_2769 = 2769; + public static final int NULL_2770 = 2770; + public static final int NULL_2771 = 2771; + public static final int NULL_2772 = 2772; + public static final int NULL_2773 = 2773; + public static final int NULL_2774 = 2774; + public static final int NULL_2775 = 2775; + public static final int NULL_2776 = 2776; + public static final int NULL_2777 = 2777; + public static final int NULL_2778 = 2778; + public static final int NULL_2779 = 2779; + public static final int NULL_2780 = 2780; + public static final int FURNACE = 2781; + public static final int ANVIL = 2782; + public static final int ANVIL_2783 = 2783; + public static final int BLACKSMITHS_TOOLS = 2784; + public static final int FURNACE_2785 = 2785; + public static final int CITY_GATE_2786 = 2786; + public static final int CITY_GATE_2787 = 2787; + public static final int CITY_GATE_2788 = 2788; + public static final int CITY_GATE_2789 = 2789; + public static final int CHEST_2790 = 2790; + public static final int COUNTER_2791 = 2791; + public static final int COUNTER_2792 = 2792; + public static final int COUNTER_2793 = 2793; + public static final int LEVER_2794 = 2794; + public static final int LEVER_2795 = 2795; + public static final int LADDER_2796 = 2796; + public static final int LADDER_2797 = 2797; + public static final int BUSH_2798 = 2798; + public static final int BUSH_2799 = 2799; + public static final int BUSH_2800 = 2800; + public static final int BUSH_2801 = 2801; + public static final int BUSH_2802 = 2802; + public static final int BUSH_2803 = 2803; + public static final int CAVE_ENTRANCE_2804 = 2804; + public static final int CAVE_ENTRANCE_2805 = 2805; + public static final int CAVE_ENTRANCE_2806 = 2806; + public static final int CAVE_ENTRANCE_2807 = 2807; + public static final int CAVE_ENTRANCE_2808 = 2808; + public static final int CAVE_ENTRANCE_2809 = 2809; + public static final int CAVE_ENTRANCE_2810 = 2810; + public static final int CAVE_ENTRANCE_2811 = 2811; + public static final int LADDER_2812 = 2812; + public static final int CAVE_ENTRANCE_2813 = 2813; + public static final int GATE_2814 = 2814; + public static final int GATE_2815 = 2815; + public static final int ROCK_OF_DALGROTH = 2816; + public static final int CAVE_EXIT = 2817; + public static final int CAVE_EXIT_2818 = 2818; + public static final int CAVE_EXIT_2819 = 2819; + public static final int CAVE_EXIT_2820 = 2820; + public static final int CAVE_EXIT_2821 = 2821; + public static final int CAVE_EXIT_2822 = 2822; + public static final int HOLE_2823 = 2823; + public static final int HOLE_2824 = 2824; + public static final int CLIMBING_ROPE_2825 = 2825; + public static final int CHEST_2826 = 2826; + public static final int CHEST_2827 = 2827; + public static final int NULL_2828 = 2828; + public static final int NULL_2829 = 2829; + public static final int ROCK_2830 = 2830; + public static final int ROCK_2831 = 2831; + public static final int BATTLEMENT = 2832; + public static final int LADDER_2833 = 2833; + public static final int BATTLEMENT_2834 = 2834; + public static final int ROCK_2835 = 2835; + public static final int ROCK_2836 = 2836; + public static final int ROCK_2837 = 2837; + public static final int NULL_2838 = 2838; + public static final int NULL_2839 = 2839; + public static final int NULL_2840 = 2840; + public static final int NULL_2841 = 2841; + public static final int MAGICAL_SHIELD = 2842; + public static final int DRAIN = 2843; + public static final int SEWER_VALVE = 2844; + public static final int SEWER_VALVE_2845 = 2845; + public static final int SEWER_VALVE_2846 = 2846; + public static final int SEWER_VALVE_2847 = 2847; + public static final int SEWER_VALVE_2848 = 2848; + public static final int RAFT = 2849; + public static final int CUPBOARD_2850 = 2850; + public static final int CUPBOARD_2851 = 2851; + public static final int CAVE_ENTRANCE_2852 = 2852; + public static final int STAIRS_2853 = 2853; + public static final int WALL_2854 = 2854; + public static final int NULL_2855 = 2855; + public static final int CHEST_2856 = 2856; + public static final int CHEST_2857 = 2857; + public static final int CRATE_2858 = 2858; + public static final int RANGE_2859 = 2859; + public static final int HAZEELS_COFFIN = 2860; + public static final int DOOR_2861 = 2861; + public static final int DOOR_2862 = 2862; + public static final int DOOR_2863 = 2863; + public static final int FOUNTAIN_2864 = 2864; + public static final int GATE_2865 = 2865; + public static final int GATE_2866 = 2866; + public static final int POTTED_PLANT_2867 = 2867; + public static final int CUPBOARD_2868 = 2868; + public static final int CUPBOARD_2869 = 2869; + public static final int MOUSE_HOLE = 2870; + public static final int LADDER_2871 = 2871; + public static final int LADDER_2872 = 2872; + public static final int STATUE_OF_SARADOMIN_2873 = 2873; + public static final int STATUE_OF_ZAMORAK_2874 = 2874; + public static final int STATUE_OF_GUTHIX = 2875; + public static final int COUNTER_2876 = 2876; + public static final int BARREL_2877 = 2877; + public static final int SPARKLING_POOL = 2878; + public static final int SPARKLING_POOL_2879 = 2879; + public static final int MYSTIC_PORTAL = 2880; + public static final int PRISON_DOOR_2881 = 2881; + public static final int GATE_2882 = 2882; + public static final int GATE_2883 = 2883; + public static final int LADDER_2884 = 2884; + public static final int CUPBOARD_2885 = 2885; + public static final int OPEN_CUPBOARD_2886 = 2886; + public static final int JUNGLE_TREE = 2887; + public static final int JUNGLE_PALM = 2888; + public static final int JUNGLE_TREE_2889 = 2889; + public static final int JUNGLE_TREE_2890 = 2890; + public static final int TREE_STUMP_2891 = 2891; + public static final int JUNGLE_BUSH = 2892; + public static final int JUNGLE_BUSH_2893 = 2893; + public static final int SLASHED_BUSH = 2894; + public static final int SLASHED_BUSH_2895 = 2895; + public static final int LEGENDS_GUILD_DOOR = 2896; + public static final int LEGENDS_GUILD_DOOR_2897 = 2897; + public static final int NULL_2898 = 2898; + public static final int NULL_2899 = 2899; + public static final int MOSSY_ROCK_2900 = 2900; + public static final int MOSSY_ROCK_2901 = 2901; + public static final int ROCKS_2902 = 2902; + public static final int CAVE_ENTRANCE_2903 = 2903; + public static final int CAVE_ENTRANCE_2904 = 2904; + public static final int CRATE_2905 = 2905; + public static final int TABLE_2906 = 2906; + public static final int BED_2907 = 2907; + public static final int FIRE_WALL = 2908; + public static final int FIRE_WALL_2909 = 2909; + public static final int DESK = 2910; + public static final int BOOKCASE_2911 = 2911; + public static final int ANCIENT_GATE = 2912; + public static final int ANCIENT_GATE_2913 = 2913; + public static final int NULL_2914 = 2914; + public static final int NULL_2915 = 2915; + public static final int CAVE_ENTRANCE_2916 = 2916; + public static final int NULL_2917 = 2917; + public static final int CREVICE = 2918; + public static final int BOULDER_2919 = 2919; + public static final int BOULDER_2920 = 2920; + public static final int BOULDER_2921 = 2921; + public static final int ANCIENT_GATE_2922 = 2922; + public static final int ANCIENT_GATE_2923 = 2923; + public static final int ANCIENT_GATE_2924 = 2924; + public static final int ANCIENT_GATE_2925 = 2925; + public static final int JAGGED_WALL = 2926; + public static final int MARKED_WALL = 2927; + public static final int CARVED_ROCK = 2928; + public static final int BURIED_SKELETON_2929 = 2929; + public static final int ANCIENT_GATE_2930 = 2930; + public static final int ANCIENT_GATE_2931 = 2931; + public static final int BARREL_2932 = 2932; + public static final int NULL_2933 = 2933; + public static final int WINCH_2934 = 2934; + public static final int WINCH_2935 = 2935; + public static final int TOTEM_POLE_2936 = 2936; + public static final int TOTEM_POLE_2937 = 2937; + public static final int TOTEM_POLE_2938 = 2938; + public static final int TOTEM_POLE_2939 = 2939; + public static final int TABLE_2940 = 2940; + public static final int SACRED_WATER = 2941; + public static final int WATER_POOL = 2942; + public static final int POLLUTED_WATER = 2943; + public static final int TALL_REEDS = 2944; + public static final int YOMMI_TREE_BABY = 2945; + public static final int YOMMI_TREE_SAPLING = 2946; + public static final int DEAD_YOMMI_SAPLING = 2947; + public static final int ADULT_YOMMI_TREE = 2948; + public static final int DEAD_YOMMI = 2949; + public static final int FELLED_YOMMI_TREE = 2950; + public static final int ROTTEN_YOMMI = 2951; + public static final int TRIMMED_YOMMI = 2952; + public static final int ROTTEN_YOMMI_TREE = 2953; + public static final int TOTEM_POLE_2954 = 2954; + public static final int ROTTEN_TOTEM_POLE = 2955; + public static final int FERTILE_SOIL = 2956; + public static final int DAMAGED_EARTH = 2957; + public static final int CLIMBING_ROPE_2958 = 2958; + public static final int ROCKY_LEDGE = 2959; + public static final int ROCKY_LEDGE_2960 = 2960; + public static final int ROCKY_LEDGE_2961 = 2961; + public static final int ROCKS_2962 = 2962; + public static final int ROCKS_2963 = 2963; + public static final int ROCKS_2964 = 2964; + public static final int MOSSY_ROCK_2965 = 2965; + public static final int FURNACE_2966 = 2966; + public static final int NULL_2967 = 2967; + public static final int NULL_2968 = 2968; + public static final int RECESS = 2969; + public static final int FILLED_RECESS = 2970; + public static final int SHIMMERING_FIELD = 2971; + public static final int BOULDER_2972 = 2972; + public static final int BOULDER_2973 = 2973; + public static final int BOULDER_2974 = 2974; + public static final int LEAFY_PALM_TREE = 2975; + public static final int LEAFY_PALM_TREE_2976 = 2976; + public static final int SAND = 2977; + public static final int SAND_2978 = 2978; + public static final int SAND_2979 = 2979; + public static final int FLOWERS_2980 = 2980; + public static final int FLOWERS_2981 = 2981; + public static final int FLOWERS_2982 = 2982; + public static final int FLOWERS_2983 = 2983; + public static final int FLOWERS_2984 = 2984; + public static final int FLOWERS_2985 = 2985; + public static final int FLOWERS_2986 = 2986; + public static final int FLOWERS_2987 = 2987; + public static final int FLOWERS_2988 = 2988; + public static final int VINE_2989 = 2989; + public static final int VINE_2990 = 2990; + public static final int VINE_2991 = 2991; + public static final int VINE_2992 = 2992; + public static final int VINE_2993 = 2993; + public static final int VINE_2994 = 2994; + public static final int CLOSED_CHEST_2995 = 2995; + public static final int CLOSED_CHEST_2996 = 2996; + public static final int DOOR_2997 = 2997; + public static final int DOOR_2998 = 2998; + public static final int NULL_2999 = 2999; + public static final int TIMBER_DEFENCE_3000 = 3000; + public static final int NULL_3001 = 3001; + public static final int NULL_3002 = 3002; + public static final int NULL_3003 = 3003; + public static final int NULL_3004 = 3004; + public static final int NULL_3005 = 3005; + public static final int NULL_3006 = 3006; + public static final int NULL_3007 = 3007; + public static final int NULL_3008 = 3008; + public static final int NULL_3009 = 3009; + public static final int NULL_3010 = 3010; + public static final int NULL_3011 = 3011; + public static final int NULL_3012 = 3012; + public static final int NULL_3013 = 3013; + public static final int DOOR_3014 = 3014; + public static final int GATE_3015 = 3015; + public static final int GATE_3016 = 3016; + public static final int DOOR_3017 = 3017; + public static final int DOOR_3018 = 3018; + public static final int DOOR_3019 = 3019; + public static final int GATE_3020 = 3020; + public static final int GATE_3021 = 3021; + public static final int GATE_3022 = 3022; + public static final int GATE_3023 = 3023; + public static final int DOOR_3024 = 3024; + public static final int DOOR_3025 = 3025; + public static final int DOOR_3026 = 3026; + public static final int DOOR_3027 = 3027; + public static final int LADDER_3028 = 3028; + public static final int LADDER_3029 = 3029; + public static final int LADDER_3030 = 3030; + public static final int LADDER_3031 = 3031; + public static final int FISHING_SPOT_3032 = 3032; + public static final int TREE_3033 = 3033; + public static final int TREE_3034 = 3034; + public static final int TREE_3035 = 3035; + public static final int TREE_3036 = 3036; + public static final int OAK_3037 = 3037; + public static final int FIRE_3038 = 3038; + public static final int RANGE_3039 = 3039; + public static final int CUPBOARD_3040 = 3040; + public static final int CUPBOARD_3041 = 3041; + public static final int ROCKS_3042 = 3042; + public static final int ROCKS_3043 = 3043; + public static final int FURNACE_3044 = 3044; + public static final int BANK_BOOTH_3045 = 3045; + public static final int TIMBER_DEFENCE_3046 = 3046; + public static final int NULL_3047 = 3047; + public static final int NULL_3048 = 3048; + public static final int NULL_3049 = 3049; + public static final int NULL_3050 = 3050; + public static final int NULL_3051 = 3051; + public static final int NULL_3052 = 3052; + public static final int NULL_3053 = 3053; + public static final int NULL_3054 = 3054; + public static final int NULL_3055 = 3055; + public static final int NULL_3056 = 3056; + public static final int NULL_3057 = 3057; + public static final int NULL_3058 = 3058; + public static final int NULL_3059 = 3059; + public static final int NULL_3060 = 3060; + public static final int NULL_3061 = 3061; + public static final int NULL_3062 = 3062; + public static final int NULL_3063 = 3063; + public static final int NULL_3064 = 3064; + public static final int NULL_3065 = 3065; + public static final int NULL_3066 = 3066; + public static final int NULL_3067 = 3067; + public static final int NULL_3068 = 3068; + public static final int NULL_3069 = 3069; + public static final int NULL_3070 = 3070; + public static final int NULL_3071 = 3071; + public static final int NULL_3072 = 3072; + public static final int NULL_3073 = 3073; + public static final int NULL_3074 = 3074; + public static final int NULL_3075 = 3075; + public static final int NULL_3076 = 3076; + public static final int WALL_3077 = 3077; + public static final int WALL_3078 = 3078; + public static final int WALL_3079 = 3079; + public static final int NULL_3080 = 3080; + public static final int NULL_3081 = 3081; + public static final int WALL_3082 = 3082; + public static final int WALL_3083 = 3083; + public static final int NULL_3084 = 3084; + public static final int NULL_3085 = 3085; + public static final int NULL_3086 = 3086; + public static final int NULL_3087 = 3087; + public static final int NULL_3088 = 3088; + public static final int NULL_3089 = 3089; + public static final int NULL_3090 = 3090; + public static final int NULL_3091 = 3091; + public static final int NULL_3092 = 3092; + public static final int NULL_3093 = 3093; + public static final int NULL_3094 = 3094; + public static final int NULL_3095 = 3095; + public static final int NULL_3096 = 3096; + public static final int NULL_3097 = 3097; + public static final int NULL_3098 = 3098; + public static final int NULL_3099 = 3099; + public static final int NULL_3100 = 3100; + public static final int NULL_3101 = 3101; + public static final int NULL_3102 = 3102; + public static final int NULL_3103 = 3103; + public static final int NULL_3104 = 3104; + public static final int NULL_3105 = 3105; + public static final int NULL_3106 = 3106; + public static final int NULL_3107 = 3107; + public static final int ENTRANCE = 3108; + public static final int ENTRANCE_3109 = 3109; + public static final int NULL_3110 = 3110; + public static final int ENTRANCE_3111 = 3111; + public static final int ENTRANCE_3112 = 3112; + public static final int ENTRANCE_3113 = 3113; + public static final int ENTRANCE_3114 = 3114; + public static final int NULL_3115 = 3115; + public static final int NULL_3116 = 3116; + public static final int NULL_3117 = 3117; + public static final int NULL_3118 = 3118; + public static final int NULL_3119 = 3119; + public static final int NULL_3120 = 3120; + public static final int NULL_3121 = 3121; + public static final int NULL_3122 = 3122; + public static final int NULL_3123 = 3123; + public static final int NULL_3124 = 3124; + public static final int NULL_3125 = 3125; + public static final int NULL_3126 = 3126; + public static final int NULL_3127 = 3127; + public static final int NULL_3128 = 3128; + public static final int NULL_3129 = 3129; + public static final int NULL_3130 = 3130; + public static final int NULL_3131 = 3131; + public static final int NULL_3132 = 3132; + public static final int NULL_3133 = 3133; + public static final int NULL_3134 = 3134; + public static final int NULL_3135 = 3135; + public static final int NULL_3136 = 3136; + public static final int NULL_3137 = 3137; + public static final int NULL_3138 = 3138; + public static final int NULL_3139 = 3139; + public static final int NULL_3140 = 3140; + public static final int NULL_3141 = 3141; + public static final int NULL_3142 = 3142; + public static final int NULL_3143 = 3143; + public static final int NULL_3144 = 3144; + public static final int NULL_3145 = 3145; + public static final int NULL_3146 = 3146; + public static final int NULL_3147 = 3147; + public static final int NULL_3148 = 3148; + public static final int NULL_3149 = 3149; + public static final int NULL_3150 = 3150; + public static final int NULL_3151 = 3151; + public static final int NULL_3152 = 3152; + public static final int NULL_3153 = 3153; + public static final int NULL_3154 = 3154; + public static final int NULL_3155 = 3155; + public static final int NULL_3156 = 3156; + public static final int NULL_3157 = 3157; + public static final int NULL_3158 = 3158; + public static final int BED_3159 = 3159; + public static final int NULL_3160 = 3160; + public static final int NULL_3161 = 3161; + public static final int NULL_3162 = 3162; + public static final int NULL_3163 = 3163; + public static final int NULL_3164 = 3164; + public static final int NULL_3165 = 3165; + public static final int NULL_3166 = 3166; + public static final int NULL_3167 = 3167; + public static final int NULL_3168 = 3168; + public static final int NULL_3169 = 3169; + public static final int NULL_3170 = 3170; + public static final int NULL_3171 = 3171; + public static final int NULL_3172 = 3172; + public static final int NULL_3173 = 3173; + public static final int NULL_3174 = 3174; + public static final int NULL_3175 = 3175; + public static final int NULL_3176 = 3176; + public static final int NULL_3177 = 3177; + public static final int NULL_3178 = 3178; + public static final int NULL_3179 = 3179; + public static final int NULL_3180 = 3180; + public static final int NULL_3181 = 3181; + public static final int CHAIR_3182 = 3182; + public static final int HOSPITAL_SHELVES = 3183; + public static final int HOSPITAL_SHELVES_3184 = 3184; + public static final int HOSPITAL_SHELVES_3185 = 3185; + public static final int OPERATING_TABLE = 3186; + public static final int OPERATING_TABLE_3187 = 3187; + public static final int NULL_3188 = 3188; + public static final int NULL_3189 = 3189; + public static final int DRAWERS_3190 = 3190; + public static final int DRAWERS_3191 = 3191; + public static final int SCOREBOARD = 3192; + public static final int CLOSED_CHEST_3193 = 3193; + public static final int OPEN_CHEST_3194 = 3194; + public static final int CRATE_3195 = 3195; + public static final int DAMAGED_ARMOUR = 3196; + public static final int GATE_3197 = 3197; + public static final int GATE_3198 = 3198; + public static final int BED_3199 = 3199; + public static final int NULL_3200 = 3200; + public static final int NULL_3201 = 3201; + public static final int NULL_3202 = 3202; + public static final int TRAPDOOR_3203 = 3203; + public static final int NULL_3204 = 3204; + public static final int LADDER_3205 = 3205; + public static final int BARREL_3206 = 3206; + public static final int NULL_3207 = 3207; + public static final int NULL_3208 = 3208; + public static final int ODD_LOOKING_WALL_3209 = 3209; + public static final int ODD_LOOKING_WALL_3210 = 3210; + public static final int ODD_LOOKING_WALL_3211 = 3211; + public static final int ODD_LOOKING_WALL_3212 = 3212; + public static final int CAVE_ENTRANCE_3213 = 3213; + public static final int UNDERGROUND_PASS_EXIT = 3214; + public static final int NULL_3215 = 3215; + public static final int MUD = 3216; + public static final int CAVE = 3217; + public static final int TUNNEL = 3218; + public static final int TUNNEL_3219 = 3219; + public static final int DOOR_3220 = 3220; + public static final int DOOR_3221 = 3221; + public static final int CAVE_STAIRS = 3222; + public static final int CAVE_STAIRS_3223 = 3223; + public static final int CAVE_3224 = 3224; + public static final int NULL_3225 = 3225; + public static final int NULL_3226 = 3226; + public static final int TRAP = 3227; + public static final int TRAP_3228 = 3228; + public static final int TRAP_3229 = 3229; + public static final int FLAT_ROCK = 3230; + public static final int PLANK = 3231; + public static final int STALAGMITES_3232 = 3232; + public static final int TRAP_3233 = 3233; + public static final int ODD_MARKINGS = 3234; + public static final int OBSTACLE_PIPE_3235 = 3235; + public static final int OBSTACLE_PIPE_3236 = 3236; + public static final int OBSTACLE_PIPE_3237 = 3237; + public static final int LEDGE_3238 = 3238; + public static final int BRIDGE = 3239; + public static final int BRIDGE_3240 = 3240; + public static final int LEVER_3241 = 3241; + public static final int LEVER_3242 = 3242; + public static final int PLATFORM = 3243; + public static final int PLATFORM_3244 = 3244; + public static final int PLATFORM_3245 = 3245; + public static final int PLATFORM_3246 = 3246; + public static final int BRIDGE_3247 = 3247; + public static final int BRIDGE_3248 = 3248; + public static final int BRIDGE_3249 = 3249; + public static final int BRIDGE_3250 = 3250; + public static final int NULL_3251 = 3251; + public static final int NULL_3252 = 3252; + public static final int NULL_3253 = 3253; + public static final int BRIDGE_3254 = 3254; + public static final int BRIDGE_3255 = 3255; + public static final int NULL_3256 = 3256; + public static final int PLATFORM_3257 = 3257; + public static final int BRIDGE_3258 = 3258; + public static final int BRIDGE_3259 = 3259; + public static final int BRIDGE_3260 = 3260; + public static final int NULL_3261 = 3261; + public static final int NULL_3262 = 3262; + public static final int SWAMP = 3263; + public static final int WELL_3264 = 3264; + public static final int PILE_OF_ROCKS = 3265; + public static final int CAGE = 3266; + public static final int CAGE_3267 = 3267; + public static final int CAGE_3268 = 3268; + public static final int NULL_3269 = 3269; + public static final int DOOR_3270 = 3270; + public static final int DOOR_3271 = 3271; + public static final int CHEST_3272 = 3272; + public static final int CHEST_3273 = 3273; + public static final int CHEST_3274 = 3274; + public static final int NULL_3275 = 3275; + public static final int STONE_BRIDGE = 3276; + public static final int NULL_3277 = 3277; + public static final int NULL_3278 = 3278; + public static final int NULL_3279 = 3279; + public static final int NULL_3280 = 3280; + public static final int NULL_3281 = 3281; + public static final int NULL_3282 = 3282; + public static final int NULL_3283 = 3283; + public static final int NULL_3284 = 3284; + public static final int NULL_3285 = 3285; + public static final int NULL_3286 = 3286; + public static final int NULL_3287 = 3287; + public static final int NULL_3288 = 3288; + public static final int NULL_3289 = 3289; + public static final int NULL_3290 = 3290; + public static final int NULL_3291 = 3291; + public static final int NULL_3292 = 3292; + public static final int NULL_3293 = 3293; + public static final int FURNACE_3294 = 3294; + public static final int STONE_TABLET = 3295; + public static final int STONE_TABLET_3296 = 3296; + public static final int STONE_TABLET_3297 = 3297; + public static final int STONE_TABLET_3298 = 3298; + public static final int STONE_TABLET_3299 = 3299; + public static final int STONE_TABLET_3300 = 3300; + public static final int STONE_TABLET_3301 = 3301; + public static final int STONE_TABLET_3302 = 3302; + public static final int PORTCULLIS = 3303; + public static final int PORTCULLIS_3304 = 3304; + public static final int WELL_3305 = 3305; + public static final int NULL_3306 = 3306; + public static final int ROCKPILE = 3307; + public static final int SMASHED_CAGE = 3308; + public static final int ROCKSLIDE_3309 = 3309; + public static final int NULL_3310 = 3310; + public static final int NULL_3311 = 3311; + public static final int NULL_3312 = 3312; + public static final int NULL_3313 = 3313; + public static final int NULL_3314 = 3314; + public static final int NULL_3315 = 3315; + public static final int NULL_3316 = 3316; + public static final int NULL_3317 = 3317; + public static final int NULL_3318 = 3318; + public static final int NULL_3319 = 3319; + public static final int NULL_3320 = 3320; + public static final int NULL_3321 = 3321; + public static final int NULL_3322 = 3322; + public static final int NULL_3323 = 3323; + public static final int NULL_3324 = 3324; + public static final int NULL_3325 = 3325; + public static final int NULL_3326 = 3326; + public static final int EERIE_STATUE_3327 = 3327; + public static final int DWARF_STATUE_3328 = 3328; + public static final int NULL_3329 = 3329; + public static final int NULL_3330 = 3330; + public static final int NULL_3331 = 3331; + public static final int TEMPLE_DOOR = 3332; + public static final int DOOR_3333 = 3333; + public static final int DOOR_3334 = 3334; + public static final int DOOR_3335 = 3335; + public static final int DOOR_3336 = 3336; + public static final int LEVER_3337 = 3337; + public static final int HANGING_LOG = 3338; + public static final int FLAT_ROCK_3339 = 3339; + public static final int GUIDE_ROPE = 3340; + public static final int GUIDE_ROPE_3341 = 3341; + public static final int NULL_3342 = 3342; + public static final int ROCK_PILE_3343 = 3343; + public static final int BARREL_3344 = 3344; + public static final int NULL_3345 = 3345; + public static final int NULL_3346 = 3346; + public static final int NULL_3347 = 3347; + public static final int IBANS_THRONE = 3348; + public static final int NULL_3349 = 3349; + public static final int NULL_3350 = 3350; + public static final int CAGE_3351 = 3351; + public static final int CAGE_3352 = 3352; + public static final int TOMB = 3353; + public static final int TOMB_3354 = 3354; + public static final int NULL_3355 = 3355; + public static final int NULL_3356 = 3356; + public static final int NULL_3357 = 3357; + public static final int NULL_3358 = 3358; + public static final int WELL_3359 = 3359; + public static final int CRATE_3360 = 3360; + public static final int ORB_OF_LIGHT = 3361; + public static final int WINDOW_3362 = 3362; + public static final int NULL_3363 = 3363; + public static final int ROCK_3364 = 3364; + public static final int PROTRUDING_ROCKS = 3365; + public static final int ONION = 3366; + public static final int PRISON_DOOR_3367 = 3367; + public static final int NULL_3368 = 3368; + public static final int NULL_3369 = 3369; + public static final int NULL_3370 = 3370; + public static final int ACHEY_TREE_STUMP = 3371; + public static final int OGRE_SPITROAST = 3372; + public static final int OGRE_SPITROAST_3373 = 3373; + public static final int OGRE_SPITROAST_3374 = 3374; + public static final int OGRE_SPITROAST_3375 = 3375; + public static final int OGRE_BENCH = 3376; + public static final int LOCKED_OGRE_CHEST = 3377; + public static final int UNLOCKED_OGRE_CHEST = 3378; + public static final int CAVE_ENTRANCE_3379 = 3379; + public static final int CAVE_EXIT_3380 = 3380; + public static final int CAVE_EXIT_3381 = 3381; + public static final int OGRE_SPITROAST_3382 = 3382; + public static final int OGRE_SPITROAST_3383 = 3383; + public static final int NULL_3384 = 3384; + public static final int NULL_3385 = 3385; + public static final int NULL_3386 = 3386; + public static final int NULL_3387 = 3387; + public static final int NULL_3388 = 3388; + public static final int BOOKCASE_3389 = 3389; + public static final int ODD_LOOKING_WALL_3390 = 3390; + public static final int ODD_LOOKING_WALL_3391 = 3391; + public static final int ODD_LOOKING_WALL_3392 = 3392; + public static final int ODD_LOOKING_WALL_3393 = 3393; + public static final int CRATE_3394 = 3394; + public static final int CRATE_3395 = 3395; + public static final int BOXES_3396 = 3396; + public static final int BOXES_3397 = 3397; + public static final int CRATE_3398 = 3398; + public static final int CRATE_3399 = 3399; + public static final int CRATE_3400 = 3400; + public static final int CRATE_3401 = 3401; + public static final int WORKBENCH_3402 = 3402; + public static final int PILE_OF_ROCK = 3403; + public static final int WATER_VALVE = 3404; + public static final int WATER_VALVE_3405 = 3405; + public static final int LEVER_3406 = 3406; + public static final int WATER_WHEEL = 3407; + public static final int WATER_WHEEL_3408 = 3408; + public static final int LEVER_3409 = 3409; + public static final int BELLOWS = 3410; + public static final int BELLOWS_3411 = 3411; + public static final int NULL_3412 = 3412; + public static final int FURNACE_3413 = 3413; + public static final int LAVA_TROUGH = 3414; + public static final int STAIRCASE_3415 = 3415; + public static final int STAIRCASE_3416 = 3416; + public static final int LEVER_3417 = 3417; + public static final int NULL_3418 = 3418; + public static final int NULL_3419 = 3419; + public static final int NULL_3420 = 3420; + public static final int NULL_3421 = 3421; + public static final int NULL_3422 = 3422; + public static final int NULL_3423 = 3423; + public static final int NULL_3424 = 3424; + public static final int NULL_3425 = 3425; + public static final int NULL_3426 = 3426; + public static final int NULL_3427 = 3427; + public static final int NULL_3428 = 3428; + public static final int MACHINERY = 3429; + public static final int NULL_3430 = 3430; + public static final int ROCKS_3431 = 3431; + public static final int TRAPDOOR_3432 = 3432; + public static final int TRAPDOOR_3433 = 3433; + public static final int NULL_3434 = 3434; + public static final int NULL_3435 = 3435; + public static final int NULL_3436 = 3436; + public static final int NULL_3437 = 3437; + public static final int NULL_3438 = 3438; + public static final int NULL_3439 = 3439; + public static final int STAIRS_3440 = 3440; + public static final int STAIRS_3441 = 3441; + public static final int NULL_3442 = 3442; + public static final int HOLY_BARRIER = 3443; + public static final int GATE_3444 = 3444; + public static final int GATE_3445 = 3445; + public static final int NULL_3446 = 3446; + public static final int NULL_3447 = 3447; + public static final int NULL_3448 = 3448; + public static final int NULL_3449 = 3449; + public static final int NULL_3450 = 3450; + public static final int NULL_3451 = 3451; + public static final int NULL_3452 = 3452; + public static final int NULL_3453 = 3453; + public static final int NULL_3454 = 3454; + public static final int NULL_3455 = 3455; + public static final int NULL_3456 = 3456; + public static final int NULL_3457 = 3457; + public static final int NULL_3458 = 3458; + public static final int NULL_3459 = 3459; + public static final int NULL_3460 = 3460; + public static final int NULL_3461 = 3461; + public static final int NULL_3462 = 3462; + public static final int CELL_DOOR = 3463; + public static final int NULL_3464 = 3464; + public static final int NULL_3465 = 3465; + public static final int HANGING_MEAT = 3466; + public static final int HANGING_MEAT_3467 = 3467; + public static final int NULL_3468 = 3468; + public static final int NULL_3469 = 3469; + public static final int NULL_3470 = 3470; + public static final int NULL_3471 = 3471; + public static final int NULL_3472 = 3472; + public static final int NULL_3473 = 3473; + public static final int NULL_3474 = 3474; + public static final int NULL_3475 = 3475; + public static final int NULL_3476 = 3476; + public static final int NULL_3477 = 3477; + public static final int NULL_3478 = 3478; + public static final int STATUE_3479 = 3479; + public static final int COFFIN_3480 = 3480; + public static final int NULL_3481 = 3481; + public static final int NULL_3482 = 3482; + public static final int NULL_3483 = 3483; + public static final int NULL_3484 = 3484; + public static final int WELL_3485 = 3485; + public static final int NULL_3486 = 3486; + public static final int NULL_3487 = 3487; + public static final int NULL_3488 = 3488; + public static final int LARGE_DOOR_3489 = 3489; + public static final int LARGE_DOOR_3490 = 3490; + public static final int NULL_3491 = 3491; + public static final int NULL_3492 = 3492; + public static final int MONUMENT = 3493; + public static final int MONUMENT_3494 = 3494; + public static final int MONUMENT_3495 = 3495; + public static final int MONUMENT_3496 = 3496; + public static final int MONUMENT_3497 = 3497; + public static final int MONUMENT_3498 = 3498; + public static final int MONUMENT_3499 = 3499; + public static final int CHURCH_ORGAN_3500 = 3500; + public static final int NULL_3501 = 3501; + public static final int NULL_3502 = 3502; + public static final int NULL_3503 = 3503; + public static final int NULL_3504 = 3504; + public static final int NULL_3505 = 3505; + public static final int GATE_3506 = 3506; + public static final int GATE_3507 = 3507; + public static final int ROTTING_LOG = 3508; + public static final int FUNGI_ON_LOG = 3509; + public static final int ROTTING_BRANCH = 3510; + public static final int BUDDING_BRANCH = 3511; + public static final int A_SMALL_BUSH = 3512; + public static final int A_GOLDEN_PEAR_BUSH = 3513; + public static final int ROTTING_TREE = 3514; + public static final int NULL_3515 = 3515; + public static final int GROTTO = 3516; + public static final int GROTTO_TREE = 3517; + public static final int NULL_3518 = 3518; + public static final int NULL_3519 = 3519; + public static final int GROTTO_3520 = 3520; + public static final int ALTAR_OF_NATURE = 3521; + public static final int BRIDGE_3522 = 3522; + public static final int BENCH_3523 = 3523; + public static final int NULL_3524 = 3524; + public static final int GROTTO_3525 = 3525; + public static final int GROTTO_3526 = 3526; + public static final int STONE = 3527; + public static final int STONE_3528 = 3528; + public static final int STONE_3529 = 3529; + public static final int NULL_3530 = 3530; + public static final int NULL_3531 = 3531; + public static final int NULL_3532 = 3532; + public static final int NULL_3533 = 3533; + public static final int NULL_3534 = 3534; + public static final int NULL_3535 = 3535; + public static final int NULL_3536 = 3536; + public static final int NULL_3537 = 3537; + public static final int NULL_3538 = 3538; + public static final int NULL_3539 = 3539; + public static final int NULL_3540 = 3540; + public static final int NULL_3541 = 3541; + public static final int NULL_3542 = 3542; + public static final int NULL_3543 = 3543; + public static final int NULL_3544 = 3544; + public static final int NULL_3545 = 3545; + public static final int OLD_WELL = 3546; + public static final int NULL_3547 = 3547; + public static final int NULL_3548 = 3548; + public static final int NULL_3549 = 3549; + public static final int NULL_3550 = 3550; + public static final int BALANCING_ROPE_3551 = 3551; + public static final int BALANCING_ROPE_3552 = 3552; + public static final int LOG_BALANCE_3553 = 3553; + public static final int LOG_BALANCE_3554 = 3554; + public static final int LOG_BALANCE_3555 = 3555; + public static final int LOG_BALANCE_3556 = 3556; + public static final int LOG_BALANCE_3557 = 3557; + public static final int LOG_BALANCE_3558 = 3558; + public static final int BALANCING_LEDGE_3559 = 3559; + public static final int BALANCING_LEDGE_3560 = 3560; + public static final int BALANCING_LEDGE_3561 = 3561; + public static final int BALANCING_LEDGE_3562 = 3562; + public static final int MONKEY_BARS = 3563; + public static final int MONKEY_BARS_3564 = 3564; + public static final int LOW_WALL = 3565; + public static final int ROPE_SWING_3566 = 3566; + public static final int BLADE = 3567; + public static final int BLADE_3568 = 3568; + public static final int BLADE_3569 = 3569; + public static final int PLANK_3570 = 3570; + public static final int PLANK_3571 = 3571; + public static final int PLANK_3572 = 3572; + public static final int PLANK_3573 = 3573; + public static final int PLANK_3574 = 3574; + public static final int PLANK_3575 = 3575; + public static final int PLANK_3576 = 3576; + public static final int PLANK_3577 = 3577; + public static final int PILLAR_3578 = 3578; + public static final int PILLAR_3579 = 3579; + public static final int SPINNING_BLADES = 3580; + public static final int TICKET_DISPENSER = 3581; + public static final int FLOOR_SPIKES = 3582; + public static final int HAND_HOLDS_3583 = 3583; + public static final int HAND_HOLDS_3584 = 3584; + public static final int PRESSURE_PAD = 3585; + public static final int NULL_3586 = 3586; + public static final int NULL_3587 = 3587; + public static final int NULL_3588 = 3588; + public static final int NULL_3589 = 3589; + public static final int NULL_3590 = 3590; + public static final int NULL_3591 = 3591; + public static final int NULL_3592 = 3592; + public static final int NULL_3593 = 3593; + public static final int NULL_3594 = 3594; + public static final int NULL_3595 = 3595; + public static final int NULL_3596 = 3596; + public static final int NULL_3597 = 3597; + public static final int NULL_3598 = 3598; + public static final int NULL_3599 = 3599; + public static final int NULL_3600 = 3600; + public static final int NULL_3601 = 3601; + public static final int NULL_3602 = 3602; + public static final int NULL_3603 = 3603; + public static final int NULL_3604 = 3604; + public static final int NULL_3605 = 3605; + public static final int NULL_3606 = 3606; + public static final int NULL_3607 = 3607; + public static final int TICKET_DISPENSER_3608 = 3608; + public static final int NULL_3609 = 3609; + public static final int CLIMBING_ROPE_3610 = 3610; + public static final int NULL_3611 = 3611; + public static final int NULL_3612 = 3612; + public static final int NULL_3613 = 3613; + public static final int NULL_3614 = 3614; + public static final int NULL_3615 = 3615; + public static final int NULL_3616 = 3616; + public static final int LADDER_3617 = 3617; + public static final int LADDER_3618 = 3618; + public static final int NULL_3619 = 3619; + public static final int NULL_3620 = 3620; + public static final int NULL_3621 = 3621; + public static final int NULL_3622 = 3622; + public static final int NULL_3623 = 3623; + public static final int NULL_3624 = 3624; + public static final int NULL_3625 = 3625; + public static final int WALL_3626 = 3626; + public static final int NULL_3627 = 3627; + public static final int WALL_3628 = 3628; + public static final int WALL_3629 = 3629; + public static final int WALL_3630 = 3630; + public static final int WALL_3631 = 3631; + public static final int WALL_3632 = 3632; + public static final int NULL_3633 = 3633; + public static final int STRANGE_SHRINE = 3634; + public static final int CHEST_3635 = 3635; + public static final int CHEST_3636 = 3636; + public static final int NULL_3637 = 3637; + public static final int NULL_3638 = 3638; + public static final int NULL_3639 = 3639; + public static final int NULL_3640 = 3640; + public static final int NULL_3641 = 3641; + public static final int NULL_3642 = 3642; + public static final int NULL_3643 = 3643; + public static final int SPOTLIGHT = 3644; + public static final int NULL_3645 = 3645; + public static final int NULL_3646 = 3646; + public static final int NULL_3647 = 3647; + public static final int NULL_3648 = 3648; + public static final int NULL_3649 = 3649; + public static final int NULL_3650 = 3650; + public static final int NULL_3651 = 3651; + public static final int NULL_3652 = 3652; + public static final int NULL_3653 = 3653; + public static final int NULL_3654 = 3654; + public static final int NULL_3655 = 3655; + public static final int NULL_3656 = 3656; + public static final int NULL_3657 = 3657; + public static final int NULL_3658 = 3658; + public static final int NULL_3659 = 3659; + public static final int NULL_3660 = 3660; + public static final int NULL_3661 = 3661; + public static final int TROLL_STEW = 3662; + public static final int NULL_3663 = 3663; + public static final int NULL_3664 = 3664; + public static final int BONES = 3665; + public static final int NULL_3666 = 3666; + public static final int NULL_3667 = 3667; + public static final int NULL_3668 = 3668; + public static final int NULL_3669 = 3669; + public static final int NULL_3670 = 3670; + public static final int NULL_3671 = 3671; + public static final int NULL_3672 = 3672; + public static final int NULL_3673 = 3673; + public static final int NULL_3674 = 3674; + public static final int NULL_3675 = 3675; + public static final int STONE_MECHANISM = 3676; + public static final int STONE_MECHANISM_3677 = 3677; + public static final int NULL_3678 = 3678; + public static final int STANDARD_3679 = 3679; + public static final int FLAGPOLE_3680 = 3680; + public static final int SIGNPOST_3681 = 3681; + public static final int NULL_3682 = 3682; + public static final int NULL_3683 = 3683; + public static final int NULL_3684 = 3684; + public static final int BOXES_3685 = 3685; + public static final int BOXES_3686 = 3686; + public static final int BOXES_3687 = 3687; + public static final int NULL_3688 = 3688; + public static final int NULL_3689 = 3689; + public static final int NULL_3690 = 3690; + public static final int NULL_3691 = 3691; + public static final int CLIMBING_ROPE_3692 = 3692; + public static final int NULL_3693 = 3693; + public static final int CRATE_3694 = 3694; + public static final int NULL_3695 = 3695; + public static final int SUIT_OF_ARMOUR_3696 = 3696; + public static final int BARREL_3697 = 3697; + public static final int NULL_3698 = 3698; + public static final int NULL_3699 = 3699; + public static final int NULL_3700 = 3700; + public static final int NULL_3701 = 3701; + public static final int NULL_3702 = 3702; + public static final int NULL_3703 = 3703; + public static final int NULL_3704 = 3704; + public static final int NULL_3705 = 3705; + public static final int NULL_3706 = 3706; + public static final int NULL_3707 = 3707; + public static final int NULL_3708 = 3708; + public static final int NULL_3709 = 3709; + public static final int NULL_3710 = 3710; + public static final int NULL_3711 = 3711; + public static final int NULL_3712 = 3712; + public static final int NULL_3713 = 3713; + public static final int NULL_3714 = 3714; + public static final int NULL_3715 = 3715; + public static final int NULL_3716 = 3716; + public static final int NULL_3717 = 3717; + public static final int NULL_3718 = 3718; + public static final int NULL_3719 = 3719; + public static final int NULL_3720 = 3720; + public static final int NULL_3721 = 3721; + public static final int ROCKS_3722 = 3722; + public static final int ROCKS_3723 = 3723; + public static final int NULL_3724 = 3724; + public static final int GATE_3725 = 3725; + public static final int GATE_3726 = 3726; + public static final int GATE_3727 = 3727; + public static final int GATE_3728 = 3728; + public static final int NULL_3729 = 3729; + public static final int STILE_3730 = 3730; + public static final int NULL_3731 = 3731; + public static final int NULL_3732 = 3732; + public static final int NULL_3733 = 3733; + public static final int NULL_3734 = 3734; + public static final int CAVE_ENTRANCE_3735 = 3735; + public static final int CAVE_EXIT_3736 = 3736; + public static final int NULL_3737 = 3737; + public static final int NULL_3738 = 3738; + public static final int NULL_3739 = 3739; + public static final int NULL_3740 = 3740; + public static final int DANGER_SIGN_3741 = 3741; + public static final int DANGER_SIGN_3742 = 3742; + public static final int LARGE_DOOR_3743 = 3743; + public static final int NULL_3744 = 3744; + public static final int DOOR_3745 = 3745; + public static final int DOOR_3746 = 3746; + public static final int DOOR_3747 = 3747; + public static final int ROCKS_3748 = 3748; + public static final int NULL_3749 = 3749; + public static final int NULL_3750 = 3750; + public static final int NULL_3751 = 3751; + public static final int MYSTERIOUS_GLOW_3752 = 3752; + public static final int NULL_3753 = 3753; + public static final int NULL_3754 = 3754; + public static final int NULL_3755 = 3755; + public static final int NULL_3756 = 3756; + public static final int CAVE_ENTRANCE_3757 = 3757; + public static final int CAVE_EXIT_3758 = 3758; + public static final int CAVE_ENTRANCE_3759 = 3759; + public static final int CAVE_EXIT_3760 = 3760; + public static final int EXIT = 3761; + public static final int SECRET_DOOR = 3762; + public static final int CELL_DOOR_3763 = 3763; + public static final int CELL_DOOR_3764 = 3764; + public static final int CELL_DOOR_3765 = 3765; + public static final int NULL_3766 = 3766; + public static final int CELL_DOOR_3767 = 3767; + public static final int NULL_3768 = 3768; + public static final int FIRE_3769 = 3769; + public static final int WINDOW_3770 = 3770; + public static final int STRONGHOLD = 3771; + public static final int EXIT_3772 = 3772; + public static final int EXIT_3773 = 3773; + public static final int EXIT_3774 = 3774; + public static final int FIRE_3775 = 3775; + public static final int DOOR_3776 = 3776; + public static final int DOOR_3777 = 3777; + public static final int NULL_3778 = 3778; + public static final int NULL_3779 = 3779; + public static final int PRISON_DOOR_3780 = 3780; + public static final int NULL_3781 = 3781; + public static final int ARENA_ENTRANCE = 3782; + public static final int ARENA_ENTRANCE_3783 = 3783; + public static final int NULL_3784 = 3784; + public static final int ARENA_EXIT = 3785; + public static final int ARENA_EXIT_3786 = 3786; + public static final int NULL_3787 = 3787; + public static final int STONE_STAIRCASE = 3788; + public static final int STONE_STAIRCASE_3789 = 3789; + public static final int ROCKS_3790 = 3790; + public static final int ROCKS_3791 = 3791; + public static final int NULL_3792 = 3792; + public static final int NULL_3793 = 3793; + public static final int GRASS = 3794; + public static final int GRASS_3795 = 3795; + public static final int NULL_3796 = 3796; + public static final int CORPSE_3797 = 3797; + public static final int CORPSE_3798 = 3798; + public static final int CORPSE_3799 = 3799; + public static final int COUNTER_3800 = 3800; + public static final int CHAIR_3801 = 3801; + public static final int SMASHED_CHAIR_3802 = 3802; + public static final int ROCKS_3803 = 3803; + public static final int ROCKS_3804 = 3804; + public static final int ROCKS_3805 = 3805; + public static final int ROCKS_3806 = 3806; + public static final int ROCKS_3807 = 3807; + public static final int ROCKS_3808 = 3808; + public static final int NULL_3809 = 3809; + public static final int STOREROOM_DOOR = 3810; + public static final int NULL_3811 = 3811; + public static final int NULL_3812 = 3812; + public static final int CRATE_3813 = 3813; + public static final int CRATES_3814 = 3814; + public static final int CRATES_3815 = 3815; + public static final int KITCHEN_DRAWERS = 3816; + public static final int KITCHEN_DRAWERS_3817 = 3817; + public static final int NULL_3818 = 3818; + public static final int NULL_3819 = 3819; + public static final int FOOD_TROUGH_3820 = 3820; + public static final int RACK_3821 = 3821; + public static final int GOUTWEED_CRATE = 3822; + public static final int SIGN_3823 = 3823; + public static final int TROLL_STEW_3824 = 3824; + public static final int STALAGMITES_3825 = 3825; + public static final int STALAGMITE_3826 = 3826; + public static final int TUNNEL_ENTRANCE = 3827; + public static final int TUNNEL_ENTRANCE_3828 = 3828; + public static final int ROPE_3829 = 3829; + public static final int TUNNEL_ENTRANCE_3830 = 3830; + public static final int TUNNEL_ENTRANCE_3831 = 3831; + public static final int ROPE_3832 = 3832; + public static final int COCOON = 3833; + public static final int NULL_3834 = 3834; + public static final int NULL_3835 = 3835; + public static final int NULL_3836 = 3836; + public static final int NULL_3837 = 3837; + public static final int NULL_3838 = 3838; + public static final int NULL_3839 = 3839; + public static final int NULL_3840 = 3840; + public static final int NULL_3841 = 3841; + public static final int NULL_3842 = 3842; + public static final int NULL_3843 = 3843; + public static final int NULL_3844 = 3844; + public static final int NULL_3845 = 3845; + public static final int NULL_3846 = 3846; + public static final int NULL_3847 = 3847; + public static final int NULL_3848 = 3848; + public static final int NULL_3849 = 3849; + public static final int NULL_3850 = 3850; + public static final int NULL_3851 = 3851; + public static final int NULL_3852 = 3852; + public static final int NULL_3853 = 3853; + public static final int NULL_3854 = 3854; + public static final int NULL_3855 = 3855; + public static final int CRATE_3856 = 3856; + public static final int CRATE_3857 = 3857; + public static final int FISHING_ROD = 3858; + public static final int FISHING_ROD_3859 = 3859; + public static final int BARREL_3860 = 3860; + public static final int CRATE_3861 = 3861; + public static final int BURNING_BONES = 3862; + public static final int TRIBAL_STATUE_3863 = 3863; + public static final int NULL_3864 = 3864; + public static final int NULL_3865 = 3865; + public static final int NULL_3866 = 3866; + public static final int NULL_3867 = 3867; + public static final int NULL_3868 = 3868; + public static final int NULL_3869 = 3869; + public static final int NULL_3870 = 3870; + public static final int NULL_3871 = 3871; + public static final int NULL_3872 = 3872; + public static final int NULL_3873 = 3873; + public static final int NULL_3874 = 3874; + public static final int NULL_3875 = 3875; + public static final int NULL_3876 = 3876; + public static final int NULL_3877 = 3877; + public static final int NULL_3878 = 3878; + public static final int TREE_3879 = 3879; + public static final int TREE_STUMP_3880 = 3880; + public static final int TREE_3881 = 3881; + public static final int TREE_3882 = 3882; + public static final int TREE_3883 = 3883; + public static final int TREE_STUMP_3884 = 3884; + public static final int TREE_3885 = 3885; + public static final int TREE_3886 = 3886; + public static final int TREE_3887 = 3887; + public static final int TREE_3888 = 3888; + public static final int TREE_3889 = 3889; + public static final int TREE_3890 = 3890; + public static final int TREE_3891 = 3891; + public static final int TREE_3892 = 3892; + public static final int TREE_3893 = 3893; + public static final int NULL_3894 = 3894; + public static final int NULL_3895 = 3895; + public static final int NULL_3896 = 3896; + public static final int NULL_3897 = 3897; + public static final int NULL_3898 = 3898; + public static final int NULL_3899 = 3899; + public static final int NULL_3900 = 3900; + public static final int FLOWERS_3901 = 3901; + public static final int FLOWERS_3902 = 3902; + public static final int FLOWERS_3903 = 3903; + public static final int FLOWERS_3904 = 3904; + public static final int FLOWERS_3905 = 3905; + public static final int FLOWERS_3906 = 3906; + public static final int NULL_3907 = 3907; + public static final int NULL_3908 = 3908; + public static final int NULL_3909 = 3909; + public static final int NULL_3910 = 3910; + public static final int NULL_3911 = 3911; + public static final int MUSHROOM_3912 = 3912; + public static final int MUSHROOMS_3913 = 3913; + public static final int MUSHROOM_3914 = 3914; + public static final int MUSHROOM_3915 = 3915; + public static final int MUSHROOMS_3916 = 3916; + public static final int MUSHROOM_3917 = 3917; + public static final int ELVEN_LAMP = 3918; + public static final int TWIGS = 3919; + public static final int NULL_3920 = 3920; + public static final int TRIPWIRE = 3921; + public static final int STICKS = 3922; + public static final int LEAVES = 3923; + public static final int LEAVES_3924 = 3924; + public static final int LEAVES_3925 = 3925; + public static final int NULL_3926 = 3926; + public static final int PROTRUDING_ROCKS_3927 = 3927; + public static final int TREE_3928 = 3928; + public static final int LOG_BALANCE_3929 = 3929; + public static final int LOG_BALANCE_3930 = 3930; + public static final int LOG_BALANCE_3931 = 3931; + public static final int LOG_BALANCE_3932 = 3932; + public static final int LOG_BALANCE_3933 = 3933; + public static final int NULL_3934 = 3934; + public static final int NULL_3935 = 3935; + public static final int NULL_3936 = 3936; + public static final int DENSE_FOREST = 3937; + public static final int DENSE_FOREST_3938 = 3938; + public static final int DENSE_FOREST_3939 = 3939; + public static final int NULL_3940 = 3940; + public static final int TRACKS_3941 = 3941; + public static final int NULL_3942 = 3942; + public static final int NULL_3943 = 3943; + public static final int HUGE_GATE = 3944; + public static final int HUGE_GATE_3945 = 3945; + public static final int HUGE_GATE_3946 = 3946; + public static final int HUGE_GATE_3947 = 3947; + public static final int NULL_3948 = 3948; + public static final int NULL_3949 = 3949; + public static final int NULL_3950 = 3950; + public static final int NULL_3951 = 3951; + public static final int NULL_3952 = 3952; + public static final int NULL_3953 = 3953; + public static final int NULL_3954 = 3954; + public static final int NULL_3955 = 3955; + public static final int NULL_3956 = 3956; + public static final int NULL_3957 = 3957; + public static final int NULL_3958 = 3958; + public static final int NULL_3959 = 3959; + public static final int NULL_3960 = 3960; + public static final int NULL_3961 = 3961; + public static final int SULPHUR = 3962; + public static final int SULPHUR_3963 = 3963; + public static final int SULPHUR_3964 = 3964; + public static final int NULL_3965 = 3965; + public static final int NULL_3966 = 3966; + public static final int TREE_3967 = 3967; + public static final int TREE_3968 = 3968; + public static final int PILE_OF_SKULLS_3969 = 3969; + public static final int CHARRED_BONES_3970 = 3970; + public static final int CORPSE_3971 = 3971; + public static final int CORPSE_3972 = 3972; + public static final int CORPSE_3973 = 3973; + public static final int CORPSE_3974 = 3974; + public static final int TAR = 3975; + public static final int CATAPULT_3976 = 3976; + public static final int CATAPULTWINCH = 3977; + public static final int CATAPULTLEVER = 3978; + public static final int NULL_3979 = 3979; + public static final int TENT_FLAP = 3980; + public static final int NULL_3981 = 3981; + public static final int NULL_3982 = 3982; + public static final int TENT = 3983; + public static final int TENT_3984 = 3984; + public static final int TENT_3985 = 3985; + public static final int TENT_3986 = 3986; + public static final int BARREL_3987 = 3987; + public static final int NULL_3988 = 3988; + public static final int NULL_3989 = 3989; + public static final int NULL_3990 = 3990; + public static final int NULL_3991 = 3991; + public static final int STANDARD_3992 = 3992; + public static final int STANDARD_3993 = 3993; + public static final int SMALL_FURNACE = 3994; + public static final int TENT_WALL = 3995; + public static final int TENT_FLAP_3996 = 3996; + public static final int TENT_WALL_3997 = 3997; + public static final int DENSE_FOREST_3998 = 3998; + public static final int DENSE_FOREST_3999 = 3999; + public static final int TENT_ROOF = 4000; + public static final int TENT_WALL_4001 = 4001; + public static final int TENT_POLE = 4002; + public static final int NULL_4003 = 4003; + public static final int WELL_4004 = 4004; + public static final int WELL_4005 = 4005; + public static final int CAVE_ENTRANCE_4006 = 4006; + public static final int CAVE_EXIT_4007 = 4007; + public static final int ALTAR_4008 = 4008; + public static final int NULL_4009 = 4009; + public static final int NULL_4010 = 4010; + public static final int NULL_4011 = 4011; + public static final int NULL_4012 = 4012; + public static final int NULL_4013 = 4013; + public static final int NULL_4014 = 4014; + public static final int NULL_4015 = 4015; + public static final int NULL_4016 = 4016; + public static final int NULL_4017 = 4017; + public static final int NULL_4018 = 4018; + public static final int NULL_4019 = 4019; + public static final int NULL_4020 = 4020; + public static final int NULL_4021 = 4021; + public static final int NULL_4022 = 4022; + public static final int NULL_4023 = 4023; + public static final int BARREL_4024 = 4024; + public static final int BARREL_4025 = 4025; + public static final int FRACTIONALIZING_STILL = 4026; + public static final int PILE_OF_ROCK_4027 = 4027; + public static final int PILE_OF_ROCK_4028 = 4028; + public static final int PILE_OF_ROCK_4029 = 4029; + public static final int PILE_OF_ROCK_4030 = 4030; + public static final int SHANTAY_PASS = 4031; + public static final int NULL_4032 = 4032; + public static final int NULL_4033 = 4033; + public static final int NULL_4034 = 4034; + public static final int DRUIDS_ROBES = 4035; + public static final int DRUIDS_ROBES_4036 = 4036; + public static final int NULL_4037 = 4037; + public static final int NULL_4038 = 4038; + public static final int LAUNDRY_BASKET = 4039; + public static final int NULL_4040 = 4040; + public static final int NULL_4041 = 4041; + public static final int NULL_4042 = 4042; + public static final int AVIARY_HATCH = 4043; + public static final int STANDARD_4044 = 4044; + public static final int NULL_4045 = 4045; + public static final int NULL_4046 = 4046; + public static final int NULL_4047 = 4047; + public static final int TREE_4048 = 4048; + public static final int TREE_4049 = 4049; + public static final int TREE_4050 = 4050; + public static final int TREE_4051 = 4051; + public static final int TREE_4052 = 4052; + public static final int TREE_4053 = 4053; + public static final int TREE_4054 = 4054; + public static final int HUGE_MUSHROOM = 4055; + public static final int HUGE_MUSHROOM_4056 = 4056; + public static final int HUGE_MUSHROOM_4057 = 4057; + public static final int OBSTACLE_PIPE_4058 = 4058; + public static final int BALANCING_ROPE_4059 = 4059; + public static final int HOLLOW_TREE_4060 = 4060; + public static final int TREE_STUMP_4061 = 4061; + public static final int SHELF_4062 = 4062; + public static final int SINK_4063 = 4063; + public static final int SMASHED_TABLE_4064 = 4064; + public static final int STONE_STAND_4065 = 4065; + public static final int SIGNPOST_4066 = 4066; + public static final int WARNING_SIGN = 4067; + public static final int BROKEN_WALL = 4068; + public static final int TEMPLE_WALL = 4069; + public static final int TEMPLE_WALL_4070 = 4070; + public static final int TEMPLE_WALL_4071 = 4071; + public static final int TEMPLE_WALL_4072 = 4072; + public static final int TEMPLE_WALL_4073 = 4073; + public static final int TEMPLE_WALL_4074 = 4074; + public static final int TEMPLE_WALL_4075 = 4075; + public static final int TEMPLE_WALL_4076 = 4076; + public static final int TEMPLE_WALL_4077 = 4077; + public static final int TEMPLE_WALL_4078 = 4078; + public static final int BROKEN_WALL_4079 = 4079; + public static final int TEMPLE_WALL_4080 = 4080; + public static final int TEMPLE_WALL_4081 = 4081; + public static final int TEMPLE_WALL_4082 = 4082; + public static final int TEMPLE_WALL_4083 = 4083; + public static final int TEMPLE_WALL_4084 = 4084; + public static final int TEMPLE_WALL_4085 = 4085; + public static final int TEMPLE_WALL_4086 = 4086; + public static final int TEMPLE_WALL_4087 = 4087; + public static final int TEMPLE_WALL_4088 = 4088; + public static final int TEMPLE_WALL_4089 = 4089; + public static final int FLAMING_FIRE_ALTAR = 4090; + public static final int FIRE_ALTAR = 4091; + public static final int BROKEN_FIRE_ALTAR = 4092; + public static final int FUNERAL_PYRE = 4093; + public static final int FUNERAL_PYRE_4094 = 4094; + public static final int FUNERAL_PYRE_4095 = 4095; + public static final int FUNERAL_PYRE_4096 = 4096; + public static final int FUNERAL_PYRE_4097 = 4097; + public static final int FUNERAL_PYRE_4098 = 4098; + public static final int FUNERAL_PYRE_4099 = 4099; + public static final int FUNERAL_PYRE_4100 = 4100; + public static final int FUNERAL_PYRE_4101 = 4101; + public static final int FUNERAL_PYRE_4102 = 4102; + public static final int FUNERAL_PYRE_4103 = 4103; + public static final int FUNERAL_PYRE_4104 = 4104; + public static final int FUNERAL_PYRE_4105 = 4105; + public static final int SOLID_BRONZE_DOOR = 4106; + public static final int SOLID_STEEL_DOOR = 4107; + public static final int SOLID_BLACK_DOOR = 4108; + public static final int SOLID_SILVER_DOOR = 4109; + public static final int NULL_4110 = 4110; + public static final int BRONZE_CHEST = 4111; + public static final int BRONZE_CHEST_4112 = 4112; + public static final int BRONZE_CHEST_4113 = 4113; + public static final int BRONZE_CHEST_4114 = 4114; + public static final int BRONZE_CHEST_4115 = 4115; + public static final int STEEL_CHEST = 4116; + public static final int STEEL_CHEST_4117 = 4117; + public static final int STEEL_CHEST_4118 = 4118; + public static final int STEEL_CHEST_4119 = 4119; + public static final int STEEL_CHEST_4120 = 4120; + public static final int BLACK_CHEST = 4121; + public static final int BLACK_CHEST_4122 = 4122; + public static final int BLACK_CHEST_4123 = 4123; + public static final int BLACK_CHEST_4124 = 4124; + public static final int BLACK_CHEST_4125 = 4125; + public static final int SILVER_CHEST = 4126; + public static final int SILVER_CHEST_4127 = 4127; + public static final int SILVER_CHEST_4128 = 4128; + public static final int SILVER_CHEST_4129 = 4129; + public static final int SILVER_CHEST_4130 = 4130; + public static final int BRONZE_CHEST_4131 = 4131; + public static final int WOODEN_DOORS = 4132; + public static final int WOODEN_DOORS_4133 = 4133; + public static final int HILLSIDE_ENTRANCE_4134 = 4134; + public static final int HILLSIDE_ENTRANCE_4135 = 4135; + public static final int NULL_4136 = 4136; + public static final int NULL_4137 = 4137; + public static final int COUNTER_4138 = 4138; + public static final int GATE_4139 = 4139; + public static final int GATE_4140 = 4140; + public static final int STRANGE_ALTAR = 4141; + public static final int SWAYING_TREE = 4142; + public static final int DANGER_SIGN_4143 = 4143; + public static final int GOLDEN_TREE = 4144; + public static final int NULL_4145 = 4145; + public static final int NULL_4146 = 4146; + public static final int CAVE_ENTRANCE_4147 = 4147; + public static final int DOOR_4148 = 4148; + public static final int LALLIS_STEW = 4149; + public static final int PORTAL_4150 = 4150; + public static final int PORTAL_4151 = 4151; + public static final int PORTAL_4152 = 4152; + public static final int PORTAL_4153 = 4153; + public static final int PORTAL_4154 = 4154; + public static final int PORTAL_4155 = 4155; + public static final int PORTAL_4156 = 4156; + public static final int PORTAL_4157 = 4157; + public static final int LADDER_4158 = 4158; + public static final int LADDER_4159 = 4159; + public static final int LADDER_4160 = 4160; + public static final int ESCAPE_ROPE = 4161; + public static final int PIPE_4162 = 4162; + public static final int LADDER_4163 = 4163; + public static final int LADDER_4164 = 4164; + public static final int DOOR_4165 = 4165; + public static final int DOOR_4166 = 4166; + public static final int CHEST_4167 = 4167; + public static final int CHEST_4168 = 4168; + public static final int FROZEN_TABLE = 4169; + public static final int CHEST_4170 = 4170; + public static final int BOOKCASE_4171 = 4171; + public static final int COOKING_RANGE_4172 = 4172; + public static final int TRAPDOOR_4173 = 4173; + public static final int TRAPDOOR_4174 = 4174; + public static final int DRAIN_4175 = 4175; + public static final int TAP = 4176; + public static final int CUPBOARD_4177 = 4177; + public static final int CUPBOARD_4178 = 4178; + public static final int ABSTRACT_MURAL = 4179; + public static final int ABSTRACT_MURAL_4180 = 4180; + public static final int UNICORNS_HEAD_4181 = 4181; + public static final int BULLS_HEAD_4182 = 4182; + public static final int BOXES_4183 = 4183; + public static final int BOXES_4184 = 4184; + public static final int CRATE_4185 = 4185; + public static final int CRATE_4186 = 4186; + public static final int LADDER_4187 = 4187; + public static final int LADDER_4188 = 4188; + public static final int LADDER_4189 = 4189; + public static final int NULL_4190 = 4190; + public static final int NULL_4191 = 4191; + public static final int NULL_4192 = 4192; + public static final int NULL_4193 = 4193; + public static final int NULL_4194 = 4194; + public static final int NULL_4195 = 4195; + public static final int NULL_4196 = 4196; + public static final int NULL_4197 = 4197; + public static final int NULL_4198 = 4198; + public static final int NULL_4199 = 4199; + public static final int NULL_4200 = 4200; + public static final int NULL_4201 = 4201; + public static final int NULL_4202 = 4202; + public static final int NULL_4203 = 4203; + public static final int NULL_4204 = 4204; + public static final int NULL_4205 = 4205; + public static final int NULL_4206 = 4206; + public static final int NULL_4207 = 4207; + public static final int NULL_4208 = 4208; + public static final int NULL_4209 = 4209; + public static final int NULL_4210 = 4210; + public static final int NULL_4211 = 4211; + public static final int NULL_4212 = 4212; + public static final int NULL_4213 = 4213; + public static final int NULL_4214 = 4214; + public static final int NULL_4215 = 4215; + public static final int NULL_4216 = 4216; + public static final int NULL_4217 = 4217; + public static final int NULL_4218 = 4218; + public static final int NULL_4219 = 4219; + public static final int NULL_4220 = 4220; + public static final int NULL_4221 = 4221; + public static final int NULL_4222 = 4222; + public static final int NULL_4223 = 4223; + public static final int NULL_4224 = 4224; + public static final int NULL_4225 = 4225; + public static final int NULL_4226 = 4226; + public static final int NULL_4227 = 4227; + public static final int NULL_4228 = 4228; + public static final int NULL_4229 = 4229; + public static final int NULL_4230 = 4230; + public static final int NULL_4231 = 4231; + public static final int NULL_4232 = 4232; + public static final int NULL_4233 = 4233; + public static final int NULL_4234 = 4234; + public static final int NULL_4235 = 4235; + public static final int NULL_4236 = 4236; + public static final int NULL_4237 = 4237; + public static final int NULL_4238 = 4238; + public static final int NULL_4239 = 4239; + public static final int NULL_4240 = 4240; + public static final int NULL_4241 = 4241; + public static final int NULL_4242 = 4242; + public static final int NULL_4243 = 4243; + public static final int NULL_4244 = 4244; + public static final int NULL_4245 = 4245; + public static final int NULL_4246 = 4246; + public static final int DOOR_4247 = 4247; + public static final int DOOR_4248 = 4248; + public static final int NULL_4249 = 4249; + public static final int DOOR_4250 = 4250; + public static final int DOOR_4251 = 4251; + public static final int CHEST_4252 = 4252; + public static final int CHEST_4253 = 4253; + public static final int NULL_4254 = 4254; + public static final int NULL_4255 = 4255; + public static final int NULL_4256 = 4256; + public static final int NULL_4257 = 4257; + public static final int NULL_4258 = 4258; + public static final int NULL_4259 = 4259; + public static final int NULL_4260 = 4260; + public static final int NULL_4261 = 4261; + public static final int NULL_4262 = 4262; + public static final int NULL_4263 = 4263; + public static final int NULL_4264 = 4264; + public static final int FIRE_4265 = 4265; + public static final int FIRE_4266 = 4266; + public static final int SPIT_ROAST = 4267; + public static final int NULL_4268 = 4268; + public static final int WOODEN_TABLE = 4269; + public static final int WOODEN_TABLE_4270 = 4270; + public static final int CHAIR_4271 = 4271; + public static final int TABLE_4272 = 4272; + public static final int BAR_PUMPS_4273 = 4273; + public static final int BAR = 4274; + public static final int BARREL_4275 = 4275; + public static final int MARKET_STALL_4276 = 4276; + public static final int FISH_STALL = 4277; + public static final int FUR_STALL_4278 = 4278; + public static final int NULL_4279 = 4279; + public static final int NULL_4280 = 4280; + public static final int NULL_4281 = 4281; + public static final int NULL_4282 = 4282; + public static final int DRAIN_4283 = 4283; + public static final int NULL_4284 = 4284; + public static final int TAP_4285 = 4285; + public static final int KEG = 4286; + public static final int BED_4287 = 4287; + public static final int BED_4288 = 4288; + public static final int NULL_4289 = 4289; + public static final int NULL_4290 = 4290; + public static final int NULL_4291 = 4291; + public static final int NULL_4292 = 4292; + public static final int NULL_4293 = 4293; + public static final int NULL_4294 = 4294; + public static final int NULL_4295 = 4295; + public static final int ABANDONED_CART = 4296; + public static final int BOXES_4297 = 4297; + public static final int BOXES_4298 = 4298; + public static final int BOXES_4299 = 4299; + public static final int CRATE_4300 = 4300; + public static final int CRATE_4301 = 4301; + public static final int NULL_4302 = 4302; + public static final int NULL_4303 = 4303; + public static final int FURNACE_4304 = 4304; + public static final int FURNACE_4305 = 4305; + public static final int ANVIL_4306 = 4306; + public static final int BLACKSMITHS_TOOLS_4307 = 4307; + public static final int POTTERY_OVEN_4308 = 4308; + public static final int SPINNING_WHEEL_4309 = 4309; + public static final int POTTERS_WHEEL_4310 = 4310; + public static final int GATE_4311 = 4311; + public static final int GATE_4312 = 4312; + public static final int GATE_4313 = 4313; + public static final int NULL_4314 = 4314; + public static final int NULL_4315 = 4315; + public static final int NULL_4316 = 4316; + public static final int NULL_4317 = 4317; + public static final int NULL_4318 = 4318; + public static final int NULL_4319 = 4319; + public static final int NULL_4320 = 4320; + public static final int NULL_4321 = 4321; + public static final int NULL_4322 = 4322; + public static final int NULL_4323 = 4323; + public static final int NULL_4324 = 4324; + public static final int NULL_4325 = 4325; + public static final int NULL_4326 = 4326; + public static final int NULL_4327 = 4327; + public static final int TREE_STUMP_4328 = 4328; + public static final int TREE_STUMP_4329 = 4329; + public static final int NULL_4330 = 4330; + public static final int NULL_4331 = 4331; + public static final int NULL_4332 = 4332; + public static final int NULL_4333 = 4333; + public static final int NULL_4334 = 4334; + public static final int NULL_4335 = 4335; + public static final int NULL_4336 = 4336; + public static final int NULL_4337 = 4337; + public static final int NULL_4338 = 4338; + public static final int NULL_4339 = 4339; + public static final int NULL_4340 = 4340; + public static final int NULL_4341 = 4341; + public static final int NULL_4342 = 4342; + public static final int NULL_4343 = 4343; + public static final int NULL_4344 = 4344; + public static final int NULL_4345 = 4345; + public static final int NULL_4346 = 4346; + public static final int NULL_4347 = 4347; + public static final int SHELL = 4348; + public static final int SHELL_4349 = 4349; + public static final int SHELL_4350 = 4350; + public static final int SHELL_4351 = 4351; + public static final int BOWL = 4352; + public static final int NULL_4353 = 4353; + public static final int NULL_4354 = 4354; + public static final int NULL_4355 = 4355; + public static final int NULL_4356 = 4356; + public static final int NULL_4357 = 4357; + public static final int NULL_4358 = 4358; + public static final int NULL_4359 = 4359; + public static final int NULL_4360 = 4360; + public static final int NULL_4361 = 4361; + public static final int NULL_4362 = 4362; + public static final int NULL_4363 = 4363; + public static final int NULL_4364 = 4364; + public static final int NULL_4365 = 4365; + public static final int SHELF_4366 = 4366; + public static final int SHELF_4367 = 4367; + public static final int SHELF_4368 = 4368; + public static final int SHELF_4369 = 4369; + public static final int SHELF_4370 = 4370; + public static final int SHELF_4371 = 4371; + public static final int TABLE_4372 = 4372; + public static final int SAND_PIT_4373 = 4373; + public static final int NULL_4374 = 4374; + public static final int NULL_4375 = 4375; + public static final int NULL_4376 = 4376; + public static final int STANDARD_STAND = 4377; + public static final int STANDARD_STAND_4378 = 4378; + public static final int NULL_4379 = 4379; + public static final int IRON_LADDER = 4380; + public static final int CATAPULT_4381 = 4381; + public static final int CATAPULT_4382 = 4382; + public static final int IRON_LADDER_4383 = 4383; + public static final int NULL_4384 = 4384; + public static final int CATAPULT_4385 = 4385; + public static final int CATAPULT_4386 = 4386; + public static final int SARADOMIN_PORTAL = 4387; + public static final int ZAMORAK_PORTAL = 4388; + public static final int PORTAL_4389 = 4389; + public static final int PORTAL_4390 = 4390; + public static final int NULL_4391 = 4391; + public static final int NULL_4392 = 4392; + public static final int NULL_4393 = 4393; + public static final int NULL_4394 = 4394; + public static final int NULL_4395 = 4395; + public static final int NULL_4396 = 4396; + public static final int NULL_4397 = 4397; + public static final int NULL_4398 = 4398; + public static final int NULL_4399 = 4399; + public static final int NULL_4400 = 4400; + public static final int NULL_4401 = 4401; + public static final int NULL_4402 = 4402; + public static final int NULL_4403 = 4403; + public static final int NULL_4404 = 4404; + public static final int NULL_4405 = 4405; + public static final int PORTAL_4406 = 4406; + public static final int PORTAL_4407 = 4407; + public static final int GUTHIX_PORTAL = 4408; + public static final int NULL_4409 = 4409; + public static final int NULL_4410 = 4410; + public static final int STEPPING_STONE_4411 = 4411; + public static final int IRON_LADDER_4412 = 4412; + public static final int IRON_LADDER_4413 = 4413; + public static final int STAIRCASE_4414 = 4414; + public static final int STAIRCASE_4415 = 4415; + public static final int STAIRCASE_4416 = 4416; + public static final int STAIRCASE_4417 = 4417; + public static final int STAIRCASE_4418 = 4418; + public static final int STAIRCASE_4419 = 4419; + public static final int STAIRCASE_4420 = 4420; + public static final int BARRICADE = 4421; + public static final int BARRICADE_4422 = 4422; + public static final int LARGE_DOOR_4423 = 4423; + public static final int LARGE_DOOR_4424 = 4424; + public static final int LARGE_DOOR_4425 = 4425; + public static final int LARGE_DOOR_4426 = 4426; + public static final int LARGE_DOOR_4427 = 4427; + public static final int LARGE_DOOR_4428 = 4428; + public static final int LARGE_DOOR_4429 = 4429; + public static final int LARGE_DOOR_4430 = 4430; + public static final int BROKEN_DOOR = 4431; + public static final int BROKEN_DOOR_4432 = 4432; + public static final int BROKEN_DOOR_4433 = 4433; + public static final int BROKEN_DOOR_4434 = 4434; + public static final int NULL_4435 = 4435; + public static final int NULL_4436 = 4436; + public static final int ROCKS_4437 = 4437; + public static final int ROCKS_4438 = 4438; + public static final int NULL_4439 = 4439; + public static final int NULL_4440 = 4440; + public static final int NULL_4441 = 4441; + public static final int NULL_4442 = 4442; + public static final int NULL_4443 = 4443; + public static final int CLIMBING_ROPE_4444 = 4444; + public static final int NULL_4445 = 4445; + public static final int BATTLEMENTS = 4446; + public static final int BATTLEMENTS_4447 = 4447; + public static final int CAVE_WALL = 4448; + public static final int STAIRCASE_4449 = 4449; + public static final int STAIRCASE_4450 = 4450; + public static final int NULL_4451 = 4451; + public static final int NULL_4452 = 4452; + public static final int NULL_4453 = 4453; + public static final int NULL_4454 = 4454; + public static final int NULL_4455 = 4455; + public static final int NULL_4456 = 4456; + public static final int NULL_4457 = 4457; + public static final int TABLE_4458 = 4458; + public static final int TABLE_4459 = 4459; + public static final int TABLE_4460 = 4460; + public static final int TABLE_4461 = 4461; + public static final int TABLE_4462 = 4462; + public static final int TABLE_4463 = 4463; + public static final int TABLE_4464 = 4464; + public static final int DOOR_4465 = 4465; + public static final int DOOR_4466 = 4466; + public static final int DOOR_4467 = 4467; + public static final int DOOR_4468 = 4468; + public static final int ENERGY_BARRIER = 4469; + public static final int ENERGY_BARRIER_4470 = 4470; + public static final int TRAPDOOR_4471 = 4471; + public static final int TRAPDOOR_4472 = 4472; + public static final int NULL_4473 = 4473; + public static final int NULL_4474 = 4474; + public static final int NULL_4475 = 4475; + public static final int NULL_4476 = 4476; + public static final int NULL_4477 = 4477; + public static final int NULL_4478 = 4478; + public static final int NULL_4479 = 4479; + public static final int NULL_4480 = 4480; + public static final int NULL_4481 = 4481; + public static final int TAP_4482 = 4482; + public static final int BANK_CHEST = 4483; + public static final int SCOREBOARD_4484 = 4484; + public static final int IRON_LADDER_4485 = 4485; + public static final int NULL_4486 = 4486; + public static final int DOOR_4487 = 4487; + public static final int NULL_4488 = 4488; + public static final int NULL_4489 = 4489; + public static final int DOOR_4490 = 4490; + public static final int DOOR_4491 = 4491; + public static final int DOOR_4492 = 4492; + public static final int STAIRCASE_4493 = 4493; + public static final int STAIRCASE_4494 = 4494; + public static final int STAIRCASE_4495 = 4495; + public static final int STAIRCASE_4496 = 4496; + public static final int STAIRCASE_4497 = 4497; + public static final int STAIRCASE_4498 = 4498; + public static final int CAVE_ENTRANCE_4499 = 4499; + public static final int TUNNEL_4500 = 4500; + public static final int NULL_4501 = 4501; + public static final int NULL_4502 = 4502; + public static final int NULL_4503 = 4503; + public static final int NULL_4504 = 4504; + public static final int NULL_4505 = 4505; + public static final int NULL_4506 = 4506; + public static final int NULL_4507 = 4507; + public static final int NULL_4508 = 4508; + public static final int NULL_4509 = 4509; + public static final int NULL_4510 = 4510; + public static final int NULL_4511 = 4511; + public static final int NULL_4512 = 4512; + public static final int HEAP_OF_BRICKS = 4513; + public static final int NULL_4514 = 4514; + public static final int NULL_4515 = 4515; + public static final int NULL_4516 = 4516; + public static final int NULL_4517 = 4517; + public static final int CORPSE_4518 = 4518; + public static final int CORPSE_4519 = 4519; + public static final int CORPSE_4520 = 4520; + public static final int NULL_4521 = 4521; + public static final int NULL_4522 = 4522; + public static final int NULL_4523 = 4523; + public static final int NULL_4524 = 4524; + public static final int NULL_4525 = 4525; + public static final int NULL_4526 = 4526; + public static final int NULL_4527 = 4527; + public static final int NULL_4528 = 4528; + public static final int NULL_4529 = 4529; + public static final int NULL_4530 = 4530; + public static final int NULL_4531 = 4531; + public static final int NULL_4532 = 4532; + public static final int NULL_4533 = 4533; + public static final int NULL_4534 = 4534; + public static final int NULL_4535 = 4535; + public static final int NULL_4536 = 4536; + public static final int NULL_4537 = 4537; + public static final int NULL_4538 = 4538; + public static final int NULL_4539 = 4539; + public static final int NULL_4540 = 4540; + public static final int STATUE_4541 = 4541; + public static final int NULL_4542 = 4542; + public static final int STRANGE_WALL = 4543; + public static final int STRANGE_WALL_4544 = 4544; + public static final int STRANGE_WALL_4545 = 4545; + public static final int STRANGE_WALL_4546 = 4546; + public static final int NULL_4547 = 4547; + public static final int NULL_4548 = 4548; + public static final int NULL_4549 = 4549; + public static final int BASALT_ROCK = 4550; + public static final int BASALT_ROCK_4551 = 4551; + public static final int BASALT_ROCK_4552 = 4552; + public static final int BASALT_ROCK_4553 = 4553; + public static final int BASALT_ROCK_4554 = 4554; + public static final int BASALT_ROCK_4555 = 4555; + public static final int BASALT_ROCK_4556 = 4556; + public static final int BASALT_ROCK_4557 = 4557; + public static final int BASALT_ROCK_4558 = 4558; + public static final int BASALT_ROCK_4559 = 4559; + public static final int NULL_4560 = 4560; + public static final int NULL_4561 = 4561; + public static final int NULL_4562 = 4562; + public static final int NULL_4563 = 4563; + public static final int NULL_4564 = 4564; + public static final int NULL_4565 = 4565; + public static final int NULL_4566 = 4566; + public static final int NULL_4567 = 4567; + public static final int STAIRCASE_4568 = 4568; + public static final int STAIRCASE_4569 = 4569; + public static final int STAIRCASE_4570 = 4570; + public static final int NULL_4571 = 4571; + public static final int NULL_4572 = 4572; + public static final int NULL_4573 = 4573; + public static final int NULL_4574 = 4574; + public static final int NULL_4575 = 4575; + public static final int NULL_4576 = 4576; + public static final int DOORWAY_4577 = 4577; + public static final int NULL_4578 = 4578; + public static final int NULL_4579 = 4579; + public static final int NULL_4580 = 4580; + public static final int NULL_4581 = 4581; + public static final int NULL_4582 = 4582; + public static final int NULL_4583 = 4583; + public static final int NULL_4584 = 4584; + public static final int NULL_4585 = 4585; + public static final int NULL_4586 = 4586; + public static final int LIGHTING_MECHANISM = 4587; + public static final int LIGHTING_MECHANISM_4588 = 4588; + public static final int LIGHTING_MECHANISM_4589 = 4589; + public static final int LIGHTING_MECHANISM_4590 = 4590; + public static final int NULL_4591 = 4591; + public static final int NULL_4592 = 4592; + public static final int NULL_4593 = 4593; + public static final int NULL_4594 = 4594; + public static final int NULL_4595 = 4595; + public static final int NULL_4596 = 4596; + public static final int NULL_4597 = 4597; + public static final int NULL_4598 = 4598; + public static final int NULL_4599 = 4599; + public static final int NULL_4600 = 4600; + public static final int NULL_4601 = 4601; + public static final int NULL_4602 = 4602; + public static final int NULL_4603 = 4603; + public static final int NULL_4604 = 4604; + public static final int NULL_4605 = 4605; + public static final int NULL_4606 = 4606; + public static final int NULL_4607 = 4607; + public static final int NULL_4608 = 4608; + public static final int NULL_4609 = 4609; + public static final int SHELL_4610 = 4610; + public static final int SHELL_4611 = 4611; + public static final int SHELL_4612 = 4612; + public static final int SHELL_4613 = 4613; + public static final int BOWL_4614 = 4614; + public static final int BROKEN_BRIDGE = 4615; + public static final int BROKEN_BRIDGE_4616 = 4616; + public static final int BOOKCASE_4617 = 4617; + public static final int FIREPLACE_4618 = 4618; + public static final int NULL_4619 = 4619; + public static final int STAIRS_4620 = 4620; + public static final int STAIRS_4621 = 4621; + public static final int STAIRS_4622 = 4622; + public static final int STAIRS_4623 = 4623; + public static final int STAIRS_4624 = 4624; + public static final int STAIRS_4625 = 4625; + public static final int STAIRS_4626 = 4626; + public static final int STAIRS_4627 = 4627; + public static final int NULL_4628 = 4628; + public static final int LARGE_DOOR_4629 = 4629; + public static final int LARGE_DOOR_4630 = 4630; + public static final int LARGE_DOOR_4631 = 4631; + public static final int LARGE_DOOR_4632 = 4632; + public static final int LARGE_DOOR_4633 = 4633; + public static final int LARGE_DOOR_4634 = 4634; + public static final int NULL_4635 = 4635; + public static final int DOOR_4636 = 4636; + public static final int DOOR_4637 = 4637; + public static final int DOOR_4638 = 4638; + public static final int DOOR_4639 = 4639; + public static final int DOOR_4640 = 4640; + public static final int STACKED_BARRELS = 4641; + public static final int NOTICEBOARD_4642 = 4642; + public static final int LADDER_4643 = 4643; + public static final int LADDER_4644 = 4644; + public static final int LADDER_4645 = 4645; + public static final int LADDER_4646 = 4646; + public static final int LADDER_4647 = 4647; + public static final int LADDER_4648 = 4648; + public static final int NULL_4649 = 4649; + public static final int FIREPLACE_4650 = 4650; + public static final int TABLE_4651 = 4651; + public static final int TABLE_4652 = 4652; + public static final int TABLE_4653 = 4653; + public static final int NULL_4654 = 4654; + public static final int NULL_4655 = 4655; + public static final int STOOL_4656 = 4656; + public static final int NULL_4657 = 4657; + public static final int PLAQUE_4658 = 4658; + public static final int PLAQUE_4659 = 4659; + public static final int PLAQUE_4660 = 4660; + public static final int PLAQUE_4661 = 4661; + public static final int NULL_4662 = 4662; + public static final int NULL_4663 = 4663; + public static final int NULL_4664 = 4664; + public static final int NULL_4665 = 4665; + public static final int NULL_4666 = 4666; + public static final int NULL_4667 = 4667; + public static final int NULL_4668 = 4668; + public static final int ARRAV = 4669; + public static final int CAMORRA = 4670; + public static final int BOOKCASE_4671 = 4671; + public static final int THRONE_ROOM_DOOR = 4672; + public static final int NULL_4673 = 4673; + public static final int MAPLE_TREE_4674 = 4674; + public static final int HERBS = 4675; + public static final int ROCKS_4676 = 4676; + public static final int HERBS_4677 = 4677; + public static final int HERBS_4678 = 4678; + public static final int HERBS_4679 = 4679; + public static final int NULL_4680 = 4680; + public static final int NULL_4681 = 4681; + public static final int NULL_4682 = 4682; + public static final int HARP = 4683; + public static final int BARREL_4684 = 4684; + public static final int HOLLOW_LOG_4685 = 4685; + public static final int HOLLOW_LOG_4686 = 4686; + public static final int NULL_4687 = 4687; + public static final int NULL_4688 = 4688; + public static final int NULL_4689 = 4689; + public static final int CHAIR_4690 = 4690; + public static final int NULL_4691 = 4691; + public static final int FLAGPOLE_4692 = 4692; + public static final int FLAGPOLE_4693 = 4693; + public static final int NULL_4694 = 4694; + public static final int NULL_4695 = 4695; + public static final int DOOR_4696 = 4696; + public static final int DOOR_4697 = 4697; + public static final int NULL_4698 = 4698; + public static final int NULL_4699 = 4699; + public static final int NULL_4700 = 4700; + public static final int DOOR_4701 = 4701; + public static final int CHAIR_4702 = 4702; + public static final int BED_4703 = 4703; + public static final int BED_4704 = 4704; + public static final int FISH_STALL_4705 = 4705; + public static final int VEG_STALL = 4706; + public static final int FISH_STALL_4707 = 4707; + public static final int VEG_STALL_4708 = 4708; + public static final int NULL_4709 = 4709; + public static final int DOORWAY_4710 = 4710; + public static final int NULL_4711 = 4711; + public static final int TRAPDOOR_4712 = 4712; + public static final int TRAPDOOR_4713 = 4713; + public static final int CRATE_4714 = 4714; + public static final int CRATE_4715 = 4715; + public static final int CRATE_4716 = 4716; + public static final int CRATE_4717 = 4717; + public static final int CRATE_4718 = 4718; + public static final int CRATE_4719 = 4719; + public static final int CRATE_4720 = 4720; + public static final int CRATE_4721 = 4721; + public static final int CRATE_4722 = 4722; + public static final int CRATE_4723 = 4723; + public static final int CRATE_4724 = 4724; + public static final int CRATE_4725 = 4725; + public static final int CRATE_4726 = 4726; + public static final int CRATE_4727 = 4727; + public static final int CLIMBING_ROPE_4728 = 4728; + public static final int BUSH_4729 = 4729; + public static final int NULL_4730 = 4730; + public static final int NULL_4731 = 4731; + public static final int NULL_4732 = 4732; + public static final int NULL_4733 = 4733; + public static final int NULL_4734 = 4734; + public static final int NULL_4735 = 4735; + public static final int NULL_4736 = 4736; + public static final int NULL_4737 = 4737; + public static final int NULL_4738 = 4738; + public static final int NULL_4739 = 4739; + public static final int NULL_4740 = 4740; + public static final int NULL_4741 = 4741; + public static final int NULL_4742 = 4742; + public static final int BAMBOO_LADDER = 4743; + public static final int BAMBOO_LADDER_4744 = 4744; + public static final int END_OF_BRIDGE = 4745; + public static final int CRATE_4746 = 4746; + public static final int NULL_4747 = 4747; + public static final int NULL_4748 = 4748; + public static final int BANANA_TREE_4749 = 4749; + public static final int BANANA_TREE_4750 = 4750; + public static final int BANANA_TREE_4751 = 4751; + public static final int BANANA_TREE_4752 = 4752; + public static final int BANANA_TREE_4753 = 4753; + public static final int BANANA_TREE_4754 = 4754; + public static final int STAIRS_4755 = 4755; + public static final int STAIRS_4756 = 4756; + public static final int NULL_4757 = 4757; + public static final int NULL_4758 = 4758; + public static final int NULL_4759 = 4759; + public static final int NULL_4760 = 4760; + public static final int NULL_4761 = 4761; + public static final int NULL_4762 = 4762; + public static final int NULL_4763 = 4763; + public static final int BAMBOO_STOOL = 4764; + public static final int WALL_OF_FLAME = 4765; + public static final int WALL_OF_FLAME_4766 = 4766; + public static final int SACRIFICIAL_PYRE = 4767; + public static final int WALL_OF_BRICKS = 4768; + public static final int PILE_OF_BRICKS = 4769; + public static final int PILE_OF_BRICKS_4770 = 4770; + public static final int AWOWOGEI = 4771; + public static final int BAMBOO_LADDER_4772 = 4772; + public static final int BAMBOO_LADDER_4773 = 4773; + public static final int BAMBOO_LADDER_4774 = 4774; + public static final int BAMBOO_LADDER_4775 = 4775; + public static final int BAMBOO_LADDER_4776 = 4776; + public static final int BAMBOO_LADDER_4777 = 4777; + public static final int BAMBOO_LADDER_4778 = 4778; + public static final int BAMBOO_LADDER_4779 = 4779; + public static final int BAMBOO_LADDER_4780 = 4780; + public static final int BAMBOO_LADDER_4781 = 4781; + public static final int NULL_4782 = 4782; + public static final int NULL_4783 = 4783; + public static final int NULL_4784 = 4784; + public static final int NULL_4785 = 4785; + public static final int POTTED_PLANT_4786 = 4786; + public static final int BAMBOO_GATE = 4787; + public static final int BAMBOO_GATE_4788 = 4788; + public static final int NULL_4789 = 4789; + public static final int NULL_4790 = 4790; + public static final int BAMBOO_BED = 4791; + public static final int BAMBOO_BED_4792 = 4792; + public static final int BAMBOO_BED_4793 = 4793; + public static final int POT_4794 = 4794; + public static final int POTS_4795 = 4795; + public static final int NULL_4796 = 4796; + public static final int BAMBOO_DESK = 4797; + public static final int BAMBOO_BOOKCASE = 4798; + public static final int JAIL_DOOR = 4799; + public static final int JAIL_DOOR_4800 = 4800; + public static final int NULL_4801 = 4801; + public static final int NULL_4802 = 4802; + public static final int NULL_4803 = 4803; + public static final int NULL_4804 = 4804; + public static final int NULL_4805 = 4805; + public static final int NULL_4806 = 4806; + public static final int BAMBOO_DOOR_4807 = 4807; + public static final int NULL_4808 = 4808; + public static final int NULL_4809 = 4809; + public static final int NULL_4810 = 4810; + public static final int NULL_4811 = 4811; + public static final int JUNGLE_GRASS = 4812; + public static final int JUNGLE_GRASS_4813 = 4813; + public static final int JUNGLE_GRASS_4814 = 4814; + public static final int LONG_GRASS = 4815; + public static final int JUNGLE_TREE_4816 = 4816; + public static final int JUNGLE_PALM_4817 = 4817; + public static final int JUNGLE_TREE_4818 = 4818; + public static final int JUNGLE_TREE_STUMP = 4819; + public static final int JUNGLE_TREE_4820 = 4820; + public static final int JUNGLE_TREE_STUMP_4821 = 4821; + public static final int TREE_STUMP_4822 = 4822; + public static final int JUNGLE_FLOWER_4823 = 4823; + public static final int ORCHID_4824 = 4824; + public static final int JUNGLE_PLANT_4825 = 4825; + public static final int WHIPPING_PLANT_4826 = 4826; + public static final int PINEAPPLE_PLANT_4827 = 4827; + public static final int JUNGLE_PLANT_4828 = 4828; + public static final int JUNGLE_PLANT_4829 = 4829; + public static final int JUNGLE_PLANT_4830 = 4830; + public static final int JUNGLE_PLANT_4831 = 4831; + public static final int CREEPING_PLANT_4832 = 4832; + public static final int JUNGLE_BUSH_4833 = 4833; + public static final int JUNGLE_BUSH_4834 = 4834; + public static final int SLASHED_BUSH_4835 = 4835; + public static final int NULL_4836 = 4836; + public static final int NULL_4837 = 4837; + public static final int NULL_4838 = 4838; + public static final int NULL_4839 = 4839; + public static final int NULL_4840 = 4840; + public static final int NULL_4841 = 4841; + public static final int NULL_4842 = 4842; + public static final int NULL_4843 = 4843; + public static final int NULL_4844 = 4844; + public static final int TROPICAL_TREE_4845 = 4845; + public static final int TROPICAL_TREE_4846 = 4846; + public static final int TROPICAL_TREE_4847 = 4847; + public static final int TROPICAL_LEAVES_4848 = 4848; + public static final int TROPICAL_TREE_4849 = 4849; + public static final int TROPICAL_TREE_4850 = 4850; + public static final int TROPICAL_TREE_4851 = 4851; + public static final int HOLLOW_LOG_4852 = 4852; + public static final int ROOTS_4853 = 4853; + public static final int ROOTS_4854 = 4854; + public static final int ROOTS_4855 = 4855; + public static final int GLOWING_FUNGUS = 4856; + public static final int GLOWING_FUNGUS_4857 = 4857; + public static final int GORILLA_STATUE = 4858; + public static final int GORILLA_STATUE_4859 = 4859; + public static final int GORILLA_STATUE_4860 = 4860; + public static final int MONKEY_STATUE = 4861; + public static final int GLOWING_FUNGUS_4862 = 4862; + public static final int WATCHTOWER_LEGS = 4863; + public static final int WATCHTOWER_LEGS_4864 = 4864; + public static final int WATCHTOWER_MIDDLE = 4865; + public static final int GNOME_GLIDER_4866 = 4866; + public static final int GNOME_GLIDER_4867 = 4867; + public static final int TELEPORTATION_DEVICE = 4868; + public static final int TELEPORTATION_DEVICE_4869 = 4869; + public static final int TELEPORTATION_DEVICE_4870 = 4870; + public static final int REINITIALISATION_PANEL = 4871; + public static final int EXIT_SIGN = 4872; + public static final int LEVER_4873 = 4873; + public static final int CRAFTING_STALL = 4874; + public static final int FOOD_STALL = 4875; + public static final int GENERAL_STALL = 4876; + public static final int MAGIC_STALL = 4877; + public static final int SCIMITAR_STALL = 4878; + public static final int TRAPDOOR_4879 = 4879; + public static final int TRAPDOOR_4880 = 4880; + public static final int CLIMBING_ROPE_4881 = 4881; + public static final int SLIGHT_INDENTATIONS = 4882; + public static final int A_ROCK = 4883; + public static final int PLANK_4884 = 4884; + public static final int STALAGMITES_4885 = 4885; + public static final int FLOOR_SPIKES_4886 = 4886; + public static final int A_ROCK_4887 = 4887; + public static final int TRAPDOOR_4888 = 4888; + public static final int CLIMBING_ROPE_4889 = 4889; + public static final int NULL_4890 = 4890; + public static final int NULL_4891 = 4891; + public static final int NULL_4892 = 4892; + public static final int NULL_4893 = 4893; + public static final int NULL_4894 = 4894; + public static final int NULL_4895 = 4895; + public static final int NULL_4896 = 4896; + public static final int NULL_4897 = 4897; + public static final int NULL_4898 = 4898; + public static final int NULL_4899 = 4899; + public static final int SARADOMIN_STANDARD = 4900; + public static final int ZAMORAK_STANDARD = 4901; + public static final int SARADOMIN_STANDARD_4902 = 4902; + public static final int ZAMORAK_STANDARD_4903 = 4903; + public static final int CATAPULT_4904 = 4904; + public static final int CATAPULT_4905 = 4905; + public static final int NULL_4906 = 4906; + public static final int NULL_4907 = 4907; + public static final int NULL_4908 = 4908; + public static final int NULL_4909 = 4909; + public static final int BARREL_4910 = 4910; + public static final int LADDER_4911 = 4911; + public static final int LADDER_4912 = 4912; + public static final int CART_TUNNEL = 4913; + public static final int CART_TUNNEL_4914 = 4914; + public static final int CART_TUNNEL_4915 = 4915; + public static final int NULL_4916 = 4916; + public static final int NULL_4917 = 4917; + public static final int MINE_CART_4918 = 4918; + public static final int STAIRS_4919 = 4919; + public static final int CART_TUNNEL_4920 = 4920; + public static final int CART_TUNNEL_4921 = 4921; + public static final int CART_TUNNEL_4922 = 4922; + public static final int STAIRS_4923 = 4923; + public static final int WATER_VALVE_4924 = 4924; + public static final int NULL_4925 = 4925; + public static final int CRYSTAL_OUTCROP = 4926; + public static final int CRYSTAL_OUTCROP_4927 = 4927; + public static final int CRYSTAL_OUTCROP_4928 = 4928; + public static final int DARK_TUNNEL = 4929; + public static final int MINE_CART_4930 = 4930; + public static final int NULL_4931 = 4931; + public static final int GLOWING_FUNGUS_4932 = 4932; + public static final int GLOWING_FUNGUS_4933 = 4933; + public static final int NULL_4934 = 4934; + public static final int CEILING_SUPPORT = 4935; + public static final int WALL_SUPPORT = 4936; + public static final int LIFT = 4937; + public static final int LIFT_4938 = 4938; + public static final int NULL_4939 = 4939; + public static final int LIFT_4940 = 4940; + public static final int NULL_4941 = 4941; + public static final int LIFT_4942 = 4942; + public static final int NULL_4943 = 4943; + public static final int CRATE_4944 = 4944; + public static final int MINE_CART_4945 = 4945; + public static final int NULL_4946 = 4946; + public static final int NULL_4947 = 4947; + public static final int NULL_4948 = 4948; + public static final int POINTS_SETTINGS = 4949; + public static final int LEVER_4950 = 4950; + public static final int LEVER_4951 = 4951; + public static final int LEVER_4952 = 4952; + public static final int LEVER_4953 = 4953; + public static final int LEVER_4954 = 4954; + public static final int LEVER_4955 = 4955; + public static final int LEVER_4956 = 4956; + public static final int LEVER_4957 = 4957; + public static final int LEVER_4958 = 4958; + public static final int LEVER_4959 = 4959; + public static final int LEVER_4960 = 4960; + public static final int LEVER_4961 = 4961; + public static final int DOOR_4962 = 4962; + public static final int LARGE_DOOR_4963 = 4963; + public static final int LARGE_DOOR_4964 = 4964; + public static final int LADDER_4965 = 4965; + public static final int LADDER_4966 = 4966; + public static final int LADDER_4967 = 4967; + public static final int LADDER_4968 = 4968; + public static final int LADDER_4969 = 4969; + public static final int LADDER_4970 = 4970; + public static final int STAIRS_4971 = 4971; + public static final int STAIRS_4972 = 4972; + public static final int STAIRS_4973 = 4973; + public static final int MINE_CART_4974 = 4974; + public static final int CRATE_4975 = 4975; + public static final int MINERAL_VEIN = 4976; + public static final int MINERAL_VEIN_4977 = 4977; + public static final int MINERAL_VEIN_4978 = 4978; + public static final int MINERAL_VEIN_4979 = 4979; + public static final int MINERAL_VEIN_4980 = 4980; + public static final int MINERAL_VEIN_4981 = 4981; + public static final int MINERAL_VEIN_4982 = 4982; + public static final int MINERAL_VEIN_4983 = 4983; + public static final int MINERAL_VEIN_4984 = 4984; + public static final int MINERAL_VEIN_4985 = 4985; + public static final int MINERAL_VEIN_4986 = 4986; + public static final int MINERAL_VEIN_4987 = 4987; + public static final int MINERAL_VEIN_4988 = 4988; + public static final int MINERAL_VEIN_4989 = 4989; + public static final int MINERAL_VEIN_4990 = 4990; + public static final int MINERAL_VEIN_4991 = 4991; + public static final int MINERAL_VEIN_4992 = 4992; + public static final int MINERAL_VEIN_4993 = 4993; + public static final int MINERAL_VEIN_4994 = 4994; + public static final int MINERAL_VEIN_4995 = 4995; + public static final int MINERAL_VEIN_4996 = 4996; + public static final int NULL_4997 = 4997; + public static final int NULL_4998 = 4998; + public static final int NULL_4999 = 4999; + public static final int NULL_5000 = 5000; + public static final int WOODEN_BOARDS = 5001; + public static final int ROPE_BRIDGE = 5002; + public static final int BROKEN_ROPE_BRIDGE = 5003; + public static final int TREE_5004 = 5004; + public static final int TREE_5005 = 5005; + public static final int RARE_FLOWERS = 5006; + public static final int CAVE_ENTRANCE_5007 = 5007; + public static final int TUNNEL_5008 = 5008; + public static final int TUNNEL_5009 = 5009; + public static final int TUNNEL_5010 = 5010; + public static final int TUNNEL_5011 = 5011; + public static final int TUNNEL_5012 = 5012; + public static final int TUNNEL_5013 = 5013; + public static final int TUNNEL_5014 = 5014; + public static final int SLOPE = 5015; + public static final int SLOPE_5016 = 5016; + public static final int NULL_5017 = 5017; + public static final int NULL_5018 = 5018; + public static final int NULL_5019 = 5019; + public static final int NULL_5020 = 5020; + public static final int NULL_5021 = 5021; + public static final int NULL_5022 = 5022; + public static final int NULL_5023 = 5023; + public static final int NULL_5024 = 5024; + public static final int CREVASSE = 5025; + public static final int NULL_5026 = 5026; + public static final int NULL_5027 = 5027; + public static final int NULL_5028 = 5028; + public static final int NULL_5029 = 5029; + public static final int NULL_5030 = 5030; + public static final int NULL_5031 = 5031; + public static final int NULL_5032 = 5032; + public static final int NULL_5033 = 5033; + public static final int NULL_5034 = 5034; + public static final int NULL_5035 = 5035; + public static final int NULL_5036 = 5036; + public static final int ICE_COVERED_BOULDER = 5037; + public static final int ICE_COVERED_BOULDER_5038 = 5038; + public static final int ICE_COVERED_BOULDER_5039 = 5039; + public static final int NULL_5040 = 5040; + public static final int NULL_5041 = 5041; + public static final int NULL_5042 = 5042; + public static final int ICE_GATE = 5043; + public static final int ICE_GATE_5044 = 5044; + public static final int TREE_5045 = 5045; + public static final int CAVE_ENTRANCE_5046 = 5046; + public static final int STALAGMITES_5047 = 5047; + public static final int STALACTITE_5048 = 5048; + public static final int STALAGMITE_5049 = 5049; + public static final int STALAGMITE_5050 = 5050; + public static final int SWAMP_BOATY = 5051; + public static final int WALL_5052 = 5052; + public static final int WALL_5053 = 5053; + public static final int LADDER_5054 = 5054; + public static final int TRAPDOOR_5055 = 5055; + public static final int WOODEN_DOORS_5056 = 5056; + public static final int WOODEN_DOORS_5057 = 5057; + public static final int WOODEN_DOORS_5058 = 5058; + public static final int WOODEN_DOORS_5059 = 5059; + public static final int WOODEN_DOORS_5060 = 5060; + public static final int WOODEN_DOORS_5061 = 5061; + public static final int WOODEN_DOORS_5062 = 5062; + public static final int WOODEN_DOORS_5063 = 5063; + public static final int NULL_5064 = 5064; + public static final int NULL_5065 = 5065; + public static final int NULL_5066 = 5066; + public static final int NULL_5067 = 5067; + public static final int NULL_5068 = 5068; + public static final int NULL_5069 = 5069; + public static final int NULL_5070 = 5070; + public static final int NULL_5071 = 5071; + public static final int PILLAR_5072 = 5072; + public static final int NULL_5073 = 5073; + public static final int NULL_5074 = 5074; + public static final int NULL_5075 = 5075; + public static final int NULL_5076 = 5076; + public static final int NULL_5077 = 5077; + public static final int NULL_5078 = 5078; + public static final int NULL_5079 = 5079; + public static final int NULL_5080 = 5080; + public static final int NULL_5081 = 5081; + public static final int DUNGEON_ENTRANCE = 5082; + public static final int DUNGEON_ENTRANCE_5083 = 5083; + public static final int EXIT_5084 = 5084; + public static final int NULL_5085 = 5085; + public static final int NULL_5086 = 5086; + public static final int NULL_5087 = 5087; + public static final int LOG_BALANCE_5088 = 5088; + public static final int NULL_5089 = 5089; + public static final int LOG_BALANCE_5090 = 5090; + public static final int NULL_5091 = 5091; + public static final int NULL_5092 = 5092; + public static final int NULL_5093 = 5093; + public static final int STAIRS_5094 = 5094; + public static final int STAIRS_5095 = 5095; + public static final int STAIRS_5096 = 5096; + public static final int STAIRS_5097 = 5097; + public static final int STAIRS_5098 = 5098; + public static final int PIPE_5099 = 5099; + public static final int PIPE_5100 = 5100; + public static final int NULL_5101 = 5101; + public static final int NULL_5102 = 5102; + public static final int VINES = 5103; + public static final int VINES_5104 = 5104; + public static final int VINES_5105 = 5105; + public static final int VINES_5106 = 5106; + public static final int VINES_5107 = 5107; + public static final int NULL_5108 = 5108; + public static final int NULL_5109 = 5109; + public static final int STEPPING_STONE_5110 = 5110; + public static final int STEPPING_STONE_5111 = 5111; + public static final int MUSHROOM_5112 = 5112; + public static final int FUNGUS_5113 = 5113; + public static final int FUNGUS_5114 = 5114; + public static final int FUNGUS_5115 = 5115; + public static final int STATUE_5116 = 5116; + public static final int STATUE_5117 = 5117; + public static final int NULL_5118 = 5118; + public static final int NULL_5119 = 5119; + public static final int NULL_5120 = 5120; + public static final int NULL_5121 = 5121; + public static final int CORPSE_5122 = 5122; + public static final int CORPSE_5123 = 5123; + public static final int CORPSE_5124 = 5124; + public static final int CORPSE_5125 = 5125; + public static final int DOOR_5126 = 5126; + public static final int DANGER_SIGN_5127 = 5127; + public static final int DOOR_5128 = 5128; + public static final int NULL_5129 = 5129; + public static final int LADDER_5130 = 5130; + public static final int TRAPDOOR_5131 = 5131; + public static final int TRAPDOOR_5132 = 5132; + public static final int HURDLE = 5133; + public static final int HURDLE_5134 = 5134; + public static final int HURDLE_5135 = 5135; + public static final int SKULL_SLOPE = 5136; + public static final int NULL_5137 = 5137; + public static final int STEPPING_STONE_5138 = 5138; + public static final int ZIP_LINE = 5139; + public static final int ZIP_LINE_5140 = 5140; + public static final int ZIP_LINE_5141 = 5141; + public static final int ZIP_LINE_5142 = 5142; + public static final int ZIP_LINE_5143 = 5143; + public static final int ZIP_LINE_5144 = 5144; + public static final int ZIP_LINE_5145 = 5145; + public static final int GOAL = 5146; + public static final int GOAL_5147 = 5147; + public static final int GOAL_5148 = 5148; + public static final int NULL_5149 = 5149; + public static final int NULL_5150 = 5150; + public static final int NULL_5151 = 5151; + public static final int PIPE_5152 = 5152; + public static final int NULL_5153 = 5153; + public static final int NULL_5154 = 5154; + public static final int NULL_5155 = 5155; + public static final int CUPBOARD_5156 = 5156; + public static final int OPEN_CUPBOARD_5157 = 5157; + public static final int PILE_OF_CANES = 5158; + public static final int BRIDGE_5159 = 5159; + public static final int BRIDGE_5160 = 5160; + public static final int CLOCK = 5161; + public static final int CHEST_5162 = 5162; + public static final int CHEST_5163 = 5163; + public static final int SIGNPOST_5164 = 5164; + public static final int FIREPLACE_5165 = 5165; + public static final int BOOKCASE_5166 = 5166; + public static final int MEMORIAL = 5167; + public static final int GRAVE = 5168; + public static final int GRAVE_5169 = 5169; + public static final int ENTRANCE_5170 = 5170; + public static final int NULL_5171 = 5171; + public static final int DOOR_5172 = 5172; + public static final int NULL_5173 = 5173; + public static final int DOOR_5174 = 5174; + public static final int NULL_5175 = 5175; + public static final int LIGHTNING_CONDUCTOR = 5176; + public static final int LIGHTNING_CONDUCTOR_5177 = 5177; + public static final int FIREPLACE_SURROUND = 5178; + public static final int FIREPLACE_SURROUND_5179 = 5179; + public static final int TABLE_5180 = 5180; + public static final int TABLE_5181 = 5181; + public static final int NULL_5182 = 5182; + public static final int DOOR_5183 = 5183; + public static final int NULL_5184 = 5184; + public static final int NULL_5185 = 5185; + public static final int DOOR_5186 = 5186; + public static final int DOOR_5187 = 5187; + public static final int DOOR_5188 = 5188; + public static final int NULL_5189 = 5189; + public static final int NULL_5190 = 5190; + public static final int NULL_5191 = 5191; + public static final int NULL_5192 = 5192; + public static final int NULL_5193 = 5193; + public static final int NULL_5194 = 5194; + public static final int NULL_5195 = 5195; + public static final int NULL_5196 = 5196; + public static final int NULL_5197 = 5197; + public static final int NULL_5198 = 5198; + public static final int NULL_5199 = 5199; + public static final int NULL_5200 = 5200; + public static final int NULL_5201 = 5201; + public static final int PILE_OF_BRICKS_5202 = 5202; + public static final int NULL_5203 = 5203; + public static final int NULL_5204 = 5204; + public static final int NULL_5205 = 5205; + public static final int STAIRCASE_5206 = 5206; + public static final int STAIRCASE_5207 = 5207; + public static final int NULL_5208 = 5208; + public static final int NULL_5209 = 5209; + public static final int NULL_5210 = 5210; + public static final int NULL_5211 = 5211; + public static final int NULL_5212 = 5212; + public static final int NULL_5213 = 5213; + public static final int NULL_5214 = 5214; + public static final int NULL_5215 = 5215; + public static final int NULL_5216 = 5216; + public static final int NULL_5217 = 5217; + public static final int NULL_5218 = 5218; + public static final int NULL_5219 = 5219; + public static final int NULL_5220 = 5220; + public static final int NULL_5221 = 5221; + public static final int NULL_5222 = 5222; + public static final int NULL_5223 = 5223; + public static final int NULL_5224 = 5224; + public static final int NULL_5225 = 5225; + public static final int NULL_5226 = 5226; + public static final int NULL_5227 = 5227; + public static final int COLUMN_5228 = 5228; + public static final int COLUMN_5229 = 5229; + public static final int COLUMN_5230 = 5230; + public static final int STALAGMITE_5231 = 5231; + public static final int STALAGMITE_5232 = 5232; + public static final int NULL_5233 = 5233; + public static final int NULL_5234 = 5234; + public static final int NULL_5235 = 5235; + public static final int NULL_5236 = 5236; + public static final int NULL_5237 = 5237; + public static final int NULL_5238 = 5238; + public static final int NULL_5239 = 5239; + public static final int NULL_5240 = 5240; + public static final int NULL_5241 = 5241; + public static final int NULL_5242 = 5242; + public static final int NULL_5243 = 5243; + public static final int DOOR_5244 = 5244; + public static final int DOOR_5245 = 5245; + public static final int BED_5246 = 5246; + public static final int NULL_5247 = 5247; + public static final int CRYSTAL_GROWTH = 5248; + public static final int FIRE_5249 = 5249; + public static final int LADDER_5250 = 5250; + public static final int LADDER_5251 = 5251; + public static final int FIRE_REMAINS_5252 = 5252; + public static final int NETTLES_5253 = 5253; + public static final int NETTLES_5254 = 5254; + public static final int NETTLES_5255 = 5255; + public static final int NETTLES_5256 = 5256; + public static final int NETTLES_5257 = 5257; + public static final int NETTLES_5258 = 5258; + public static final int ENERGY_BARRIER_5259 = 5259; + public static final int NULL_5260 = 5260; + public static final int NULL_5261 = 5261; + public static final int STAIRS_5262 = 5262; + public static final int STAIRS_5263 = 5263; + public static final int LADDER_5264 = 5264; + public static final int SHIPS_LADDER_5265 = 5265; + public static final int SHIPS_LADDER_5266 = 5266; + public static final int TRAPDOOR_5267 = 5267; + public static final int TRAPDOOR_5268 = 5268; + public static final int ROCK_5269 = 5269; + public static final int CLOSED_CHEST_5270 = 5270; + public static final int OPEN_CHEST_5271 = 5271; + public static final int CLOSED_CHEST_5272 = 5272; + public static final int OPEN_CHEST_5273 = 5273; + public static final int MAST = 5274; + public static final int COOKING_RANGE_5275 = 5275; + public static final int BANK_BOOTH_5276 = 5276; + public static final int CLOSED_BANK_BOOTH_5277 = 5277; + public static final int COFFIN_5278 = 5278; + public static final int COFFIN_5279 = 5279; + public static final int STAIRCASE_5280 = 5280; + public static final int STAIRCASE_5281 = 5281; + public static final int ECTOFUNTUS = 5282; + public static final int ECTOFUNTUS_5283 = 5283; + public static final int BONE_GRINDER = 5284; + public static final int GANGPLANK_5285 = 5285; + public static final int GANGPLANK_5286 = 5286; + public static final int PIRATE_CAPTAIN = 5287; + public static final int NULL_5288 = 5288; + public static final int NULL_5289 = 5289; + public static final int NULL_5290 = 5290; + public static final int NULL_5291 = 5291; + public static final int NULL_5292 = 5292; + public static final int NULL_5293 = 5293; + public static final int NULL_5294 = 5294; + public static final int NULL_5295 = 5295; + public static final int NULL_5296 = 5296; + public static final int NULL_5297 = 5297; + public static final int NULL_5298 = 5298; + public static final int NULL_5299 = 5299; + public static final int NULL_5300 = 5300; + public static final int NULL_5301 = 5301; + public static final int NULL_5302 = 5302; + public static final int NULL_5303 = 5303; + public static final int NULL_5304 = 5304; + public static final int NULL_5305 = 5305; + public static final int BOAT = 5306; + public static final int NULL_5307 = 5307; + public static final int NULL_5308 = 5308; + public static final int NULL_5309 = 5309; + public static final int NULL_5310 = 5310; + public static final int NULL_5311 = 5311; + public static final int NULL_5312 = 5312; + public static final int NULL_5313 = 5313; + public static final int NULL_5314 = 5314; + public static final int NULL_5315 = 5315; + public static final int NULL_5316 = 5316; + public static final int NULL_5317 = 5317; + public static final int NULL_5318 = 5318; + public static final int NULL_5319 = 5319; + public static final int NULL_5320 = 5320; + public static final int NULL_5321 = 5321; + public static final int NULL_5322 = 5322; + public static final int NULL_5323 = 5323; + public static final int NULL_5324 = 5324; + public static final int NULL_5325 = 5325; + public static final int NULL_5326 = 5326; + public static final int NULL_5327 = 5327; + public static final int NULL_5328 = 5328; + public static final int NULL_5329 = 5329; + public static final int BOXES_5330 = 5330; + public static final int PLANT_5331 = 5331; + public static final int PLANT_5332 = 5332; + public static final int PLANT_5333 = 5333; + public static final int PLANT_5334 = 5334; + public static final int NULL_5335 = 5335; + public static final int NULL_5336 = 5336; + public static final int NULL_5337 = 5337; + public static final int NULL_5338 = 5338; + public static final int NULL_5339 = 5339; + public static final int NULL_5340 = 5340; + public static final int NULL_5341 = 5341; + public static final int NULL_5342 = 5342; + public static final int NULL_5343 = 5343; + public static final int NULL_5344 = 5344; + public static final int CHAIR_5345 = 5345; + public static final int CHAIR_5346 = 5346; + public static final int CHAIR_5347 = 5347; + public static final int SMASHED_CHAIR_5348 = 5348; + public static final int TABLE_5349 = 5349; + public static final int BAR_PUMPS_5350 = 5350; + public static final int BAR_5351 = 5351; + public static final int CART_5352 = 5352; + public static final int WHEELBARROW = 5353; + public static final int TROUGH_5354 = 5354; + public static final int CRATE_5355 = 5355; + public static final int CRATES_5356 = 5356; + public static final int CRATES_5357 = 5357; + public static final int SKELETON = 5358; + public static final int SKELETON_5359 = 5359; + public static final int SKELETON_5360 = 5360; + public static final int NULL_5361 = 5361; + public static final int NULL_5362 = 5362; + public static final int NULL_5363 = 5363; + public static final int NULL_5364 = 5364; + public static final int NULL_5365 = 5365; + public static final int NULL_5366 = 5366; + public static final int NULL_5367 = 5367; + public static final int NULL_5368 = 5368; + public static final int NULL_5369 = 5369; + public static final int NULL_5370 = 5370; + public static final int NULL_5371 = 5371; + public static final int NULL_5372 = 5372; + public static final int NULL_5373 = 5373; + public static final int NULL_5374 = 5374; + public static final int NULL_5375 = 5375; + public static final int NULL_5376 = 5376; + public static final int NULL_5377 = 5377; + public static final int NULL_5378 = 5378; + public static final int NULL_5379 = 5379; + public static final int NULL_5380 = 5380; + public static final int NULL_5381 = 5381; + public static final int NULL_5382 = 5382; + public static final int NULL_5383 = 5383; + public static final int NULL_5384 = 5384; + public static final int NULL_5385 = 5385; + public static final int NULL_5386 = 5386; + public static final int NULL_5387 = 5387; + public static final int NULL_5388 = 5388; + public static final int NULL_5389 = 5389; + public static final int NULL_5390 = 5390; + public static final int NULL_5391 = 5391; + public static final int NULL_5392 = 5392; + public static final int NULL_5393 = 5393; + public static final int NULL_5394 = 5394; + public static final int NULL_5395 = 5395; + public static final int NULL_5396 = 5396; + public static final int FIGUREHEAD_5397 = 5397; + public static final int NULL_5398 = 5398; + public static final int NULL_5399 = 5399; + public static final int NULL_5400 = 5400; + public static final int NULL_5401 = 5401; + public static final int NULL_5402 = 5402; + public static final int SHIPS_WHEEL_5403 = 5403; + public static final int MAST_5404 = 5404; + public static final int NULL_5405 = 5405; + public static final int NULL_5406 = 5406; + public static final int NULL_5407 = 5407; + public static final int NULL_5408 = 5408; + public static final int NULL_5409 = 5409; + public static final int NULL_5410 = 5410; + public static final int NULL_5411 = 5411; + public static final int NULL_5412 = 5412; + public static final int NULL_5413 = 5413; + public static final int NULL_5414 = 5414; + public static final int SHIPS_LADDER_5415 = 5415; + public static final int SHIPS_LADDER_5416 = 5416; + public static final int NULL_5417 = 5417; + public static final int NULL_5418 = 5418; + public static final int NULL_5419 = 5419; + public static final int NULL_5420 = 5420; + public static final int NULL_5421 = 5421; + public static final int NULL_5422 = 5422; + public static final int NULL_5423 = 5423; + public static final int NULL_5424 = 5424; + public static final int NULL_5425 = 5425; + public static final int NULL_5426 = 5426; + public static final int NULL_5427 = 5427; + public static final int NULL_5428 = 5428; + public static final int CAPTAINS_TABLE = 5429; + public static final int MARKET_STALL_5430 = 5430; + public static final int MARKET_STALL_5431 = 5431; + public static final int NULL_5432 = 5432; + public static final int NULL_5433 = 5433; + public static final int NULL_5434 = 5434; + public static final int NULL_5435 = 5435; + public static final int NULL_5436 = 5436; + public static final int NULL_5437 = 5437; + public static final int NULL_5438 = 5438; + public static final int BROKEN_DOOR_5439 = 5439; + public static final int NULL_5440 = 5440; + public static final int NULL_5441 = 5441; + public static final int NULL_5442 = 5442; + public static final int NULL_5443 = 5443; + public static final int NULL_5444 = 5444; + public static final int NULL_5445 = 5445; + public static final int NULL_5446 = 5446; + public static final int NULL_5447 = 5447; + public static final int NULL_5448 = 5448; + public static final int NULL_5449 = 5449; + public static final int NULL_5450 = 5450; + public static final int NULL_5451 = 5451; + public static final int NULL_5452 = 5452; + public static final int DOOR_5453 = 5453; + public static final int DOOR_5454 = 5454; + public static final int NULL_5455 = 5455; + public static final int NULL_5456 = 5456; + public static final int NULL_5457 = 5457; + public static final int NULL_5458 = 5458; + public static final int NULL_5459 = 5459; + public static final int NULL_5460 = 5460; + public static final int POOL_OF_SLIME = 5461; + public static final int POOL_OF_SLIME_5462 = 5462; + public static final int POOL_OF_SLIME_5463 = 5463; + public static final int POOL_OF_SLIME_5464 = 5464; + public static final int POOL_OF_SLIME_5465 = 5465; + public static final int POOL_OF_SLIME_5466 = 5466; + public static final int POOL_OF_SLIME_5467 = 5467; + public static final int POOL_OF_SLIME_5468 = 5468; + public static final int POOL_OF_SLIME_5469 = 5469; + public static final int POOL_OF_SLIME_5470 = 5470; + public static final int POOL_OF_SLIME_5471 = 5471; + public static final int POOL_OF_SLIME_5472 = 5472; + public static final int POOL_OF_SLIME_5473 = 5473; + public static final int POOL_OF_SLIME_5474 = 5474; + public static final int NULL_5475 = 5475; + public static final int NULL_5476 = 5476; + public static final int NULL_5477 = 5477; + public static final int NULL_5478 = 5478; + public static final int NULL_5479 = 5479; + public static final int NULL_5480 = 5480; + public static final int NULL_5481 = 5481; + public static final int NULL_5482 = 5482; + public static final int NULL_5483 = 5483; + public static final int NULL_5484 = 5484; + public static final int NULL_5485 = 5485; + public static final int NULL_5486 = 5486; + public static final int NULL_5487 = 5487; + public static final int LADDER_5488 = 5488; + public static final int JEWELLERY_STALL = 5489; + public static final int TRAPDOOR_5490 = 5490; + public static final int TRAPDOOR_5491 = 5491; + public static final int NULL_5492 = 5492; + public static final int LADDER_5493 = 5493; + public static final int STANDING_TORCH_5494 = 5494; + public static final int BED_5495 = 5495; + public static final int NULL_5496 = 5496; + public static final int BED_5497 = 5497; + public static final int BED_5498 = 5498; + public static final int FIRE_5499 = 5499; + public static final int NULL_5500 = 5500; + public static final int DOOR_5501 = 5501; + public static final int NULL_5502 = 5502; + public static final int NULL_5503 = 5503; + public static final int NULL_5504 = 5504; + public static final int NULL_5505 = 5505; + public static final int NULL_5506 = 5506; + public static final int NULL_5507 = 5507; + public static final int LECTERN = 5508; + public static final int NULL_5509 = 5509; + public static final int NULL_5510 = 5510; + public static final int NULL_5511 = 5511; + public static final int NULL_5512 = 5512; + public static final int NULL_5513 = 5513; + public static final int NULL_5514 = 5514; + public static final int NULL_5515 = 5515; + public static final int NULL_5516 = 5516; + public static final int NULL_5517 = 5517; + public static final int NULL_5518 = 5518; + public static final int NULL_5519 = 5519; + public static final int NULL_5520 = 5520; + public static final int NULL_5521 = 5521; + public static final int NULL_5522 = 5522; + public static final int NULL_5523 = 5523; + public static final int NULL_5524 = 5524; + public static final int NULL_5525 = 5525; + public static final int NULL_5526 = 5526; + public static final int NULL_5527 = 5527; + public static final int NULL_5528 = 5528; + public static final int NULL_5529 = 5529; + public static final int NULL_5530 = 5530; + public static final int NULL_5531 = 5531; + public static final int NULL_5532 = 5532; + public static final int NULL_5533 = 5533; + public static final int NULL_5534 = 5534; + public static final int NULL_5535 = 5535; + public static final int NULL_5536 = 5536; + public static final int NULL_5537 = 5537; + public static final int ONION_5538 = 5538; + public static final int BULLRUSHES_5539 = 5539; + public static final int BULLRUSHES_5540 = 5540; + public static final int BULLRUSHES_5541 = 5541; + public static final int BULLRUSHES_5542 = 5542; + public static final int HEATHER_5543 = 5543; + public static final int HEATHER_5544 = 5544; + public static final int HEATHER_5545 = 5545; + public static final int HEATHER_5546 = 5546; + public static final int HEATHER_5547 = 5547; + public static final int HEATHER_5548 = 5548; + public static final int HEATHER_5549 = 5549; + public static final int DOCK_LEAF_PLANT = 5550; + public static final int WILLOW_5551 = 5551; + public static final int WILLOW_5552 = 5552; + public static final int WILLOW_5553 = 5553; + public static final int TREE_STUMP_5554 = 5554; + public static final int HANGING_TAPESTRY = 5555; + public static final int HANGING_TAPESTRY_5556 = 5556; + public static final int NULL_5557 = 5557; + public static final int AGGIES_CAULDRON = 5558; + public static final int CHARMS_5559 = 5559; + public static final int MIRROR_5560 = 5560; + public static final int BROOM_5561 = 5561; + public static final int CLOTH = 5562; + public static final int NULL_5563 = 5563; + public static final int BED_5564 = 5564; + public static final int BED_5565 = 5565; + public static final int NULL_5566 = 5566; + public static final int NULL_5567 = 5567; + public static final int NULL_5568 = 5568; + public static final int DRY_STONE_WALL = 5569; + public static final int NULL_5570 = 5570; + public static final int COOP = 5571; + public static final int COOP_5572 = 5572; + public static final int COOP_5573 = 5573; + public static final int SACK_5574 = 5574; + public static final int TROUGH_5575 = 5575; + public static final int TROUGH_5576 = 5576; + public static final int TROUGH_5577 = 5577; + public static final int CART_5578 = 5578; + public static final int CART_5579 = 5579; + public static final int WHEELBARROW_5580 = 5580; + public static final int LOGS = 5581; + public static final int LOGS_5582 = 5582; + public static final int WHEAT_5583 = 5583; + public static final int WHEAT_5584 = 5584; + public static final int WHEAT_5585 = 5585; + public static final int NULL_5586 = 5586; + public static final int NULL_5587 = 5587; + public static final int NULL_5588 = 5588; + public static final int WATER_WHEEL_5589 = 5589; + public static final int WATER_WHEEL_5590 = 5590; + public static final int WATER_WHEEL_5591 = 5591; + public static final int NULL_5592 = 5592; + public static final int NULL_5593 = 5593; + public static final int WATER_WHEEL_5594 = 5594; + public static final int TOY_STALL = 5595; + public static final int MARKET_STALL_5596 = 5596; + public static final int WEATHER_VANE_5597 = 5597; + public static final int WATER_BARREL = 5598; + public static final int WATER_BARREL_5599 = 5599; + public static final int NULL_5600 = 5600; + public static final int NULL_5601 = 5601; + public static final int NULL_5602 = 5602; + public static final int NULL_5603 = 5603; + public static final int ROCK_5604 = 5604; + public static final int ROCK_5605 = 5605; + public static final int ROCK_5606 = 5606; + public static final int NULL_5607 = 5607; + public static final int SPIT_ROAST_5608 = 5608; + public static final int COOKING_POTS = 5609; + public static final int COOKING_POTS_5610 = 5610; + public static final int NULL_5611 = 5611; + public static final int NULL_5612 = 5612; + public static final int RATHOLE = 5613; + public static final int CHAIR_5614 = 5614; + public static final int BENCH_5615 = 5615; + public static final int SIGNPOST_5616 = 5616; + public static final int NULL_5617 = 5617; + public static final int DRAWERS_5618 = 5618; + public static final int DRAWERS_5619 = 5619; + public static final int NULL_5620 = 5620; + public static final int BIG_VASE = 5621; + public static final int WARDROBE_5622 = 5622; + public static final int WARDROBE_5623 = 5623; + public static final int WARDROBE_5624 = 5624; + public static final int NEDS_TABLE = 5625; + public static final int NULL_5626 = 5626; + public static final int STANDARD_5627 = 5627; + public static final int STANDARD_5628 = 5628; + public static final int STANDARD_5629 = 5629; + public static final int NULL_5630 = 5630; + public static final int FIRE_5631 = 5631; + public static final int FIRE_5632 = 5632; + public static final int NULL_5633 = 5633; + public static final int NULL_5634 = 5634; + public static final int NULL_5635 = 5635; + public static final int NULL_5636 = 5636; + public static final int NULL_5637 = 5637; + public static final int NULL_5638 = 5638; + public static final int NULL_5639 = 5639; + public static final int NULL_5640 = 5640; + public static final int NULL_5641 = 5641; + public static final int NULL_5642 = 5642; + public static final int NULL_5643 = 5643; + public static final int NULL_5644 = 5644; + public static final int NULL_5645 = 5645; + public static final int NULL_5646 = 5646; + public static final int NULL_5647 = 5647; + public static final int NULL_5648 = 5648; + public static final int NULL_5649 = 5649; + public static final int NULL_5650 = 5650; + public static final int NULL_5651 = 5651; + public static final int NULL_5652 = 5652; + public static final int NULL_5653 = 5653; + public static final int NULL_5654 = 5654; + public static final int NULL_5655 = 5655; + public static final int NULL_5656 = 5656; + public static final int NULL_5657 = 5657; + public static final int NULL_5658 = 5658; + public static final int NULL_5659 = 5659; + public static final int NULL_5660 = 5660; + public static final int NULL_5661 = 5661; + public static final int NULL_5662 = 5662; + public static final int NULL_5663 = 5663; + public static final int NULL_5664 = 5664; + public static final int NULL_5665 = 5665; + public static final int NULL_5666 = 5666; + public static final int NULL_5667 = 5667; + public static final int NULL_5668 = 5668; + public static final int NULL_5669 = 5669; + public static final int NULL_5670 = 5670; + public static final int NULL_5671 = 5671; + public static final int NULL_5672 = 5672; + public static final int NULL_5673 = 5673; + public static final int NULL_5674 = 5674; + public static final int NULL_5675 = 5675; + public static final int NULL_5676 = 5676; + public static final int NULL_5677 = 5677; + public static final int NULL_5678 = 5678; + public static final int NULL_5679 = 5679; + public static final int NULL_5680 = 5680; + public static final int NULL_5681 = 5681; + public static final int NULL_5682 = 5682; + public static final int NULL_5683 = 5683; + public static final int NULL_5684 = 5684; + public static final int NULL_5685 = 5685; + public static final int NULL_5686 = 5686; + public static final int NULL_5687 = 5687; + public static final int NULL_5688 = 5688; + public static final int NULL_5689 = 5689; + public static final int NULL_5690 = 5690; + public static final int NULL_5691 = 5691; + public static final int NULL_5692 = 5692; + public static final int NULL_5693 = 5693; + public static final int NULL_5694 = 5694; + public static final int NULL_5695 = 5695; + public static final int NULL_5696 = 5696; + public static final int NULL_5697 = 5697; + public static final int NULL_5698 = 5698; + public static final int NULL_5699 = 5699; + public static final int NULL_5700 = 5700; + public static final int NULL_5701 = 5701; + public static final int NULL_5702 = 5702; + public static final int NULL_5703 = 5703; + public static final int NULL_5704 = 5704; + public static final int NULL_5705 = 5705; + public static final int NULL_5706 = 5706; + public static final int NULL_5707 = 5707; + public static final int NULL_5708 = 5708; + public static final int NULL_5709 = 5709; + public static final int NULL_5710 = 5710; + public static final int NULL_5711 = 5711; + public static final int NULL_5712 = 5712; + public static final int NULL_5713 = 5713; + public static final int NULL_5714 = 5714; + public static final int NULL_5715 = 5715; + public static final int NULL_5716 = 5716; + public static final int NULL_5717 = 5717; + public static final int NULL_5718 = 5718; + public static final int NULL_5719 = 5719; + public static final int NULL_5720 = 5720; + public static final int NULL_5721 = 5721; + public static final int NULL_5722 = 5722; + public static final int NULL_5723 = 5723; + public static final int NULL_5724 = 5724; + public static final int NULL_5725 = 5725; + public static final int NULL_5726 = 5726; + public static final int NULL_5727 = 5727; + public static final int NULL_5728 = 5728; + public static final int NULL_5729 = 5729; + public static final int NULL_5730 = 5730; + public static final int NULL_5731 = 5731; + public static final int NULL_5732 = 5732; + public static final int NULL_5733 = 5733; + public static final int NULL_5734 = 5734; + public static final int NULL_5735 = 5735; + public static final int NULL_5736 = 5736; + public static final int NULL_5737 = 5737; + public static final int NULL_5738 = 5738; + public static final int NULL_5739 = 5739; + public static final int NULL_5740 = 5740; + public static final int NULL_5741 = 5741; + public static final int NULL_5742 = 5742; + public static final int NULL_5743 = 5743; + public static final int NULL_5744 = 5744; + public static final int NULL_5745 = 5745; + public static final int NULL_5746 = 5746; + public static final int NULL_5747 = 5747; + public static final int NULL_5748 = 5748; + public static final int NULL_5749 = 5749; + public static final int NULL_5750 = 5750; + public static final int NULL_5751 = 5751; + public static final int NULL_5752 = 5752; + public static final int NULL_5753 = 5753; + public static final int NULL_5754 = 5754; + public static final int NULL_5755 = 5755; + public static final int NULL_5756 = 5756; + public static final int NULL_5757 = 5757; + public static final int NULL_5758 = 5758; + public static final int NULL_5759 = 5759; + public static final int NULL_5760 = 5760; + public static final int NULL_5761 = 5761; + public static final int NULL_5762 = 5762; + public static final int NULL_5763 = 5763; + public static final int NULL_5764 = 5764; + public static final int NULL_5765 = 5765; + public static final int NULL_5766 = 5766; + public static final int NULL_5767 = 5767; + public static final int NULL_5768 = 5768; + public static final int NULL_5769 = 5769; + public static final int NULL_5770 = 5770; + public static final int NULL_5771 = 5771; + public static final int NULL_5772 = 5772; + public static final int NULL_5773 = 5773; + public static final int NULL_5774 = 5774; + public static final int NULL_5775 = 5775; + public static final int NULL_5776 = 5776; + public static final int NULL_5777 = 5777; + public static final int NULL_5778 = 5778; + public static final int NULL_5779 = 5779; + public static final int NULL_5780 = 5780; + public static final int NULL_5781 = 5781; + public static final int NULL_5782 = 5782; + public static final int NULL_5783 = 5783; + public static final int NULL_5784 = 5784; + public static final int NULL_5785 = 5785; + public static final int NULL_5786 = 5786; + public static final int NULL_5787 = 5787; + public static final int CHURCH_PEW = 5788; + public static final int STATUE_5789 = 5789; + public static final int STATUE_5790 = 5790; + public static final int STATUE_5791 = 5791; + public static final int FLOUR_BIN_5792 = 5792; + public static final int CRACK = 5793; + public static final int CRACK_5794 = 5794; + public static final int CRACK_5795 = 5795; + public static final int CRACK_5796 = 5796; + public static final int CRACK_5797 = 5797; + public static final int CRACK_5798 = 5798; + public static final int TRAPDOOR_5799 = 5799; + public static final int TRAPDOOR_5800 = 5800; + public static final int TRAPDOOR_5801 = 5801; + public static final int TRAPDOOR_5802 = 5802; + public static final int TRAPDOOR_5803 = 5803; + public static final int TRAPDOOR_5804 = 5804; + public static final int TRAPDOOR_5805 = 5805; + public static final int TRAPDOOR_5806 = 5806; + public static final int NULL_5807 = 5807; + public static final int SCULPTURE = 5808; + public static final int WEATHERVANE = 5809; + public static final int SEERS_WEATHERVANE = 5810; + public static final int NULL_5811 = 5811; + public static final int LADDER_5812 = 5812; + public static final int LADDER_5813 = 5813; + public static final int NULL_5814 = 5814; + public static final int GNOME_LANDING_LIGHT = 5815; + public static final int FLASHING_LANDING_LIGHT = 5816; + public static final int FLASHING_LANDING_LIGHT_5817 = 5817; + public static final int FLASHING_LANDING_LIGHT_5818 = 5818; + public static final int FLASHING_LANDING_LIGHT_5819 = 5819; + public static final int NULL_5820 = 5820; + public static final int NULL_5821 = 5821; + public static final int NULL_5822 = 5822; + public static final int NULL_5823 = 5823; + public static final int NULL_5824 = 5824; + public static final int GNOME_GLIDER_5825 = 5825; + public static final int SWORDSHOP_SIGN = 5826; + public static final int NULL_5827 = 5827; + public static final int NULL_5828 = 5828; + public static final int NULL_5829 = 5829; + public static final int NULL_5830 = 5830; + public static final int ANTIQUES_SHOP_STALL = 5831; + public static final int NULL_5832 = 5832; + public static final int NULL_5833 = 5833; + public static final int NULL_5834 = 5834; + public static final int TRAPDOOR_5835 = 5835; + public static final int NULL_5836 = 5836; + public static final int NULL_5837 = 5837; + public static final int NULL_5838 = 5838; + public static final int NULL_5839 = 5839; + public static final int NULL_5840 = 5840; + public static final int NULL_5841 = 5841; + public static final int BOULDER_5842 = 5842; + public static final int BOULDER_5843 = 5843; + public static final int ROCK_5844 = 5844; + public static final int ROCK_5845 = 5845; + public static final int ROPE_5846 = 5846; + public static final int ROCKSLIDE_5847 = 5847; + public static final int TALL_TREE = 5848; + public static final int CLUMP_OF_ROCKS = 5849; + public static final int FLAT_STONE = 5850; + public static final int FLAT_STONE_5851 = 5851; + public static final int FLAT_STONE_5852 = 5852; + public static final int FLAT_STONE_5853 = 5853; + public static final int FLAT_STONE_5854 = 5854; + public static final int SHINING_POOL = 5855; + public static final int THORNY_BUSHES = 5856; + public static final int CAVE_ENTRANCE_5857 = 5857; + public static final int CAVE_EXIT_5858 = 5858; + public static final int CAVE_EXIT_5859 = 5859; + public static final int STANDING_SPEARS = 5860; + public static final int NULL_5861 = 5861; + public static final int BURIAL_MOUND = 5862; + public static final int BURIAL_CAIRN = 5863; + public static final int NULL_5864 = 5864; + public static final int NULL_5865 = 5865; + public static final int NULL_5866 = 5866; + public static final int NULL_5867 = 5867; + public static final int NULL_5868 = 5868; + public static final int NULL_5869 = 5869; + public static final int NULL_5870 = 5870; + public static final int NULL_5871 = 5871; + public static final int NULL_5872 = 5872; + public static final int NULL_5873 = 5873; + public static final int NULL_5874 = 5874; + public static final int NULL_5875 = 5875; + public static final int NULL_5876 = 5876; + public static final int NULL_5877 = 5877; + public static final int WOODEN_TABLE_5878 = 5878; + public static final int TABLE_5879 = 5879; + public static final int STOOL_5880 = 5880; + public static final int STANDING_TORCH_5881 = 5881; + public static final int NULL_5882 = 5882; + public static final int MUD_5883 = 5883; + public static final int SWAMP_5884 = 5884; + public static final int ROOTS_5885 = 5885; + public static final int ROOTS_5886 = 5886; + public static final int TENT_DOOR_5887 = 5887; + public static final int TENT_DOOR_5888 = 5888; + public static final int TENT_DOOR_5889 = 5889; + public static final int TENT_DOOR_5890 = 5890; + public static final int TENT_DOOR_5891 = 5891; + public static final int NULL_5892 = 5892; + public static final int TENT_DOOR_5893 = 5893; + public static final int NULL_5894 = 5894; + public static final int ANCIENT_ROCK = 5895; + public static final int ANCIENT_ROCK_5896 = 5896; + public static final int SHINING_POOL_5897 = 5897; + public static final int NULL_5898 = 5898; + public static final int NULL_5899 = 5899; + public static final int NULL_5900 = 5900; + public static final int NULL_5901 = 5901; + public static final int DEAD_TREE_5902 = 5902; + public static final int DEAD_TREE_5903 = 5903; + public static final int DEAD_TREE_5904 = 5904; + public static final int TREE_STUMP_5905 = 5905; + public static final int NULL_5906 = 5906; + public static final int NULL_5907 = 5907; + public static final int NULL_5908 = 5908; + public static final int LAMP_OIL_STILL = 5909; + public static final int LAMP_OIL_STILL_5910 = 5910; + public static final int NULL_5911 = 5911; + public static final int NULL_5912 = 5912; + public static final int NULL_5913 = 5913; + public static final int NULL_5914 = 5914; + public static final int NULL_5915 = 5915; + public static final int NULL_5916 = 5916; + public static final int GAS_HOLE = 5917; + public static final int GAS_HOLE_5918 = 5918; + public static final int NULL_5919 = 5919; + public static final int NULL_5920 = 5920; + public static final int NULL_5921 = 5921; + public static final int NULL_5922 = 5922; + public static final int NULL_5923 = 5923; + public static final int NULL_5924 = 5924; + public static final int NULL_5925 = 5925; + public static final int NULL_5926 = 5926; + public static final int NULL_5927 = 5927; + public static final int NULL_5928 = 5928; + public static final int NULL_5929 = 5929; + public static final int NULL_5930 = 5930; + public static final int NULL_5931 = 5931; + public static final int NULL_5932 = 5932; + public static final int NULL_5933 = 5933; + public static final int NULL_5934 = 5934; + public static final int NULL_5935 = 5935; + public static final int NULL_5936 = 5936; + public static final int NULL_5937 = 5937; + public static final int NULL_5938 = 5938; + public static final int NULL_5939 = 5939; + public static final int NULL_5940 = 5940; + public static final int NULL_5941 = 5941; + public static final int NULL_5942 = 5942; + public static final int NULL_5943 = 5943; + public static final int NULL_5944 = 5944; + public static final int NULL_5945 = 5945; + public static final int CLIMBING_ROPE_5946 = 5946; + public static final int DARK_HOLE = 5947; + public static final int STEPPING_STONE_5948 = 5948; + public static final int STEPPING_STONE_5949 = 5949; + public static final int NULL_5950 = 5950; + public static final int NULL_5951 = 5951; + public static final int NULL_5952 = 5952; + public static final int NULL_5953 = 5953; + public static final int NULL_5954 = 5954; + public static final int NULL_5955 = 5955; + public static final int NULL_5956 = 5956; + public static final int NULL_5957 = 5957; + public static final int NULL_5958 = 5958; + public static final int LEVER_5959 = 5959; + public static final int LEVER_5960 = 5960; + public static final int NULL_5961 = 5961; + public static final int NULL_5962 = 5962; + public static final int NULL_5963 = 5963; + public static final int CANNONBALL = 5964; + public static final int GOLD_CANNONBALL = 5965; + public static final int PASSAGE = 5966; + public static final int CANNONBALLS_5967 = 5967; + public static final int CANNONBALLS_5968 = 5968; + public static final int CANNONBALLS_5969 = 5969; + public static final int CANNONBALLS_5970 = 5970; + public static final int CANNONBALLS_5971 = 5971; + public static final int CANNONBALLS_5972 = 5972; + public static final int CAVE_ENTRANCE_5973 = 5973; + public static final int NULL_5974 = 5974; + public static final int DWARF_MULTICANNON_5975 = 5975; + public static final int DWARF_MULTICANNON_5976 = 5976; + public static final int WALL_OF_FLAME_5977 = 5977; + public static final int WALL_OF_FLAME_5978 = 5978; + public static final int WALL_OF_FLAME_5979 = 5979; + public static final int WALL_OF_FLAME_5980 = 5980; + public static final int FIRE_5981 = 5981; + public static final int NULL_5982 = 5982; + public static final int NULL_5983 = 5983; + public static final int NULL_5984 = 5984; + public static final int ROCK_5985 = 5985; + public static final int SMALL_ROCK = 5986; + public static final int ROCK_5987 = 5987; + public static final int NULL_5988 = 5988; + public static final int MINERAL_VEIN_5989 = 5989; + public static final int MINERAL_VEIN_5990 = 5990; + public static final int MINERAL_VEIN_5991 = 5991; + public static final int NULL_5992 = 5992; + public static final int NULL_5993 = 5993; + public static final int NULL_5994 = 5994; + public static final int NULL_5995 = 5995; + public static final int NULL_5996 = 5996; + public static final int NULL_5997 = 5997; + public static final int ENTRANCE_5998 = 5998; + public static final int NULL_5999 = 5999; + public static final int NULL_6000 = 6000; + public static final int NULL_6001 = 6001; + public static final int NULL_6002 = 6002; + public static final int NULL_6003 = 6003; + public static final int NULL_6004 = 6004; + public static final int NULL_6005 = 6005; + public static final int NULL_6006 = 6006; + public static final int NULL_6007 = 6007; + public static final int NULL_6008 = 6008; + public static final int BLUE_FIRE = 6009; + public static final int NULL_6010 = 6010; + public static final int NULL_6011 = 6011; + public static final int NULL_6012 = 6012; + public static final int NULL_6013 = 6013; + public static final int NULL_6014 = 6014; + public static final int NULL_6015 = 6015; + public static final int NULL_6016 = 6016; + public static final int NULL_6017 = 6017; + public static final int NULL_6018 = 6018; + public static final int NULL_6019 = 6019; + public static final int NULL_6020 = 6020; + public static final int NULL_6021 = 6021; + public static final int NULL_6022 = 6022; + public static final int NULL_6023 = 6023; + public static final int NULL_6024 = 6024; + public static final int NULL_6025 = 6025; + public static final int NULL_6026 = 6026; + public static final int NULL_6027 = 6027; + public static final int NULL_6028 = 6028; + public static final int NULL_6029 = 6029; + public static final int NULL_6030 = 6030; + public static final int NULL_6031 = 6031; + public static final int BOILER = 6032; + public static final int BOILER_6033 = 6033; + public static final int NULL_6034 = 6034; + public static final int NULL_6035 = 6035; + public static final int SHIPS_LADDER_6036 = 6036; + public static final int SHIPS_LADDER_6037 = 6037; + public static final int SHIPS_WHEEL_6038 = 6038; + public static final int NULL_6039 = 6039; + public static final int NULL_6040 = 6040; + public static final int NULL_6041 = 6041; + public static final int NULL_6042 = 6042; + public static final int BOILER_6043 = 6043; + public static final int BOILER_6044 = 6044; + public static final int MINE_CART_6045 = 6045; + public static final int NULL_6046 = 6046; + public static final int NULL_6047 = 6047; + public static final int NULL_6048 = 6048; + public static final int NULL_6049 = 6049; + public static final int NULL_6050 = 6050; + public static final int NULL_6051 = 6051; + public static final int NULL_6052 = 6052; + public static final int NULL_6053 = 6053; + public static final int NULL_6054 = 6054; + public static final int NULL_6055 = 6055; + public static final int NULL_6056 = 6056; + public static final int NULL_6057 = 6057; + public static final int NULL_6058 = 6058; + public static final int NULL_6059 = 6059; + public static final int NULL_6060 = 6060; + public static final int NULL_6061 = 6061; + public static final int NULL_6062 = 6062; + public static final int NULL_6063 = 6063; + public static final int HAT_STAND_6064 = 6064; + public static final int CLOTHES = 6065; + public static final int WEAPON_RACK = 6066; + public static final int WEAPON_RACK_6067 = 6067; + public static final int WEAPON_RACK_6068 = 6068; + public static final int WEAPON_RACK_6069 = 6069; + public static final int CABINET_6070 = 6070; + public static final int CABINET_6071 = 6071; + public static final int CABINET_6072 = 6072; + public static final int CABINET_6073 = 6073; + public static final int CABINET_6074 = 6074; + public static final int TABLE_6075 = 6075; + public static final int DESK_6076 = 6076; + public static final int DESK_6077 = 6077; + public static final int DESK_6078 = 6078; + public static final int DESK_6079 = 6079; + public static final int SPINNING_MACHINE = 6080; + public static final int BANK_TABLE_6081 = 6081; + public static final int BANK_TABLE_6082 = 6082; + public static final int CLOSED_BANK_BOOTH_6083 = 6083; + public static final int BANK_BOOTH_6084 = 6084; + public static final int STAIRS_6085 = 6085; + public static final int STAIRS_6086 = 6086; + public static final int STAIRS_6087 = 6087; + public static final int STAIRS_6088 = 6088; + public static final int STAIRS_6089 = 6089; + public static final int STAIRS_6090 = 6090; + public static final int BOOKCASE_6091 = 6091; + public static final int BOOKCASE_6092 = 6092; + public static final int FIREPLACE_6093 = 6093; + public static final int FIREPLACE_6094 = 6094; + public static final int FIREPLACE_6095 = 6095; + public static final int FIREPLACE_6096 = 6096; + public static final int WELL_6097 = 6097; + public static final int NULL_6098 = 6098; + public static final int NULL_6099 = 6099; + public static final int DOOR_6100 = 6100; + public static final int DOOR_6101 = 6101; + public static final int DOOR_6102 = 6102; + public static final int DOOR_6103 = 6103; + public static final int DOOR_6104 = 6104; + public static final int DOOR_6105 = 6105; + public static final int DOOR_6106 = 6106; + public static final int DOOR_6107 = 6107; + public static final int DOOR_6108 = 6108; + public static final int DOOR_6109 = 6109; + public static final int DOOR_6110 = 6110; + public static final int DOOR_6111 = 6111; + public static final int DOOR_6112 = 6112; + public static final int DOOR_6113 = 6113; + public static final int DOOR_6114 = 6114; + public static final int DOOR_6115 = 6115; + public static final int NULL_6116 = 6116; + public static final int NULL_6117 = 6117; + public static final int NULL_6118 = 6118; + public static final int NULL_6119 = 6119; + public static final int NULL_6120 = 6120; + public static final int NULL_6121 = 6121; + public static final int NULL_6122 = 6122; + public static final int NULL_6123 = 6123; + public static final int NULL_6124 = 6124; + public static final int NULL_6125 = 6125; + public static final int NULL_6126 = 6126; + public static final int NULL_6127 = 6127; + public static final int NULL_6128 = 6128; + public static final int NULL_6129 = 6129; + public static final int NULL_6130 = 6130; + public static final int NULL_6131 = 6131; + public static final int NULL_6132 = 6132; + public static final int NULL_6133 = 6133; + public static final int NULL_6134 = 6134; + public static final int NULL_6135 = 6135; + public static final int NULL_6136 = 6136; + public static final int NULL_6137 = 6137; + public static final int NULL_6138 = 6138; + public static final int NULL_6139 = 6139; + public static final int NULL_6140 = 6140; + public static final int NULL_6141 = 6141; + public static final int NULL_6142 = 6142; + public static final int NULL_6143 = 6143; + public static final int NULL_6144 = 6144; + public static final int NULL_6145 = 6145; + public static final int BIRD_CAGE_STAND = 6146; + public static final int COLUMN_6147 = 6147; + public static final int COLUMN_6148 = 6148; + public static final int COLUMN_6149 = 6149; + public static final int ANVIL_6150 = 6150; + public static final int SINK_6151 = 6151; + public static final int BAR_6152 = 6152; + public static final int BAR_6153 = 6153; + public static final int SHELVES_6154 = 6154; + public static final int SHELVES_6155 = 6155; + public static final int SHELVES_6156 = 6156; + public static final int SHELVES_6157 = 6157; + public static final int RED_FUNGI = 6158; + public static final int RED_FUNGI_6159 = 6159; + public static final int RED_FUNGI_6160 = 6160; + public static final int RED_FUNGI_6161 = 6161; + public static final int GEM_STALL_6162 = 6162; + public static final int BAKERY_STALL_6163 = 6163; + public static final int SILVER_STALL_6164 = 6164; + public static final int CLOTHES_STALL = 6165; + public static final int CRAFTING_STALL_6166 = 6166; + public static final int NULL_6167 = 6167; + public static final int NULL_6168 = 6168; + public static final int NULL_6169 = 6169; + public static final int NULL_6170 = 6170; + public static final int NULL_6171 = 6171; + public static final int NULL_6172 = 6172; + public static final int GIANT_DWARF = 6173; + public static final int GIANT_DWARF_6174 = 6174; + public static final int GIANT_DWARF_6175 = 6175; + public static final int BOXES_6176 = 6176; + public static final int CRATE_6177 = 6177; + public static final int CRATES_6178 = 6178; + public static final int COOKING_POTS_6179 = 6179; + public static final int COOKING_POTS_6180 = 6180; + public static final int HANGING_MEAT_6181 = 6181; + public static final int HANGING_MEAT_6182 = 6182; + public static final int BED_6183 = 6183; + public static final int BED_6184 = 6184; + public static final int ARMOUR = 6185; + public static final int ARMOUR_6186 = 6186; + public static final int ARMOUR_6187 = 6187; + public static final int BLACKSMITHS_TOOLS_6188 = 6188; + public static final int FURNACE_6189 = 6189; + public static final int FURNACE_6190 = 6190; + public static final int WARHAMMER = 6191; + public static final int PICKAXE = 6192; + public static final int DWARF_MIRROR = 6193; + public static final int CHAIR_6194 = 6194; + public static final int CHAIR_6195 = 6195; + public static final int TABLE_6196 = 6196; + public static final int TABLE_6197 = 6197; + public static final int TABLE_6198 = 6198; + public static final int TABLE_6199 = 6199; + public static final int TABLE_6200 = 6200; + public static final int TABLE_6201 = 6201; + public static final int LAMP_6202 = 6202; + public static final int LAMP_6203 = 6203; + public static final int POOR_BED = 6204; + public static final int BED_6205 = 6205; + public static final int DWARVEN_CONSORTIUM_TABLE = 6206; + public static final int THRONE_6207 = 6207; + public static final int THRONE_6208 = 6208; + public static final int NULL_6209 = 6209; + public static final int NULL_6210 = 6210; + public static final int TABLE_6211 = 6211; + public static final int TREE_STUMP_6212 = 6212; + public static final int BARREL_6213 = 6213; + public static final int NULL_6214 = 6214; + public static final int NULL_6215 = 6215; + public static final int NULL_6216 = 6216; + public static final int NULL_6217 = 6217; + public static final int NULL_6218 = 6218; + public static final int NULL_6219 = 6219; + public static final int NULL_6220 = 6220; + public static final int NULL_6221 = 6221; + public static final int NULL_6222 = 6222; + public static final int NULL_6223 = 6223; + public static final int NULL_6224 = 6224; + public static final int NULL_6225 = 6225; + public static final int NULL_6226 = 6226; + public static final int NULL_6227 = 6227; + public static final int NULL_6228 = 6228; + public static final int NULL_6229 = 6229; + public static final int MONEY_POT = 6230; + public static final int TABLE_6231 = 6231; + public static final int FOUNTAIN_6232 = 6232; + public static final int NULL_6233 = 6233; + public static final int NULL_6234 = 6234; + public static final int NULL_6235 = 6235; + public static final int STOP = 6236; + public static final int PLANT_6237 = 6237; + public static final int DOOR_6238 = 6238; + public static final int DOOR_6239 = 6239; + public static final int DOOR_6240 = 6240; + public static final int DOOR_6241 = 6241; + public static final int STAIRCASE_6242 = 6242; + public static final int STAIRCASE_6243 = 6243; + public static final int STAIRCASE_6244 = 6244; + public static final int STAIRCASE_6245 = 6245; + public static final int TABLE_6246 = 6246; + public static final int NULL_6247 = 6247; + public static final int NULL_6248 = 6248; + public static final int WELL_6249 = 6249; + public static final int BED_6250 = 6250; + public static final int NULL_6251 = 6251; + public static final int NULL_6252 = 6252; + public static final int NULL_6253 = 6253; + public static final int NULL_6254 = 6254; + public static final int TROUGH_6255 = 6255; + public static final int TROUGH_6256 = 6256; + public static final int DUNG = 6257; + public static final int DUNG_6258 = 6258; + public static final int DUNG_6259 = 6259; + public static final int LADDER_6260 = 6260; + public static final int LADDER_6261 = 6261; + public static final int LADDER_6262 = 6262; + public static final int HUTCH = 6263; + public static final int BIRD_CAGE_STAND_6264 = 6264; + public static final int CAGE_6265 = 6265; + public static final int CAGE_6266 = 6266; + public static final int GOLDEN_CAGE = 6267; + public static final int HUTCH_6268 = 6268; + public static final int CAGES = 6269; + public static final int NULL_6270 = 6270; + public static final int NULL_6271 = 6271; + public static final int NULL_6272 = 6272; + public static final int NULL_6273 = 6273; + public static final int BED_6274 = 6274; + public static final int STUDY_DESK_6275 = 6275; + public static final int LANDSCAPE_6276 = 6276; + public static final int CACTUS_6277 = 6277; + public static final int TRAPDOOR_6278 = 6278; + public static final int SMOKEY_WELL = 6279; + public static final int LADDER_6280 = 6280; + public static final int LADDER_6281 = 6281; + public static final int PORTAL_6282 = 6282; + public static final int PILLAR_6283 = 6283; + public static final int PILLAR_6284 = 6284; + public static final int PILLAR_6285 = 6285; + public static final int PILLAR_6286 = 6286; + public static final int NULL_6287 = 6287; + public static final int NULL_6288 = 6288; + public static final int NULL_6289 = 6289; + public static final int NULL_6290 = 6290; + public static final int NULL_6291 = 6291; + public static final int BOOKCASE_6292 = 6292; + public static final int NULL_6293 = 6293; + public static final int DISPLAY_CASE = 6294; + public static final int DISPLAY_CASE_6295 = 6295; + public static final int SKELETON_6296 = 6296; + public static final int SKELETON_6297 = 6297; + public static final int SKELETON_6298 = 6298; + public static final int SKELETON_6299 = 6299; + public static final int NULL_6300 = 6300; + public static final int THRONE_6301 = 6301; + public static final int THRONE_6302 = 6302; + public static final int NULL_6303 = 6303; + public static final int NULL_6304 = 6304; + public static final int NULL_6305 = 6305; + public static final int NULL_6306 = 6306; + public static final int STATUETTE_IN_ALCOVE = 6307; + public static final int STATUETTE_IN_ALCOVE_6308 = 6308; + public static final int ALCOVE = 6309; + public static final int NULL_6310 = 6310; + public static final int BLACK_MUSHROOMS = 6311; + public static final int STAIRCASE_6312 = 6312; + public static final int STAIRCASE_6313 = 6313; + public static final int NULL_6314 = 6314; + public static final int NULL_6315 = 6315; + public static final int NULL_6316 = 6316; + public static final int NULL_6317 = 6317; + public static final int NULL_6318 = 6318; + public static final int NULL_6319 = 6319; + public static final int NULL_6320 = 6320; + public static final int NULL_6321 = 6321; + public static final int NULL_6322 = 6322; + public static final int GOLEM_ARM = 6323; + public static final int GOLEM_FOOT = 6324; + public static final int GOLEM_BODY = 6325; + public static final int GOLEM_HEAD = 6326; + public static final int BROKEN_KILN = 6327; + public static final int BROKEN_KILN_6328 = 6328; + public static final int BROKEN_KILN_6329 = 6329; + public static final int BROKEN_KILN_6330 = 6330; + public static final int STATUE_6331 = 6331; + public static final int STATUE_6332 = 6332; + public static final int STATUE_6333 = 6333; + public static final int STATUE_6334 = 6334; + public static final int PLINTH = 6335; + public static final int PLINTH_6336 = 6336; + public static final int PLINTH_6337 = 6337; + public static final int PLINTH_6338 = 6338; + public static final int NULL_6339 = 6339; + public static final int NULL_6340 = 6340; + public static final int NULL_6341 = 6341; + public static final int NULL_6342 = 6342; + public static final int NULL_6343 = 6343; + public static final int NULL_6344 = 6344; + public static final int NULL_6345 = 6345; + public static final int NULL_6346 = 6346; + public static final int NULL_6347 = 6347; + public static final int NULL_6348 = 6348; + public static final int NULL_6349 = 6349; + public static final int NULL_6350 = 6350; + public static final int NULL_6351 = 6351; + public static final int NULL_6352 = 6352; + public static final int NULL_6353 = 6353; + public static final int NULL_6354 = 6354; + public static final int NULL_6355 = 6355; + public static final int NULL_6356 = 6356; + public static final int NULL_6357 = 6357; + public static final int NULL_6358 = 6358; + public static final int NULL_6359 = 6359; + public static final int NULL_6360 = 6360; + public static final int NULL_6361 = 6361; + public static final int NULL_6362 = 6362; + public static final int DOOR_6363 = 6363; + public static final int DOOR_6364 = 6364; + public static final int NULL_6365 = 6365; + public static final int NULL_6366 = 6366; + public static final int NULL_6367 = 6367; + public static final int NULL_6368 = 6368; + public static final int NULL_6369 = 6369; + public static final int NULL_6370 = 6370; + public static final int NULL_6371 = 6371; + public static final int STAIRCASE_6372 = 6372; + public static final int STAIRCASE_6373 = 6373; + public static final int NULL_6374 = 6374; + public static final int NULL_6375 = 6375; + public static final int NULL_6376 = 6376; + public static final int NULL_6377 = 6377; + public static final int NULL_6378 = 6378; + public static final int NULL_6379 = 6379; + public static final int NULL_6380 = 6380; + public static final int CAVE_6381 = 6381; + public static final int ROOT_6382 = 6382; + public static final int NULL_6383 = 6383; + public static final int NULL_6384 = 6384; + public static final int NULL_6385 = 6385; + public static final int NULL_6386 = 6386; + public static final int NULL_6387 = 6387; + public static final int NULL_6388 = 6388; + public static final int NULL_6389 = 6389; + public static final int NULL_6390 = 6390; + public static final int NULL_6391 = 6391; + public static final int NULL_6392 = 6392; + public static final int NULL_6393 = 6393; + public static final int NULL_6394 = 6394; + public static final int NULL_6395 = 6395; + public static final int NULL_6396 = 6396; + public static final int NULL_6397 = 6397; + public static final int NULL_6398 = 6398; + public static final int NULL_6399 = 6399; + public static final int NULL_6400 = 6400; + public static final int NULL_6401 = 6401; + public static final int STALAGMITES_6402 = 6402; + public static final int STALAGMITE_6403 = 6403; + public static final int STANDING_TORCH_6404 = 6404; + public static final int NULL_6405 = 6405; + public static final int STANDING_TORCH_6406 = 6406; + public static final int NULL_6407 = 6407; + public static final int STANDING_TORCH_6408 = 6408; + public static final int NULL_6409 = 6409; + public static final int STANDING_TORCH_6410 = 6410; + public static final int NULL_6411 = 6411; + public static final int STANDING_TORCH_6412 = 6412; + public static final int STANDING_TORCH_6413 = 6413; + public static final int STANDING_TORCH_6414 = 6414; + public static final int STANDING_TORCH_6415 = 6415; + public static final int STANDING_TORCH_6416 = 6416; + public static final int NULL_6417 = 6417; + public static final int LADDER_6418 = 6418; + public static final int LADDER_6419 = 6419; + public static final int BURNT_CHEST = 6420; + public static final int NULL_6421 = 6421; + public static final int NULL_6422 = 6422; + public static final int MYSTICAL_MIRROR = 6423; + public static final int NULL_6424 = 6424; + public static final int MYSTICAL_MIRROR_6425 = 6425; + public static final int NULL_6426 = 6426; + public static final int MYSTICAL_MIRROR_6427 = 6427; + public static final int NULL_6428 = 6428; + public static final int MYSTICAL_MIRROR_6429 = 6429; + public static final int NULL_6430 = 6430; + public static final int MYSTICAL_MIRROR_6431 = 6431; + public static final int NULL_6432 = 6432; + public static final int MYSTICAL_MIRROR_6433 = 6433; + public static final int TRAPDOOR_6434 = 6434; + public static final int TRAPDOOR_6435 = 6435; + public static final int LADDER_6436 = 6436; + public static final int VAMPIRE_TOMB = 6437; + public static final int VAMPIRE_TOMB_6438 = 6438; + public static final int ROPE_6439 = 6439; + public static final int NULL_6440 = 6440; + public static final int CAVE_ENTRANCE_6441 = 6441; + public static final int CAVE_ENTRANCE_6442 = 6442; + public static final int CAVE_ENTRANCE_6443 = 6443; + public static final int CAVE_ENTRANCE_6444 = 6444; + public static final int CAVE_ENTRANCE_6445 = 6445; + public static final int CAVE_ENTRANCE_6446 = 6446; + public static final int CAVE_EXIT_6447 = 6447; + public static final int SECURE_CHEST = 6448; + public static final int NULL_6449 = 6449; + public static final int LADDER_6450 = 6450; + public static final int GATE_6451 = 6451; + public static final int GATE_6452 = 6452; + public static final int NULL_6453 = 6453; + public static final int ICY_ROCK = 6454; + public static final int ICE_LEDGE = 6455; + public static final int ICE_LEDGE_6456 = 6456; + public static final int NULL_6457 = 6457; + public static final int NULL_6458 = 6458; + public static final int NULL_6459 = 6459; + public static final int NULL_6460 = 6460; + public static final int ICE_GATE_6461 = 6461; + public static final int ICE_GATE_6462 = 6462; + public static final int NULL_6463 = 6463; + public static final int NULL_6464 = 6464; + public static final int NULL_6465 = 6465; + public static final int NULL_6466 = 6466; + public static final int NULL_6467 = 6467; + public static final int NULL_6468 = 6468; + public static final int NULL_6469 = 6469; + public static final int NULL_6470 = 6470; + public static final int NULL_6471 = 6471; + public static final int ICE_CHUNKS = 6472; + public static final int ICE_CHUNKS_6473 = 6473; + public static final int ICE_CHUNKS_6474 = 6474; + public static final int ICE_CHUNKS_6475 = 6475; + public static final int ICE_CHUNKS_6476 = 6476; + public static final int ICE_CHUNKS_6477 = 6477; + public static final int NULL_6478 = 6478; + public static final int NULL_6479 = 6479; + public static final int NULL_6480 = 6480; + public static final int TUNNEL_6481 = 6481; + public static final int NULL_6482 = 6482; + public static final int OBELISK_6483 = 6483; + public static final int OBELISK_6484 = 6484; + public static final int NULL_6485 = 6485; + public static final int OBELISK_6486 = 6486; + public static final int OBELISK_6487 = 6487; + public static final int NULL_6488 = 6488; + public static final int OBELISK_6489 = 6489; + public static final int OBELISK_6490 = 6490; + public static final int NULL_6491 = 6491; + public static final int OBELISK_6492 = 6492; + public static final int OBELISK_6493 = 6493; + public static final int MYSTICAL_DOOR = 6494; + public static final int NULL_6495 = 6495; + public static final int NULL_6496 = 6496; + public static final int LADDER_6497 = 6497; + public static final int LADDER_6498 = 6498; + public static final int LADDER_6499 = 6499; + public static final int LADDER_6500 = 6500; + public static final int LADDER_6501 = 6501; + public static final int LADDER_6502 = 6502; + public static final int LADDER_6503 = 6503; + public static final int LADDER_6504 = 6504; + public static final int NULL_6505 = 6505; + public static final int NULL_6506 = 6506; + public static final int NULL_6507 = 6507; + public static final int NULL_6508 = 6508; + public static final int NULL_6509 = 6509; + public static final int NULL_6510 = 6510; + public static final int NULL_6511 = 6511; + public static final int SARCOPHAGUS = 6512; + public static final int SARCOPHAGUS_6513 = 6513; + public static final int SARCOPHAGUS_6514 = 6514; + public static final int SARCOPHAGUS_6515 = 6515; + public static final int SARCOPHAGUS_6516 = 6516; + public static final int SARCOPHAGUS_6517 = 6517; + public static final int NULL_6518 = 6518; + public static final int NULL_6519 = 6519; + public static final int NULL_6520 = 6520; + public static final int PITFALL = 6521; + public static final int NULL_6522 = 6522; + public static final int LADDER_6523 = 6523; + public static final int CRACK_6524 = 6524; + public static final int NULL_6525 = 6525; + public static final int NULL_6526 = 6526; + public static final int NULL_6527 = 6527; + public static final int NULL_6528 = 6528; + public static final int NULL_6529 = 6529; + public static final int NULL_6530 = 6530; + public static final int NULL_6531 = 6531; + public static final int NULL_6532 = 6532; + public static final int NULL_6533 = 6533; + public static final int NULL_6534 = 6534; + public static final int NULL_6535 = 6535; + public static final int NULL_6536 = 6536; + public static final int NULL_6537 = 6537; + public static final int SPHINX = 6538; + public static final int NULL_6539 = 6539; + public static final int NULL_6540 = 6540; + public static final int NULL_6541 = 6541; + public static final int NULL_6542 = 6542; + public static final int NULL_6543 = 6543; + public static final int NULL_6544 = 6544; + public static final int PYRAMID_ENTRANCE = 6545; + public static final int NULL_6546 = 6546; + public static final int PYRAMID_ENTRANCE_6547 = 6547; + public static final int NULL_6548 = 6548; + public static final int WELL_6549 = 6549; + public static final int NULL_6550 = 6550; + public static final int PORTAL_6551 = 6551; + public static final int ALTAR_6552 = 6552; + public static final int DOORWAY_6553 = 6553; + public static final int NULL_6554 = 6554; + public static final int DOORWAY_6555 = 6555; + public static final int NULL_6556 = 6556; + public static final int NULL_6557 = 6557; + public static final int NULL_6558 = 6558; + public static final int NULL_6559 = 6559; + public static final int NULL_6560 = 6560; + public static final int LADDER_6561 = 6561; + public static final int NULL_6562 = 6562; + public static final int NULL_6563 = 6563; + public static final int NULL_6564 = 6564; + public static final int NULL_6565 = 6565; + public static final int CITY_GATE_6566 = 6566; + public static final int NULL_6567 = 6567; + public static final int SILK_STALL_6568 = 6568; + public static final int BAKERY_STALL_6569 = 6569; + public static final int GEM_STALL_6570 = 6570; + public static final int FUR_STALL_6571 = 6571; + public static final int SPICE_STALL_6572 = 6572; + public static final int MARKET_STALL_6573 = 6573; + public static final int TEA_STALL_6574 = 6574; + public static final int CART_6575 = 6575; + public static final int NULL_6576 = 6576; + public static final int NULL_6577 = 6577; + public static final int BANANA_TREE_6578 = 6578; + public static final int BANANA_TREE_6579 = 6579; + public static final int NULL_6580 = 6580; + public static final int TENT_FLAP_6581 = 6581; + public static final int NULL_6582 = 6582; + public static final int NULL_6583 = 6583; + public static final int NULL_6584 = 6584; + public static final int NULL_6585 = 6585; + public static final int NULL_6586 = 6586; + public static final int NULL_6587 = 6587; + public static final int NULL_6588 = 6588; + public static final int NULL_6589 = 6589; + public static final int NULL_6590 = 6590; + public static final int NULL_6591 = 6591; + public static final int NULL_6592 = 6592; + public static final int NULL_6593 = 6593; + public static final int NULL_6594 = 6594; + public static final int NULL_6595 = 6595; + public static final int NULL_6596 = 6596; + public static final int NULL_6597 = 6597; + public static final int NULL_6598 = 6598; + public static final int NULL_6599 = 6599; + public static final int NULL_6600 = 6600; + public static final int NULL_6601 = 6601; + public static final int NULL_6602 = 6602; + public static final int NULL_6603 = 6603; + public static final int NULL_6604 = 6604; + public static final int WATER_6605 = 6605; + public static final int CENTRE_PIECE = 6606; + public static final int MIRROR_6607 = 6607; + public static final int MIRROR_6608 = 6608; + public static final int MIRROR_6609 = 6609; + public static final int MIRROR_6610 = 6610; + public static final int MIRROR_6611 = 6611; + public static final int MIRROR_6612 = 6612; + public static final int MIRROR_6613 = 6613; + public static final int DOOR_6614 = 6614; + public static final int CITY_GATE_6615 = 6615; + public static final int NULL_6616 = 6616; + public static final int NULL_6617 = 6617; + public static final int NULL_6618 = 6618; + public static final int NULL_6619 = 6619; + public static final int HOLE_6620 = 6620; + public static final int NULL_6621 = 6621; + public static final int ROCK_6622 = 6622; + public static final int ROCK_6623 = 6623; + public static final int DOOR_6624 = 6624; + public static final int DOOR_6625 = 6625; + public static final int DOOR_6626 = 6626; + public static final int DOOR_6627 = 6627; + public static final int NULL_6628 = 6628; + public static final int WALL_CRUSHER = 6629; + public static final int SARCOPHAGUS_6630 = 6630; + public static final int NULL_6631 = 6631; + public static final int PIT = 6632; + public static final int PIT_6633 = 6633; + public static final int NULL_6634 = 6634; + public static final int CANOPIC_JAR = 6635; + public static final int NULL_6636 = 6636; + public static final int CANOPIC_JAR_6637 = 6637; + public static final int NULL_6638 = 6638; + public static final int CANOPIC_JAR_6639 = 6639; + public static final int NULL_6640 = 6640; + public static final int CANOPIC_JAR_6641 = 6641; + public static final int NULL_6642 = 6642; + public static final int DOORWAY_6643 = 6643; + public static final int CEREMONIAL_TABLE = 6644; + public static final int LADDER_6645 = 6645; + public static final int CLOSED_CHEST_6646 = 6646; + public static final int OPEN_CHEST_6647 = 6647; + public static final int STAIRCASE_6648 = 6648; + public static final int STAIRCASE_6649 = 6649; + public static final int BRIDGE_6650 = 6650; + public static final int BRIDGE_6651 = 6651; + public static final int BRIDGE_6652 = 6652; + public static final int BRIDGE_6653 = 6653; + public static final int NULL_6654 = 6654; + public static final int BROKEN_LOGS = 6655; + public static final int CLOTH_6656 = 6656; + public static final int JUNA = 6657; + public static final int TUNNEL_6658 = 6658; + public static final int TUNNEL_6659 = 6659; + public static final int WEEPING_WALL = 6660; + public static final int BLUE_TEARS = 6661; + public static final int GREEN_TEARS = 6662; + public static final int ABSENCE_OF_TEARS = 6663; + public static final int NULL_6664 = 6664; + public static final int BLUE_TEARS_6665 = 6665; + public static final int GREEN_TEARS_6666 = 6666; + public static final int ABSENCE_OF_TEARS_6667 = 6667; + public static final int NULL_6668 = 6668; + public static final int ROCKS_6669 = 6669; + public static final int ROCKS_6670 = 6670; + public static final int ROCKS_6671 = 6671; + public static final int ROCKS_6672 = 6672; + public static final int ROCKS_6673 = 6673; + public static final int NULL_6674 = 6674; + public static final int NULL_6675 = 6675; + public static final int NULL_6676 = 6676; + public static final int NULL_6677 = 6677; + public static final int NULL_6678 = 6678; + public static final int NULL_6679 = 6679; + public static final int NULL_6680 = 6680; + public static final int NULL_6681 = 6681; + public static final int NULL_6682 = 6682; + public static final int NULL_6683 = 6683; + public static final int NULL_6684 = 6684; + public static final int NULL_6685 = 6685; + public static final int NULL_6686 = 6686; + public static final int NULL_6687 = 6687; + public static final int NULL_6688 = 6688; + public static final int NULL_6689 = 6689; + public static final int NULL_6690 = 6690; + public static final int NULL_6691 = 6691; + public static final int NULL_6692 = 6692; + public static final int NULL_6693 = 6693; + public static final int NULL_6694 = 6694; + public static final int NULL_6695 = 6695; + public static final int NULL_6696 = 6696; + public static final int NULL_6697 = 6697; + public static final int NULL_6698 = 6698; + public static final int NULL_6699 = 6699; + public static final int NULL_6700 = 6700; + public static final int NULL_6701 = 6701; + public static final int STAIRCASE_6702 = 6702; + public static final int STAIRCASE_6703 = 6703; + public static final int STAIRCASE_6704 = 6704; + public static final int STAIRCASE_6705 = 6705; + public static final int STAIRCASE_6706 = 6706; + public static final int STAIRCASE_6707 = 6707; + public static final int LADDER_6708 = 6708; + public static final int NULL_6709 = 6709; + public static final int NULL_6710 = 6710; + public static final int NULL_6711 = 6711; + public static final int NULL_6712 = 6712; + public static final int DOOR_6713 = 6713; + public static final int DOOR_6714 = 6714; + public static final int DOOR_6715 = 6715; + public static final int NULL_6716 = 6716; + public static final int NULL_6717 = 6717; + public static final int NULL_6718 = 6718; + public static final int NULL_6719 = 6719; + public static final int NULL_6720 = 6720; + public static final int NULL_6721 = 6721; + public static final int NULL_6722 = 6722; + public static final int NULL_6723 = 6723; + public static final int NULL_6724 = 6724; + public static final int NULL_6725 = 6725; + public static final int NULL_6726 = 6726; + public static final int NULL_6727 = 6727; + public static final int NULL_6728 = 6728; + public static final int NULL_6729 = 6729; + public static final int NULL_6730 = 6730; + public static final int NULL_6731 = 6731; + public static final int DOOR_6732 = 6732; + public static final int DOOR_6733 = 6733; + public static final int DOOR_6734 = 6734; + public static final int NULL_6735 = 6735; + public static final int NULL_6736 = 6736; + public static final int NULL_6737 = 6737; + public static final int NULL_6738 = 6738; + public static final int NULL_6739 = 6739; + public static final int NULL_6740 = 6740; + public static final int NULL_6741 = 6741; + public static final int NULL_6742 = 6742; + public static final int NULL_6743 = 6743; + public static final int NULL_6744 = 6744; + public static final int NULL_6745 = 6745; + public static final int NULL_6746 = 6746; + public static final int NULL_6747 = 6747; + public static final int NULL_6748 = 6748; + public static final int NULL_6749 = 6749; + public static final int NULL_6750 = 6750; + public static final int NULL_6751 = 6751; + public static final int NULL_6752 = 6752; + public static final int NULL_6753 = 6753; + public static final int NULL_6754 = 6754; + public static final int NULL_6755 = 6755; + public static final int NULL_6756 = 6756; + public static final int NULL_6757 = 6757; + public static final int NULL_6758 = 6758; + public static final int NULL_6759 = 6759; + public static final int NULL_6760 = 6760; + public static final int NULL_6761 = 6761; + public static final int NULL_6762 = 6762; + public static final int NULL_6763 = 6763; + public static final int NULL_6764 = 6764; + public static final int NULL_6765 = 6765; + public static final int NULL_6766 = 6766; + public static final int STANDING_TORCH_6767 = 6767; + public static final int NULL_6768 = 6768; + public static final int NULL_6769 = 6769; + public static final int NULL_6770 = 6770; + public static final int SARCOPHAGUS_6771 = 6771; + public static final int SARCOPHAGUS_6772 = 6772; + public static final int SARCOPHAGUS_6773 = 6773; + public static final int CHEST_6774 = 6774; + public static final int CHEST_6775 = 6775; + public static final int SKELETON_6776 = 6776; + public static final int SKELETON_6777 = 6777; + public static final int SKELETON_6778 = 6778; + public static final int NULL_6779 = 6779; + public static final int NULL_6780 = 6780; + public static final int NULL_6781 = 6781; + public static final int NULL_6782 = 6782; + public static final int NULL_6783 = 6783; + public static final int NULL_6784 = 6784; + public static final int NULL_6785 = 6785; + public static final int NULL_6786 = 6786; + public static final int NULL_6787 = 6787; + public static final int NULL_6788 = 6788; + public static final int NULL_6789 = 6789; + public static final int NULL_6790 = 6790; + public static final int BED_6791 = 6791; + public static final int NULL_6792 = 6792; + public static final int NULL_6793 = 6793; + public static final int NULL_6794 = 6794; + public static final int NULL_6795 = 6795; + public static final int NULL_6796 = 6796; + public static final int NULL_6797 = 6797; + public static final int NULL_6798 = 6798; + public static final int NULL_6799 = 6799; + public static final int NULL_6800 = 6800; + public static final int NULL_6801 = 6801; + public static final int NULL_6802 = 6802; + public static final int NULL_6803 = 6803; + public static final int NULL_6804 = 6804; + public static final int NULL_6805 = 6805; + public static final int NULL_6806 = 6806; + public static final int NULL_6807 = 6807; + public static final int NULL_6808 = 6808; + public static final int NULL_6809 = 6809; + public static final int NULL_6810 = 6810; + public static final int NULL_6811 = 6811; + public static final int NULL_6812 = 6812; + public static final int NULL_6813 = 6813; + public static final int NULL_6814 = 6814; + public static final int NULL_6815 = 6815; + public static final int NULL_6816 = 6816; + public static final int NULL_6817 = 6817; + public static final int NULL_6818 = 6818; + public static final int NULL_6819 = 6819; + public static final int NULL_6820 = 6820; + public static final int SARCOPHAGUS_6821 = 6821; + public static final int SARCOPHAGUS_6822 = 6822; + public static final int SARCOPHAGUS_6823 = 6823; + public static final int DOOR_6824 = 6824; + public static final int NULL_6825 = 6825; + public static final int NULL_6826 = 6826; + public static final int WATERPUMP = 6827; + public static final int NULL_6828 = 6828; + public static final int NULL_6829 = 6829; + public static final int NULL_6830 = 6830; + public static final int NULL_6831 = 6831; + public static final int NULL_6832 = 6832; + public static final int NULL_6833 = 6833; + public static final int NULL_6834 = 6834; + public static final int WARNING_SIGN_6835 = 6835; + public static final int CAGE_6836 = 6836; + public static final int NULL_6837 = 6837; + public static final int NULL_6838 = 6838; + public static final int CRATE_6839 = 6839; + public static final int FUNGUS_PATTERN = 6840; + public static final int STAIRS_6841 = 6841; + public static final int STAIRS_6842 = 6842; + public static final int NULL_6843 = 6843; + public static final int OGRE_COFFIN = 6844; + public static final int OGRE_COFFIN_6845 = 6845; + public static final int BROKEN_LECTURN = 6846; + public static final int BELL_6847 = 6847; + public static final int OGRE_COFFIN_6848 = 6848; + public static final int SIGNPOST_6849 = 6849; + public static final int OGRE_COFFIN_6850 = 6850; + public static final int OGRE_COFFIN_6851 = 6851; + public static final int OGRE_COFFIN_6852 = 6852; + public static final int OGRE_COFFIN_6853 = 6853; + public static final int OGRE_COFFIN_6854 = 6854; + public static final int OGRE_COFFIN_6855 = 6855; + public static final int BARRICADE_6856 = 6856; + public static final int BARRICADE_6857 = 6857; + public static final int BARRICADE_6858 = 6858; + public static final int NULL_6859 = 6859; + public static final int NULL_6860 = 6860; + public static final int NULL_6861 = 6861; + public static final int NULL_6862 = 6862; + public static final int NULL_6863 = 6863; + public static final int NULL_6864 = 6864; + public static final int AN_OGRE_STANDARD = 6865; + public static final int OGRE_FIRE = 6866; + public static final int OGRE_DRUMS = 6867; + public static final int OGRE_DRUMS_6868 = 6868; + public static final int NULL_6869 = 6869; + public static final int NULL_6870 = 6870; + public static final int OGRE_STONE_DOOR = 6871; + public static final int OGRE_STONE_DOOR_6872 = 6872; + public static final int NULL_6873 = 6873; + public static final int NULL_6874 = 6874; + public static final int DRAWERS_6875 = 6875; + public static final int CUPBOARD_6876 = 6876; + public static final int WARDROBE_6877 = 6877; + public static final int NULL_6878 = 6878; + public static final int NULL_6879 = 6879; + public static final int OGRE_BARRICADE = 6880; + public static final int CRUSHED_BARRICADE = 6881; + public static final int CRUSHED_BARRICADE_6882 = 6882; + public static final int OGRE_COFFIN_6883 = 6883; + public static final int NULL_6884 = 6884; + public static final int NULL_6885 = 6885; + public static final int NULL_6886 = 6886; + public static final int NULL_6887 = 6887; + public static final int SITHIK_INTS = 6888; + public static final int SITHIK_INTS_6889 = 6889; + public static final int OGRE_COFFIN_6890 = 6890; + public static final int OGRE_COFFIN_6891 = 6891; + public static final int OGRE_COFFIN_6892 = 6892; + public static final int SKELETON_6893 = 6893; + public static final int BOOKCASE_6894 = 6894; + public static final int NULL_6895 = 6895; + public static final int STANDING_TORCH_6896 = 6896; + public static final int STAND = 6897; + public static final int NULL_6898 = 6898; + public static final int NULL_6899 = 6899; + public static final int NULL_6900 = 6900; + public static final int NULL_6901 = 6901; + public static final int NULL_6902 = 6902; + public static final int RUBBLE_6903 = 6903; + public static final int SHELVES_6904 = 6904; + public static final int HOLE_6905 = 6905; + public static final int NULL_6906 = 6906; + public static final int NULL_6907 = 6907; + public static final int NULL_6908 = 6908; + public static final int WALL_6909 = 6909; + public static final int CHEST_6910 = 6910; + public static final int CRATE_6911 = 6911; + public static final int HOLE_6912 = 6912; + public static final int NULL_6913 = 6913; + public static final int HOLE_6914 = 6914; + public static final int RUBBLE_6915 = 6915; + public static final int BOOKCASE_6916 = 6916; + public static final int NULL_6917 = 6917; + public static final int NULL_6918 = 6918; + public static final int DOOR_6919 = 6919; + public static final int DOOR_6920 = 6920; + public static final int SYMBOL = 6921; + public static final int SYMBOL_6922 = 6922; + public static final int SYMBOL_6923 = 6923; + public static final int SYMBOL_6924 = 6924; + public static final int NULL_6925 = 6925; + public static final int NULL_6926 = 6926; + public static final int BIG_BIG_BOULDER = 6927; + public static final int BONE_CRANE = 6928; + public static final int BONE_SUPPORT = 6929; + public static final int BONE_SUPPORT_6930 = 6930; + public static final int BONE_ARCH = 6931; + public static final int BONE_ARCH_6932 = 6932; + public static final int BONE_ARCH_6933 = 6933; + public static final int BONE_ARCH_6934 = 6934; + public static final int BONE_ARCH_6935 = 6935; + public static final int BONE_ARCH_6936 = 6936; + public static final int BONE_ARCH_6937 = 6937; + public static final int BONE_ARCH_6938 = 6938; + public static final int BONE_ARCH_6939 = 6939; + public static final int BONE_ARCH_6940 = 6940; + public static final int NULL_6941 = 6941; + public static final int NULL_6942 = 6942; + public static final int ROCKS_6943 = 6943; + public static final int ROCKS_6944 = 6944; + public static final int ROCKS_6945 = 6945; + public static final int ROCKS_6946 = 6946; + public static final int ROCKS_6947 = 6947; + public static final int ROCKS_6948 = 6948; + public static final int NULL_6949 = 6949; + public static final int BOULDER_6950 = 6950; + public static final int NOTHING = 6951; + public static final int NOTHING_6952 = 6952; + public static final int NOTHING_6953 = 6953; + public static final int NULL_6954 = 6954; + public static final int NULL_6955 = 6955; + public static final int NULL_6956 = 6956; + public static final int NULL_6957 = 6957; + public static final int NULL_6958 = 6958; + public static final int NULL_6959 = 6959; + public static final int NULL_6960 = 6960; + public static final int NULL_6961 = 6961; + public static final int NULL_6962 = 6962; + public static final int NULL_6963 = 6963; + public static final int NULL_6964 = 6964; + public static final int NULL_6965 = 6965; + public static final int NULL_6966 = 6966; + public static final int NULL_6967 = 6967; + public static final int NULL_6968 = 6968; + public static final int SWAMP_BOATY_6969 = 6969; + public static final int SWAMP_BOATY_6970 = 6970; + public static final int CART_TRACK = 6971; + public static final int BOOKCASE_6972 = 6972; + public static final int NULL_6973 = 6973; + public static final int NULL_6974 = 6974; + public static final int DOOR_6975 = 6975; + public static final int DOOR_6976 = 6976; + public static final int DOOR_6977 = 6977; + public static final int DOOR_6978 = 6978; + public static final int NULL_6979 = 6979; + public static final int NULL_6980 = 6980; + public static final int NULL_6981 = 6981; + public static final int NULL_6982 = 6982; + public static final int NULL_6983 = 6983; + public static final int MARKET_STALL_6984 = 6984; + public static final int CRUSHER = 6985; + public static final int NULL_6986 = 6986; + public static final int NULL_6987 = 6987; + public static final int NULL_6988 = 6988; + public static final int NULL_6989 = 6989; + public static final int NULL_6990 = 6990; + public static final int NULL_6991 = 6991; + public static final int NULL_6992 = 6992; + public static final int NULL_6993 = 6993; + public static final int NULL_6994 = 6994; + public static final int NULL_6995 = 6995; + public static final int NULL_6996 = 6996; + public static final int NULL_6997 = 6997; + public static final int NULL_6998 = 6998; + public static final int NULL_6999 = 6999; + public static final int NULL_7000 = 7000; + public static final int NULL_7001 = 7001; + public static final int STATUE_7002 = 7002; + public static final int STATUE_7003 = 7003; + public static final int STATUE_7004 = 7004; + public static final int STATUE_7005 = 7005; + public static final int STATUE_7006 = 7006; + public static final int STATUE_7007 = 7007; + public static final int STATUE_7008 = 7008; + public static final int STATUE_7009 = 7009; + public static final int ALMOST_A_STATUE = 7010; + public static final int PLANT_7011 = 7011; + public static final int PLANT_7012 = 7012; + public static final int PLANT_7013 = 7013; + public static final int PLANT_7014 = 7014; + public static final int PLANT_7015 = 7015; + public static final int PILLAR_7016 = 7016; + public static final int PILLAR_7017 = 7017; + public static final int CUPBOARD_7018 = 7018; + public static final int CABINET_7019 = 7019; + public static final int CABINET_7020 = 7020; + public static final int CABINET_7021 = 7021; + public static final int TRACK = 7022; + public static final int TRACK_7023 = 7023; + public static final int NULL_7024 = 7024; + public static final int NULL_7025 = 7025; + public static final int TRACK_7026 = 7026; + public static final int TRAIN_CART = 7027; + public static final int TRAIN_CART_7028 = 7028; + public static final int TRAIN_CART_7029 = 7029; + public static final int TRAIN_CART_7030 = 7030; + public static final int NULL_7031 = 7031; + public static final int GIANT_DWARF_7032 = 7032; + public static final int GIANT_DWARF_7033 = 7033; + public static final int GIANT_DWARF_7034 = 7034; + public static final int GIANT_DWARF_7035 = 7035; + public static final int GIANT_DWARF_7036 = 7036; + public static final int GIANT_DWARF_7037 = 7037; + public static final int GIANT_DWARF_7038 = 7038; + public static final int GIANT_DWARF_7039 = 7039; + public static final int NULL_7040 = 7040; + public static final int GIANT_DWARF_7041 = 7041; + public static final int NULL_7042 = 7042; + public static final int GIANT_DWARF_7043 = 7043; + public static final int BUFFERS_7044 = 7044; + public static final int NULL_7045 = 7045; + public static final int NULL_7046 = 7046; + public static final int NULL_7047 = 7047; + public static final int NULL_7048 = 7048; + public static final int GATE_7049 = 7049; + public static final int GATE_7050 = 7050; + public static final int GATE_7051 = 7051; + public static final int GATE_7052 = 7052; + public static final int SEED_STALL = 7053; + public static final int NULL_7054 = 7054; + public static final int NULL_7055 = 7055; + public static final int STAIRCASE_7056 = 7056; + public static final int STAIRCASE_7057 = 7057; + public static final int OLD_BOOKSHELF = 7058; + public static final int OLD_BOOKSHELF_7059 = 7059; + public static final int OLD_BOOKSHELF_7060 = 7060; + public static final int OLD_BOOKSHELF_7061 = 7061; + public static final int OLD_BOOKSHELF_7062 = 7062; + public static final int OLD_BOOKSHELF_7063 = 7063; + public static final int OLD_BOOKSHELF_7064 = 7064; + public static final int OLD_BOOKSHELF_7065 = 7065; + public static final int OLD_BOOKSHELF_7066 = 7066; + public static final int OLD_BOOKSHELF_7067 = 7067; + public static final int OLD_BOOKSHELF_7068 = 7068; + public static final int OLD_BOOKSHELF_7069 = 7069; + public static final int OLD_BOOKSHELF_7070 = 7070; + public static final int OLD_BOOKSHELF_7071 = 7071; + public static final int OLD_BOOKSHELF_7072 = 7072; + public static final int OLD_BOOKSHELF_7073 = 7073; + public static final int OLD_BOOKSHELF_7074 = 7074; + public static final int OLD_BOOKSHELF_7075 = 7075; + public static final int OLD_BOOKSHELF_7076 = 7076; + public static final int OLD_BOOKSHELF_7077 = 7077; + public static final int OLD_BOOKSHELF_7078 = 7078; + public static final int OLD_BOOKSHELF_7079 = 7079; + public static final int OLD_BOOKSHELF_7080 = 7080; + public static final int OLD_BOOKSHELF_7081 = 7081; + public static final int OLD_BOOKSHELF_7082 = 7082; + public static final int OLD_BOOKSHELF_7083 = 7083; + public static final int OLD_BOOKSHELF_7084 = 7084; + public static final int OLD_BOOKSHELF_7085 = 7085; + public static final int OLD_BOOKSHELF_7086 = 7086; + public static final int OLD_BOOKSHELF_7087 = 7087; + public static final int OLD_BOOKSHELF_7088 = 7088; + public static final int OLD_BOOKSHELF_7089 = 7089; + public static final int GLOBE_OF_GIELINOR = 7090; + public static final int STUDY_DESK_7091 = 7091; + public static final int TELESCOPE_7092 = 7092; + public static final int NULL_7093 = 7093; + public static final int NULL_7094 = 7094; + public static final int NULL_7095 = 7095; + public static final int CHART = 7096; + public static final int CHART_7097 = 7097; + public static final int CHART_7098 = 7098; + public static final int SCROLLS = 7099; + public static final int SUIT_OF_ARMOUR_7100 = 7100; + public static final int HANGING_CAPE = 7101; + public static final int SARADOMIN_STAFF = 7102; + public static final int MYSTERIOUS_RUINS = 7103; + public static final int MYSTERIOUS_RUINS_7104 = 7104; + public static final int MYSTERIOUS_RUINS_7105 = 7105; + public static final int MYSTERIOUS_RUINS_7106 = 7106; + public static final int MYSTERIOUS_RUINS_7107 = 7107; + public static final int MYSTERIOUS_RUINS_7108 = 7108; + public static final int MYSTERIOUS_RUINS_7109 = 7109; + public static final int MYSTERIOUS_RUINS_7110 = 7110; + public static final int MYSTERIOUS_RUINS_7111 = 7111; + public static final int MYSTERIOUS_RUINS_7112 = 7112; + public static final int MYSTERIOUS_RUINS_7113 = 7113; + public static final int MYSTERIOUS_RUINS_7114 = 7114; + public static final int MYSTERIOUS_RUINS_7115 = 7115; + public static final int MYSTERIOUS_RUINS_7116 = 7116; + public static final int MYSTERIOUS_RUINS_7117 = 7117; + public static final int MYSTERIOUS_RUINS_7118 = 7118; + public static final int MYSTERIOUS_RUINS_7119 = 7119; + public static final int MYSTERIOUS_RUINS_7120 = 7120; + public static final int MYSTERIOUS_RUINS_7121 = 7121; + public static final int MYSTERIOUS_RUINS_7122 = 7122; + public static final int MYSTERIOUS_RUINS_7123 = 7123; + public static final int MYSTERIOUS_RUINS_7124 = 7124; + public static final int MYSTERIOUS_RUINS_7125 = 7125; + public static final int MYSTERIOUS_RUINS_7126 = 7126; + public static final int MYSTERIOUS_RUINS_7127 = 7127; + public static final int MYSTERIOUS_RUINS_7128 = 7128; + public static final int FIRE_RIFT = 7129; + public static final int EARTH_RIFT = 7130; + public static final int BODY_RIFT = 7131; + public static final int COSMIC_RIFT = 7132; + public static final int NATURE_RIFT = 7133; + public static final int CHAOS_RIFT = 7134; + public static final int LAW_RIFT = 7135; + public static final int DEATH_RIFT = 7136; + public static final int WATER_RIFT = 7137; + public static final int SOUL_RIFT = 7138; + public static final int AIR_RIFT = 7139; + public static final int MIND_RIFT = 7140; + public static final int BLOOD_RIFT = 7141; + public static final int NULL_7142 = 7142; + public static final int NULL_7143 = 7143; + public static final int NULL_7144 = 7144; + public static final int NULL_7145 = 7145; + public static final int NULL_7146 = 7146; + public static final int NULL_7147 = 7147; + public static final int NULL_7148 = 7148; + public static final int NULL_7149 = 7149; + public static final int NULL_7150 = 7150; + public static final int NULL_7151 = 7151; + public static final int NULL_7152 = 7152; + public static final int NULL_7153 = 7153; + public static final int PASSAGE_7154 = 7154; + public static final int NULL_7155 = 7155; + public static final int BLOCKAGE = 7156; + public static final int NULL_7157 = 7157; + public static final int ROCK_7158 = 7158; + public static final int ROCK_7159 = 7159; + public static final int BROKEN_ROCK = 7160; + public static final int TENDRILS = 7161; + public static final int TENDRILS_7162 = 7162; + public static final int CHOPPED_TENDRILS = 7163; + public static final int GAP = 7164; + public static final int BOIL = 7165; + public static final int BOIL_7166 = 7166; + public static final int BOIL_7167 = 7167; + public static final int EYES = 7168; + public static final int EYES_7169 = 7169; + public static final int EYES_7170 = 7170; + public static final int ABYSSAL_RIFT = 7171; + public static final int NULL_7172 = 7172; + public static final int NULL_7173 = 7173; + public static final int NULL_7174 = 7174; + public static final int NULL_7175 = 7175; + public static final int NULL_7176 = 7176; + public static final int NULL_7177 = 7177; + public static final int NULL_7178 = 7178; + public static final int NULL_7179 = 7179; + public static final int NULL_7180 = 7180; + public static final int NULL_7181 = 7181; + public static final int NULL_7182 = 7182; + public static final int NULL_7183 = 7183; + public static final int NULL_7184 = 7184; + public static final int NULL_7185 = 7185; + public static final int NULL_7186 = 7186; + public static final int NULL_7187 = 7187; + public static final int NULL_7188 = 7188; + public static final int TENDRILS_7189 = 7189; + public static final int TENDRILS_7190 = 7190; + public static final int TENDRILS_7191 = 7191; + public static final int NULL_7192 = 7192; + public static final int NULL_7193 = 7193; + public static final int NULL_7194 = 7194; + public static final int NULL_7195 = 7195; + public static final int NULL_7196 = 7196; + public static final int NULL_7197 = 7197; + public static final int NULL_7198 = 7198; + public static final int NULL_7199 = 7199; + public static final int NULL_7200 = 7200; + public static final int NULL_7201 = 7201; + public static final int NULL_7202 = 7202; + public static final int NULL_7203 = 7203; + public static final int NULL_7204 = 7204; + public static final int NULL_7205 = 7205; + public static final int CORPSE_7206 = 7206; + public static final int CORPSE_7207 = 7207; + public static final int CORPSE_7208 = 7208; + public static final int NULL_7209 = 7209; + public static final int NULL_7210 = 7210; + public static final int NULL_7211 = 7211; + public static final int NULL_7212 = 7212; + public static final int NULL_7213 = 7213; + public static final int NULL_7214 = 7214; + public static final int NULL_7215 = 7215; + public static final int NULL_7216 = 7216; + public static final int NULL_7217 = 7217; + public static final int NULL_7218 = 7218; + public static final int PASSAGEWAY = 7219; + public static final int PASSAGEWAY_7220 = 7220; + public static final int LADDER_7221 = 7221; + public static final int DOOR_7222 = 7222; + public static final int DOOR_7223 = 7223; + public static final int SPINNING_BLADES_7224 = 7224; + public static final int WALL_7225 = 7225; + public static final int NULL_7226 = 7226; + public static final int FLOOR = 7227; + public static final int WALL_7228 = 7228; + public static final int WALL_7229 = 7229; + public static final int FLOOR_7230 = 7230; + public static final int DOOR_7231 = 7231; + public static final int DOOR_7232 = 7232; + public static final int DOOR_7233 = 7233; + public static final int DOOR_7234 = 7234; + public static final int NULL_7235 = 7235; + public static final int WALL_SAFE = 7236; + public static final int WALL_SAFE_7237 = 7237; + public static final int NULL_7238 = 7238; + public static final int LEDGE_7239 = 7239; + public static final int LEDGE_7240 = 7240; + public static final int PENDULUM = 7241; + public static final int WOODEN_OBSTRUCTION = 7242; + public static final int WOODEN_OBSTRUCTION_7243 = 7243; + public static final int WOODEN_OBSTRUCTION_7244 = 7244; + public static final int FLOOR_7245 = 7245; + public static final int DOOR_7246 = 7246; + public static final int NULL_7247 = 7247; + public static final int WALL_7248 = 7248; + public static final int WALL_7249 = 7249; + public static final int FLOOR_7250 = 7250; + public static final int CONTORTION_BARS = 7251; + public static final int BLADE_7252 = 7252; + public static final int SPIN_BLADES = 7253; + public static final int GRILL_7254 = 7254; + public static final int GRILL_7255 = 7255; + public static final int DOORWAY_7256 = 7256; + public static final int TRAPDOOR_7257 = 7257; + public static final int PASSAGE_WAY = 7258; + public static final int DOOR_7259 = 7259; + public static final int DOOR_7260 = 7260; + public static final int NULL_7261 = 7261; + public static final int NULL_7262 = 7262; + public static final int NULL_7263 = 7263; + public static final int NULL_7264 = 7264; + public static final int NULL_7265 = 7265; + public static final int NULL_7266 = 7266; + public static final int NULL_7267 = 7267; + public static final int NULL_7268 = 7268; + public static final int NULL_7269 = 7269; + public static final int NULL_7270 = 7270; + public static final int NULL_7271 = 7271; + public static final int PORTAL_7272 = 7272; + public static final int PORTAL_7273 = 7273; + public static final int DOOR_7274 = 7274; + public static final int NULL_7275 = 7275; + public static final int NULL_7276 = 7276; + public static final int FOX = 7277; + public static final int FOX_7278 = 7278; + public static final int NULL_7279 = 7279; + public static final int NULL_7280 = 7280; + public static final int CHICKEN = 7281; + public static final int NULL_7282 = 7282; + public static final int NULL_7283 = 7283; + public static final int GRAIN = 7284; + public static final int EMPTY_SACK = 7285; + public static final int PRECARIOUS_BRIDGE = 7286; + public static final int PRECARIOUS_BRIDGE_7287 = 7287; + public static final int PORTAL_7288 = 7288; + public static final int PORTAL_7289 = 7289; + public static final int NULL_7290 = 7290; + public static final int NULL_7291 = 7291; + public static final int NULL_7292 = 7292; + public static final int NULL_7293 = 7293; + public static final int NULL_7294 = 7294; + public static final int NULL_7295 = 7295; + public static final int NULL_7296 = 7296; + public static final int NULL_7297 = 7297; + public static final int NULL_7298 = 7298; + public static final int NULL_7299 = 7299; + public static final int NULL_7300 = 7300; + public static final int NULL_7301 = 7301; + public static final int DOOR_7302 = 7302; + public static final int STATUE_7303 = 7303; + public static final int STATUE_7304 = 7304; + public static final int STATUE_7305 = 7305; + public static final int STATUE_7306 = 7306; + public static final int STATUE_7307 = 7307; + public static final int STATUE_7308 = 7308; + public static final int STATUE_7309 = 7309; + public static final int STATUE_7310 = 7310; + public static final int STATUE_7311 = 7311; + public static final int STATUE_7312 = 7312; + public static final int STATUE_7313 = 7313; + public static final int STATUE_7314 = 7314; + public static final int PORTAL_7315 = 7315; + public static final int PORTAL_7316 = 7316; + public static final int DOOR_7317 = 7317; + public static final int PORTAL_7318 = 7318; + public static final int PORTAL_7319 = 7319; + public static final int DOOR_7320 = 7320; + public static final int PORTAL_7321 = 7321; + public static final int PORTAL_7322 = 7322; + public static final int DOOR_7323 = 7323; + public static final int PORTAL_7324 = 7324; + public static final int PORTAL_7325 = 7325; + public static final int DOOR_7326 = 7326; + public static final int OLD_BOOKSHELF_7327 = 7327; + public static final int OLD_BOOKSHELF_7328 = 7328; + public static final int OLD_BOOKSHELF_7329 = 7329; + public static final int OLD_BOOKSHELF_7330 = 7330; + public static final int TABLE_7331 = 7331; + public static final int BUNSEN_BURNER = 7332; + public static final int SHELVES_7333 = 7333; + public static final int SHELVES_7334 = 7334; + public static final int SHELVES_7335 = 7335; + public static final int SHELVES_7336 = 7336; + public static final int SHELVES_7337 = 7337; + public static final int SHELVES_7338 = 7338; + public static final int SHELVES_7339 = 7339; + public static final int SHELVES_7340 = 7340; + public static final int NULL_7341 = 7341; + public static final int NULL_7342 = 7342; + public static final int STONE_DOOR = 7343; + public static final int STONE_DOOR_7344 = 7344; + public static final int OPEN_DOOR = 7345; + public static final int KEY = 7346; + public static final int CRATE_7347 = 7347; + public static final int CRATE_7348 = 7348; + public static final int CRATE_7349 = 7349; + public static final int CLOSED_CHEST_7350 = 7350; + public static final int OPEN_CHEST_7351 = 7351; + public static final int PORTAL_7352 = 7352; + public static final int PORTAL_7353 = 7353; + public static final int DOOR_7354 = 7354; + public static final int WARNING_SIGN_7355 = 7355; + public static final int NULL_7356 = 7356; + public static final int NULL_7357 = 7357; + public static final int NULL_7358 = 7358; + public static final int NULL_7359 = 7359; + public static final int NULL_7360 = 7360; + public static final int NULL_7361 = 7361; + public static final int NULL_7362 = 7362; + public static final int NULL_7363 = 7363; + public static final int NULL_7364 = 7364; + public static final int NULL_7365 = 7365; + public static final int NULL_7366 = 7366; + public static final int NULL_7367 = 7367; + public static final int NULL_7368 = 7368; + public static final int NULL_7369 = 7369; + public static final int NULL_7370 = 7370; + public static final int NULL_7371 = 7371; + public static final int NULL_7372 = 7372; + public static final int DOOR_7373 = 7373; + public static final int DOOR_7374 = 7374; + public static final int NULL_7375 = 7375; + public static final int NULL_7376 = 7376; + public static final int NULL_7377 = 7377; + public static final int NULL_7378 = 7378; + public static final int NULL_7379 = 7379; + public static final int NULL_7380 = 7380; + public static final int NULL_7381 = 7381; + public static final int NULL_7382 = 7382; + public static final int NULL_7383 = 7383; + public static final int NULL_7384 = 7384; + public static final int CHAIR_7385 = 7385; + public static final int NULL_7386 = 7386; + public static final int NULL_7387 = 7387; + public static final int BENCH_7388 = 7388; + public static final int NULL_7389 = 7389; + public static final int HOOKAH = 7390; + public static final int ROLLED_UP_RUG = 7391; + public static final int ROLLED_UP_RUGS = 7392; + public static final int LITTLE_TENT = 7393; + public static final int RUG = 7394; + public static final int NULL_7395 = 7395; + public static final int CARPET_EXHIBIT = 7396; + public static final int LEAFY_TREE_7397 = 7397; + public static final int LEAFY_TREE_7398 = 7398; + public static final int TREE_STUMP_7399 = 7399; + public static final int TREE_STUMP_7400 = 7400; + public static final int TREE_STUMP_7401 = 7401; + public static final int TREE_STUMP_7402 = 7402; + public static final int APPLE_BARREL = 7403; + public static final int APPLE_BARREL_7404 = 7404; + public static final int NULL_7405 = 7405; + public static final int BARREL_TAP = 7406; + public static final int BARREL_7407 = 7407; + public static final int BARREL_7408 = 7408; + public static final int BARREL_7409 = 7409; + public static final int BARREL_7410 = 7410; + public static final int DWARVEN_STOUT = 7411; + public static final int MATURE_DWARVEN_STOUT = 7412; + public static final int ASGARNIAN_ALE = 7413; + public static final int MATURE_ASGARNIAN_ALE = 7414; + public static final int GREENMANS_ALE = 7415; + public static final int MATURE_GREENMANS_ALE = 7416; + public static final int WIZARDS_MIND_BOMB = 7417; + public static final int MATURE_WIZARDS_MIND_BOMB = 7418; + public static final int DRAGON_BITTER = 7419; + public static final int MATURE_DRAGON_BITTER = 7420; + public static final int MOONLIGHT_MEAD = 7421; + public static final int MATURE_MOONLIGHT_MEAD = 7422; + public static final int AXEMANS_FOLLY = 7423; + public static final int MATURE_AXEMANS_FOLLY = 7424; + public static final int CHEFS_DELIGHT = 7425; + public static final int MATURE_CHEFS_DELIGHT = 7426; + public static final int SLAYERS_RESPITE = 7427; + public static final int MATURE_SLAYERS_RESPITE = 7428; + public static final int CIDER = 7429; + public static final int MATURE_CIDER = 7430; + public static final int LADDER_7431 = 7431; + public static final int NULL_7432 = 7432; + public static final int LADDER_7433 = 7433; + public static final int TRAPDOOR_7434 = 7434; + public static final int TRAPDOOR_7435 = 7435; + public static final int BARREL_7436 = 7436; + public static final int FERMENTING_VAT = 7437; + public static final int FERMENTING_VAT_7438 = 7438; + public static final int FERMENTING_VAT_7439 = 7439; + public static final int FERMENTING_VAT_7440 = 7440; + public static final int FERMENTING_VAT_7441 = 7441; + public static final int VALVE = 7442; + public static final int VALVE_7443 = 7443; + public static final int FERMENTING_VAT_7444 = 7444; + public static final int FERMENTING_VAT_7445 = 7445; + public static final int FERMENTING_VAT_7446 = 7446; + public static final int FERMENTING_VAT_7447 = 7447; + public static final int FERMENTING_VAT_7448 = 7448; + public static final int FERMENTING_VAT_7449 = 7449; + public static final int FERMENTING_VAT_7450 = 7450; + public static final int FERMENTING_VAT_7451 = 7451; + public static final int FERMENTING_VAT_7452 = 7452; + public static final int FERMENTING_VAT_7453 = 7453; + public static final int FERMENTING_VAT_7454 = 7454; + public static final int FERMENTING_VAT_7455 = 7455; + public static final int FERMENTING_VAT_7456 = 7456; + public static final int FERMENTING_VAT_7457 = 7457; + public static final int FERMENTING_VAT_7458 = 7458; + public static final int FERMENTING_VAT_7459 = 7459; + public static final int FERMENTING_VAT_7460 = 7460; + public static final int FERMENTING_VAT_7461 = 7461; + public static final int FERMENTING_VAT_7462 = 7462; + public static final int FERMENTING_VAT_7463 = 7463; + public static final int FERMENTING_VAT_7464 = 7464; + public static final int FERMENTING_VAT_7465 = 7465; + public static final int FERMENTING_VAT_7466 = 7466; + public static final int FERMENTING_VAT_7467 = 7467; + public static final int FERMENTING_VAT_7468 = 7468; + public static final int FERMENTING_VAT_7469 = 7469; + public static final int FERMENTING_VAT_7470 = 7470; + public static final int FERMENTING_VAT_7471 = 7471; + public static final int FERMENTING_VAT_7472 = 7472; + public static final int FERMENTING_VAT_7473 = 7473; + public static final int FERMENTING_VAT_7474 = 7474; + public static final int FERMENTING_VAT_7475 = 7475; + public static final int FERMENTING_VAT_7476 = 7476; + public static final int FERMENTING_VAT_7477 = 7477; + public static final int FERMENTING_VAT_7478 = 7478; + public static final int FERMENTING_VAT_7479 = 7479; + public static final int FERMENTING_VAT_7480 = 7480; + public static final int FERMENTING_VAT_7481 = 7481; + public static final int FERMENTING_VAT_7482 = 7482; + public static final int FERMENTING_VAT_7483 = 7483; + public static final int FERMENTING_VAT_7484 = 7484; + public static final int FERMENTING_VAT_7485 = 7485; + public static final int FERMENTING_VAT_7486 = 7486; + public static final int FERMENTING_VAT_7487 = 7487; + public static final int FERMENTING_VAT_7488 = 7488; + public static final int FERMENTING_VAT_7489 = 7489; + public static final int FERMENTING_VAT_7490 = 7490; + public static final int FERMENTING_VAT_7491 = 7491; + public static final int FERMENTING_VAT_7492 = 7492; + public static final int FERMENTING_VAT_7493 = 7493; + public static final int NULL_7494 = 7494; + public static final int NULL_7495 = 7495; + public static final int COUNTER_7496 = 7496; + public static final int COUNTER_7497 = 7497; + public static final int SHELVES_7498 = 7498; + public static final int SHELVES_7499 = 7499; + public static final int SHELVES_7500 = 7500; + public static final int SHELVES_7501 = 7501; + public static final int SHELVES_7502 = 7502; + public static final int NULL_7503 = 7503; + public static final int CHAIR_7504 = 7504; + public static final int CHAIR_7505 = 7505; + public static final int SHELVES_7506 = 7506; + public static final int SHELVES_7507 = 7507; + public static final int SHELVES_7508 = 7508; + public static final int SHELVES_7509 = 7509; + public static final int SHELVES_7510 = 7510; + public static final int SHELVES_7511 = 7511; + public static final int SACKS_7512 = 7512; + public static final int CRATE_7513 = 7513; + public static final int CRATE_7514 = 7514; + public static final int NULL_7515 = 7515; + public static final int TOOLS = 7516; + public static final int NULL_7517 = 7517; + public static final int NULL_7518 = 7518; + public static final int NULL_7519 = 7519; + public static final int NULL_7520 = 7520; + public static final int NULL_7521 = 7521; + public static final int NULL_7522 = 7522; + public static final int NULL_7523 = 7523; + public static final int NULL_7524 = 7524; + public static final int NULL_7525 = 7525; + public static final int NULL_7526 = 7526; + public static final int STILE_7527 = 7527; + public static final int FERMENTING_VAT_7528 = 7528; + public static final int FERMENTING_VAT_7529 = 7529; + public static final int FERMENTING_VAT_7530 = 7530; + public static final int BARREL_7531 = 7531; + public static final int VALVE_7532 = 7532; + public static final int NULL_7533 = 7533; + public static final int NULL_7534 = 7534; + public static final int NULL_7535 = 7535; + public static final int NULL_7536 = 7536; + public static final int NULL_7537 = 7537; + public static final int NULL_7538 = 7538; + public static final int NULL_7539 = 7539; + public static final int NULL_7540 = 7540; + public static final int NULL_7541 = 7541; + public static final int NULL_7542 = 7542; + public static final int NULL_7543 = 7543; + public static final int NULL_7544 = 7544; + public static final int NULL_7545 = 7545; + public static final int NULL_7546 = 7546; + public static final int NULL_7547 = 7547; + public static final int NULL_7548 = 7548; + public static final int NULL_7549 = 7549; + public static final int NULL_7550 = 7550; + public static final int NULL_7551 = 7551; + public static final int NULL_7552 = 7552; + public static final int NULL_7553 = 7553; + public static final int NULL_7554 = 7554; + public static final int NULL_7555 = 7555; + public static final int NULL_7556 = 7556; + public static final int BELLADONNA_PATCH = 7557; + public static final int BELLADONNA_PATCH_7558 = 7558; + public static final int BELLADONNA_PATCH_7559 = 7559; + public static final int BELLADONNA_PATCH_7560 = 7560; + public static final int BELLADONNA = 7561; + public static final int BELLADONNA_7562 = 7562; + public static final int BELLADONNA_7563 = 7563; + public static final int BELLADONNA_7564 = 7564; + public static final int BELLADONNA_7565 = 7565; + public static final int DISEASED_BELLADONNA = 7566; + public static final int DISEASED_BELLADONNA_7567 = 7567; + public static final int DISEASED_BELLADONNA_7568 = 7568; + public static final int DEAD_BELLADONNA = 7569; + public static final int DEAD_BELLADONNA_7570 = 7570; + public static final int DEAD_BELLADONNA_7571 = 7571; + public static final int NULL_7572 = 7572; + public static final int BUSH_PATCH = 7573; + public static final int BUSH_PATCH_7574 = 7574; + public static final int BUSH_PATCH_7575 = 7575; + public static final int BUSH_PATCH_7576 = 7576; + public static final int CADAVABERRY_BUSH = 7577; + public static final int CADAVABERRY_BUSH_7578 = 7578; + public static final int CADAVABERRY_BUSH_7579 = 7579; + public static final int CADAVABERRY_BUSH_7580 = 7580; + public static final int CADAVABERRY_BUSH_7581 = 7581; + public static final int CADAVABERRY_BUSH_7582 = 7582; + public static final int CADAVABERRY_BUSH_7583 = 7583; + public static final int CADAVABERRY_BUSH_7584 = 7584; + public static final int CADAVABERRY_BUSH_7585 = 7585; + public static final int CADAVABERRY_BUSH_7586 = 7586; + public static final int CADAVABERRY_BUSH_7587 = 7587; + public static final int CADAVABERRY_BUSH_7588 = 7588; + public static final int CADAVABERRY_BUSH_7589 = 7589; + public static final int CADAVABERRY_BUSH_7590 = 7590; + public static final int CADAVABERRY_BUSH_7591 = 7591; + public static final int CADAVABERRY_BUSH_7592 = 7592; + public static final int DISEASED_CADAVABERRY_BUSH = 7593; + public static final int DISEASED_CADAVABERRY_BUSH_7594 = 7594; + public static final int DISEASED_CADAVABERRY_BUSH_7595 = 7595; + public static final int DISEASED_CADAVABERRY_BUSH_7596 = 7596; + public static final int DISEASED_CADAVABERRY_BUSH_7597 = 7597; + public static final int DISEASED_CADAVABERRY_BUSH_7598 = 7598; + public static final int DEAD_CADAVABERRY_BUSH = 7599; + public static final int DEAD_CADAVABERRY_BUSH_7600 = 7600; + public static final int DEAD_CADAVABERRY_BUSH_7601 = 7601; + public static final int DEAD_CADAVABERRY_BUSH_7602 = 7602; + public static final int DEAD_CADAVABERRY_BUSH_7603 = 7603; + public static final int DEAD_CADAVABERRY_BUSH_7604 = 7604; + public static final int DWELLBERRY_BUSH = 7605; + public static final int DWELLBERRY_BUSH_7606 = 7606; + public static final int DWELLBERRY_BUSH_7607 = 7607; + public static final int DWELLBERRY_BUSH_7608 = 7608; + public static final int DWELLBERRY_BUSH_7609 = 7609; + public static final int DWELLBERRY_BUSH_7610 = 7610; + public static final int DWELLBERRY_BUSH_7611 = 7611; + public static final int DWELLBERRY_BUSH_7612 = 7612; + public static final int DWELLBERRY_BUSH_7613 = 7613; + public static final int DWELLBERRY_BUSH_7614 = 7614; + public static final int DWELLBERRY_BUSH_7615 = 7615; + public static final int DWELLBERRY_BUSH_7616 = 7616; + public static final int DWELLBERRY_BUSH_7617 = 7617; + public static final int DISEASED_DWELLBERRY_BUSH = 7618; + public static final int DISEASED_DWELLBERRY_BUSH_7619 = 7619; + public static final int DISEASED_DWELLBERRY_BUSH_7620 = 7620; + public static final int DISEASED_DWELLBERRY_BUSH_7621 = 7621; + public static final int DISEASED_DWELLBERRY_BUSH_7622 = 7622; + public static final int DISEASED_DWELLBERRY_BUSH_7623 = 7623; + public static final int DISEASED_DWELLBERRY_BUSH_7624 = 7624; + public static final int DEAD_DWELLBERRY_BUSH = 7625; + public static final int DEAD_DWELLBERRY_BUSH_7626 = 7626; + public static final int DEAD_DWELLBERRY_BUSH_7627 = 7627; + public static final int DEAD_DWELLBERRY_BUSH_7628 = 7628; + public static final int DEAD_DWELLBERRY_BUSH_7629 = 7629; + public static final int DEAD_DWELLBERRY_BUSH_7630 = 7630; + public static final int DEAD_DWELLBERRY_BUSH_7631 = 7631; + public static final int JANGERBERRY_BUSH = 7632; + public static final int JANGERBERRY_BUSH_7633 = 7633; + public static final int JANGERBERRY_BUSH_7634 = 7634; + public static final int JANGERBERRY_BUSH_7635 = 7635; + public static final int JANGERBERRY_BUSH_7636 = 7636; + public static final int JANGERBERRY_BUSH_7637 = 7637; + public static final int JANGERBERRY_BUSH_7638 = 7638; + public static final int JANGERBERRY_BUSH_7639 = 7639; + public static final int JANGERBERRY_BUSH_7640 = 7640; + public static final int JANGERBERRY_BUSH_7641 = 7641; + public static final int JANGERBERRY_BUSH_7642 = 7642; + public static final int JANGERBERRY_BUSH_7643 = 7643; + public static final int JANGERBERRY_BUSH_7644 = 7644; + public static final int JANGERBERRY_BUSH_7645 = 7645; + public static final int DISEASED_JANGERBERRY_BUSH = 7646; + public static final int DISEASED_JANGERBERRY_BUSH_7647 = 7647; + public static final int DISEASED_JANGERBERRY_BUSH_7648 = 7648; + public static final int DISEASED_JANGERBERRY_BUSH_7649 = 7649; + public static final int DISEASED_JANGERBERRY_BUSH_7650 = 7650; + public static final int DISEASED_JANGERBERRY_BUSH_7651 = 7651; + public static final int DISEASED_JANGERBERRY_BUSH_7652 = 7652; + public static final int DISEASED_JANGERBERRY_BUSH_7653 = 7653; + public static final int DEAD_JANGERBERRY_BUSH = 7654; + public static final int DEAD_JANGERBERRY_BUSH_7655 = 7655; + public static final int DEAD_JANGERBERRY_BUSH_7656 = 7656; + public static final int DEAD_JANGERBERRY_BUSH_7657 = 7657; + public static final int DEAD_JANGERBERRY_BUSH_7658 = 7658; + public static final int DEAD_JANGERBERRY_BUSH_7659 = 7659; + public static final int DEAD_JANGERBERRY_BUSH_7660 = 7660; + public static final int DEAD_JANGERBERRY_BUSH_7661 = 7661; + public static final int POISON_IVY_BUSH = 7662; + public static final int POISON_IVY_BUSH_7663 = 7663; + public static final int POISON_IVY_BUSH_7664 = 7664; + public static final int POISON_IVY_BUSH_7665 = 7665; + public static final int POISON_IVY_BUSH_7666 = 7666; + public static final int POISON_IVY_BUSH_7667 = 7667; + public static final int POISON_IVY_BUSH_7668 = 7668; + public static final int POISON_IVY_BUSH_7669 = 7669; + public static final int POISON_IVY_BUSH_7670 = 7670; + public static final int POISON_IVY_BUSH_7671 = 7671; + public static final int POISON_IVY_BUSH_7672 = 7672; + public static final int POISON_IVY_BUSH_7673 = 7673; + public static final int POISON_IVY_BUSH_7674 = 7674; + public static final int POISON_IVY_BUSH_7675 = 7675; + public static final int DISEASED_POISON_IVY_BUSH = 7676; + public static final int DISEASED_POISON_IVY_BUSH_7677 = 7677; + public static final int DISEASED_POISON_IVY_BUSH_7678 = 7678; + public static final int DISEASED_POISON_IVY_BUSH_7679 = 7679; + public static final int DISEASED_POISON_IVY_BUSH_7680 = 7680; + public static final int DISEASED_POISON_IVY_BUSH_7681 = 7681; + public static final int DISEASED_POISON_IVY_BUSH_7682 = 7682; + public static final int DISEASED_POISON_IVY_BUSH_7683 = 7683; + public static final int DEAD_POISON_IVY_BUSH = 7684; + public static final int DEAD_POISON_IVY_BUSH_7685 = 7685; + public static final int DEAD_POISON_IVY_BUSH_7686 = 7686; + public static final int DEAD_POISON_IVY_BUSH_7687 = 7687; + public static final int DEAD_POISON_IVY_BUSH_7688 = 7688; + public static final int DEAD_POISON_IVY_BUSH_7689 = 7689; + public static final int DEAD_POISON_IVY_BUSH_7690 = 7690; + public static final int DEAD_POISON_IVY_BUSH_7691 = 7691; + public static final int REDBERRY_BUSH = 7692; + public static final int REDBERRY_BUSH_7693 = 7693; + public static final int REDBERRY_BUSH_7694 = 7694; + public static final int REDBERRY_BUSH_7695 = 7695; + public static final int REDBERRY_BUSH_7696 = 7696; + public static final int REDBERRY_BUSH_7697 = 7697; + public static final int REDBERRY_BUSH_7698 = 7698; + public static final int REDBERRY_BUSH_7699 = 7699; + public static final int REDBERRY_BUSH_7700 = 7700; + public static final int REDBERRY_BUSH_7701 = 7701; + public static final int REDBERRY_BUSH_7702 = 7702; + public static final int DISEASED_REDBERRY_BUSH = 7703; + public static final int DISEASED_REDBERRY_BUSH_7704 = 7704; + public static final int DISEASED_REDBERRY_BUSH_7705 = 7705; + public static final int DISEASED_REDBERRY_BUSH_7706 = 7706; + public static final int DISEASED_REDBERRY_BUSH_7707 = 7707; + public static final int DEAD_REDBERRY_BUSH = 7708; + public static final int DEAD_REDBERRY_BUSH_7709 = 7709; + public static final int DEAD_REDBERRY_BUSH_7710 = 7710; + public static final int DEAD_REDBERRY_BUSH_7711 = 7711; + public static final int DEAD_REDBERRY_BUSH_7712 = 7712; + public static final int WHITEBERRY_BUSH = 7713; + public static final int WHITEBERRY_BUSH_7714 = 7714; + public static final int WHITEBERRY_BUSH_7715 = 7715; + public static final int WHITEBERRY_BUSH_7716 = 7716; + public static final int WHITEBERRY_BUSH_7717 = 7717; + public static final int WHITEBERRY_BUSH_7718 = 7718; + public static final int WHITEBERRY_BUSH_7719 = 7719; + public static final int WHITEBERRY_BUSH_7720 = 7720; + public static final int WHITEBERRY_BUSH_7721 = 7721; + public static final int WHITEBERRY_BUSH_7722 = 7722; + public static final int WHITEBERRY_BUSH_7723 = 7723; + public static final int WHITEBERRY_BUSH_7724 = 7724; + public static final int WHITEBERRY_BUSH_7725 = 7725; + public static final int WHITEBERRY_BUSH_7726 = 7726; + public static final int DISEASED_WHITEBERRY_BUSH = 7727; + public static final int DISEASED_WHITEBERRY_BUSH_7728 = 7728; + public static final int DISEASED_WHITEBERRY_BUSH_7729 = 7729; + public static final int DISEASED_WHITEBERRY_BUSH_7730 = 7730; + public static final int DISEASED_WHITEBERRY_BUSH_7731 = 7731; + public static final int DISEASED_WHITEBERRY_BUSH_7732 = 7732; + public static final int DISEASED_WHITEBERRY_BUSH_7733 = 7733; + public static final int DISEASED_WHITEBERRY_BUSH_7734 = 7734; + public static final int DEAD_WHITEBERRY_BUSH = 7735; + public static final int DEAD_WHITEBERRY_BUSH_7736 = 7736; + public static final int DEAD_WHITEBERRY_BUSH_7737 = 7737; + public static final int DEAD_WHITEBERRY_BUSH_7738 = 7738; + public static final int DEAD_WHITEBERRY_BUSH_7739 = 7739; + public static final int DEAD_WHITEBERRY_BUSH_7740 = 7740; + public static final int DEAD_WHITEBERRY_BUSH_7741 = 7741; + public static final int DEAD_WHITEBERRY_BUSH_7742 = 7742; + public static final int CACTUS_PATCH = 7743; + public static final int CACTUS_PATCH_7744 = 7744; + public static final int CACTUS_PATCH_7745 = 7745; + public static final int CACTUS_PATCH_7746 = 7746; + public static final int CACTUS_7747 = 7747; + public static final int CACTUS_7748 = 7748; + public static final int CACTUS_7749 = 7749; + public static final int CACTUS_7750 = 7750; + public static final int CACTUS_7751 = 7751; + public static final int CACTUS_7752 = 7752; + public static final int CACTUS_7753 = 7753; + public static final int CACTUS_7754 = 7754; + public static final int CACTUS_7755 = 7755; + public static final int CACTUS_7756 = 7756; + public static final int CACTUS_7757 = 7757; + public static final int CACTUS_7758 = 7758; + public static final int DISEASED_CACTUS = 7759; + public static final int DISEASED_CACTUS_7760 = 7760; + public static final int DISEASED_CACTUS_7761 = 7761; + public static final int DISEASED_CACTUS_7762 = 7762; + public static final int DISEASED_CACTUS_7763 = 7763; + public static final int DISEASED_CACTUS_7764 = 7764; + public static final int DEAD_CACTUS = 7765; + public static final int DEAD_CACTUS_7766 = 7766; + public static final int DEAD_CACTUS_7767 = 7767; + public static final int DEAD_CACTUS_7768 = 7768; + public static final int DEAD_CACTUS_7769 = 7769; + public static final int DEAD_CACTUS_7770 = 7770; + public static final int CALQUAT_PATCH = 7771; + public static final int CALQUAT_PATCH_7772 = 7772; + public static final int CALQUAT_PATCH_7773 = 7773; + public static final int CALQUAT_PATCH_7774 = 7774; + public static final int CALQUAT_PATCH_7775 = 7775; + public static final int CALQUAT_TREE = 7776; + public static final int CALQUAT_TREE_7777 = 7777; + public static final int CALQUAT_TREE_7778 = 7778; + public static final int CALQUAT_TREE_7779 = 7779; + public static final int CALQUAT_TREE_7780 = 7780; + public static final int CALQUAT_TREE_7781 = 7781; + public static final int CALQUAT_TREE_7782 = 7782; + public static final int CALQUAT_TREE_7783 = 7783; + public static final int CALQUAT_TREE_7784 = 7784; + public static final int CALQUAT_TREE_7785 = 7785; + public static final int CALQUAT_TREE_7786 = 7786; + public static final int CALQUAT_TREE_7787 = 7787; + public static final int CALQUAT_TREE_7788 = 7788; + public static final int CALQUAT_TREE_7789 = 7789; + public static final int CALQUAT_TREE_7790 = 7790; + public static final int CALQUAT_TREE_7791 = 7791; + public static final int DISEASED_CALQUAT = 7792; + public static final int DISEASED_CALQUAT_7793 = 7793; + public static final int DISEASED_CALQUAT_7794 = 7794; + public static final int DISEASED_CALQUAT_7795 = 7795; + public static final int DISEASED_CALQUAT_7796 = 7796; + public static final int DISEASED_CALQUAT_7797 = 7797; + public static final int DISEASED_CALQUAT_7798 = 7798; + public static final int DEAD_CALQUAT = 7799; + public static final int DEAD_CALQUAT_7800 = 7800; + public static final int DEAD_CALQUAT_7801 = 7801; + public static final int DEAD_CALQUAT_7802 = 7802; + public static final int DEAD_CALQUAT_7803 = 7803; + public static final int DEAD_CALQUAT_7804 = 7804; + public static final int DEAD_CALQUAT_7805 = 7805; + public static final int DEAD_CALQUAT_7806 = 7806; + public static final int NULL_7807 = 7807; + public static final int COMPOST_BIN = 7808; + public static final int COMPOST_BIN_7809 = 7809; + public static final int COMPOST_BIN_7810 = 7810; + public static final int COMPOST_BIN_7811 = 7811; + public static final int COMPOST_BIN_7812 = 7812; + public static final int COMPOST_BIN_7813 = 7813; + public static final int COMPOST_BIN_7814 = 7814; + public static final int COMPOST_BIN_7815 = 7815; + public static final int COMPOST_BIN_7816 = 7816; + public static final int COMPOST_BIN_7817 = 7817; + public static final int COMPOST_BIN_7818 = 7818; + public static final int COMPOST_BIN_7819 = 7819; + public static final int COMPOST_BIN_7820 = 7820; + public static final int COMPOST_BIN_7821 = 7821; + public static final int COMPOST_BIN_7822 = 7822; + public static final int COMPOST_BIN_7823 = 7823; + public static final int COMPOST_BIN_7824 = 7824; + public static final int COMPOST_BIN_7825 = 7825; + public static final int COMPOST_BIN_7826 = 7826; + public static final int COMPOST_BIN_7827 = 7827; + public static final int COMPOST_BIN_7828 = 7828; + public static final int COMPOST_BIN_7829 = 7829; + public static final int COMPOST_BIN_7830 = 7830; + public static final int COMPOST_BIN_7831 = 7831; + public static final int COMPOST_BIN_7832 = 7832; + public static final int COMPOST_BIN_7833 = 7833; + public static final int COMPOST_BIN_7834 = 7834; + public static final int COMPOST_BIN_7835 = 7835; + public static final int FLOWER_PATCH = 7836; + public static final int FLOWER_PATCH_7837 = 7837; + public static final int FLOWER_PATCH_7838 = 7838; + public static final int FLOWER_PATCH_7839 = 7839; + public static final int FLOWER_PATCH_7840 = 7840; + public static final int FLOWER_PATCH_7841 = 7841; + public static final int FLOWER_PATCH_7842 = 7842; + public static final int FLOWER_PATCH_7843 = 7843; + public static final int FLOWER_PATCH_7844 = 7844; + public static final int FLOWER_PATCH_7845 = 7845; + public static final int FLOWER_PATCH_7846 = 7846; + public static final int LIMPWURT_PLANT = 7847; + public static final int LIMPWURT_PLANT_7848 = 7848; + public static final int LIMPWURT_PLANT_7849 = 7849; + public static final int LIMPWURT_PLANT_7850 = 7850; + public static final int LIMPWURT_PLANT_7851 = 7851; + public static final int LIMPWURT_PLANT_7852 = 7852; + public static final int LIMPWURT_PLANT_7853 = 7853; + public static final int LIMPWURT_PLANT_7854 = 7854; + public static final int LIMPWURT_PLANT_7855 = 7855; + public static final int LIMPWURT_PLANT_7856 = 7856; + public static final int LIMPWURT_PLANT_7857 = 7857; + public static final int LIMPWURT_PLANT_7858 = 7858; + public static final int LIMPWURT_PLANT_7859 = 7859; + public static final int DISEASED_LIMPWURT_PLANT = 7860; + public static final int DISEASED_LIMPWURT_PLANT_7861 = 7861; + public static final int DISEASED_LIMPWURT_PLANT_7862 = 7862; + public static final int DEAD_LIMPWURT_PLANT = 7863; + public static final int DEAD_LIMPWURT_PLANT_7864 = 7864; + public static final int DEAD_LIMPWURT_PLANT_7865 = 7865; + public static final int DEAD_LIMPWURT_PLANT_7866 = 7866; + public static final int MARIGOLD = 7867; + public static final int MARIGOLD_7868 = 7868; + public static final int MARIGOLD_7869 = 7869; + public static final int MARIGOLD_7870 = 7870; + public static final int MARIGOLD_7871 = 7871; + public static final int MARIGOLD_7872 = 7872; + public static final int MARIGOLD_7873 = 7873; + public static final int MARIGOLD_7874 = 7874; + public static final int MARIGOLD_7875 = 7875; + public static final int DISEASED_MARIGOLD = 7876; + public static final int DISEASED_MARIGOLD_7877 = 7877; + public static final int DISEASED_MARIGOLD_7878 = 7878; + public static final int DEAD_MARIGOLD = 7879; + public static final int DEAD_MARIGOLD_7880 = 7880; + public static final int DEAD_MARIGOLD_7881 = 7881; + public static final int DEAD_MARIGOLD_7882 = 7882; + public static final int NASTURTIUM = 7883; + public static final int NASTURTIUM_7884 = 7884; + public static final int NASTURTIUM_7885 = 7885; + public static final int NASTURTIUM_7886 = 7886; + public static final int NASTURTIUM_7887 = 7887; + public static final int NASTURTIUM_7888 = 7888; + public static final int NASTURTIUM_7889 = 7889; + public static final int NASTURTIUM_7890 = 7890; + public static final int NASTURTIUM_7891 = 7891; + public static final int DISEASED_NASTURTIUM = 7892; + public static final int DISEASED_NASTURTIUM_7893 = 7893; + public static final int DISEASED_NASTURTIUM_7894 = 7894; + public static final int DEAD_NASTURTIUM = 7895; + public static final int DEAD_NASTURTIUM_7896 = 7896; + public static final int DEAD_NASTURTIUM_7897 = 7897; + public static final int DEAD_NASTURTIUM_7898 = 7898; + public static final int ROSEMARY = 7899; + public static final int ROSEMARY_7900 = 7900; + public static final int ROSEMARY_7901 = 7901; + public static final int ROSEMARY_7902 = 7902; + public static final int ROSEMARY_7903 = 7903; + public static final int ROSEMARY_7904 = 7904; + public static final int ROSEMARY_7905 = 7905; + public static final int ROSEMARY_7906 = 7906; + public static final int ROSEMARY_7907 = 7907; + public static final int DISEASED_ROSEMARY = 7908; + public static final int DISEASED_ROSEMARY_7909 = 7909; + public static final int DISEASED_ROSEMARY_7910 = 7910; + public static final int DEAD_ROSEMARY = 7911; + public static final int DEAD_ROSEMARY_7912 = 7912; + public static final int DEAD_ROSEMARY_7913 = 7913; + public static final int DEAD_ROSEMARY_7914 = 7914; + public static final int SCARECROW_7915 = 7915; + public static final int SCARECROW_7916 = 7916; + public static final int SCARECROW_7917 = 7917; + public static final int SCARECROW_7918 = 7918; + public static final int WOAD_PLANT = 7919; + public static final int WOAD_PLANT_7920 = 7920; + public static final int WOAD_PLANT_7921 = 7921; + public static final int WOAD_PLANT_7922 = 7922; + public static final int WOAD_PLANT_7923 = 7923; + public static final int WOAD_PLANT_7924 = 7924; + public static final int WOAD_PLANT_7925 = 7925; + public static final int WOAD_PLANT_7926 = 7926; + public static final int WOAD_PLANT_7927 = 7927; + public static final int DISEASED_WOAD_PLANT = 7928; + public static final int DISEASED_WOAD_PLANT_7929 = 7929; + public static final int DISEASED_WOAD_PLANT_7930 = 7930; + public static final int DEAD_WOAD_PLANT = 7931; + public static final int DEAD_WOAD_PLANT_7932 = 7932; + public static final int DEAD_WOAD_PLANT_7933 = 7933; + public static final int DEAD_WOAD_PLANT_7934 = 7934; + public static final int APPLE_TREE = 7935; + public static final int APPLE_TREE_7936 = 7936; + public static final int APPLE_TREE_7937 = 7937; + public static final int APPLE_TREE_7938 = 7938; + public static final int APPLE_TREE_7939 = 7939; + public static final int APPLE_TREE_7940 = 7940; + public static final int APPLE_TREE_7941 = 7941; + public static final int APPLE_TREE_7942 = 7942; + public static final int APPLE_TREE_7943 = 7943; + public static final int APPLE_TREE_7944 = 7944; + public static final int APPLE_TREE_7945 = 7945; + public static final int APPLE_TREE_7946 = 7946; + public static final int APPLE_TREE_7947 = 7947; + public static final int APPLE_TREE_7948 = 7948; + public static final int DISEASED_APPLE_TREE = 7949; + public static final int DISEASED_APPLE_TREE_7950 = 7950; + public static final int DISEASED_APPLE_TREE_7951 = 7951; + public static final int DISEASED_APPLE_TREE_7952 = 7952; + public static final int DISEASED_APPLE_TREE_7953 = 7953; + public static final int DISEASED_APPLE_TREE_7954 = 7954; + public static final int DEAD_APPLE_TREE = 7955; + public static final int DEAD_APPLE_TREE_7956 = 7956; + public static final int DEAD_APPLE_TREE_7957 = 7957; + public static final int DEAD_APPLE_TREE_7958 = 7958; + public static final int DEAD_APPLE_TREE_7959 = 7959; + public static final int DEAD_APPLE_TREE_7960 = 7960; + public static final int APPLE_TREE_STUMP = 7961; + public static final int PINEAPPLE_PLANT_7962 = 7962; + public static final int PINEAPPLE_PLANT_7963 = 7963; + public static final int PINEAPPLE_PLANT_7964 = 7964; + public static final int PINEAPPLE_PLANT_7965 = 7965; + public static final int PINEAPPLE_PLANT_7966 = 7966; + public static final int PINEAPPLE_PLANT_7967 = 7967; + public static final int PINEAPPLE_PLANT_7968 = 7968; + public static final int PINEAPPLE_PLANT_7969 = 7969; + public static final int PINEAPPLE_PLANT_7970 = 7970; + public static final int PINEAPPLE_PLANT_7971 = 7971; + public static final int PINEAPPLE_PLANT_7972 = 7972; + public static final int PINEAPPLE_PLANT_7973 = 7973; + public static final int PINEAPPLE_PLANT_7974 = 7974; + public static final int PINEAPPLE_PLANT_7975 = 7975; + public static final int PINEAPPLE_PLANT_7976 = 7976; + public static final int PINEAPPLE_PLANT_7977 = 7977; + public static final int PINEAPPLE_PLANT_7978 = 7978; + public static final int PINEAPPLE_PLANT_7979 = 7979; + public static final int DISEASED_PINEAPPLE_PLANT = 7980; + public static final int DISEASED_PINEAPPLE_PLANT_7981 = 7981; + public static final int DISEASED_PINEAPPLE_PLANT_7982 = 7982; + public static final int DISEASED_PINEAPPLE_PLANT_7983 = 7983; + public static final int DISEASED_PINEAPPLE_PLANT_7984 = 7984; + public static final int DISEASED_PINEAPPLE_PLANT_7985 = 7985; + public static final int DEAD_PINEAPPLE_PLANT = 7986; + public static final int DEAD_PINEAPPLE_PLANT_7987 = 7987; + public static final int DEAD_PINEAPPLE_PLANT_7988 = 7988; + public static final int DEAD_PINEAPPLE_PLANT_7989 = 7989; + public static final int DEAD_PINEAPPLE_PLANT_7990 = 7990; + public static final int DEAD_PINEAPPLE_PLANT_7991 = 7991; + public static final int PINEAPPLE_PLANT_STUMP = 7992; + public static final int BANANA_TREE_7993 = 7993; + public static final int BANANA_TREE_7994 = 7994; + public static final int BANANA_TREE_7995 = 7995; + public static final int BANANA_TREE_7996 = 7996; + public static final int BANANA_TREE_7997 = 7997; + public static final int BANANA_TREE_7998 = 7998; + public static final int BANANA_TREE_7999 = 7999; + public static final int BANANA_TREE_8000 = 8000; + public static final int BANANA_TREE_8001 = 8001; + public static final int BANANA_TREE_8002 = 8002; + public static final int BANANA_TREE_8003 = 8003; + public static final int BANANA_TREE_8004 = 8004; + public static final int BANANA_TREE_8005 = 8005; + public static final int BANANA_TREE_8006 = 8006; + public static final int DISEASED_BANANA_TREE = 8007; + public static final int DISEASED_BANANA_TREE_8008 = 8008; + public static final int DISEASED_BANANA_TREE_8009 = 8009; + public static final int DISEASED_BANANA_TREE_8010 = 8010; + public static final int DISEASED_BANANA_TREE_8011 = 8011; + public static final int DISEASED_BANANA_TREE_8012 = 8012; + public static final int DEAD_BANANA_TREE = 8013; + public static final int DEAD_BANANA_TREE_8014 = 8014; + public static final int DEAD_BANANA_TREE_8015 = 8015; + public static final int DEAD_BANANA_TREE_8016 = 8016; + public static final int DEAD_BANANA_TREE_8017 = 8017; + public static final int DEAD_BANANA_TREE_8018 = 8018; + public static final int BANANA_TREE_STUMP = 8019; + public static final int CURRY_TREE = 8020; + public static final int CURRY_TREE_8021 = 8021; + public static final int CURRY_TREE_8022 = 8022; + public static final int CURRY_TREE_8023 = 8023; + public static final int CURRY_TREE_8024 = 8024; + public static final int CURRY_TREE_8025 = 8025; + public static final int CURRY_TREE_8026 = 8026; + public static final int CURRY_TREE_8027 = 8027; + public static final int CURRY_TREE_8028 = 8028; + public static final int CURRY_TREE_8029 = 8029; + public static final int CURRY_TREE_8030 = 8030; + public static final int CURRY_TREE_8031 = 8031; + public static final int CURRY_TREE_8032 = 8032; + public static final int CURRY_TREE_8033 = 8033; + public static final int DISEASED_CURRY_TREE = 8034; + public static final int DISEASED_CURRY_TREE_8035 = 8035; + public static final int DISEASED_CURRY_TREE_8036 = 8036; + public static final int DISEASED_CURRY_TREE_8037 = 8037; + public static final int DISEASED_CURRY_TREE_8038 = 8038; + public static final int DISEASED_CURRY_TREE_8039 = 8039; + public static final int DEAD_CURRY_TREE = 8040; + public static final int DEAD_CURRY_TREE_8041 = 8041; + public static final int DEAD_CURRY_TREE_8042 = 8042; + public static final int DEAD_CURRY_TREE_8043 = 8043; + public static final int DEAD_CURRY_TREE_8044 = 8044; + public static final int DEAD_CURRY_TREE_8045 = 8045; + public static final int CURRY_TREE_STUMP = 8046; + public static final int FRUIT_TREE_PATCH = 8047; + public static final int FRUIT_TREE_PATCH_8048 = 8048; + public static final int FRUIT_TREE_PATCH_8049 = 8049; + public static final int FRUIT_TREE_PATCH_8050 = 8050; + public static final int ORANGE_TREE = 8051; + public static final int ORANGE_TREE_8052 = 8052; + public static final int ORANGE_TREE_8053 = 8053; + public static final int ORANGE_TREE_8054 = 8054; + public static final int ORANGE_TREE_8055 = 8055; + public static final int ORANGE_TREE_8056 = 8056; + public static final int ORANGE_TREE_8057 = 8057; + public static final int ORANGE_TREE_8058 = 8058; + public static final int ORANGE_TREE_8059 = 8059; + public static final int ORANGE_TREE_8060 = 8060; + public static final int ORANGE_TREE_8061 = 8061; + public static final int ORANGE_TREE_8062 = 8062; + public static final int ORANGE_TREE_8063 = 8063; + public static final int ORANGE_TREE_8064 = 8064; + public static final int DISEASED_ORANGE_TREE = 8065; + public static final int DISEASED_ORANGE_TREE_8066 = 8066; + public static final int DISEASED_ORANGE_TREE_8067 = 8067; + public static final int DISEASED_ORANGE_TREE_8068 = 8068; + public static final int DISEASED_ORANGE_TREE_8069 = 8069; + public static final int DISEASED_ORANGE_TREE_8070 = 8070; + public static final int DEAD_ORANGE_TREE = 8071; + public static final int DEAD_ORANGE_TREE_8072 = 8072; + public static final int DEAD_ORANGE_TREE_8073 = 8073; + public static final int DEAD_ORANGE_TREE_8074 = 8074; + public static final int DEAD_ORANGE_TREE_8075 = 8075; + public static final int DEAD_ORANGE_TREE_8076 = 8076; + public static final int ORANGE_TREE_STUMP = 8077; + public static final int PALM_TREE_8078 = 8078; + public static final int PALM_TREE_8079 = 8079; + public static final int PALM_TREE_8080 = 8080; + public static final int PALM_TREE_8081 = 8081; + public static final int PALM_TREE_8082 = 8082; + public static final int PALM_TREE_8083 = 8083; + public static final int PALM_TREE_8084 = 8084; + public static final int PALM_TREE_8085 = 8085; + public static final int PALM_TREE_8086 = 8086; + public static final int PALM_TREE_8087 = 8087; + public static final int PALM_TREE_8088 = 8088; + public static final int PALM_TREE_8089 = 8089; + public static final int PALM_TREE_8090 = 8090; + public static final int PALM_TREE_8091 = 8091; + public static final int DISEASED_PALM_TREE = 8092; + public static final int DISEASED_PALM_TREE_8093 = 8093; + public static final int DISEASED_PALM_TREE_8094 = 8094; + public static final int DISEASED_PALM_TREE_8095 = 8095; + public static final int DISEASED_PALM_TREE_8096 = 8096; + public static final int DISEASED_PALM_TREE_8097 = 8097; + public static final int DEAD_PALM_TREE = 8098; + public static final int DEAD_PALM_TREE_8099 = 8099; + public static final int DEAD_PALM_TREE_8100 = 8100; + public static final int DEAD_PALM_TREE_8101 = 8101; + public static final int DEAD_PALM_TREE_8102 = 8102; + public static final int DEAD_PALM_TREE_8103 = 8103; + public static final int PALM_TREE_STUMP = 8104; + public static final int PAPAYA_TREE = 8105; + public static final int PAPAYA_TREE_8106 = 8106; + public static final int PAPAYA_TREE_8107 = 8107; + public static final int PAPAYA_TREE_8108 = 8108; + public static final int PAPAYA_TREE_8109 = 8109; + public static final int PAPAYA_TREE_8110 = 8110; + public static final int PAPAYA_TREE_8111 = 8111; + public static final int PAPAYA_TREE_8112 = 8112; + public static final int PAPAYA_TREE_8113 = 8113; + public static final int PAPAYA_TREE_8114 = 8114; + public static final int PAPAYA_TREE_8115 = 8115; + public static final int PAPAYA_TREE_8116 = 8116; + public static final int PAPAYA_TREE_8117 = 8117; + public static final int PAPAYA_TREE_8118 = 8118; + public static final int DISEASED_PAPAYA_TREE = 8119; + public static final int DISEASED_PAPAYA_TREE_8120 = 8120; + public static final int DISEASED_PAPAYA_TREE_8121 = 8121; + public static final int DISEASED_PAPAYA_TREE_8122 = 8122; + public static final int DISEASED_PAPAYA_TREE_8123 = 8123; + public static final int DISEASED_PAPAYA_TREE_8124 = 8124; + public static final int DEAD_PAPAYA_TREE = 8125; + public static final int DEAD_PAPAYA_TREE_8126 = 8126; + public static final int DEAD_PAPAYA_TREE_8127 = 8127; + public static final int DEAD_PAPAYA_TREE_8128 = 8128; + public static final int DEAD_PAPAYA_TREE_8129 = 8129; + public static final int DEAD_PAPAYA_TREE_8130 = 8130; + public static final int PAPAYA_TREE_STUMP = 8131; + public static final int HERB_PATCH = 8132; + public static final int HERB_PATCH_8133 = 8133; + public static final int HERB_PATCH_8134 = 8134; + public static final int HERB_PATCH_8135 = 8135; + public static final int HERB_PATCH_8136 = 8136; + public static final int HERB_PATCH_8137 = 8137; + public static final int HERB_PATCH_8138 = 8138; + public static final int HERBS_8139 = 8139; + public static final int HERBS_8140 = 8140; + public static final int HERBS_8141 = 8141; + public static final int HERBS_8142 = 8142; + public static final int HERBS_8143 = 8143; + public static final int DISEASED_HERBS = 8144; + public static final int DISEASED_HERBS_8145 = 8145; + public static final int DISEASED_HERBS_8146 = 8146; + public static final int DEAD_HERBS = 8147; + public static final int DEAD_HERBS_8148 = 8148; + public static final int DEAD_HERBS_8149 = 8149; + public static final int ASGARNIAN_HOPS = 8150; + public static final int ASGARNIAN_HOPS_8151 = 8151; + public static final int ASGARNIAN_HOPS_8152 = 8152; + public static final int ASGARNIAN_HOPS_8153 = 8153; + public static final int ASGARNIAN_HOPS_8154 = 8154; + public static final int ASGARNIAN_HOPS_8155 = 8155; + public static final int ASGARNIAN_HOPS_8156 = 8156; + public static final int ASGARNIAN_HOPS_8157 = 8157; + public static final int ASGARNIAN_HOPS_8158 = 8158; + public static final int ASGARNIAN_HOPS_8159 = 8159; + public static final int ASGARNIAN_HOPS_8160 = 8160; + public static final int ASGARNIAN_HOPS_8161 = 8161; + public static final int ASGARNIAN_HOPS_8162 = 8162; + public static final int ASGARNIAN_HOPS_8163 = 8163; + public static final int ASGARNIAN_HOPS_8164 = 8164; + public static final int DISEASED_ASGARNIAN_HOPS = 8165; + public static final int DISEASED_ASGARNIAN_HOPS_8166 = 8166; + public static final int DISEASED_ASGARNIAN_HOPS_8167 = 8167; + public static final int DISEASED_ASGARNIAN_HOPS_8168 = 8168; + public static final int DEAD_ASGARNIAN_HOPS = 8169; + public static final int DEAD_ASGARNIAN_HOPS_8170 = 8170; + public static final int DEAD_ASGARNIAN_HOPS_8171 = 8171; + public static final int DEAD_ASGARNIAN_HOPS_8172 = 8172; + public static final int HAMMERSTONE_HOPS = 8173; + public static final int HAMMERSTONE_HOPS_8174 = 8174; + public static final int HAMMERSTONE_HOPS_8175 = 8175; + public static final int HAMMERSTONE_HOPS_8176 = 8176; + public static final int HAMMERSTONE_HOPS_8177 = 8177; + public static final int HAMMERSTONE_HOPS_8178 = 8178; + public static final int HAMMERSTONE_HOPS_8179 = 8179; + public static final int HAMMERSTONE_HOPS_8180 = 8180; + public static final int HAMMERSTONE_HOPS_8181 = 8181; + public static final int HAMMERSTONE_HOPS_8182 = 8182; + public static final int HAMMERSTONE_HOPS_8183 = 8183; + public static final int HAMMERSTONE_HOPS_8184 = 8184; + public static final int HAMMERSTONE_HOPS_8185 = 8185; + public static final int DISEASED_HAMMERSTONE_HOPS = 8186; + public static final int DISEASED_HAMMERSTONE_HOPS_8187 = 8187; + public static final int DISEASED_HAMMERSTONE_HOPS_8188 = 8188; + public static final int DEAD_HAMMERSTONE_HOPS = 8189; + public static final int DEAD_HAMMERSTONE_HOPS_8190 = 8190; + public static final int DEAD_HAMMERSTONE_HOPS_8191 = 8191; + public static final int BARLEY = 8192; + public static final int BARLEY_8193 = 8193; + public static final int BARLEY_8194 = 8194; + public static final int BARLEY_8195 = 8195; + public static final int BARLEY_8196 = 8196; + public static final int BARLEY_8197 = 8197; + public static final int BARLEY_8198 = 8198; + public static final int BARLEY_8199 = 8199; + public static final int BARLEY_8200 = 8200; + public static final int DISEASED_BARLEY = 8201; + public static final int DISEASED_BARLEY_8202 = 8202; + public static final int DISEASED_BARLEY_8203 = 8203; + public static final int DEAD_BARLEY = 8204; + public static final int DEAD_BARLEY_8205 = 8205; + public static final int DEAD_BARLEY_8206 = 8206; + public static final int HOPS_PATCH = 8207; + public static final int HOPS_PATCH_8208 = 8208; + public static final int HOPS_PATCH_8209 = 8209; + public static final int HOPS_PATCH_8210 = 8210; + public static final int KRANDORIAN_HOPS = 8211; + public static final int KRANDORIAN_HOPS_8212 = 8212; + public static final int KRANDORIAN_HOPS_8213 = 8213; + public static final int KRANDORIAN_HOPS_8214 = 8214; + public static final int KRANDORIAN_HOPS_8215 = 8215; + public static final int KRANDORIAN_HOPS_8216 = 8216; + public static final int KRANDORIAN_HOPS_8217 = 8217; + public static final int KRANDORIAN_HOPS_8218 = 8218; + public static final int KRANDORIAN_HOPS_8219 = 8219; + public static final int KRANDORIAN_HOPS_8220 = 8220; + public static final int KRANDORIAN_HOPS_8221 = 8221; + public static final int KRANDORIAN_HOPS_8222 = 8222; + public static final int KRANDORIAN_HOPS_8223 = 8223; + public static final int KRANDORIAN_HOPS_8224 = 8224; + public static final int KRANDORIAN_HOPS_8225 = 8225; + public static final int DISEASED_KRANDORIAN_HOPS = 8226; + public static final int DISEASED_KRANDORIAN_HOPS_8227 = 8227; + public static final int DISEASED_KRANDORIAN_HOPS_8228 = 8228; + public static final int DISEASED_KRANDORIAN_HOPS_8229 = 8229; + public static final int DISEASED_KRANDORIAN_HOPS_8230 = 8230; + public static final int DISEASED_KRANDORIAN_HOPS_8231 = 8231; + public static final int DEAD_KRANDORIAN_HOPS = 8232; + public static final int DEAD_KRANDORIAN_HOPS_8233 = 8233; + public static final int DEAD_KRANDORIAN_HOPS_8234 = 8234; + public static final int DEAD_KRANDORIAN_HOPS_8235 = 8235; + public static final int DEAD_KRANDORIAN_HOPS_8236 = 8236; + public static final int DEAD_KRANDORIAN_HOPS_8237 = 8237; + public static final int JUTE = 8238; + public static final int JUTE_8239 = 8239; + public static final int JUTE_8240 = 8240; + public static final int JUTE_8241 = 8241; + public static final int JUTE_8242 = 8242; + public static final int JUTE_8243 = 8243; + public static final int JUTE_8244 = 8244; + public static final int JUTE_8245 = 8245; + public static final int JUTE_8246 = 8246; + public static final int JUTE_8247 = 8247; + public static final int JUTE_8248 = 8248; + public static final int DISEASED_JUTE = 8249; + public static final int DISEASED_JUTE_8250 = 8250; + public static final int DISEASED_JUTE_8251 = 8251; + public static final int DISEASED_JUTE_8252 = 8252; + public static final int DEAD_JUTE = 8253; + public static final int DEAD_JUTE_8254 = 8254; + public static final int DEAD_JUTE_8255 = 8255; + public static final int DEAD_JUTE_8256 = 8256; + public static final int WILDBLOOD_HOPS = 8257; + public static final int WILDBLOOD_HOPS_8258 = 8258; + public static final int WILDBLOOD_HOPS_8259 = 8259; + public static final int WILDBLOOD_HOPS_8260 = 8260; + public static final int WILDBLOOD_HOPS_8261 = 8261; + public static final int WILDBLOOD_HOPS_8262 = 8262; + public static final int WILDBLOOD_HOPS_8263 = 8263; + public static final int WILDBLOOD_HOPS_8264 = 8264; + public static final int WILDBLOOD_HOPS_8265 = 8265; + public static final int WILDBLOOD_HOPS_8266 = 8266; + public static final int WILDBLOOD_HOPS_8267 = 8267; + public static final int WILDBLOOD_HOPS_8268 = 8268; + public static final int WILDBLOOD_HOPS_8269 = 8269; + public static final int WILDBLOOD_HOPS_8270 = 8270; + public static final int WILDBLOOD_HOPS_8271 = 8271; + public static final int WILDBLOOD_HOPS_8272 = 8272; + public static final int WILDBLOOD_HOPS_8273 = 8273; + public static final int DISEASED_WILDBLOOD_HOPS = 8274; + public static final int DISEASED_WILDBLOOD_HOPS_8275 = 8275; + public static final int DISEASED_WILDBLOOD_HOPS_8276 = 8276; + public static final int DISEASED_WILDBLOOD_HOPS_8277 = 8277; + public static final int DISEASED_WILDBLOOD_HOPS_8278 = 8278; + public static final int DISEASED_WILDBLOOD_HOPS_8279 = 8279; + public static final int DISEASED_WILDBLOOD_HOPS_8280 = 8280; + public static final int DEAD_WILDBLOOD_HOPS = 8281; + public static final int DEAD_WILDBLOOD_HOPS_8282 = 8282; + public static final int DEAD_WILDBLOOD_HOPS_8283 = 8283; + public static final int DEAD_WILDBLOOD_HOPS_8284 = 8284; + public static final int DEAD_WILDBLOOD_HOPS_8285 = 8285; + public static final int DEAD_WILDBLOOD_HOPS_8286 = 8286; + public static final int DEAD_WILDBLOOD_HOPS_8287 = 8287; + public static final int YANILLIAN_HOPS = 8288; + public static final int YANILLIAN_HOPS_8289 = 8289; + public static final int YANILLIAN_HOPS_8290 = 8290; + public static final int YANILLIAN_HOPS_8291 = 8291; + public static final int YANILLIAN_HOPS_8292 = 8292; + public static final int YANILLIAN_HOPS_8293 = 8293; + public static final int YANILLIAN_HOPS_8294 = 8294; + public static final int YANILLIAN_HOPS_8295 = 8295; + public static final int YANILLIAN_HOPS_8296 = 8296; + public static final int YANILLIAN_HOPS_8297 = 8297; + public static final int YANILLIAN_HOPS_8298 = 8298; + public static final int YANILLIAN_HOPS_8299 = 8299; + public static final int YANILLIAN_HOPS_8300 = 8300; + public static final int DISEASED_YANILLIAN_HOPS = 8301; + public static final int DISEASED_YANILLIAN_HOPS_8302 = 8302; + public static final int DISEASED_YANILLIAN_HOPS_8303 = 8303; + public static final int DISEASED_YANILLIAN_HOPS_8304 = 8304; + public static final int DISEASED_YANILLIAN_HOPS_8305 = 8305; + public static final int DEAD_YANILLIAN_HOPS = 8306; + public static final int DEAD_YANILLIAN_HOPS_8307 = 8307; + public static final int DEAD_YANILLIAN_HOPS_8308 = 8308; + public static final int DEAD_YANILLIAN_HOPS_8309 = 8309; + public static final int DEAD_YANILLIAN_HOPS_8310 = 8310; + public static final int MUSHROOM_PATCH = 8311; + public static final int MUSHROOM_PATCH_8312 = 8312; + public static final int MUSHROOM_PATCH_8313 = 8313; + public static final int MUSHROOM_PATCH_8314 = 8314; + public static final int BITTERCAP_MUSHROOMS = 8315; + public static final int BITTERCAP_MUSHROOMS_8316 = 8316; + public static final int BITTERCAP_MUSHROOMS_8317 = 8317; + public static final int BITTERCAP_MUSHROOMS_8318 = 8318; + public static final int BITTERCAP_MUSHROOMS_8319 = 8319; + public static final int BITTERCAP_MUSHROOMS_8320 = 8320; + public static final int BITTERCAP_MUSHROOMS_8321 = 8321; + public static final int BITTERCAP_MUSHROOMS_8322 = 8322; + public static final int BITTERCAP_MUSHROOMS_8323 = 8323; + public static final int BITTERCAP_MUSHROOMS_8324 = 8324; + public static final int BITTERCAP_MUSHROOMS_8325 = 8325; + public static final int BITTERCAP_MUSHROOMS_8326 = 8326; + public static final int DISEASED_BITTERCAP_MUSHROOMS = 8327; + public static final int DISEASED_BITTERCAP_MUSHROOMS_8328 = 8328; + public static final int DISEASED_BITTERCAP_MUSHROOMS_8329 = 8329; + public static final int DISEASED_BITTERCAP_MUSHROOMS_8330 = 8330; + public static final int DISEASED_BITTERCAP_MUSHROOMS_8331 = 8331; + public static final int DEAD_BITTERCAP_MUSHROOMS = 8332; + public static final int DEAD_BITTERCAP_MUSHROOMS_8333 = 8333; + public static final int DEAD_BITTERCAP_MUSHROOMS_8334 = 8334; + public static final int DEAD_BITTERCAP_MUSHROOMS_8335 = 8335; + public static final int DEAD_BITTERCAP_MUSHROOMS_8336 = 8336; + public static final int SPIRIT_TREE_PATCH = 8337; + public static final int SPIRIT_TREE_PATCH_8338 = 8338; + public static final int SPIRIT_TREE_PATCH_8339 = 8339; + public static final int SPIRIT_TREE_PATCH_8340 = 8340; + public static final int SPIRIT_TREE_PATCH_8341 = 8341; + public static final int SPIRIT_TREE_PATCH_8342 = 8342; + public static final int SPIRIT_TREE_8343 = 8343; + public static final int SPIRIT_TREE_8344 = 8344; + public static final int SPIRIT_TREE_8345 = 8345; + public static final int SPIRIT_TREE_8346 = 8346; + public static final int SPIRIT_TREE_8347 = 8347; + public static final int SPIRIT_TREE_8348 = 8348; + public static final int SPIRIT_TREE_8349 = 8349; + public static final int SPIRIT_TREE_8350 = 8350; + public static final int SPIRIT_TREE_8351 = 8351; + public static final int SPIRIT_TREE_8352 = 8352; + public static final int SPIRIT_TREE_8353 = 8353; + public static final int SPIRIT_TREE_8354 = 8354; + public static final int SPIRIT_TREE_8355 = 8355; + public static final int SPIRIT_TREE_8356 = 8356; + public static final int SPIRIT_TREE_STUMP = 8357; + public static final int DISEASED_SPIRIT_TREE = 8358; + public static final int DISEASED_SPIRIT_TREE_8359 = 8359; + public static final int DISEASED_SPIRIT_TREE_8360 = 8360; + public static final int DISEASED_SPIRIT_TREE_8361 = 8361; + public static final int DISEASED_SPIRIT_TREE_8362 = 8362; + public static final int DISEASED_SPIRIT_TREE_8363 = 8363; + public static final int DISEASED_SPIRIT_TREE_8364 = 8364; + public static final int DISEASED_SPIRIT_TREE_8365 = 8365; + public static final int DISEASED_SPIRIT_TREE_8366 = 8366; + public static final int DISEASED_SPIRIT_TREE_8367 = 8367; + public static final int DISEASED_SPIRIT_TREE_8368 = 8368; + public static final int DISEASED_SPIRIT_TREE_8369 = 8369; + public static final int DEAD_SPIRIT_TREE = 8370; + public static final int DEAD_SPIRIT_TREE_8371 = 8371; + public static final int DEAD_SPIRIT_TREE_8372 = 8372; + public static final int DEAD_SPIRIT_TREE_8373 = 8373; + public static final int DEAD_SPIRIT_TREE_8374 = 8374; + public static final int DEAD_SPIRIT_TREE_8375 = 8375; + public static final int DEAD_SPIRIT_TREE_8376 = 8376; + public static final int DEAD_SPIRIT_TREE_8377 = 8377; + public static final int DEAD_SPIRIT_TREE_8378 = 8378; + public static final int DEAD_SPIRIT_TREE_8379 = 8379; + public static final int DEAD_SPIRIT_TREE_8380 = 8380; + public static final int DEAD_SPIRIT_TREE_8381 = 8381; + public static final int TREE_PATCH = 8382; + public static final int TREE_PATCH_8383 = 8383; + public static final int NULL_8384 = 8384; + public static final int NULL_8385 = 8385; + public static final int NULL_8386 = 8386; + public static final int NULL_8387 = 8387; + public static final int TREE_PATCH_8388 = 8388; + public static final int TREE_PATCH_8389 = 8389; + public static final int TREE_PATCH_8390 = 8390; + public static final int TREE_PATCH_8391 = 8391; + public static final int TREE_PATCH_8392 = 8392; + public static final int TREE_PATCH_8393 = 8393; + public static final int TREE_PATCH_8394 = 8394; + public static final int TREE_PATCH_8395 = 8395; + public static final int MAGIC_TREE_8396 = 8396; + public static final int MAGIC_TREE_8397 = 8397; + public static final int MAGIC_TREE_8398 = 8398; + public static final int MAGIC_TREE_8399 = 8399; + public static final int MAGIC_TREE_8400 = 8400; + public static final int MAGIC_TREE_8401 = 8401; + public static final int MAGIC_TREE_8402 = 8402; + public static final int MAGIC_TREE_8403 = 8403; + public static final int MAGIC_TREE_8404 = 8404; + public static final int MAGIC_TREE_8405 = 8405; + public static final int MAGIC_TREE_8406 = 8406; + public static final int MAGIC_TREE_8407 = 8407; + public static final int MAGIC_TREE_8408 = 8408; + public static final int MAGIC_TREE_8409 = 8409; + public static final int MAGIC_TREE_STUMP = 8410; + public static final int DISEASED_MAGIC_TREE = 8411; + public static final int DISEASED_MAGIC_TREE_8412 = 8412; + public static final int DISEASED_MAGIC_TREE_8413 = 8413; + public static final int DISEASED_MAGIC_TREE_8414 = 8414; + public static final int DISEASED_MAGIC_TREE_8415 = 8415; + public static final int DISEASED_MAGIC_TREE_8416 = 8416; + public static final int DISEASED_MAGIC_TREE_8417 = 8417; + public static final int DISEASED_MAGIC_TREE_8418 = 8418; + public static final int DISEASED_MAGIC_TREE_8419 = 8419; + public static final int DISEASED_MAGIC_TREE_8420 = 8420; + public static final int DISEASED_MAGIC_TREE_8421 = 8421; + public static final int DISEASED_MAGIC_TREE_8422 = 8422; + public static final int DEAD_MAGIC_TREE = 8423; + public static final int DEAD_MAGIC_TREE_8424 = 8424; + public static final int DEAD_MAGIC_TREE_8425 = 8425; + public static final int DEAD_MAGIC_TREE_8426 = 8426; + public static final int DEAD_MAGIC_TREE_8427 = 8427; + public static final int DEAD_MAGIC_TREE_8428 = 8428; + public static final int DEAD_MAGIC_TREE_8429 = 8429; + public static final int DEAD_MAGIC_TREE_8430 = 8430; + public static final int DEAD_MAGIC_TREE_8431 = 8431; + public static final int DEAD_MAGIC_TREE_8432 = 8432; + public static final int DEAD_MAGIC_TREE_8433 = 8433; + public static final int DEAD_MAGIC_TREE_8434 = 8434; + public static final int MAPLE_TREE_8435 = 8435; + public static final int MAPLE_TREE_8436 = 8436; + public static final int MAPLE_TREE_8437 = 8437; + public static final int MAPLE_TREE_8438 = 8438; + public static final int MAPLE_TREE_8439 = 8439; + public static final int MAPLE_TREE_8440 = 8440; + public static final int MAPLE_TREE_8441 = 8441; + public static final int MAPLE_TREE_8442 = 8442; + public static final int MAPLE_TREE_8443 = 8443; + public static final int MAPLE_TREE_8444 = 8444; + public static final int TREE_STUMP_8445 = 8445; + public static final int DISEASED_MAPLE = 8446; + public static final int DISEASED_MAPLE_8447 = 8447; + public static final int DISEASED_MAPLE_8448 = 8448; + public static final int DISEASED_MAPLE_8449 = 8449; + public static final int DISEASED_MAPLE_8450 = 8450; + public static final int DISEASED_MAPLE_8451 = 8451; + public static final int DISEASED_MAPLE_8452 = 8452; + public static final int DISEASED_MAPLE_8453 = 8453; + public static final int DEAD_MAPLE = 8454; + public static final int DEAD_MAPLE_8455 = 8455; + public static final int DEAD_MAPLE_8456 = 8456; + public static final int DEAD_MAPLE_8457 = 8457; + public static final int DEAD_MAPLE_8458 = 8458; + public static final int DEAD_MAPLE_8459 = 8459; + public static final int DEAD_MAPLE_8460 = 8460; + public static final int DEAD_MAPLE_8461 = 8461; + public static final int OAK_8462 = 8462; + public static final int OAK_8463 = 8463; + public static final int OAK_8464 = 8464; + public static final int OAK_8465 = 8465; + public static final int OAK_8466 = 8466; + public static final int OAK_8467 = 8467; + public static final int OAK_TREE_STUMP = 8468; + public static final int NULL_8469 = 8469; + public static final int NULL_8470 = 8470; + public static final int NULL_8471 = 8471; + public static final int NULL_8472 = 8472; + public static final int DISEASED_OAK = 8473; + public static final int DISEASED_OAK_8474 = 8474; + public static final int DISEASED_OAK_8475 = 8475; + public static final int DISEASED_OAK_8476 = 8476; + public static final int DEAD_OAK = 8477; + public static final int DEAD_OAK_8478 = 8478; + public static final int DEAD_OAK_8479 = 8479; + public static final int DEAD_OAK_8480 = 8480; + public static final int WILLOW_TREE = 8481; + public static final int WILLOW_TREE_8482 = 8482; + public static final int WILLOW_TREE_8483 = 8483; + public static final int WILLOW_TREE_8484 = 8484; + public static final int WILLOW_TREE_8485 = 8485; + public static final int WILLOW_TREE_8486 = 8486; + public static final int WILLOW_TREE_8487 = 8487; + public static final int WILLOW_TREE_8488 = 8488; + public static final int WILLOW_TREE_STUMP = 8489; + public static final int DISEASED_WILLOW = 8490; + public static final int DISEASED_WILLOW_8491 = 8491; + public static final int DISEASED_WILLOW_8492 = 8492; + public static final int DISEASED_WILLOW_8493 = 8493; + public static final int DISEASED_WILLOW_8494 = 8494; + public static final int DISEASED_WILLOW_8495 = 8495; + public static final int DEAD_WILLOW = 8496; + public static final int DEAD_WILLOW_8497 = 8497; + public static final int DEAD_WILLOW_8498 = 8498; + public static final int DEAD_WILLOW_8499 = 8499; + public static final int DEAD_WILLOW_8500 = 8500; + public static final int DEAD_WILLOW_8501 = 8501; + public static final int YEW_SAPLING = 8502; + public static final int YEW_TREE = 8503; + public static final int YEW_TREE_8504 = 8504; + public static final int YEW_TREE_8505 = 8505; + public static final int YEW_TREE_8506 = 8506; + public static final int YEW_TREE_8507 = 8507; + public static final int YEW_TREE_8508 = 8508; + public static final int YEW_TREE_8509 = 8509; + public static final int YEW_TREE_8510 = 8510; + public static final int YEW_TREE_8511 = 8511; + public static final int YEW_TREE_8512 = 8512; + public static final int YEW_TREE_8513 = 8513; + public static final int YEW_TREE_STUMP = 8514; + public static final int DISEASED_YEW = 8515; + public static final int DISEASED_YEW_8516 = 8516; + public static final int DISEASED_YEW_8517 = 8517; + public static final int DISEASED_YEW_8518 = 8518; + public static final int DISEASED_YEW_8519 = 8519; + public static final int DISEASED_YEW_8520 = 8520; + public static final int DISEASED_YEW_8521 = 8521; + public static final int DISEASED_YEW_8522 = 8522; + public static final int DISEASED_YEW_8523 = 8523; + public static final int DISEASED_YEW_8524 = 8524; + public static final int DEAD_YEW = 8525; + public static final int DEAD_YEW_8526 = 8526; + public static final int DEAD_YEW_8527 = 8527; + public static final int DEAD_YEW_8528 = 8528; + public static final int DEAD_YEW_8529 = 8529; + public static final int DEAD_YEW_8530 = 8530; + public static final int DEAD_YEW_8531 = 8531; + public static final int DEAD_YEW_8532 = 8532; + public static final int DEAD_YEW_8533 = 8533; + public static final int DEAD_YEW_8534 = 8534; + public static final int CABBAGES = 8535; + public static final int CABBAGES_8536 = 8536; + public static final int CABBAGES_8537 = 8537; + public static final int CABBAGES_8538 = 8538; + public static final int CABBAGES_8539 = 8539; + public static final int CABBAGES_8540 = 8540; + public static final int CABBAGES_8541 = 8541; + public static final int CABBAGES_8542 = 8542; + public static final int CABBAGES_8543 = 8543; + public static final int DISEASED_CABBAGES = 8544; + public static final int DISEASED_CABBAGES_8545 = 8545; + public static final int DISEASED_CABBAGES_8546 = 8546; + public static final int DEAD_CABBAGES = 8547; + public static final int DEAD_CABBAGES_8548 = 8548; + public static final int DEAD_CABBAGES_8549 = 8549; + public static final int POTATO_SEED = 8550; + public static final int POTATO_SEED_8551 = 8551; + public static final int POTATO_SEED_8552 = 8552; + public static final int POTATO_SEED_8553 = 8553; + public static final int POTATO_SEED_8554 = 8554; + public static final int POTATO_SEED_8555 = 8555; + public static final int POTATO_SEED_8556 = 8556; + public static final int POTATO_SEED_8557 = 8557; + public static final int POTATO_SEED_8558 = 8558; + public static final int POTATO_PLANT = 8559; + public static final int POTATO_PLANT_8560 = 8560; + public static final int POTATO_PLANT_8561 = 8561; + public static final int POTATO_8562 = 8562; + public static final int POTATO_SEED_8563 = 8563; + public static final int POTATO_PLANT_8564 = 8564; + public static final int POTATO_PLANT_8565 = 8565; + public static final int POTATO_PLANT_8566 = 8566; + public static final int DISEASED_POTATOES = 8567; + public static final int DISEASED_POTATOES_8568 = 8568; + public static final int DISEASED_POTATOES_8569 = 8569; + public static final int DEAD_POTATOES = 8570; + public static final int DEAD_POTATOES_8571 = 8571; + public static final int DEAD_POTATOES_8572 = 8572; + public static final int ALLOTMENT = 8573; + public static final int ALLOTMENT_8574 = 8574; + public static final int ALLOTMENT_8575 = 8575; + public static final int ALLOTMENT_8576 = 8576; + public static final int ALLOTMENT_8577 = 8577; + public static final int ALLOTMENT_8578 = 8578; + public static final int ALLOTMENT_8579 = 8579; + public static final int ONION_SEEDS = 8580; + public static final int ONION_PLANT = 8581; + public static final int ONION_PLANT_8582 = 8582; + public static final int ONION_PLANT_8583 = 8583; + public static final int ONION_8584 = 8584; + public static final int ONION_SEEDS_8585 = 8585; + public static final int ONION_PLANT_8586 = 8586; + public static final int ONION_PLANT_8587 = 8587; + public static final int ONION_PLANT_8588 = 8588; + public static final int DISEASED_ONIONS = 8589; + public static final int DISEASED_ONIONS_8590 = 8590; + public static final int DISEASED_ONIONS_8591 = 8591; + public static final int DEAD_ONIONS = 8592; + public static final int DEAD_ONIONS_8593 = 8593; + public static final int DEAD_ONIONS_8594 = 8594; + public static final int STRAWBERRY_SEED = 8595; + public static final int STRAWBERRY_PLANT = 8596; + public static final int STRAWBERRY_PLANT_8597 = 8597; + public static final int STRAWBERRY_PLANT_8598 = 8598; + public static final int STRAWBERRY_PLANT_8599 = 8599; + public static final int STRAWBERRY_PLANT_8600 = 8600; + public static final int STRAWBERRY = 8601; + public static final int STRAWBERRY_SEED_8602 = 8602; + public static final int STRAWBERRY_PLANT_8603 = 8603; + public static final int STRAWBERRY_PLANT_8604 = 8604; + public static final int STRAWBERRY_PLANT_8605 = 8605; + public static final int STRAWBERRY_PLANT_8606 = 8606; + public static final int STRAWBERRY_PLANT_8607 = 8607; + public static final int DISEASED_STRAWBERRY_PLANT = 8608; + public static final int DISEASED_STRAWBERRY_PLANT_8609 = 8609; + public static final int DISEASED_STRAWBERRY_PLANT_8610 = 8610; + public static final int DISEASED_STRAWBERRY_PLANT_8611 = 8611; + public static final int DISEASED_STRAWBERRY_PLANT_8612 = 8612; + public static final int DEAD_STRAWBERRY_PLANT = 8613; + public static final int DEAD_STRAWBERRY_PLANT_8614 = 8614; + public static final int DEAD_STRAWBERRY_PLANT_8615 = 8615; + public static final int DEAD_STRAWBERRY_PLANT_8616 = 8616; + public static final int DEAD_STRAWBERRY_PLANT_8617 = 8617; + public static final int SWEETCORN_SEED = 8618; + public static final int SWEETCORN_PLANT = 8619; + public static final int SWEETCORN_PLANT_8620 = 8620; + public static final int SWEETCORN_PLANT_8621 = 8621; + public static final int SWEETCORN_PLANT_8622 = 8622; + public static final int SWEETCORN_PLANT_8623 = 8623; + public static final int SWEETCORN = 8624; + public static final int SWEETCORN_SEED_8625 = 8625; + public static final int SWEETCORN_PLANT_8626 = 8626; + public static final int SWEETCORN_PLANT_8627 = 8627; + public static final int SWEETCORN_PLANT_8628 = 8628; + public static final int SWEETCORN_PLANT_8629 = 8629; + public static final int SWEETCORN_PLANT_8630 = 8630; + public static final int DISEASED_SWEETCORN_PLANT = 8631; + public static final int DISEASED_SWEETCORN_PLANT_8632 = 8632; + public static final int DISEASED_SWEETCORN_PLANT_8633 = 8633; + public static final int DISEASED_SWEETCORN_PLANT_8634 = 8634; + public static final int DISEASED_SWEETCORN_PLANT_8635 = 8635; + public static final int DEAD_SWEETCORN_PLANT = 8636; + public static final int DEAD_SWEETCORN_PLANT_8637 = 8637; + public static final int DEAD_SWEETCORN_PLANT_8638 = 8638; + public static final int DEAD_SWEETCORN_PLANT_8639 = 8639; + public static final int DEAD_SWEETCORN_PLANT_8640 = 8640; + public static final int TOMATO_PLANT = 8641; + public static final int TOMATO_PLANT_8642 = 8642; + public static final int TOMATO_PLANT_8643 = 8643; + public static final int TOMATO_PLANT_8644 = 8644; + public static final int TOMATO = 8645; + public static final int TOMATO_PLANT_8646 = 8646; + public static final int TOMATO_PLANT_8647 = 8647; + public static final int TOMATO_PLANT_8648 = 8648; + public static final int TOMATO_PLANT_8649 = 8649; + public static final int DISEASED_TOMATO_PLANT = 8650; + public static final int DISEASED_TOMATO_PLANT_8651 = 8651; + public static final int DISEASED_TOMATO_PLANT_8652 = 8652; + public static final int DEAD_TOMATO_PLANT = 8653; + public static final int DEAD_TOMATO_PLANT_8654 = 8654; + public static final int DEAD_TOMATO_PLANT_8655 = 8655; + public static final int WATERMELON_SEED = 8656; + public static final int WATERMELONS = 8657; + public static final int WATERMELONS_8658 = 8658; + public static final int WATERMELONS_8659 = 8659; + public static final int WATERMELONS_8660 = 8660; + public static final int WATERMELONS_8661 = 8661; + public static final int WATERMELONS_8662 = 8662; + public static final int WATERMELONS_8663 = 8663; + public static final int WATERMELON = 8664; + public static final int WATERMELON_SEED_8665 = 8665; + public static final int WATERMELONS_8666 = 8666; + public static final int WATERMELONS_8667 = 8667; + public static final int WATERMELONS_8668 = 8668; + public static final int WATERMELONS_8669 = 8669; + public static final int WATERMELONS_8670 = 8670; + public static final int WATERMELONS_8671 = 8671; + public static final int WATERMELONS_8672 = 8672; + public static final int DISEASED_WATERMELONS = 8673; + public static final int DISEASED_WATERMELONS_8674 = 8674; + public static final int DISEASED_WATERMELONS_8675 = 8675; + public static final int DISEASED_WATERMELONS_8676 = 8676; + public static final int DISEASED_WATERMELONS_8677 = 8677; + public static final int DISEASED_WATERMELONS_8678 = 8678; + public static final int DISEASED_WATERMELONS_8679 = 8679; + public static final int DEAD_WATERMELONS = 8680; + public static final int DEAD_WATERMELONS_8681 = 8681; + public static final int DEAD_WATERMELONS_8682 = 8682; + public static final int DEAD_WATERMELONS_8683 = 8683; + public static final int DEAD_WATERMELONS_8684 = 8684; + public static final int DEAD_WATERMELONS_8685 = 8685; + public static final int DEAD_WATERMELONS_8686 = 8686; + public static final int NULL_8687 = 8687; + public static final int DRESSER_8688 = 8688; + public static final int DAIRY_COW = 8689; + public static final int MILK_URNS = 8690; + public static final int MILK_URNS_8691 = 8691; + public static final int NULL_8692 = 8692; + public static final int NULL_8693 = 8693; + public static final int NULL_8694 = 8694; + public static final int DOOR_8695 = 8695; + public static final int DOOR_8696 = 8696; + public static final int NULL_8697 = 8697; + public static final int NULL_8698 = 8698; + public static final int SINK_8699 = 8699; + public static final int TABLE_8700 = 8700; + public static final int TABLE_8701 = 8701; + public static final int WATER_BARREL_8702 = 8702; + public static final int WATER_BARREL_8703 = 8703; + public static final int NULL_8704 = 8704; + public static final int NULL_8705 = 8705; + public static final int NULL_8706 = 8706; + public static final int NULL_8707 = 8707; + public static final int NULL_8708 = 8708; + public static final int NULL_8709 = 8709; + public static final int NULL_8710 = 8710; + public static final int NULL_8711 = 8711; + public static final int FIREPLACE_8712 = 8712; + public static final int HAY_BALE_8713 = 8713; + public static final int HAY_STACK = 8714; + public static final int HAY_BALE_8715 = 8715; + public static final int HAY_STACK_8716 = 8716; + public static final int LOOM_8717 = 8717; + public static final int NULL_8718 = 8718; + public static final int NULL_8719 = 8719; + public static final int NULL_8720 = 8720; + public static final int NULL_8721 = 8721; + public static final int NULL_8722 = 8722; + public static final int NULL_8723 = 8723; + public static final int NULL_8724 = 8724; + public static final int ROCK_8725 = 8725; + public static final int ROCK_8726 = 8726; + public static final int ROCKS_8727 = 8727; + public static final int ROCKSLIDE_8728 = 8728; + public static final int ROCKSLIDE_8729 = 8729; + public static final int ROCKSLIDE_8730 = 8730; + public static final int ROCKSLIDE_8731 = 8731; + public static final int NULL_8732 = 8732; + public static final int NULL_8733 = 8733; + public static final int NULL_8734 = 8734; + public static final int NULL_8735 = 8735; + public static final int NULL_8736 = 8736; + public static final int BARREL_TAP_8737 = 8737; + public static final int ARDOUGNE_WALL_DOOR = 8738; + public static final int ARDOUGNE_WALL_DOOR_8739 = 8739; + public static final int ARDOUGNE_WALL_DOOR_8740 = 8740; + public static final int ARDOUGNE_WALL_DOOR_8741 = 8741; + public static final int TREE_8742 = 8742; + public static final int TREE_8743 = 8743; + public static final int LADDER_8744 = 8744; + public static final int LADDER_8745 = 8745; + public static final int LADDER_8746 = 8746; + public static final int WELL_8747 = 8747; + public static final int SPINNING_WHEEL_8748 = 8748; + public static final int ALTAR_8749 = 8749; + public static final int COOKING_RANGE_8750 = 8750; + public static final int TABLE_8751 = 8751; + public static final int BOOKCASE_8752 = 8752; + public static final int BOOKCASE_8753 = 8753; + public static final int BOOKCASE_8754 = 8754; + public static final int NULL_8755 = 8755; + public static final int NULL_8756 = 8756; + public static final int NULL_8757 = 8757; + public static final int NULL_8758 = 8758; + public static final int NULL_8759 = 8759; + public static final int NULL_8760 = 8760; + public static final int NULL_8761 = 8761; + public static final int NULL_8762 = 8762; + public static final int NULL_8763 = 8763; + public static final int NULL_8764 = 8764; + public static final int NULL_8765 = 8765; + public static final int NULL_8766 = 8766; + public static final int ELVEN_LAMP_8767 = 8767; + public static final int TABLE_8768 = 8768; + public static final int TABLE_8769 = 8769; + public static final int CHAIR_8770 = 8770; + public static final int PAINTING_8771 = 8771; + public static final int BENCH_8772 = 8772; + public static final int BOW_AND_ARROW_8773 = 8773; + public static final int NULL_8774 = 8774; + public static final int ARROWS_8775 = 8775; + public static final int CLOTHING_SHELVES_8776 = 8776; + public static final int NULL_8777 = 8777; + public static final int CLOTHES_MODEL_8778 = 8778; + public static final int CLOTHES_MODEL_8779 = 8779; + public static final int NULL_8780 = 8780; + public static final int NULL_8781 = 8781; + public static final int NULL_8782 = 8782; + public static final int TRAPDOOR_8783 = 8783; + public static final int NULL_8784 = 8784; + public static final int LADDER_8785 = 8785; + public static final int DOOR_8786 = 8786; + public static final int DOOR_8787 = 8787; + public static final int DOOR_8788 = 8788; + public static final int DOOR_8789 = 8789; + public static final int DOOR_8790 = 8790; + public static final int DOOR_8791 = 8791; + public static final int DOOR_8792 = 8792; + public static final int DOOR_8793 = 8793; + public static final int NULL_8794 = 8794; + public static final int GNOME_ON_A_RACK = 8795; + public static final int AN_EMPTY_RACK = 8796; + public static final int CLOSED_CHEST_8797 = 8797; + public static final int OPEN_CHEST_8798 = 8798; + public static final int DESK_8799 = 8799; + public static final int CLOSED_CHEST_8800 = 8800; + public static final int GRAIN_SACKS = 8801; + public static final int GRAIN_SACKS_8802 = 8802; + public static final int GRAIN_SACKS_8803 = 8803; + public static final int GRAIN_SACKS_8804 = 8804; + public static final int GRAIN_SACKS_8805 = 8805; + public static final int GRAIN_SACKS_8806 = 8806; + public static final int APPLE_BARREL_8807 = 8807; + public static final int APPLE_BARREL_8808 = 8808; + public static final int ROTTEN_APPLE_PILE = 8809; + public static final int GATE_8810 = 8810; + public static final int GATE_8811 = 8811; + public static final int GATE_8812 = 8812; + public static final int GATE_8813 = 8813; + public static final int BED_8814 = 8814; + public static final int BED_8815 = 8815; + public static final int BED_8816 = 8816; + public static final int BED_8817 = 8817; + public static final int DOOR_8818 = 8818; + public static final int DOOR_8819 = 8819; + public static final int DOOR_8820 = 8820; + public static final int DOOR_8821 = 8821; + public static final int NULL_8822 = 8822; + public static final int NULL_8823 = 8823; + public static final int NULL_8824 = 8824; + public static final int NULL_8825 = 8825; + public static final int NULL_8826 = 8826; + public static final int NULL_8827 = 8827; + public static final int ROCKS_8828 = 8828; + public static final int ROCKS_8829 = 8829; + public static final int ROCKS_8830 = 8830; + public static final int MINE_CART_8831 = 8831; + public static final int NULL_8832 = 8832; + public static final int NULL_8833 = 8833; + public static final int NULL_8834 = 8834; + public static final int NULL_8835 = 8835; + public static final int NULL_8836 = 8836; + public static final int NULL_8837 = 8837; + public static final int NULL_8838 = 8838; + public static final int NULL_8839 = 8839; + public static final int STOCKS_8840 = 8840; + public static final int NULL_8841 = 8841; + public static final int APPLE_TREE_8842 = 8842; + public static final int APPLE_TREE_8843 = 8843; + public static final int NULL_8844 = 8844; + public static final int NULL_8845 = 8845; + public static final int NULL_8846 = 8846; + public static final int NULL_8847 = 8847; + public static final int NULL_8848 = 8848; + public static final int NULL_8849 = 8849; + public static final int NULL_8850 = 8850; + public static final int NULL_8851 = 8851; + public static final int NULL_8852 = 8852; + public static final int NULL_8853 = 8853; + public static final int NULL_8854 = 8854; + public static final int NULL_8855 = 8855; + public static final int NULL_8856 = 8856; + public static final int NULL_8857 = 8857; + public static final int NULL_8858 = 8858; + public static final int NULL_8859 = 8859; + public static final int NULL_8860 = 8860; + public static final int KELDA_HOPS_PATCH = 8861; + public static final int KELDA_HOPS_PATCH_8862 = 8862; + public static final int KELDA_HOPS_PATCH_8863 = 8863; + public static final int KELDA_HOPS_PATCH_8864 = 8864; + public static final int KELDA_HOPS = 8865; + public static final int KELDA_HOPS_8866 = 8866; + public static final int KELDA_HOPS_8867 = 8867; + public static final int KELDA_HOPS_8868 = 8868; + public static final int KELDA_HOPS_8869 = 8869; + public static final int KELDA_STOUT = 8870; + public static final int FERMENTING_VAT_8871 = 8871; + public static final int FERMENTING_VAT_8872 = 8872; + public static final int FERMENTING_VAT_8873 = 8873; + public static final int FERMENTING_VAT_8874 = 8874; + public static final int NULL_8875 = 8875; + public static final int NULL_8876 = 8876; + public static final int NULL_8877 = 8877; + public static final int DWARVEN_MACHINERY = 8878; + public static final int BOX = 8879; + public static final int BOX_8880 = 8880; + public static final int CAVE_ENTRANCE_8881 = 8881; + public static final int CAVE_ENTRANCE_8882 = 8882; + public static final int CAVE_ENTRANCE_8883 = 8883; + public static final int CAVE_ENTRANCE_8884 = 8884; + public static final int NULL_8885 = 8885; + public static final int BUFFERS_8886 = 8886; + public static final int TRACK_8887 = 8887; + public static final int TRACK_8888 = 8888; + public static final int TRACK_8889 = 8889; + public static final int TRACK_8890 = 8890; + public static final int TRACK_8891 = 8891; + public static final int TRACK_8892 = 8892; + public static final int TRACK_8893 = 8893; + public static final int TRACK_8894 = 8894; + public static final int TRACK_8895 = 8895; + public static final int TRACK_8896 = 8896; + public static final int TRACK_8897 = 8897; + public static final int TRACK_8898 = 8898; + public static final int TRACK_SUPPORT = 8899; + public static final int TRACK_SUPPORT_8900 = 8900; + public static final int TRACK_SUPPORT_8901 = 8901; + public static final int TRACK_SUPPORT_8902 = 8902; + public static final int TRACK_SUPPORT_8903 = 8903; + public static final int TRACK_SUPPORT_8904 = 8904; + public static final int NULL_8905 = 8905; + public static final int NULL_8906 = 8906; + public static final int NULL_8907 = 8907; + public static final int NULL_8908 = 8908; + public static final int NULL_8909 = 8909; + public static final int BOOKCASE_8910 = 8910; + public static final int CRATE_8911 = 8911; + public static final int CRATES_8912 = 8912; + public static final int CRATE_8913 = 8913; + public static final int CRATE_8914 = 8914; + public static final int CRATE_8915 = 8915; + public static final int CRATE_8916 = 8916; + public static final int NULL_8917 = 8917; + public static final int BANNER = 8918; + public static final int NULL_8919 = 8919; + public static final int NULL_8920 = 8920; + public static final int NULL_8921 = 8921; + public static final int NULL_8922 = 8922; + public static final int NULL_8923 = 8923; + public static final int TRAIN_CART_8924 = 8924; + public static final int TRAIN_CART_8925 = 8925; + public static final int VIKING_BOAT = 8926; + public static final int WELL_8927 = 8927; + public static final int NULL_8928 = 8928; + public static final int CAVE_ENTRANCE_8929 = 8929; + public static final int CAVE_ENTRANCE_8930 = 8930; + public static final int NULL_8931 = 8931; + public static final int NULL_8932 = 8932; + public static final int NULL_8933 = 8933; + public static final int NULL_8934 = 8934; + public static final int NULL_8935 = 8935; + public static final int NULL_8936 = 8936; + public static final int NULL_8937 = 8937; + public static final int NULL_8938 = 8938; + public static final int NULL_8939 = 8939; + public static final int NULL_8940 = 8940; + public static final int NULL_8941 = 8941; + public static final int NULL_8942 = 8942; + public static final int NULL_8943 = 8943; + public static final int NULL_8944 = 8944; + public static final int NULL_8945 = 8945; + public static final int NULL_8946 = 8946; + public static final int NULL_8947 = 8947; + public static final int NULL_8948 = 8948; + public static final int NULL_8949 = 8949; + public static final int ROCK_8950 = 8950; + public static final int ROCK_8951 = 8951; + public static final int ROCK_8952 = 8952; + public static final int NULL_8953 = 8953; + public static final int FLAG = 8954; + public static final int FLAG_8955 = 8955; + public static final int IRON_LADDER_8956 = 8956; + public static final int NULL_8957 = 8957; + public static final int DOOR_8958 = 8958; + public static final int DOOR_8959 = 8959; + public static final int DOOR_8960 = 8960; + public static final int DOOR_8961 = 8961; + public static final int DOOR_8962 = 8962; + public static final int DOOR_8963 = 8963; + public static final int NULL_8964 = 8964; + public static final int NULL_8965 = 8965; + public static final int STEPS_8966 = 8966; + public static final int DOOR_8967 = 8967; + public static final int NULL_8968 = 8968; + public static final int NULL_8969 = 8969; + public static final int NULL_8970 = 8970; + public static final int NULL_8971 = 8971; + public static final int PORTAL_8972 = 8972; + public static final int TREE_8973 = 8973; + public static final int TREE_8974 = 8974; + public static final int NULL_8975 = 8975; + public static final int NULL_8976 = 8976; + public static final int NULL_8977 = 8977; + public static final int NULL_8978 = 8978; + public static final int NULL_8979 = 8979; + public static final int NULL_8980 = 8980; + public static final int NULL_8981 = 8981; + public static final int NULL_8982 = 8982; + public static final int NULL_8983 = 8983; + public static final int NULL_8984 = 8984; + public static final int UNCOOKING_POT = 8985; + public static final int FISHING_SPOT_8986 = 8986; + public static final int PORTAL_8987 = 8987; + public static final int CHEST_8988 = 8988; + public static final int OPEN_CHEST_8989 = 8989; + public static final int NULL_8990 = 8990; + public static final int NULL_8991 = 8991; + public static final int NULL_8992 = 8992; + public static final int NULL_8993 = 8993; + public static final int NULL_8994 = 8994; + public static final int NULL_8995 = 8995; + public static final int NULL_8996 = 8996; + public static final int NULL_8997 = 8997; + public static final int APPENDAGE = 8998; + public static final int APPENDAGE_8999 = 8999; + public static final int APPENDAGE_9000 = 9000; + public static final int APPENDAGE_9001 = 9001; + public static final int APPENDAGE_9002 = 9002; + public static final int APPENDAGE_9003 = 9003; + public static final int APPENDAGE_9004 = 9004; + public static final int APPENDAGE_9005 = 9005; + public static final int FUNERAL_PYRE_9006 = 9006; + public static final int FUNERAL_PYRE_9007 = 9007; + public static final int FUNERAL_PYRE_9008 = 9008; + public static final int FUNERAL_PYRE_9009 = 9009; + public static final int LIGHT_JUNGLE = 9010; + public static final int LIGHT_JUNGLE_9011 = 9011; + public static final int LIGHT_JUNGLE_9012 = 9012; + public static final int LIGHT_JUNGLE_9013 = 9013; + public static final int LIGHT_JUNGLE_9014 = 9014; + public static final int MEDIUM_JUNGLE = 9015; + public static final int MEDIUM_JUNGLE_9016 = 9016; + public static final int MEDIUM_JUNGLE_9017 = 9017; + public static final int MEDIUM_JUNGLE_9018 = 9018; + public static final int MEDIUM_JUNGLE_9019 = 9019; + public static final int DENSE_JUNGLE = 9020; + public static final int DENSE_JUNGLE_9021 = 9021; + public static final int DENSE_JUNGLE_9022 = 9022; + public static final int DENSE_JUNGLE_9023 = 9023; + public static final int DENSE_JUNGLE_9024 = 9024; + public static final int ROTTEN_VILLAGE_FENCE = 9025; + public static final int PARTIAL_FENCE = 9026; + public static final int SHORT_FENCE = 9027; + public static final int MEDIUM_FENCE = 9028; + public static final int VILLAGE_FENCE = 9029; + public static final int GEM_ROCK = 9030; + public static final int GEM_ROCK_9031 = 9031; + public static final int GEM_ROCK_9032 = 9032; + public static final int GOUT_TUBER_PLANT = 9033; + public static final int MAHOGANY = 9034; + public static final int TREE_STUMP_9035 = 9035; + public static final int TEAK = 9036; + public static final int TREE_STUMP_9037 = 9037; + public static final int HARDWOOD_GROVE_DOORS = 9038; + public static final int HARDWOOD_GROVE_DOORS_9039 = 9039; + public static final int NULL_9040 = 9040; + public static final int NULL_9041 = 9041; + public static final int NULL_9042 = 9042; + public static final int NULL_9043 = 9043; + public static final int GOUTWEED = 9044; + public static final int GOUTWEED_9045 = 9045; + public static final int GOUTWEED_9046 = 9046; + public static final int GOUTWEED_9047 = 9047; + public static final int GOUTWEED_9048 = 9048; + public static final int DISEASED_GOUTWEED = 9049; + public static final int DISEASED_GOUTWEED_9050 = 9050; + public static final int DISEASED_GOUTWEED_9051 = 9051; + public static final int DEAD_GOUTWEED = 9052; + public static final int DEAD_GOUTWEED_9053 = 9053; + public static final int DEAD_GOUTWEED_9054 = 9054; + public static final int NULL_9055 = 9055; + public static final int NULL_9056 = 9056; + public static final int NULL_9057 = 9057; + public static final int ALI_MS_MARKET = 9058; + public static final int ALI_MS_MARKET_9059 = 9059; + public static final int ALI_MS_MARKET_9060 = 9060; + public static final int ALI_MS_MARKET_9061 = 9061; + public static final int ALI_MS_MARKET_9062 = 9062; + public static final int ALI_MS_MARKET_9063 = 9063; + public static final int CRATE_9064 = 9064; + public static final int NULL_9065 = 9065; + public static final int CRATE_OF_RUNE_CASKETS = 9066; + public static final int NULL_9067 = 9067; + public static final int CRATE_9068 = 9068; + public static final int NULL_9069 = 9069; + public static final int CRATE_9070 = 9070; + public static final int CRATE_9071 = 9071; + public static final int RUNE_CASKET = 9072; + public static final int RUNE_CASKET_9073 = 9073; + public static final int RUNE_CASKET_9074 = 9074; + public static final int RUNE_CASKET_9075 = 9075; + public static final int CLOTH_9076 = 9076; + public static final int HANGING_DYE = 9077; + public static final int HANGING_DYE_9078 = 9078; + public static final int DYED_FABRIC = 9079; + public static final int DYED_FABRIC_9080 = 9080; + public static final int DYED_FABRIC_9081 = 9081; + public static final int TABLE_9082 = 9082; + public static final int DYE_POTS = 9083; + public static final int STAIRS_9084 = 9084; + public static final int STOVE = 9085; + public static final int STOVE_9086 = 9086; + public static final int STOVE_9087 = 9087; + public static final int COKE = 9088; + public static final int TEMPERATURE_GAUGE = 9089; + public static final int PUMP = 9090; + public static final int BARS = 9091; + public static final int NULL_9092 = 9092; + public static final int BAR_DISPENSER = 9093; + public static final int BAR_DISPENSER_9094 = 9094; + public static final int BAR_DISPENSER_9095 = 9095; + public static final int BAR_DISPENSER_9096 = 9096; + public static final int PEDALS = 9097; + public static final int MELTING_POT = 9098; + public static final int SMOKE = 9099; + public static final int CONVEYOR_BELT = 9100; + public static final int CONVEYOR_BELT_9101 = 9101; + public static final int DRIVE_BELT = 9102; + public static final int DRIVE_BELT_9103 = 9103; + public static final int COGS = 9104; + public static final int COGS_9105 = 9105; + public static final int GEAR_BOX = 9106; + public static final int DRIVE_BELT_9107 = 9107; + public static final int COGS_9108 = 9108; + public static final int NULL_9109 = 9109; + public static final int NULL_9110 = 9110; + public static final int NULL_9111 = 9111; + public static final int NULL_9112 = 9112; + public static final int NULL_9113 = 9113; + public static final int NULL_9114 = 9114; + public static final int SMOKE_9115 = 9115; + public static final int PIPES = 9116; + public static final int PIPES_9117 = 9117; + public static final int NULL_9118 = 9118; + public static final int NULL_9119 = 9119; + public static final int PIPES_9120 = 9120; + public static final int PIPES_9121 = 9121; + public static final int NULL_9122 = 9122; + public static final int SMOKE_9123 = 9123; + public static final int NULL_9124 = 9124; + public static final int NULL_9125 = 9125; + public static final int NULL_9126 = 9126; + public static final int NULL_9127 = 9127; + public static final int NULL_9128 = 9128; + public static final int NULL_9129 = 9129; + public static final int NULL_9130 = 9130; + public static final int NULL_9131 = 9131; + public static final int NULL_9132 = 9132; + public static final int NULL_9133 = 9133; + public static final int NULL_9134 = 9134; + public static final int NULL_9135 = 9135; + public static final int NULL_9136 = 9136; + public static final int NULL_9137 = 9137; + public static final int STAIRS_9138 = 9138; + public static final int NULL_9139 = 9139; + public static final int GATE_9140 = 9140; + public static final int GATE_9141 = 9141; + public static final int GATE_9142 = 9142; + public static final int SINK_9143 = 9143; + public static final int CANDELABRUM = 9144; + public static final int GOLDEN_LANTERN = 9145; + public static final int OLD_BOOKSHELF_9146 = 9146; + public static final int OLD_BOOKSHELF_9147 = 9147; + public static final int CHAIR_9148 = 9148; + public static final int GOLD_SCREEN = 9149; + public static final int WALL_9150 = 9150; + public static final int HOLE_IN_THE_WALL = 9151; + public static final int PATCHED_WALL = 9152; + public static final int NULL_9153 = 9153; + public static final int NULL_9154 = 9154; + public static final int GLOBE_OF_GIELINOR_9155 = 9155; + public static final int STUDY_DESK_9156 = 9156; + public static final int SUIT_OF_ARMOUR_9157 = 9157; + public static final int NULL_9158 = 9158; + public static final int CANDLES_9159 = 9159; + public static final int CANDLES_9160 = 9160; + public static final int CANDLES_9161 = 9161; + public static final int NULL_9162 = 9162; + public static final int NULL_9163 = 9163; + public static final int NULL_9164 = 9164; + public static final int NULL_9165 = 9165; + public static final int DELPHINIUM_PATCH = 9166; + public static final int DELPHINIUM_PATCH_9167 = 9167; + public static final int DELPHINIUM_PATCH_9168 = 9168; + public static final int DELPHINIUM_PATCH_9169 = 9169; + public static final int DELPHINIUMS = 9170; + public static final int DELPHINIUMS_9171 = 9171; + public static final int DELPHINIUMS_9172 = 9172; + public static final int DELPHINIUMS_9173 = 9173; + public static final int NULL_9174 = 9174; + public static final int NULL_9175 = 9175; + public static final int NULL_9176 = 9176; + public static final int PINK_ROSE_BUSH_PATCH = 9177; + public static final int PINK_ROSE_BUSH_PATCH_9178 = 9178; + public static final int PINK_ROSE_BUSH_PATCH_9179 = 9179; + public static final int PINK_ROSE_BUSH_PATCH_9180 = 9180; + public static final int WHITE_ROSE_BUSH_PATCH = 9181; + public static final int WHITE_ROSE_BUSH_PATCH_9182 = 9182; + public static final int WHITE_ROSE_BUSH_PATCH_9183 = 9183; + public static final int WHITE_ROSE_BUSH_PATCH_9184 = 9184; + public static final int RED_ROSE_BUSH_PATCH = 9185; + public static final int RED_ROSE_BUSH_PATCH_9186 = 9186; + public static final int RED_ROSE_BUSH_PATCH_9187 = 9187; + public static final int RED_ROSE_BUSH_PATCH_9188 = 9188; + public static final int ROSE_BUSH = 9189; + public static final int ROSE_BUSH_9190 = 9190; + public static final int ROSE_BUSH_9191 = 9191; + public static final int ROSE_BUSH_9192 = 9192; + public static final int ROSE_BUSH_9193 = 9193; + public static final int ROSE_BUSH_9194 = 9194; + public static final int ROSE_BUSH_9195 = 9195; + public static final int ROSE_BUSH_9196 = 9196; + public static final int NULL_9197 = 9197; + public static final int NULL_9198 = 9198; + public static final int ORCHIDS = 9199; + public static final int ORCHIDS_9200 = 9200; + public static final int ORCHIDS_9201 = 9201; + public static final int ORCHIDS_9202 = 9202; + public static final int PLANTPOT = 9203; + public static final int PLANTPOT_9204 = 9204; + public static final int YELLOW_ORCHIDS = 9205; + public static final int YELLOW_ORCHIDS_9206 = 9206; + public static final int YELLOW_ORCHIDS_9207 = 9207; + public static final int YELLOW_ORCHIDS_9208 = 9208; + public static final int NULL_9209 = 9209; + public static final int WHITE_TREE_PATCH = 9210; + public static final int WHITE_TREE_PATCH_9211 = 9211; + public static final int WHITE_TREE_PATCH_9212 = 9212; + public static final int WHITE_TREE_PATCH_9213 = 9213; + public static final int WHITE_TREE_PATCH_9214 = 9214; + public static final int WHITE_TREE_PATCH_9215 = 9215; + public static final int WHITE_TREE_PATCH_9216 = 9216; + public static final int WHITE_TREE_PATCH_9217 = 9217; + public static final int WHITE_TREE_PATCH_9218 = 9218; + public static final int WHITE_TREE_PATCH_9219 = 9219; + public static final int WHITE_TREE_PATCH_9220 = 9220; + public static final int WHITE_TREE_PATCH_9221 = 9221; + public static final int WHITE_TREE_PATCH_9222 = 9222; + public static final int NULL_9223 = 9223; + public static final int SNOWDROP_PATCH = 9224; + public static final int SNOWDROP_PATCH_9225 = 9225; + public static final int SNOWDROP_PATCH_9226 = 9226; + public static final int SNOWDROP_PATCH_9227 = 9227; + public static final int SNOWDROPS = 9228; + public static final int SNOWDROPS_9229 = 9229; + public static final int SNOWDROPS_9230 = 9230; + public static final int SNOWDROPS_9231 = 9231; + public static final int NULL_9232 = 9232; + public static final int VINE_PATCH = 9233; + public static final int VINE_PATCH_9234 = 9234; + public static final int VINE_PATCH_9235 = 9235; + public static final int VINE_PATCH_9236 = 9236; + public static final int VINES_9237 = 9237; + public static final int VINES_9238 = 9238; + public static final int VINES_9239 = 9239; + public static final int VINES_9240 = 9240; + public static final int PLINTH_9241 = 9241; + public static final int PLINTH_9242 = 9242; + public static final int STATUE_OF_SARADOMIN_9243 = 9243; + public static final int PLINTH_9244 = 9244; + public static final int STATUE_9245 = 9245; + public static final int STATUE_PLINTH = 9246; + public static final int STATUE_OF_SARADOMIN_9247 = 9247; + public static final int STATUE_PLINTH_9248 = 9248; + public static final int STATUE_9249 = 9249; + public static final int NULL_9250 = 9250; + public static final int NULL_9251 = 9251; + public static final int NULL_9252 = 9252; + public static final int NULL_9253 = 9253; + public static final int NULL_9254 = 9254; + public static final int GRAPEVINES = 9255; + public static final int DISEASED_GRAPEVINES = 9256; + public static final int WILD_GRASS = 9257; + public static final int WILD_GRASS_9258 = 9258; + public static final int WILD_GRASS_9259 = 9259; + public static final int ROSES = 9260; + public static final int ROSES_9261 = 9261; + public static final int ROSES_9262 = 9262; + public static final int WHITE_TREE = 9263; + public static final int NULL_9264 = 9264; + public static final int NULL_9265 = 9265; + public static final int NULL_9266 = 9266; + public static final int NULL_9267 = 9267; + public static final int NULL_9268 = 9268; + public static final int NULL_9269 = 9269; + public static final int NULL_9270 = 9270; + public static final int NULL_9271 = 9271; + public static final int NULL_9272 = 9272; + public static final int NULL_9273 = 9273; + public static final int NULL_9274 = 9274; + public static final int NULL_9275 = 9275; + public static final int NULL_9276 = 9276; + public static final int NULL_9277 = 9277; + public static final int NULL_9278 = 9278; + public static final int NULL_9279 = 9279; + public static final int NULL_9280 = 9280; + public static final int NULL_9281 = 9281; + public static final int NULL_9282 = 9282; + public static final int NULL_9283 = 9283; + public static final int NULL_9284 = 9284; + public static final int NULL_9285 = 9285; + public static final int NULL_9286 = 9286; + public static final int NULL_9287 = 9287; + public static final int NULL_9288 = 9288; + public static final int NULL_9289 = 9289; + public static final int NULL_9290 = 9290; + public static final int PICNIC_BENCH_9291 = 9291; + public static final int STATUE_9292 = 9292; + public static final int OBSTACLE_PIPE_9293 = 9293; + public static final int STRANGE_FLOOR = 9294; + public static final int OBSTACLE_PIPE_9295 = 9295; + public static final int ROCKS_9296 = 9296; + public static final int ROCKS_9297 = 9297; + public static final int NULL_9298 = 9298; + public static final int FENCE_9299 = 9299; + public static final int FENCE_9300 = 9300; + public static final int CASTLE_WALL = 9301; + public static final int HOLE_9302 = 9302; + public static final int ROCKS_9303 = 9303; + public static final int ROCKS_9304 = 9304; + public static final int ROCKS_9305 = 9305; + public static final int ROCKS_9306 = 9306; + public static final int WEATHERED_WALL = 9307; + public static final int WEATHERED_WALL_9308 = 9308; + public static final int UNDERWALL_TUNNEL = 9309; + public static final int UNDERWALL_TUNNEL_9310 = 9310; + public static final int UNDERWALL_TUNNEL_9311 = 9311; + public static final int UNDERWALL_TUNNEL_9312 = 9312; + public static final int ODD_MARKINGS_9313 = 9313; + public static final int JUTTING_WALL = 9314; + public static final int STEPPING_STONE_9315 = 9315; + public static final int ROCKS_9316 = 9316; + public static final int ROCKS_9317 = 9317; + public static final int NULL_9318 = 9318; + public static final int SPIKEY_CHAIN = 9319; + public static final int SPIKEY_CHAIN_9320 = 9320; + public static final int CREVICE_9321 = 9321; + public static final int LOG_BALANCE_9322 = 9322; + public static final int LOG_BALANCE_9323 = 9323; + public static final int LOG_BALANCE_9324 = 9324; + public static final int CREVICE_9325 = 9325; + public static final int STRANGE_FLOOR_9326 = 9326; + public static final int ROCKS_9327 = 9327; + public static final int LOG_BALANCE_9328 = 9328; + public static final int LOG_BALANCE_9329 = 9329; + public static final int LOG_BALANCE_9330 = 9330; + public static final int ROCKS_9331 = 9331; + public static final int ROCKS_9332 = 9332; + public static final int NULL_9333 = 9333; + public static final int ORNATE_RAILING = 9334; + public static final int ROCKS_9335 = 9335; + public static final int ROCKS_9336 = 9336; + public static final int ORNATE_RAILING_9337 = 9337; + public static final int SCARECROW_9338 = 9338; + public static final int SCARECROW_9339 = 9339; + public static final int SCARECROW_9340 = 9340; + public static final int NULL_9341 = 9341; + public static final int NULL_9342 = 9342; + public static final int NULL_9343 = 9343; + public static final int NULL_9344 = 9344; + public static final int NULL_9345 = 9345; + public static final int NULL_9346 = 9346; + public static final int NULL_9347 = 9347; + public static final int NULL_9348 = 9348; + public static final int NULL_9349 = 9349; + public static final int NULL_9350 = 9350; + public static final int NULL_9351 = 9351; + public static final int NULL_9352 = 9352; + public static final int NULL_9353 = 9353; + public static final int CAVE_EXIT_9354 = 9354; + public static final int CAVE_ENTRANCE_9355 = 9355; + public static final int CAVE_ENTRANCE_9356 = 9356; + public static final int CAVE_ENTRANCE_9357 = 9357; + public static final int CAVE_ENTRANCE_9358 = 9358; + public static final int CAVE_EXIT_9359 = 9359; + public static final int NULL_9360 = 9360; + public static final int NULL_9361 = 9361; + public static final int NULL_9362 = 9362; + public static final int NULL_9363 = 9363; + public static final int NULL_9364 = 9364; + public static final int NULL_9365 = 9365; + public static final int OPEN_HOT_VENT_DOOR = 9366; + public static final int HOT_VENT_DOOR = 9367; + public static final int HOT_VENT_DOOR_9368 = 9368; + public static final int HOT_VENT_DOOR_9369 = 9369; + public static final int NULL_9370 = 9370; + public static final int NULL_9371 = 9371; + public static final int NULL_9372 = 9372; + public static final int NULL_9373 = 9373; + public static final int SULPHUR_VENT = 9374; + public static final int NULL_9375 = 9375; + public static final int NULL_9376 = 9376; + public static final int EGG = 9377; + public static final int EGG_9378 = 9378; + public static final int EGG_9379 = 9379; + public static final int TZHAAR_STATUE = 9380; + public static final int CRATE_9381 = 9381; + public static final int CRATES_9382 = 9382; + public static final int NULL_9383 = 9383; + public static final int NULL_9384 = 9384; + public static final int NULL_9385 = 9385; + public static final int NULL_9386 = 9386; + public static final int NULL_9387 = 9387; + public static final int NULL_9388 = 9388; + public static final int NULL_9389 = 9389; + public static final int LAVA_FORGE = 9390; + public static final int VIEWING_ORB = 9391; + public static final int NULL_9392 = 9392; + public static final int NULL_9393 = 9393; + public static final int NULL_9394 = 9394; + public static final int NULL_9395 = 9395; + public static final int NULL_9396 = 9396; + public static final int NULL_9397 = 9397; + public static final int BANK_DEPOSIT_BOX = 9398; + public static final int NULL_9399 = 9399; + public static final int UNFERTHS_PATCH = 9400; + public static final int UNFERTHS_PATCH_9401 = 9401; + public static final int UNFERTHS_PATCH_9402 = 9402; + public static final int UNFERTHS_PATCH_9403 = 9403; + public static final int POTATO_PLANTS = 9404; + public static final int POTATO_PLANTS_9405 = 9405; + public static final int POTATO_PLANTS_9406 = 9406; + public static final int POTATO_PLANTS_9407 = 9407; + public static final int POTATOES = 9408; + public static final int NULL_9409 = 9409; + public static final int NULL_9410 = 9410; + public static final int NULL_9411 = 9411; + public static final int NULL_9412 = 9412; + public static final int NULL_9413 = 9413; + public static final int NULL_9414 = 9414; + public static final int NULL_9415 = 9415; + public static final int NULL_9416 = 9416; + public static final int NULL_9417 = 9417; + public static final int NULL_9418 = 9418; + public static final int NULL_9419 = 9419; + public static final int NULL_9420 = 9420; + public static final int NULL_9421 = 9421; + public static final int NULL_9422 = 9422; + public static final int NULL_9423 = 9423; + public static final int NULL_9424 = 9424; + public static final int NULL_9425 = 9425; + public static final int NULL_9426 = 9426; + public static final int NULL_9427 = 9427; + public static final int NULL_9428 = 9428; + public static final int NULL_9429 = 9429; + public static final int TABLE_9430 = 9430; + public static final int TABLE_9431 = 9431; + public static final int TABLE_9432 = 9432; + public static final int TABLE_9433 = 9433; + public static final int TABLE_9434 = 9434; + public static final int NULL_9435 = 9435; + public static final int BED_9436 = 9436; + public static final int BED_9437 = 9437; + public static final int NULL_9438 = 9438; + public static final int FIREPLACE_9439 = 9439; + public static final int FIREPLACE_9440 = 9440; + public static final int FIREPLACE_9441 = 9441; + public static final int NULL_9442 = 9442; + public static final int BOOKCASE_9443 = 9443; + public static final int NULL_9444 = 9444; + public static final int NULL_9445 = 9445; + public static final int NULL_9446 = 9446; + public static final int NULL_9447 = 9447; + public static final int NULL_9448 = 9448; + public static final int NULL_9449 = 9449; + public static final int NULL_9450 = 9450; + public static final int NULL_9451 = 9451; + public static final int NULL_9452 = 9452; + public static final int NULL_9453 = 9453; + public static final int NULL_9454 = 9454; + public static final int NULL_9455 = 9455; + public static final int NULL_9456 = 9456; + public static final int NULL_9457 = 9457; + public static final int NULL_9458 = 9458; + public static final int NULL_9459 = 9459; + public static final int NULL_9460 = 9460; + public static final int NULL_9461 = 9461; + public static final int NULL_9462 = 9462; + public static final int NULL_9463 = 9463; + public static final int NULL_9464 = 9464; + public static final int NULL_9465 = 9465; + public static final int NULL_9466 = 9466; + public static final int NULL_9467 = 9467; + public static final int NULL_9468 = 9468; + public static final int NULL_9469 = 9469; + public static final int STAIRCASE_9470 = 9470; + public static final int STAIRCASE_9471 = 9471; + public static final int TRAPDOOR_9472 = 9472; + public static final int NULL_9473 = 9473; + public static final int NULL_9474 = 9474; + public static final int NULL_9475 = 9475; + public static final int NULL_9476 = 9476; + public static final int NULL_9477 = 9477; + public static final int NULL_9478 = 9478; + public static final int NULL_9479 = 9479; + public static final int NULL_9480 = 9480; + public static final int NULL_9481 = 9481; + public static final int NULL_9482 = 9482; + public static final int NULL_9483 = 9483; + public static final int NULL_9484 = 9484; + public static final int NULL_9485 = 9485; + public static final int NULL_9486 = 9486; + public static final int NULL_9487 = 9487; + public static final int NULL_9488 = 9488; + public static final int NULL_9489 = 9489; + public static final int NULL_9490 = 9490; + public static final int NULL_9491 = 9491; + public static final int NULL_9492 = 9492; + public static final int NULL_9493 = 9493; + public static final int NULL_9494 = 9494; + public static final int NULL_9495 = 9495; + public static final int NULL_9496 = 9496; + public static final int NULL_9497 = 9497; + public static final int PLANT_9498 = 9498; + public static final int PLANT_9499 = 9499; + public static final int PLANT_9500 = 9500; + public static final int PLANT_9501 = 9501; + public static final int NULL_9502 = 9502; + public static final int NULL_9503 = 9503; + public static final int NULL_9504 = 9504; + public static final int NULL_9505 = 9505; + public static final int NULL_9506 = 9506; + public static final int NULL_9507 = 9507; + public static final int HAMMOCK_9508 = 9508; + public static final int BED_9509 = 9509; + public static final int SIGNPOST_9510 = 9510; + public static final int NULL_9511 = 9511; + public static final int NULL_9512 = 9512; + public static final int NULL_9513 = 9513; + public static final int CHAIR_9514 = 9514; + public static final int BETTYS_CAULDRON = 9515; + public static final int COUNTER_9516 = 9516; + public static final int NULL_9517 = 9517; + public static final int NULL_9518 = 9518; + public static final int BARREL_9519 = 9519; + public static final int BARREL_9520 = 9520; + public static final int BARREL_9521 = 9521; + public static final int ANCHOR_9522 = 9522; + public static final int BOOKCASE_9523 = 9523; + public static final int CHAIN = 9524; + public static final int CART_9525 = 9525; + public static final int SHELVES_9526 = 9526; + public static final int SHELVES_9527 = 9527; + public static final int SHELVES_9528 = 9528; + public static final int SHELVES_9529 = 9529; + public static final int FUNGUS_9530 = 9530; + public static final int BENCH_9531 = 9531; + public static final int PICNIC_BENCH_9532 = 9532; + public static final int CRATE_9533 = 9533; + public static final int CRATE_9534 = 9534; + public static final int CRATES_9535 = 9535; + public static final int BOXES_9536 = 9536; + public static final int CRANE_9537 = 9537; + public static final int ROW_BOAT_9538 = 9538; + public static final int NULL_9539 = 9539; + public static final int NULL_9540 = 9540; + public static final int NULL_9541 = 9541; + public static final int NULL_9542 = 9542; + public static final int NULL_9543 = 9543; + public static final int NULL_9544 = 9544; + public static final int NULL_9545 = 9545; + public static final int NULL_9546 = 9546; + public static final int NULL_9547 = 9547; + public static final int HOT_COALS = 9548; + public static final int HOT_COALS_9549 = 9549; + public static final int NULL_9550 = 9550; + public static final int NULL_9551 = 9551; + public static final int NULL_9552 = 9552; + public static final int NULL_9553 = 9553; + public static final int NULL_9554 = 9554; + public static final int NULL_9555 = 9555; + public static final int NULL_9556 = 9556; + public static final int NULL_9557 = 9557; + public static final int LADDER_9558 = 9558; + public static final int LADDER_9559 = 9559; + public static final int TRAPDOOR_9560 = 9560; + public static final int BED_9561 = 9561; + public static final int CELL_DOOR_9562 = 9562; + public static final int CELL_DOOR_9563 = 9563; + public static final int CELL_DOOR_9564 = 9564; + public static final int DOOR_9565 = 9565; + public static final int NULL_9566 = 9566; + public static final int BUCKET = 9567; + public static final int BUCKET_9568 = 9568; + public static final int NULL_9569 = 9569; + public static final int NULL_9570 = 9570; + public static final int NULL_9571 = 9571; + public static final int NULL_9572 = 9572; + public static final int NULL_9573 = 9573; + public static final int NULL_9574 = 9574; + public static final int NULL_9575 = 9575; + public static final int NULL_9576 = 9576; + public static final int NULL_9577 = 9577; + public static final int NULL_9578 = 9578; + public static final int NULL_9579 = 9579; + public static final int NULL_9580 = 9580; + public static final int NULL_9581 = 9581; + public static final int STAIRCASE_9582 = 9582; + public static final int NULL_9583 = 9583; + public static final int STAIRCASE_9584 = 9584; + public static final int NULL_9585 = 9585; + public static final int NULL_9586 = 9586; + public static final int NULL_9587 = 9587; + public static final int NULL_9588 = 9588; + public static final int NULL_9589 = 9589; + public static final int NULL_9590 = 9590; + public static final int NULL_9591 = 9591; + public static final int NULL_9592 = 9592; + public static final int NULL_9593 = 9593; + public static final int NULL_9594 = 9594; + public static final int NULL_9595 = 9595; + public static final int NULL_9596 = 9596; + public static final int NULL_9597 = 9597; + public static final int NULL_9598 = 9598; + public static final int NULL_9599 = 9599; + public static final int NULL_9600 = 9600; + public static final int NULL_9601 = 9601; + public static final int NULL_9602 = 9602; + public static final int NULL_9603 = 9603; + public static final int PLANT_9604 = 9604; + public static final int PLANT_9605 = 9605; + public static final int PLANT_9606 = 9606; + public static final int BOOKCASE_9607 = 9607; + public static final int BOOKCASE_9608 = 9608; + public static final int BOOKCASE_9609 = 9609; + public static final int EASEL = 9610; + public static final int BOOKCASE_9611 = 9611; + public static final int BED_9612 = 9612; + public static final int LARGE_TABLE = 9613; + public static final int TABLE_9614 = 9614; + public static final int SMALL_TABLE_9615 = 9615; + public static final int COUNTER_9616 = 9616; + public static final int WAREHOUSE_SHELVES = 9617; + public static final int WAREHOUSE_SHELVES_9618 = 9618; + public static final int WAREHOUSE_SHELVES_9619 = 9619; + public static final int WAREHOUSE_SHELVES_9620 = 9620; + public static final int CHAIR_9621 = 9621; + public static final int CHAIR_9622 = 9622; + public static final int NULL_9623 = 9623; + public static final int PLOUGH_9624 = 9624; + public static final int WHEELBARROW_9625 = 9625; + public static final int NULL_9626 = 9626; + public static final int NULL_9627 = 9627; + public static final int NULL_9628 = 9628; + public static final int NULL_9629 = 9629; + public static final int NULL_9630 = 9630; + public static final int NULL_9631 = 9631; + public static final int NULL_9632 = 9632; + public static final int NULL_9633 = 9633; + public static final int NULL_9634 = 9634; + public static final int NULL_9635 = 9635; + public static final int NULL_9636 = 9636; + public static final int NULL_9637 = 9637; + public static final int NULL_9638 = 9638; + public static final int NULL_9639 = 9639; + public static final int NULL_9640 = 9640; + public static final int NULL_9641 = 9641; + public static final int NULL_9642 = 9642; + public static final int NULL_9643 = 9643; + public static final int NULL_9644 = 9644; + public static final int NULL_9645 = 9645; + public static final int NULL_9646 = 9646; + public static final int NULL_9647 = 9647; + public static final int NULL_9648 = 9648; + public static final int NULL_9649 = 9649; + public static final int NULL_9650 = 9650; + public static final int NULL_9651 = 9651; + public static final int NULL_9652 = 9652; + public static final int NULL_9653 = 9653; + public static final int NULL_9654 = 9654; + public static final int NULL_9655 = 9655; + public static final int NULL_9656 = 9656; + public static final int NULL_9657 = 9657; + public static final int NULL_9658 = 9658; + public static final int NULL_9659 = 9659; + public static final int NULL_9660 = 9660; + public static final int TREE_STUMP_9661 = 9661; + public static final int SPADE = 9662; + public static final int FALLEN_TREE_9663 = 9663; + public static final int ROOTS_9664 = 9664; + public static final int ROOTS_9665 = 9665; + public static final int ROOTS_9666 = 9666; + public static final int SCARECROW_9667 = 9667; + public static final int MYSTERIOUS_STATUE_9668 = 9668; + public static final int NULL_9669 = 9669; + public static final int NULL_9670 = 9670; + public static final int NULL_9671 = 9671; + public static final int NULL_9672 = 9672; + public static final int NULL_9673 = 9673; + public static final int NULL_9674 = 9674; + public static final int NULL_9675 = 9675; + public static final int NULL_9676 = 9676; + public static final int NULL_9677 = 9677; + public static final int NULL_9678 = 9678; + public static final int NULL_9679 = 9679; + public static final int NULL_9680 = 9680; + public static final int NULL_9681 = 9681; + public static final int RANGE_9682 = 9682; + public static final int RANGE_CHIMNEY = 9683; + public static final int SINK_9684 = 9684; + public static final int TABLE_9685 = 9685; + public static final int CLOTH_9686 = 9686; + public static final int CLOTHES_MODEL_9687 = 9687; + public static final int CLOTHES_MODEL_9688 = 9688; + public static final int CLOTHES_MODEL_9689 = 9689; + public static final int CLOTHES_MODEL_9690 = 9690; + public static final int NULL_9691 = 9691; + public static final int NULL_9692 = 9692; + public static final int NULL_9693 = 9693; + public static final int NOTICEBOARD_9694 = 9694; + public static final int NOTICEBOARD_9695 = 9695; + public static final int SIGN_9696 = 9696; + public static final int LARGE_TABLE_9697 = 9697; + public static final int LARGE_TABLE_9698 = 9698; + public static final int LARGE_TABLE_9699 = 9699; + public static final int LARGE_TABLE_9700 = 9700; + public static final int NULL_9701 = 9701; + public static final int TABLE_9702 = 9702; + public static final int CANDLESTICK_HOLDER_9703 = 9703; + public static final int CHAIR_9704 = 9704; + public static final int CHAIR_9705 = 9705; + public static final int LEVER_9706 = 9706; + public static final int LEVER_9707 = 9707; + public static final int ROCKS_9708 = 9708; + public static final int ROCKS_9709 = 9709; + public static final int ROCKS_9710 = 9710; + public static final int ROCKS_9711 = 9711; + public static final int ROCKS_9712 = 9712; + public static final int ROCKS_9713 = 9713; + public static final int ROCKS_9714 = 9714; + public static final int ROCKS_9715 = 9715; + public static final int ROCKS_9716 = 9716; + public static final int ROCKS_9717 = 9717; + public static final int ROCKS_9718 = 9718; + public static final int ROCKS_9719 = 9719; + public static final int ROCKS_9720 = 9720; + public static final int ROCKS_9721 = 9721; + public static final int ROCKS_9722 = 9722; + public static final int ROCKS_9723 = 9723; + public static final int ROCKS_9724 = 9724; + public static final int ROCKS_9725 = 9725; + public static final int ROCKS_9726 = 9726; + public static final int ROCKS_9727 = 9727; + public static final int ROCKS_9728 = 9728; + public static final int ROCKS_9729 = 9729; + public static final int ROCKS_9730 = 9730; + public static final int ROCKS_9731 = 9731; + public static final int ROCKS_9732 = 9732; + public static final int ROCKS_9733 = 9733; + public static final int ROCKS_9734 = 9734; + public static final int ROCKS_9735 = 9735; + public static final int ROCKS_9736 = 9736; + public static final int ROCKS_9737 = 9737; + public static final int RUINED_PILLAR_9738 = 9738; + public static final int RUINED_PILLAR_9739 = 9739; + public static final int RUINED_PILLAR_9740 = 9740; + public static final int TRAWLER_NET_9741 = 9741; + public static final int TRAWLER_NET_9742 = 9742; + public static final int NULL_9743 = 9743; + public static final int SHIPS_LADDER_9744 = 9744; + public static final int SHIPS_LADDER_9745 = 9745; + public static final int NULL_9746 = 9746; + public static final int NULL_9747 = 9747; + public static final int CRYSTAL_COLLECTOR = 9748; + public static final int CRYSTAL_COLLECTOR_9749 = 9749; + public static final int NULL_9750 = 9750; + public static final int CRYSTAL = 9751; + public static final int CRYSTAL_9752 = 9752; + public static final int OPEN_CHEST_9753 = 9753; + public static final int CLOSED_CHEST_9754 = 9754; + public static final int OPEN_CHEST_9755 = 9755; + public static final int CLOSED_CHEST_9756 = 9756; + public static final int OPEN_CHEST_9757 = 9757; + public static final int CLOSED_CHEST_9758 = 9758; + public static final int OPEN_CHEST_9759 = 9759; + public static final int CLOSED_CHEST_9760 = 9760; + public static final int OPEN_CHEST_9761 = 9761; + public static final int CLOSED_CHEST_9762 = 9762; + public static final int GUARD = 9763; + public static final int GUARD_9764 = 9764; + public static final int GUARD_9765 = 9765; + public static final int SLAVE = 9766; + public static final int SLAVE_9767 = 9767; + public static final int LIGHT_DOOR = 9768; + public static final int LIGHT_DOOR_9769 = 9769; + public static final int LIGHT_DOOR_9770 = 9770; + public static final int LIGHT_DOOR_9771 = 9771; + public static final int LIGHT_DOOR_9772 = 9772; + public static final int LIGHT_DOOR_9773 = 9773; + public static final int LIGHT_DOOR_9774 = 9774; + public static final int LIGHT_DOOR_9775 = 9775; + public static final int NULL_9776 = 9776; + public static final int NULL_9777 = 9777; + public static final int NULL_9778 = 9778; + public static final int NULL_9779 = 9779; + public static final int NULL_9780 = 9780; + public static final int NULL_9781 = 9781; + public static final int NULL_9782 = 9782; + public static final int NULL_9783 = 9783; + public static final int NULL_9784 = 9784; + public static final int NULL_9785 = 9785; + public static final int NULL_9786 = 9786; + public static final int NULL_9787 = 9787; + public static final int NULL_9788 = 9788; + public static final int NULL_9789 = 9789; + public static final int NULL_9790 = 9790; + public static final int NULL_9791 = 9791; + public static final int NULL_9792 = 9792; + public static final int NULL_9793 = 9793; + public static final int NULL_9794 = 9794; + public static final int NULL_9795 = 9795; + public static final int NULL_9796 = 9796; + public static final int NULL_9797 = 9797; + public static final int NULL_9798 = 9798; + public static final int NULL_9799 = 9799; + public static final int NULL_9800 = 9800; + public static final int NULL_9801 = 9801; + public static final int NULL_9802 = 9802; + public static final int NULL_9803 = 9803; + public static final int NULL_9804 = 9804; + public static final int NULL_9805 = 9805; + public static final int NULL_9806 = 9806; + public static final int NULL_9807 = 9807; + public static final int NULL_9808 = 9808; + public static final int NULL_9809 = 9809; + public static final int NULL_9810 = 9810; + public static final int NULL_9811 = 9811; + public static final int NULL_9812 = 9812; + public static final int NULL_9813 = 9813; + public static final int NULL_9814 = 9814; + public static final int NULL_9815 = 9815; + public static final int NULL_9816 = 9816; + public static final int NULL_9817 = 9817; + public static final int NULL_9818 = 9818; + public static final int NULL_9819 = 9819; + public static final int NULL_9820 = 9820; + public static final int NULL_9821 = 9821; + public static final int NULL_9822 = 9822; + public static final int NULL_9823 = 9823; + public static final int NULL_9824 = 9824; + public static final int NULL_9825 = 9825; + public static final int NULL_9826 = 9826; + public static final int NULL_9827 = 9827; + public static final int NULL_9828 = 9828; + public static final int NULL_9829 = 9829; + public static final int NULL_9830 = 9830; + public static final int NULL_9831 = 9831; + public static final int NULL_9832 = 9832; + public static final int NULL_9833 = 9833; + public static final int NULL_9834 = 9834; + public static final int NULL_9835 = 9835; + public static final int NULL_9836 = 9836; + public static final int NULL_9837 = 9837; + public static final int NULL_9838 = 9838; + public static final int NULL_9839 = 9839; + public static final int NULL_9840 = 9840; + public static final int NULL_9841 = 9841; + public static final int NULL_9842 = 9842; + public static final int NULL_9843 = 9843; + public static final int NULL_9844 = 9844; + public static final int NULL_9845 = 9845; + public static final int NULL_9846 = 9846; + public static final int NULL_9847 = 9847; + public static final int NULL_9848 = 9848; + public static final int NULL_9849 = 9849; + public static final int NULL_9850 = 9850; + public static final int NULL_9851 = 9851; + public static final int NULL_9852 = 9852; + public static final int NULL_9853 = 9853; + public static final int NULL_9854 = 9854; + public static final int NULL_9855 = 9855; + public static final int NULL_9856 = 9856; + public static final int NULL_9857 = 9857; + public static final int NULL_9858 = 9858; + public static final int NULL_9859 = 9859; + public static final int NULL_9860 = 9860; + public static final int NULL_9861 = 9861; + public static final int NULL_9862 = 9862; + public static final int NULL_9863 = 9863; + public static final int NULL_9864 = 9864; + public static final int NULL_9865 = 9865; + public static final int NULL_9866 = 9866; + public static final int NULL_9867 = 9867; + public static final int NULL_9868 = 9868; + public static final int NULL_9869 = 9869; + public static final int NULL_9870 = 9870; + public static final int NULL_9871 = 9871; + public static final int NULL_9872 = 9872; + public static final int NULL_9873 = 9873; + public static final int NULL_9874 = 9874; + public static final int NULL_9875 = 9875; + public static final int NULL_9876 = 9876; + public static final int NULL_9877 = 9877; + public static final int NULL_9878 = 9878; + public static final int NULL_9879 = 9879; + public static final int NULL_9880 = 9880; + public static final int NULL_9881 = 9881; + public static final int NULL_9882 = 9882; + public static final int NULL_9883 = 9883; + public static final int NULL_9884 = 9884; + public static final int NULL_9885 = 9885; + public static final int NULL_9886 = 9886; + public static final int NULL_9887 = 9887; + public static final int NULL_9888 = 9888; + public static final int NULL_9889 = 9889; + public static final int NULL_9890 = 9890; + public static final int NULL_9891 = 9891; + public static final int NULL_9892 = 9892; + public static final int NULL_9893 = 9893; + public static final int NULL_9894 = 9894; + public static final int NULL_9895 = 9895; + public static final int NULL_9896 = 9896; + public static final int NULL_9897 = 9897; + public static final int PILLAR_OF_LIGHT = 9898; + public static final int PILLAR_OF_LIGHT_9899 = 9899; + public static final int PILLAR_OF_LIGHT_9900 = 9900; + public static final int PILLAR_OF_LIGHT_9901 = 9901; + public static final int PILLAR_OF_LIGHT_9902 = 9902; + public static final int PILLAR_OF_LIGHT_9903 = 9903; + public static final int PILLAR_OF_LIGHT_9904 = 9904; + public static final int PILLAR_OF_LIGHT_9905 = 9905; + public static final int PILLAR_OF_LIGHT_9906 = 9906; + public static final int PILLAR_OF_LIGHT_9907 = 9907; + public static final int PILLAR_OF_LIGHT_9908 = 9908; + public static final int PILLAR_OF_LIGHT_9909 = 9909; + public static final int PILLAR_OF_LIGHT_9910 = 9910; + public static final int PILLAR_OF_LIGHT_9911 = 9911; + public static final int PILLAR_OF_LIGHT_9912 = 9912; + public static final int PILLAR_OF_LIGHT_9913 = 9913; + public static final int PILLAR_OF_LIGHT_9914 = 9914; + public static final int PILLAR_OF_LIGHT_9915 = 9915; + public static final int PILLAR_OF_LIGHT_9916 = 9916; + public static final int PILLAR_OF_LIGHT_9917 = 9917; + public static final int PILLAR_OF_LIGHT_9918 = 9918; + public static final int PILLAR_OF_LIGHT_9919 = 9919; + public static final int PILLAR_OF_LIGHT_9920 = 9920; + public static final int PILLAR_OF_LIGHT_9921 = 9921; + public static final int PILLAR_OF_LIGHT_9922 = 9922; + public static final int PILLAR_OF_LIGHT_9923 = 9923; + public static final int PILLAR_OF_LIGHT_9924 = 9924; + public static final int PILLAR_OF_LIGHT_9925 = 9925; + public static final int PILLAR_OF_LIGHT_9926 = 9926; + public static final int PILLAR_OF_LIGHT_9927 = 9927; + public static final int PILLAR_OF_LIGHT_9928 = 9928; + public static final int PILLAR_OF_LIGHT_9929 = 9929; + public static final int PILLAR_OF_LIGHT_9930 = 9930; + public static final int PILLAR_OF_LIGHT_9931 = 9931; + public static final int PILLAR_OF_LIGHT_9932 = 9932; + public static final int PILLAR_OF_LIGHT_9933 = 9933; + public static final int PILLAR_OF_LIGHT_9934 = 9934; + public static final int PILLAR_OF_LIGHT_9935 = 9935; + public static final int PILLAR_OF_LIGHT_9936 = 9936; + public static final int PILLAR_OF_LIGHT_9937 = 9937; + public static final int NULL_9938 = 9938; + public static final int NULL_9939 = 9939; + public static final int NULL_9940 = 9940; + public static final int NULL_9941 = 9941; + public static final int NULL_9942 = 9942; + public static final int NULL_9943 = 9943; + public static final int NULL_9944 = 9944; + public static final int NULL_9945 = 9945; + public static final int NULL_9946 = 9946; + public static final int NULL_9947 = 9947; + public static final int NULL_9948 = 9948; + public static final int NULL_9949 = 9949; + public static final int NULL_9950 = 9950; + public static final int NULL_9951 = 9951; + public static final int NULL_9952 = 9952; + public static final int NULL_9953 = 9953; + public static final int NULL_9954 = 9954; + public static final int NULL_9955 = 9955; + public static final int NULL_9956 = 9956; + public static final int NULL_9957 = 9957; + public static final int NULL_9958 = 9958; + public static final int NULL_9959 = 9959; + public static final int NULL_9960 = 9960; + public static final int NULL_9961 = 9961; + public static final int NULL_9962 = 9962; + public static final int NULL_9963 = 9963; + public static final int NULL_9964 = 9964; + public static final int NULL_9965 = 9965; + public static final int NULL_9966 = 9966; + public static final int NULL_9967 = 9967; + public static final int NULL_9968 = 9968; + public static final int NULL_9969 = 9969; + public static final int NULL_9970 = 9970; + public static final int NULL_9971 = 9971; + public static final int NULL_9972 = 9972; + public static final int PILLAR_OF_LIGHT_9973 = 9973; + public static final int NULL_9974 = 9974; + public static final int CAVE_STAIRS_9975 = 9975; + public static final int CAVE_WALL_9976 = 9976; + public static final int TUNNEL_9977 = 9977; + public static final int LADDER_9978 = 9978; + public static final int LADDER_9979 = 9979; + public static final int FINAL_PILLAR = 9980; + public static final int PILLAR_OF_LIGHT_9981 = 9981; + public static final int PILLAR_OF_LIGHT_9982 = 9982; + public static final int PILLAR_OF_LIGHT_9983 = 9983; + public static final int PILLAR_OF_LIGHT_9984 = 9984; + public static final int PILLAR_OF_LIGHT_9985 = 9985; + public static final int PILLAR_OF_LIGHT_9986 = 9986; + public static final int NULL_9987 = 9987; + public static final int PILLAR_OF_LIGHT_9988 = 9988; + public static final int NULL_9989 = 9989; + public static final int NULL_9990 = 9990; + public static final int NULL_9991 = 9991; + public static final int NULL_9992 = 9992; + public static final int NULL_9993 = 9993; + public static final int NULL_9994 = 9994; + public static final int NULL_9995 = 9995; + public static final int NULL_9996 = 9996; + public static final int NULL_9997 = 9997; + public static final int NULL_9998 = 9998; + public static final int NULL_9999 = 9999; + public static final int NULL_10000 = 10000; + public static final int NULL_10001 = 10001; + public static final int LIGHT_DOOR_10002 = 10002; + public static final int LIGHT_DOOR_10003 = 10003; + public static final int LIGHT_DOOR_10004 = 10004; + public static final int LIGHT_DOOR_10005 = 10005; + public static final int LIGHT_DOOR_10006 = 10006; + public static final int LIGHT_DOOR_10007 = 10007; + public static final int LIGHT_DOOR_10008 = 10008; + public static final int LIGHT_DOOR_10009 = 10009; + public static final int LIGHT_DOOR_10010 = 10010; + public static final int LIGHT_DOOR_10011 = 10011; + public static final int LIGHT_DOOR_10012 = 10012; + public static final int LIGHT_DOOR_10013 = 10013; + public static final int CRYSTAL_10014 = 10014; + public static final int STAIRCASE_10015 = 10015; + public static final int STAIRCASE_10016 = 10016; + public static final int STAIRCASE_10017 = 10017; + public static final int STAIRCASE_10018 = 10018; + public static final int PILLAR_10019 = 10019; + public static final int PILLAR_10020 = 10020; + public static final int PILLAR_10021 = 10021; + public static final int PILLAR_10022 = 10022; + public static final int NULL_10023 = 10023; + public static final int NULL_10024 = 10024; + public static final int NULL_10025 = 10025; + public static final int NULL_10026 = 10026; + public static final int NULL_10027 = 10027; + public static final int NULL_10028 = 10028; + public static final int NULL_10029 = 10029; + public static final int NULL_10030 = 10030; + public static final int NULL_10031 = 10031; + public static final int NULL_10032 = 10032; + public static final int WALL_SUPPORT_10033 = 10033; + public static final int TRAP_10034 = 10034; + public static final int LOW_WALL_10035 = 10035; + public static final int ROCK_10036 = 10036; + public static final int ROPE_10037 = 10037; + public static final int ROPE_10038 = 10038; + public static final int NULL_10039 = 10039; + public static final int NULL_10040 = 10040; + public static final int TREE_10041 = 10041; + public static final int NULL_10042 = 10042; + public static final int NULL_10043 = 10043; + public static final int NULL_10044 = 10044; + public static final int NULL_10045 = 10045; + public static final int NULL_10046 = 10046; + public static final int NULL_10047 = 10047; + public static final int NULL_10048 = 10048; + public static final int NULL_10049 = 10049; + public static final int NULL_10050 = 10050; + public static final int NULL_10051 = 10051; + public static final int NULL_10052 = 10052; + public static final int NULL_10053 = 10053; + public static final int CONTAINER = 10054; + public static final int GATE_10055 = 10055; + public static final int GATE_10056 = 10056; + public static final int FLAGPOLE_10057 = 10057; + public static final int NULL_10058 = 10058; + public static final int NULL_10059 = 10059; + public static final int NULL_10060 = 10060; + public static final int NULL_10061 = 10061; + public static final int OBSTACLE_NET_10062 = 10062; + public static final int OBSTACLE_PIPE_10063 = 10063; + public static final int NULL_10064 = 10064; + public static final int NULL_10065 = 10065; + public static final int NULL_10066 = 10066; + public static final int NULL_10067 = 10067; + public static final int NULL_10068 = 10068; + public static final int NULL_10069 = 10069; + public static final int NULL_10070 = 10070; + public static final int NULL_10071 = 10071; + public static final int NULL_10072 = 10072; + public static final int NULL_10073 = 10073; + public static final int NULL_10074 = 10074; + public static final int NULL_10075 = 10075; + public static final int EXERCISE_MAT = 10076; + public static final int EXERCISE_MAT_10077 = 10077; + public static final int EXERCISE_MAT_10078 = 10078; + public static final int EXERCISE_MAT_10079 = 10079; + public static final int TARGET_10080 = 10080; + public static final int TREE_10081 = 10081; + public static final int TREE_10082 = 10082; + public static final int OAK_10083 = 10083; + public static final int HAY_BALES_10084 = 10084; + public static final int HAY_BALES_10085 = 10085; + public static final int HAYSTACK_10086 = 10086; + public static final int OMINOUS_FISHING_SPOT = 10087; + public static final int OMINOUS_FISHING_SPOT_10088 = 10088; + public static final int OMINOUS_FISHING_SPOT_10089 = 10089; + public static final int SIGNPOST_10090 = 10090; + public static final int AQUARIUM = 10091; + public static final int NULL_10092 = 10092; + public static final int DAIRY_CHURN = 10093; + public static final int DAIRY_CHURN_10094 = 10094; + public static final int NULL_10095 = 10095; + public static final int NULL_10096 = 10096; + public static final int BLINDWEED_PATCH = 10097; + public static final int BLINDWEED_PATCH_10098 = 10098; + public static final int BLINDWEED_PATCH_10099 = 10099; + public static final int BLINDWEED_PATCH_10100 = 10100; + public static final int BLINDWEED_PATCH_10101 = 10101; + public static final int BLINDWEED_PATCH_10102 = 10102; + public static final int TRASHED_PATCH = 10103; + public static final int NULL_10104 = 10104; + public static final int STAGNANT_LAKE = 10105; + public static final int NULL_10106 = 10106; + public static final int NULL_10107 = 10107; + public static final int NULL_10108 = 10108; + public static final int NULL_10109 = 10109; + public static final int NULL_10110 = 10110; + public static final int NULL_10111 = 10111; + public static final int NULL_10112 = 10112; + public static final int NULL_10113 = 10113; + public static final int NULL_10114 = 10114; + public static final int NULL_10115 = 10115; + public static final int NULL_10116 = 10116; + public static final int NULL_10117 = 10117; + public static final int NULL_10118 = 10118; + public static final int NULL_10119 = 10119; + public static final int NULL_10120 = 10120; + public static final int NULL_10121 = 10121; + public static final int NULL_10122 = 10122; + public static final int NULL_10123 = 10123; + public static final int NULL_10124 = 10124; + public static final int NULL_10125 = 10125; + public static final int NULL_10126 = 10126; + public static final int NULL_10127 = 10127; + public static final int NULL_10128 = 10128; + public static final int CHIMNEY_PIPE = 10129; + public static final int NULL_10130 = 10130; + public static final int NULL_10131 = 10131; + public static final int NULL_10132 = 10132; + public static final int NULL_10133 = 10133; + public static final int NULL_10134 = 10134; + public static final int NULL_10135 = 10135; + public static final int WOODEN_STAIR = 10136; + public static final int WOODEN_STAIR_10137 = 10137; + public static final int ROW_BOAT_10138 = 10138; + public static final int PALM_TREE_10139 = 10139; + public static final int PALM_TREE_10140 = 10140; + public static final int PALM_TREE_10141 = 10141; + public static final int BREWING_CONTROL = 10142; + public static final int BREWING_CONTROL_10143 = 10143; + public static final int BREWING_CONTROL_10144 = 10144; + public static final int BREWING_VAT = 10145; + public static final int BREWING_VAT_10146 = 10146; + public static final int BREWING_VAT_10147 = 10147; + public static final int OUTPUT_TAP = 10148; + public static final int NULL_10149 = 10149; + public static final int NULL_10150 = 10150; + public static final int NULL_10151 = 10151; + public static final int NULL_10152 = 10152; + public static final int NULL_10153 = 10153; + public static final int NULL_10154 = 10154; + public static final int NULL_10155 = 10155; + public static final int NULL_10156 = 10156; + public static final int BARRELS = 10157; + public static final int BREWERS_BARREL = 10158; + public static final int CRATE_10159 = 10159; + public static final int CRATES_10160 = 10160; + public static final int BOXES_10161 = 10161; + public static final int CUPBOARD_10162 = 10162; + public static final int OPEN_CUPBOARD_10163 = 10163; + public static final int NULL_10164 = 10164; + public static final int PRESSURE_LEVER = 10165; + public static final int PRESSURE_LEVER_10166 = 10166; + public static final int LADDER_10167 = 10167; + public static final int LADDER_10168 = 10168; + public static final int NULL_10169 = 10169; + public static final int HOPPER_10170 = 10170; + public static final int PRESSURE_BARREL = 10171; + public static final int GATE_10172 = 10172; + public static final int NULL_10173 = 10173; + public static final int PIRATE_SIGN = 10174; + public static final int SINK_10175 = 10175; + public static final int NULL_10176 = 10176; + public static final int IRON_LADDER_10177 = 10177; + public static final int STANDING_TORCH_10178 = 10178; + public static final int STANDING_TORCH_10179 = 10179; + public static final int NULL_10180 = 10180; + public static final int NULL_10181 = 10181; + public static final int NULL_10182 = 10182; + public static final int NULL_10183 = 10183; + public static final int NULL_10184 = 10184; + public static final int NULL_10185 = 10185; + public static final int NULL_10186 = 10186; + public static final int NULL_10187 = 10187; + public static final int NULL_10188 = 10188; + public static final int NULL_10189 = 10189; + public static final int NULL_10190 = 10190; + public static final int NULL_10191 = 10191; + public static final int NULL_10192 = 10192; + public static final int LADDER_10193 = 10193; + public static final int LADDER_10194 = 10194; + public static final int LADDER_10195 = 10195; + public static final int LADDER_10196 = 10196; + public static final int LADDER_10197 = 10197; + public static final int LADDER_10198 = 10198; + public static final int LADDER_10199 = 10199; + public static final int LADDER_10200 = 10200; + public static final int LADDER_10201 = 10201; + public static final int LADDER_10202 = 10202; + public static final int LADDER_10203 = 10203; + public static final int LADDER_10204 = 10204; + public static final int LADDER_10205 = 10205; + public static final int LADDER_10206 = 10206; + public static final int LADDER_10207 = 10207; + public static final int LADDER_10208 = 10208; + public static final int LADDER_10209 = 10209; + public static final int LADDER_10210 = 10210; + public static final int LADDER_10211 = 10211; + public static final int LADDER_10212 = 10212; + public static final int LADDER_10213 = 10213; + public static final int LADDER_10214 = 10214; + public static final int LADDER_10215 = 10215; + public static final int LADDER_10216 = 10216; + public static final int LADDER_10217 = 10217; + public static final int LADDER_10218 = 10218; + public static final int LADDER_10219 = 10219; + public static final int LADDER_10220 = 10220; + public static final int LADDER_10221 = 10221; + public static final int LADDER_10222 = 10222; + public static final int LADDER_10223 = 10223; + public static final int LADDER_10224 = 10224; + public static final int LADDER_10225 = 10225; + public static final int LADDER_10226 = 10226; + public static final int LADDER_10227 = 10227; + public static final int LADDER_10228 = 10228; + public static final int LADDER_10229 = 10229; + public static final int LADDER_10230 = 10230; + public static final int NULL_10231 = 10231; + public static final int NULL_10232 = 10232; + public static final int NULL_10233 = 10233; + public static final int NULL_10234 = 10234; + public static final int NULL_10235 = 10235; + public static final int NULL_10236 = 10236; + public static final int NULL_10237 = 10237; + public static final int NULL_10238 = 10238; + public static final int NULL_10239 = 10239; + public static final int NULL_10240 = 10240; + public static final int NULL_10241 = 10241; + public static final int NULL_10242 = 10242; + public static final int NULL_10243 = 10243; + public static final int NULL_10244 = 10244; + public static final int NULL_10245 = 10245; + public static final int BROKEN_KILN_10246 = 10246; + public static final int BROKEN_KILN_10247 = 10247; + public static final int BROKEN_KILN_10248 = 10248; + public static final int NULL_10249 = 10249; + public static final int ERIC = 10250; + public static final int PORTAL_10251 = 10251; + public static final int MAGIC_CIRCLE = 10252; + public static final int STANDARD_10253 = 10253; + public static final int NULL_10254 = 10254; + public static final int BED_10255 = 10255; + public static final int SHELF_10256 = 10256; + public static final int SHELF_10257 = 10257; + public static final int TABLE_10258 = 10258; + public static final int CHAIR_10259 = 10259; + public static final int DOOR_10260 = 10260; + public static final int DOOR_10261 = 10261; + public static final int DOOR_10262 = 10262; + public static final int DOOR_10263 = 10263; + public static final int DOOR_10264 = 10264; + public static final int DOOR_10265 = 10265; + public static final int NULL_10266 = 10266; + public static final int SHIELD_DISPLAY = 10267; + public static final int NULL_10268 = 10268; + public static final int LARGE_DISPLAY = 10269; + public static final int NULL_10270 = 10270; + public static final int LARGE_DISPLAY_10271 = 10271; + public static final int NULL_10272 = 10272; + public static final int BOOKCASE_10273 = 10273; + public static final int SACKS_10274 = 10274; + public static final int NULL_10275 = 10275; + public static final int NULL_10276 = 10276; + public static final int NULL_10277 = 10277; + public static final int CATAPULT_10278 = 10278; + public static final int CRATES_10279 = 10279; + public static final int CRATES_10280 = 10280; + public static final int CRATE_10281 = 10281; + public static final int CRATES_10282 = 10282; + public static final int RIVER = 10283; + public static final int NULL_10284 = 10284; + public static final int NULL_10285 = 10285; + public static final int SACK_10286 = 10286; + public static final int STAIRS_10287 = 10287; + public static final int STAIRS_10288 = 10288; + public static final int NULL_10289 = 10289; + public static final int RAT_TRAP = 10290; + public static final int RAT_TRAP_10291 = 10291; + public static final int RAT_TRAP_10292 = 10292; + public static final int BARREL_10293 = 10293; + public static final int BARREL_10294 = 10294; + public static final int BAR_PUMPS_10295 = 10295; + public static final int STOOL_10296 = 10296; + public static final int NULL_10297 = 10297; + public static final int CRATES_10298 = 10298; + public static final int RAT_LEVER = 10299; + public static final int RAT_BARN = 10300; + public static final int RAT_BARREL = 10301; + public static final int RAT_BARREL_10302 = 10302; + public static final int RAT_BARREL_10303 = 10303; + public static final int SACKS_10304 = 10304; + public static final int SACK_10305 = 10305; + public static final int SACK_10306 = 10306; + public static final int LANTERN = 10307; + public static final int LADDER_10308 = 10308; + public static final int LADDER_10309 = 10309; + public static final int RAT_BARREL_10310 = 10310; + public static final int RAT_LEVER_10311 = 10311; + public static final int RAT_BARN_10312 = 10312; + public static final int SACKS_10313 = 10313; + public static final int SACK_10314 = 10314; + public static final int SACK_10315 = 10315; + public static final int RAT_BARREL_10316 = 10316; + public static final int RAT_BARREL_10317 = 10317; + public static final int GATES = 10318; + public static final int TRELLIS_TOP = 10319; + public static final int HOLE_IN_WALL_10320 = 10320; + public static final int MANHOLE_10321 = 10321; + public static final int LADDER_10322 = 10322; + public static final int TRELLIS = 10323; + public static final int TRELLIS_10324 = 10324; + public static final int DOOR_10325 = 10325; + public static final int DOOR_10326 = 10326; + public static final int DOOR_10327 = 10327; + public static final int NULL_10328 = 10328; + public static final int NULL_10329 = 10329; + public static final int NULL_10330 = 10330; + public static final int NULL_10331 = 10331; + public static final int NULL_10332 = 10332; + public static final int NULL_10333 = 10333; + public static final int NULL_10334 = 10334; + public static final int RAT_WALL = 10335; + public static final int RAT_WALL_10336 = 10336; + public static final int RAT_WALL_10337 = 10337; + public static final int RAT_WALL_10338 = 10338; + public static final int NULL_10339 = 10339; + public static final int NULL_10340 = 10340; + public static final int NULL_10341 = 10341; + public static final int RAT_WALL_10342 = 10342; + public static final int RAT_WALL_10343 = 10343; + public static final int RAT_WALL_10344 = 10344; + public static final int RAT_WALL_10345 = 10345; + public static final int RAT_HOLE = 10346; + public static final int RAT_HOLE_10347 = 10347; + public static final int RAT_HOLE_10348 = 10348; + public static final int RAT_HOLE_10349 = 10349; + public static final int RAT_HOLE_10350 = 10350; + public static final int NULL_10351 = 10351; + public static final int NULL_10352 = 10352; + public static final int NULL_10353 = 10353; + public static final int NULL_10354 = 10354; + public static final int NULL_10355 = 10355; + public static final int NULL_10356 = 10356; + public static final int NULL_10357 = 10357; + public static final int BED_10358 = 10358; + public static final int BED_10359 = 10359; + public static final int ROLLED_UP_RUGS_10360 = 10360; + public static final int DOOR_10361 = 10361; + public static final int HAY_BALES_10362 = 10362; + public static final int NULL_10363 = 10363; + public static final int NULL_10364 = 10364; + public static final int NULL_10365 = 10365; + public static final int NULL_10366 = 10366; + public static final int NULL_10367 = 10367; + public static final int NULL_10368 = 10368; + public static final int NULL_10369 = 10369; + public static final int NULL_10370 = 10370; + public static final int BARREL_10371 = 10371; + public static final int NULL_10372 = 10372; + public static final int NULL_10373 = 10373; + public static final int CRATES_10374 = 10374; + public static final int TOOLS_10375 = 10375; + public static final int CHOCICE_STALL = 10376; + public static final int CLAY_OVEN = 10377; + public static final int CRATE_10378 = 10378; + public static final int CRATES_10379 = 10379; + public static final int BOXES_10380 = 10380; + public static final int CRATES_10381 = 10381; + public static final int CUPBOARD_10382 = 10382; + public static final int CUPBOARD_10383 = 10383; + public static final int CUPBOARD_10384 = 10384; + public static final int CUPBOARD_10385 = 10385; + public static final int CUPBOARD_10386 = 10386; + public static final int CUPBOARD_10387 = 10387; + public static final int NULL_10388 = 10388; + public static final int NULL_10389 = 10389; + public static final int NULL_10390 = 10390; + public static final int NULL_10391 = 10391; + public static final int NULL_10392 = 10392; + public static final int NULL_10393 = 10393; + public static final int NULL_10394 = 10394; + public static final int NULL_10395 = 10395; + public static final int NULL_10396 = 10396; + public static final int NULL_10397 = 10397; + public static final int NULL_10398 = 10398; + public static final int NULL_10399 = 10399; + public static final int NULL_10400 = 10400; + public static final int NULL_10401 = 10401; + public static final int WATER_CHANNEL = 10402; + public static final int NULL_10403 = 10403; + public static final int WATER_CHANNEL_10404 = 10404; + public static final int WATER_CHANNEL_10405 = 10405; + public static final int WATER_CHANNEL_10406 = 10406; + public static final int WATER_CHANNEL_10407 = 10407; + public static final int WATER_CHANNEL_10408 = 10408; + public static final int WATER_CHANNEL_10409 = 10409; + public static final int WATER_CHANNEL_10410 = 10410; + public static final int NULL_10411 = 10411; + public static final int HOLE_10412 = 10412; + public static final int BED_10413 = 10413; + public static final int TABLE_10414 = 10414; + public static final int ROLLED_UP_RUGS_10415 = 10415; + public static final int CREVICE_10416 = 10416; + public static final int CAVE_EXIT_10417 = 10417; + public static final int DOOR_10418 = 10418; + public static final int DOOR_10419 = 10419; + public static final int DOOR_10420 = 10420; + public static final int DOOR_10421 = 10421; + public static final int NULL_10422 = 10422; + public static final int DOOR_10423 = 10423; + public static final int NULL_10424 = 10424; + public static final int DOOR_10425 = 10425; + public static final int NULL_10426 = 10426; + public static final int DOOR_10427 = 10427; + public static final int NULL_10428 = 10428; + public static final int DOOR_10429 = 10429; + public static final int NULL_10430 = 10430; + public static final int DOOR_10431 = 10431; + public static final int NULL_10432 = 10432; + public static final int FIRE_10433 = 10433; + public static final int ROPE_10434 = 10434; + public static final int NULL_10435 = 10435; + public static final int FOUNTAIN_10436 = 10436; + public static final int FOUNTAIN_10437 = 10437; + public static final int STATUETTE_PLINTH = 10438; + public static final int ELIDINIS_STATUETTE = 10439; + public static final int ROCK_CHAIR = 10440; + public static final int NULL_10441 = 10441; + public static final int NULL_10442 = 10442; + public static final int NULL_10443 = 10443; + public static final int NULL_10444 = 10444; + public static final int NULL_10445 = 10445; + public static final int NULL_10446 = 10446; + public static final int NULL_10447 = 10447; + public static final int NULL_10448 = 10448; + public static final int NULL_10449 = 10449; + public static final int NULL_10450 = 10450; + public static final int NULL_10451 = 10451; + public static final int NULL_10452 = 10452; + public static final int NULL_10453 = 10453; + public static final int NULL_10454 = 10454; + public static final int NULL_10455 = 10455; + public static final int NULL_10456 = 10456; + public static final int CART_10457 = 10457; + public static final int BARREL_10458 = 10458; + public static final int NULL_10459 = 10459; + public static final int NULL_10460 = 10460; + public static final int NULL_10461 = 10461; + public static final int NULL_10462 = 10462; + public static final int NULL_10463 = 10463; + public static final int NULL_10464 = 10464; + public static final int NULL_10465 = 10465; + public static final int NULL_10466 = 10466; + public static final int NULL_10467 = 10467; + public static final int NULL_10468 = 10468; + public static final int NULL_10469 = 10469; + public static final int NULL_10470 = 10470; + public static final int NULL_10471 = 10471; + public static final int NULL_10472 = 10472; + public static final int NULL_10473 = 10473; + public static final int NULL_10474 = 10474; + public static final int NULL_10475 = 10475; + public static final int NULL_10476 = 10476; + public static final int NULL_10477 = 10477; + public static final int NULL_10478 = 10478; + public static final int NULL_10479 = 10479; + public static final int NULL_10480 = 10480; + public static final int NULL_10481 = 10481; + public static final int NULL_10482 = 10482; + public static final int NULL_10483 = 10483; + public static final int NULL_10484 = 10484; + public static final int COUNTER_10485 = 10485; + public static final int COUNTER_10486 = 10486; + public static final int BLACKSMITHS_TOOLS_10487 = 10487; + public static final int NULL_10488 = 10488; + public static final int ARMOUR_10489 = 10489; + public static final int TABLE_10490 = 10490; + public static final int CHAIR_10491 = 10491; + public static final int CHAIR_10492 = 10492; + public static final int LADDER_10493 = 10493; + public static final int LADDER_10494 = 10494; + public static final int WAREHOUSE_SHELVES_10495 = 10495; + public static final int WAREHOUSE_SHELVES_10496 = 10496; + public static final int WAREHOUSE_SHELVES_10497 = 10497; + public static final int WAREHOUSE_SHELVES_10498 = 10498; + public static final int POTTED_FERN_10499 = 10499; + public static final int POTTED_FERN_10500 = 10500; + public static final int POTTED_FERN_10501 = 10501; + public static final int POTTED_FERN_10502 = 10502; + public static final int PILE_OF_BRICKS_10503 = 10503; + public static final int COOKING_POTS_10504 = 10504; + public static final int COOKING_POTS_10505 = 10505; + public static final int SHELF_10506 = 10506; + public static final int NULL_10507 = 10507; + public static final int STONE_PEW = 10508; + public static final int TABLE_10509 = 10509; + public static final int BOOKCASE_10510 = 10510; + public static final int BED_10511 = 10511; + public static final int BED_10512 = 10512; + public static final int SHELVES_10513 = 10513; + public static final int SHELVES_10514 = 10514; + public static final int NULL_10515 = 10515; + public static final int WHEELBARROW_10516 = 10516; + public static final int BANK_BOOTH_10517 = 10517; + public static final int CLOSED_BANK_BOOTH_10518 = 10518; + public static final int NULL_10519 = 10519; + public static final int NULL_10520 = 10520; + public static final int CHALICE = 10521; + public static final int TAPESTRY = 10522; + public static final int NULL_10523 = 10523; + public static final int NULL_10524 = 10524; + public static final int STAIRCASE_10525 = 10525; + public static final int STAIRCASE_10526 = 10526; + public static final int DOOR_10527 = 10527; + public static final int DOOR_10528 = 10528; + public static final int DOOR_10529 = 10529; + public static final int DOOR_10530 = 10530; + public static final int NULL_10531 = 10531; + public static final int NULL_10532 = 10532; + public static final int NULL_10533 = 10533; + public static final int NULL_10534 = 10534; + public static final int NULL_10535 = 10535; + public static final int NULL_10536 = 10536; + public static final int NULL_10537 = 10537; + public static final int NULL_10538 = 10538; + public static final int NULL_10539 = 10539; + public static final int NULL_10540 = 10540; + public static final int HUMAN_FLAG = 10541; + public static final int HUMAN_FLAG_10542 = 10542; + public static final int DWARF_FLAG = 10543; + public static final int DWARF_FLAG_10544 = 10544; + public static final int ELF_FLAG = 10545; + public static final int ELF_FLAG_10546 = 10546; + public static final int GNOME_FLAG = 10547; + public static final int GNOME_FLAG_10548 = 10548; + public static final int WEREWOLF_FLAG = 10549; + public static final int WEREWOLF_FLAG_10550 = 10550; + public static final int TZHAAR_FLAG = 10551; + public static final int TZHAAR_FLAG_10552 = 10552; + public static final int PORTCULLIS_10553 = 10553; + public static final int LADDER_10554 = 10554; + public static final int NULL_10555 = 10555; + public static final int CHAMPION_STATUE = 10556; + public static final int CHAMPION_STATUE_10557 = 10557; + public static final int TRAPDOOR_10558 = 10558; + public static final int TRAPDOOR_10559 = 10559; + public static final int LADDER_10560 = 10560; + public static final int NULL_10561 = 10561; + public static final int BANK_CHEST_10562 = 10562; + public static final int NULL_10563 = 10563; + public static final int BANNER_10564 = 10564; + public static final int NULL_10565 = 10565; + public static final int BANNER_10566 = 10566; + public static final int NULL_10567 = 10567; + public static final int BANNER_10568 = 10568; + public static final int NULL_10569 = 10569; + public static final int BANNER_10570 = 10570; + public static final int NULL_10571 = 10571; + public static final int BANNER_10572 = 10572; + public static final int NULL_10573 = 10573; + public static final int BANNER_10574 = 10574; + public static final int NULL_10575 = 10575; + public static final int BANNER_10576 = 10576; + public static final int NULL_10577 = 10577; + public static final int BANNER_10578 = 10578; + public static final int NULL_10579 = 10579; + public static final int BANNER_10580 = 10580; + public static final int NULL_10581 = 10581; + public static final int BANNER_10582 = 10582; + public static final int ROCKS_10583 = 10583; + public static final int ROCKS_10584 = 10584; + public static final int ROCKS_10585 = 10585; + public static final int ROCKS_10586 = 10586; + public static final int ROCKS_10587 = 10587; + public static final int NULL_10588 = 10588; + public static final int NULL_10589 = 10589; + public static final int NULL_10590 = 10590; + public static final int NULL_10591 = 10591; + public static final int NULL_10592 = 10592; + public static final int NULL_10593 = 10593; + public static final int NULL_10594 = 10594; + public static final int ICY_CAVERN = 10595; + public static final int ICY_CAVERN_10596 = 10596; + public static final int NULL_10597 = 10597; + public static final int NULL_10598 = 10598; + public static final int NULL_10599 = 10599; + public static final int NULL_10600 = 10600; + public static final int NULL_10601 = 10601; + public static final int NULL_10602 = 10602; + public static final int NULL_10603 = 10603; + public static final int NULL_10604 = 10604; + public static final int DANGER_SIGN_10605 = 10605; + public static final int NULL_10606 = 10606; + public static final int BRONZE_CHEST_10607 = 10607; + public static final int BRONZE_CHEST_10608 = 10608; + public static final int BRONZE_CHEST_10609 = 10609; + public static final int BRONZE_CHEST_10610 = 10610; + public static final int STEEL_CHEST_10611 = 10611; + public static final int STEEL_CHEST_10612 = 10612; + public static final int STEEL_CHEST_10613 = 10613; + public static final int STEEL_CHEST_10614 = 10614; + public static final int STEEL_CHEST_10615 = 10615; + public static final int BLACK_CHEST_10616 = 10616; + public static final int BLACK_CHEST_10617 = 10617; + public static final int BLACK_CHEST_10618 = 10618; + public static final int BLACK_CHEST_10619 = 10619; + public static final int BLACK_CHEST_10620 = 10620; + public static final int SILVER_CHEST_10621 = 10621; + public static final int SILVER_CHEST_10622 = 10622; + public static final int SILVER_CHEST_10623 = 10623; + public static final int SILVER_CHEST_10624 = 10624; + public static final int SILVER_CHEST_10625 = 10625; + public static final int NULL_10626 = 10626; + public static final int NULL_10627 = 10627; + public static final int NULL_10628 = 10628; + public static final int NULL_10629 = 10629; + public static final int NULL_10630 = 10630; + public static final int NULL_10631 = 10631; + public static final int NULL_10632 = 10632; + public static final int NULL_10633 = 10633; + public static final int NULL_10634 = 10634; + public static final int NULL_10635 = 10635; + public static final int NULL_10636 = 10636; + public static final int NULL_10637 = 10637; + public static final int NULL_10638 = 10638; + public static final int ALTAR_10639 = 10639; + public static final int ALTAR_10640 = 10640; + public static final int DORICS_WHETSTONE = 10641; + public static final int NULL_10642 = 10642; + public static final int NULL_10643 = 10643; + public static final int NULL_10644 = 10644; + public static final int NULL_10645 = 10645; + public static final int NULL_10646 = 10646; + public static final int NULL_10647 = 10647; + public static final int NULL_10648 = 10648; + public static final int NULL_10649 = 10649; + public static final int NULL_10650 = 10650; + public static final int NULL_10651 = 10651; + public static final int EVERGREEN_10652 = 10652; + public static final int EVERGREEN_10653 = 10653; + public static final int EVERGREEN_10654 = 10654; + public static final int EVERGREEN_10655 = 10655; + public static final int EVERGREEN_10656 = 10656; + public static final int EVERGREEN_10657 = 10657; + public static final int EVERGREEN_10658 = 10658; + public static final int EVERGREEN_10659 = 10659; + public static final int EVERGREEN_10660 = 10660; + public static final int EVERGREEN_10661 = 10661; + public static final int EVERGREEN_10662 = 10662; + public static final int EVERGREEN_10663 = 10663; + public static final int TREE_10664 = 10664; + public static final int GIFTS = 10665; + public static final int GIFTS_10666 = 10666; + public static final int NULL_10667 = 10667; + public static final int NULL_10668 = 10668; + public static final int NULL_10669 = 10669; + public static final int NULL_10670 = 10670; + public static final int CRATE_10671 = 10671; + public static final int CRATE_10672 = 10672; + public static final int PAINTCANS = 10673; + public static final int PAINTCANS_10674 = 10674; + public static final int PAINTCANS_10675 = 10675; + public static final int WORKBENCH_10676 = 10676; + public static final int WORKBENCH_10677 = 10677; + public static final int WORKBENCH_10678 = 10678; + public static final int DECORATIONS_BOX = 10679; + public static final int DECORATIONS_BOX_10680 = 10680; + public static final int DECORATIONS_BOX_10681 = 10681; + public static final int DECORATIONS_BOX_10682 = 10682; + public static final int DECORATIONS_BOX_10683 = 10683; + public static final int DECORATIONS_BOX_10684 = 10684; + public static final int DECORATIONS_BOX_10685 = 10685; + public static final int PUPPET_HEADS = 10686; + public static final int PUPPET_TORSOS = 10687; + public static final int PUPPET_ARMS = 10688; + public static final int PUPPET_LEGS = 10689; + public static final int PUPPET_HEADS_10690 = 10690; + public static final int PUPPET_TORSOS_10691 = 10691; + public static final int PUPPET_ARMS_10692 = 10692; + public static final int PUPPET_LEGS_10693 = 10693; + public static final int PUPPET_HEADS_10694 = 10694; + public static final int PUPPET_TORSOS_10695 = 10695; + public static final int PUPPET_ARMS_10696 = 10696; + public static final int PUPPET_LEGS_10697 = 10697; + public static final int TRAPDOOR_10698 = 10698; + public static final int TRAPDOOR_STEPS = 10699; + public static final int NULL_10700 = 10700; + public static final int CRATE_10701 = 10701; + public static final int CRATE_10702 = 10702; + public static final int CRATE_10703 = 10703; + public static final int CRATE_10704 = 10704; + public static final int CRATES_10705 = 10705; + public static final int LARGE_BOX = 10706; + public static final int LADDER_10707 = 10707; + public static final int LADDER_10708 = 10708; + public static final int NULL_10709 = 10709; + public static final int PAINT_POTS = 10710; + public static final int NULL_10711 = 10711; + public static final int NULL_10712 = 10712; + public static final int NULL_10713 = 10713; + public static final int NULL_10714 = 10714; + public static final int NULL_10715 = 10715; + public static final int NULL_10716 = 10716; + public static final int NULL_10717 = 10717; + public static final int NULL_10718 = 10718; + public static final int NULL_10719 = 10719; + public static final int NULL_10720 = 10720; + public static final int DOORWAY_10721 = 10721; + public static final int OLD_BOOKSHELF_10722 = 10722; + public static final int OLD_BOOKSHELF_10723 = 10723; + public static final int CHAIR_10724 = 10724; + public static final int BONES_10725 = 10725; + public static final int BONES_10726 = 10726; + public static final int BONES_10727 = 10727; + public static final int BONES_10728 = 10728; + public static final int NULL_10729 = 10729; + public static final int NULL_10730 = 10730; + public static final int NULL_10731 = 10731; + public static final int NULL_10732 = 10732; + public static final int PORTAL_10733 = 10733; + public static final int COIN_COLLECTOR = 10734; + public static final int FOOD_CHUTE = 10735; + public static final int STATUE_10736 = 10736; + public static final int STATUE_10737 = 10737; + public static final int STATUE_10738 = 10738; + public static final int STATUE_10739 = 10739; + public static final int NULL_10740 = 10740; + public static final int NULL_10741 = 10741; + public static final int NULL_10742 = 10742; + public static final int NULL_10743 = 10743; + public static final int NULL_10744 = 10744; + public static final int NULL_10745 = 10745; + public static final int NULL_10746 = 10746; + public static final int NULL_10747 = 10747; + public static final int NULL_10748 = 10748; + public static final int NULL_10749 = 10749; + public static final int NULL_10750 = 10750; + public static final int NULL_10751 = 10751; + public static final int NULL_10752 = 10752; + public static final int NULL_10753 = 10753; + public static final int NULL_10754 = 10754; + public static final int NULL_10755 = 10755; + public static final int NULL_10756 = 10756; + public static final int NULL_10757 = 10757; + public static final int NULL_10758 = 10758; + public static final int NULL_10759 = 10759; + public static final int NULL_10760 = 10760; + public static final int NULL_10761 = 10761; + public static final int NULL_10762 = 10762; + public static final int NULL_10763 = 10763; + public static final int NULL_10764 = 10764; + public static final int NULL_10765 = 10765; + public static final int NULL_10766 = 10766; + public static final int NULL_10767 = 10767; + public static final int BANK = 10768; + public static final int NULL_10769 = 10769; + public static final int NULL_10770 = 10770; + public static final int STAIRS_10771 = 10771; + public static final int STAIRS_10772 = 10772; + public static final int STAIRS_10773 = 10773; + public static final int STAIRS_10774 = 10774; + public static final int STAIRS_10775 = 10775; + public static final int STAIRS_10776 = 10776; + public static final int NULL_10777 = 10777; + public static final int TELEKINETIC_TELEPORT = 10778; + public static final int ENCHANTERS_TELEPORT = 10779; + public static final int ALCHEMISTS_TELEPORT = 10780; + public static final int GRAVEYARD_TELEPORT = 10781; + public static final int EXIT_TELEPORT = 10782; + public static final int CUPBOARD_10783 = 10783; + public static final int CUPBOARD_10784 = 10784; + public static final int CUPBOARD_10785 = 10785; + public static final int CUPBOARD_10786 = 10786; + public static final int CUPBOARD_10787 = 10787; + public static final int CUPBOARD_10788 = 10788; + public static final int CUPBOARD_10789 = 10789; + public static final int CUPBOARD_10790 = 10790; + public static final int CUPBOARD_10791 = 10791; + public static final int CUPBOARD_10792 = 10792; + public static final int CUPBOARD_10793 = 10793; + public static final int CUPBOARD_10794 = 10794; + public static final int CUPBOARD_10795 = 10795; + public static final int CUPBOARD_10796 = 10796; + public static final int CUPBOARD_10797 = 10797; + public static final int CUPBOARD_10798 = 10798; + public static final int CUBE_PILE = 10799; + public static final int CYLINDER_PILE = 10800; + public static final int ICOSAHEDRON_PILE = 10801; + public static final int PENTAMID_PILE = 10802; + public static final int HOLE_10803 = 10803; + public static final int TRAPDOOR_10804 = 10804; + public static final int SANDYS_DESK = 10805; + public static final int NULL_10806 = 10806; + public static final int SANDYS_COFFEE_MUG = 10807; + public static final int TABLE_10808 = 10808; + public static final int WASTE_PAPER_BIN = 10809; + public static final int NULL_10810 = 10810; + public static final int NULL_10811 = 10811; + public static final int NULL_10812 = 10812; + public static final int COUNTER_10813 = 10813; + public static final int SANDPIT = 10814; + public static final int NULL_10815 = 10815; + public static final int NULL_10816 = 10816; + public static final int LEVER_10817 = 10817; + public static final int LOCKED_DOOR = 10818; + public static final int LOCKED_DOOR_10819 = 10819; + public static final int ENERGY_BARRIER_10820 = 10820; + public static final int NULL_10821 = 10821; + public static final int NULL_10822 = 10822; + public static final int NULL_10823 = 10823; + public static final int FIREPLACE_10824 = 10824; + public static final int NULL_10825 = 10825; + public static final int NULL_10826 = 10826; + public static final int FOUNTAIN_10827 = 10827; + public static final int TRAWLER_NET_10828 = 10828; + public static final int TRAWLER_NET_10829 = 10829; + public static final int TRAWLER_NET_10830 = 10830; + public static final int TRAWLER_NET_10831 = 10831; + public static final int TRAWLER_NET_10832 = 10832; + public static final int TRAWLER_NET_10833 = 10833; + public static final int TRAWLER_NET_10834 = 10834; + public static final int TRAWLER_NET_10835 = 10835; + public static final int TRAWLER_NET_10836 = 10836; + public static final int NULL_10837 = 10837; + public static final int NULL_10838 = 10838; + public static final int NULL_10839 = 10839; + public static final int NULL_10840 = 10840; + public static final int NULL_10841 = 10841; + public static final int NULL_10842 = 10842; + public static final int NULL_10843 = 10843; + public static final int NULL_10844 = 10844; + public static final int NULL_10845 = 10845; + public static final int NULL_10846 = 10846; + public static final int NULL_10847 = 10847; + public static final int DOORWAY_10848 = 10848; + public static final int DOORWAY_10849 = 10849; + public static final int NULL_10850 = 10850; + public static final int CLIMBING_ROCKS_10851 = 10851; + public static final int CLIMBING_ROCKS_10852 = 10852; + public static final int NULL_10853 = 10853; + public static final int NULL_10854 = 10854; + public static final int DOORWAY_10855 = 10855; + public static final int DOORWAY_10856 = 10856; + public static final int STAIRS_10857 = 10857; + public static final int STAIRS_10858 = 10858; + public static final int GAP_10859 = 10859; + public static final int LEDGE_10860 = 10860; + public static final int GAP_10861 = 10861; + public static final int GAP_10862 = 10862; + public static final int GAP_10863 = 10863; + public static final int GAP_10864 = 10864; + public static final int LOW_WALL_10865 = 10865; + public static final int NULL_10866 = 10866; + public static final int PLANK_10867 = 10867; + public static final int PLANK_10868 = 10868; + public static final int NULL_10869 = 10869; + public static final int NULL_10870 = 10870; + public static final int NULL_10871 = 10871; + public static final int NULL_10872 = 10872; + public static final int NULL_10873 = 10873; + public static final int NULL_10874 = 10874; + public static final int STONE_BLOCK = 10875; + public static final int STONE_BLOCK_10876 = 10876; + public static final int NULL_10877 = 10877; + public static final int NULL_10878 = 10878; + public static final int NULL_10879 = 10879; + public static final int NULL_10880 = 10880; + public static final int NULL_10881 = 10881; + public static final int GAP_10882 = 10882; + public static final int GAP_10883 = 10883; + public static final int GAP_10884 = 10884; + public static final int GAP_10885 = 10885; + public static final int LEDGE_10886 = 10886; + public static final int LEDGE_10887 = 10887; + public static final int LEDGE_10888 = 10888; + public static final int LEDGE_10889 = 10889; + public static final int NULL_10890 = 10890; + public static final int NULL_10891 = 10891; + public static final int NULL_10892 = 10892; + public static final int NULL_10893 = 10893; + public static final int NULL_10894 = 10894; + public static final int NULL_10895 = 10895; + public static final int NULL_10896 = 10896; + public static final int NULL_10897 = 10897; + public static final int NULL_10898 = 10898; + public static final int NULL_10899 = 10899; + public static final int NULL_10900 = 10900; + public static final int NULL_10901 = 10901; + public static final int NULL_10902 = 10902; + public static final int NULL_10903 = 10903; + public static final int NULL_10904 = 10904; + public static final int NULL_10905 = 10905; + public static final int NULL_10906 = 10906; + public static final int NULL_10907 = 10907; + public static final int NULL_10908 = 10908; + public static final int NULL_10909 = 10909; + public static final int NULL_10910 = 10910; + public static final int NULL_10911 = 10911; + public static final int NULL_10912 = 10912; + public static final int NULL_10913 = 10913; + public static final int NULL_10914 = 10914; + public static final int NULL_10915 = 10915; + public static final int NULL_10916 = 10916; + public static final int NULL_10917 = 10917; + public static final int NULL_10918 = 10918; + public static final int NULL_10919 = 10919; + public static final int NULL_10920 = 10920; + public static final int NULL_10921 = 10921; + public static final int NULL_10922 = 10922; + public static final int NULL_10923 = 10923; + public static final int NULL_10924 = 10924; + public static final int NULL_10925 = 10925; + public static final int NULL_10926 = 10926; + public static final int NULL_10927 = 10927; + public static final int NULL_10928 = 10928; + public static final int NULL_10929 = 10929; + public static final int NULL_10930 = 10930; + public static final int NULL_10931 = 10931; + public static final int NULL_10932 = 10932; + public static final int NULL_10933 = 10933; + public static final int NULL_10934 = 10934; + public static final int NULL_10935 = 10935; + public static final int NULL_10936 = 10936; + public static final int NULL_10937 = 10937; + public static final int NULL_10938 = 10938; + public static final int NULL_10939 = 10939; + public static final int NULL_10940 = 10940; + public static final int NULL_10941 = 10941; + public static final int NULL_10942 = 10942; + public static final int NULL_10943 = 10943; + public static final int ROCKS_10944 = 10944; + public static final int ROCKS_10945 = 10945; + public static final int ROCKS_10946 = 10946; + public static final int ROCKS_10947 = 10947; + public static final int ROCKS_10948 = 10948; + public static final int ROCKS_10949 = 10949; + public static final int SAND_PILE = 10950; + public static final int NULL_10951 = 10951; + public static final int NULL_10952 = 10952; + public static final int HOLE_10953 = 10953; + public static final int FLAT_GROUND = 10954; + public static final int HEADLESS_STATUE = 10955; + public static final int HEADLESS_STATUE_10956 = 10956; + public static final int HEADLESS_STATUE_10957 = 10957; + public static final int LAZIMS_STATUE = 10958; + public static final int ZAMORAKS_STATUE = 10959; + public static final int ICTHLARINS_STATUE = 10960; + public static final int CAMELS_STATUE = 10961; + public static final int STATUE_10962 = 10962; + public static final int STATUE_10963 = 10963; + public static final int STATUE_10964 = 10964; + public static final int STATUE_10965 = 10965; + public static final int STATUE_10966 = 10966; + public static final int STATUE_10967 = 10967; + public static final int STATUE_10968 = 10968; + public static final int STATUE_10969 = 10969; + public static final int NULL_10970 = 10970; + public static final int FALLEN_STATUE = 10971; + public static final int FALLEN_STATUE_10972 = 10972; + public static final int FALLEN_STATUE_10973 = 10973; + public static final int FALLEN_STATUE_10974 = 10974; + public static final int FALLEN_STATUE_10975 = 10975; + public static final int FALLEN_STATUE_10976 = 10976; + public static final int FALLEN_STATUE_10977 = 10977; + public static final int FALLEN_STATUE_10978 = 10978; + public static final int FALLEN_STATUE_10979 = 10979; + public static final int FALLEN_STATUE_10980 = 10980; + public static final int FALLEN_STATUE_10981 = 10981; + public static final int FALLEN_STATUE_10982 = 10982; + public static final int FALLEN_STATUE_10983 = 10983; + public static final int FALLEN_STATUE_10984 = 10984; + public static final int FALLEN_STATUE_10985 = 10985; + public static final int FALLEN_STATUE_10986 = 10986; + public static final int NULL_10987 = 10987; + public static final int PEDESTAL = 10988; + public static final int PEDESTAL_10989 = 10989; + public static final int PEDESTAL_10990 = 10990; + public static final int PEDESTAL_10991 = 10991; + public static final int PEDESTAL_10992 = 10992; + public static final int PEDESTAL_10993 = 10993; + public static final int PEDESTAL_10994 = 10994; + public static final int PEDESTAL_10995 = 10995; + public static final int PEDESTAL_10996 = 10996; + public static final int PEDESTAL_10997 = 10997; + public static final int PEDESTAL_10998 = 10998; + public static final int PEDESTAL_10999 = 10999; + public static final int PEDESTAL_11000 = 11000; + public static final int PEDESTAL_11001 = 11001; + public static final int PEDESTAL_11002 = 11002; + public static final int PEDESTAL_11003 = 11003; + public static final int PEDESTAL_11004 = 11004; + public static final int MAGIC_BARRIER = 11005; + public static final int NULL_11006 = 11006; + public static final int FOUNTAIN_11007 = 11007; + public static final int NULL_11008 = 11008; + public static final int FURNACE_11009 = 11009; + public static final int FURNACE_11010 = 11010; + public static final int NULL_11011 = 11011; + public static final int NULL_11012 = 11012; + public static final int NULL_11013 = 11013; + public static final int NULL_11014 = 11014; + public static final int NULL_11015 = 11015; + public static final int NULL_11016 = 11016; + public static final int BRAZIER = 11017; + public static final int BRAZIER_11018 = 11018; + public static final int BRAZIER_11019 = 11019; + public static final int BRAZIER_11020 = 11020; + public static final int BRAZIER_11021 = 11021; + public static final int BRAZIER_11022 = 11022; + public static final int BRAZIER_11023 = 11023; + public static final int BRAZIER_11024 = 11024; + public static final int BRAZIER_11025 = 11025; + public static final int NULL_11026 = 11026; + public static final int NULL_11027 = 11027; + public static final int WALL_11028 = 11028; + public static final int WALL_11029 = 11029; + public static final int WALL_11030 = 11030; + public static final int WALL_11031 = 11031; + public static final int WALL_11032 = 11032; + public static final int WALL_11033 = 11033; + public static final int WALL_11034 = 11034; + public static final int WALL_11035 = 11035; + public static final int WALL_11036 = 11036; + public static final int WALL_11037 = 11037; + public static final int WALL_11038 = 11038; + public static final int WALL_11039 = 11039; + public static final int RUBBLE_11040 = 11040; + public static final int LADDER_11041 = 11041; + public static final int LADDER_11042 = 11042; + public static final int STONE_LADDER = 11043; + public static final int STONE_LADDER_11044 = 11044; + public static final int NULL_11045 = 11045; + public static final int NULL_11046 = 11046; + public static final int NULL_11047 = 11047; + public static final int NULL_11048 = 11048; + public static final int BOULDER_11049 = 11049; + public static final int SECRET_ENTRANCE = 11050; + public static final int DOOR_11051 = 11051; + public static final int DOOR_11052 = 11052; + public static final int DOOR_11053 = 11053; + public static final int DOOR_11054 = 11054; + public static final int DOOR_11055 = 11055; + public static final int DOOR_11056 = 11056; + public static final int DOOR_11057 = 11057; + public static final int DOOR_11058 = 11058; + public static final int PEDESTAL_11059 = 11059; + public static final int PEDESTAL_11060 = 11060; + public static final int PEDESTAL_11061 = 11061; + public static final int PEDESTAL_11062 = 11062; + public static final int PEDESTAL_11063 = 11063; + public static final int DOOR_11064 = 11064; + public static final int DOOR_11065 = 11065; + public static final int DOOR_11066 = 11066; + public static final int DOOR_11067 = 11067; + public static final int DOOR_11068 = 11068; + public static final int DOOR_11069 = 11069; + public static final int DOOR_11070 = 11070; + public static final int DOOR_11071 = 11071; + public static final int RUINS = 11072; + public static final int RUINS_11073 = 11073; + public static final int RUINS_11074 = 11074; + public static final int RUINS_11075 = 11075; + public static final int NULL_11076 = 11076; + public static final int NULL_11077 = 11077; + public static final int NULL_11078 = 11078; + public static final int LIGHT = 11079; + public static final int SCAFFOLD_11080 = 11080; + public static final int LADDER_11081 = 11081; + public static final int WHEELBARROW_11082 = 11082; + public static final int NULL_11083 = 11083; + public static final int NULL_11084 = 11084; + public static final int NULL_11085 = 11085; + public static final int NULL_11086 = 11086; + public static final int NULL_11087 = 11087; + public static final int NULL_11088 = 11088; + public static final int NULL_11089 = 11089; + public static final int NULL_11090 = 11090; + public static final int NULL_11091 = 11091; + public static final int NULL_11092 = 11092; + public static final int NULL_11093 = 11093; + public static final int NULL_11094 = 11094; + public static final int NULL_11095 = 11095; + public static final int NULL_11096 = 11096; + public static final int ROCK_11097 = 11097; + public static final int ROCK_11098 = 11098; + public static final int NULL_11099 = 11099; + public static final int NULL_11100 = 11100; + public static final int NULL_11101 = 11101; + public static final int NULL_11102 = 11102; + public static final int NULL_11103 = 11103; + public static final int NULL_11104 = 11104; + public static final int NULL_11105 = 11105; + public static final int NULL_11106 = 11106; + public static final int NULL_11107 = 11107; + public static final int NULL_11108 = 11108; + public static final int NULL_11109 = 11109; + public static final int NULL_11110 = 11110; + public static final int NULL_11111 = 11111; + public static final int DEAD_TREE_11112 = 11112; + public static final int BUSH_11113 = 11113; + public static final int NULL_11114 = 11114; + public static final int NULL_11115 = 11115; + public static final int NULL_11116 = 11116; + public static final int NULL_11117 = 11117; + public static final int NULL_11118 = 11118; + public static final int NULL_11119 = 11119; + public static final int NULL_11120 = 11120; + public static final int NULL_11121 = 11121; + public static final int NULL_11122 = 11122; + public static final int NULL_11123 = 11123; + public static final int NULL_11124 = 11124; + public static final int NULL_11125 = 11125; + public static final int NULL_11126 = 11126; + public static final int NULL_11127 = 11127; + public static final int NULL_11128 = 11128; + public static final int NULL_11129 = 11129; + public static final int NULL_11130 = 11130; + public static final int NULL_11131 = 11131; + public static final int NULL_11132 = 11132; + public static final int NULL_11133 = 11133; + public static final int NULL_11134 = 11134; + public static final int NULL_11135 = 11135; + public static final int NULL_11136 = 11136; + public static final int NULL_11137 = 11137; + public static final int NULL_11138 = 11138; + public static final int NULL_11139 = 11139; + public static final int NULL_11140 = 11140; + public static final int MAGIC_SPELL = 11141; + public static final int NULL_11142 = 11142; + public static final int NULL_11143 = 11143; + public static final int NULL_11144 = 11144; + public static final int NULL_11145 = 11145; + public static final int NULL_11146 = 11146; + public static final int NULL_11147 = 11147; + public static final int NULL_11148 = 11148; + public static final int NULL_11149 = 11149; + public static final int NULL_11150 = 11150; + public static final int DOOR_11151 = 11151; + public static final int DOOR_11152 = 11152; + public static final int PEDESTAL_11153 = 11153; + public static final int NULL_11154 = 11154; + public static final int NULL_11155 = 11155; + public static final int NULL_11156 = 11156; + public static final int NULL_11157 = 11157; + public static final int NULL_11158 = 11158; + public static final int NULL_11159 = 11159; + public static final int NULL_11160 = 11160; + public static final int NULL_11161 = 11161; + public static final int LOADER = 11162; + public static final int BONE_GRINDER_11163 = 11163; + public static final int BIN = 11164; + public static final int ROCKS_11165 = 11165; + public static final int ROCKS_11166 = 11166; + public static final int ROCKS_11167 = 11167; + public static final int ROCKS_11168 = 11168; + public static final int ROCKS_11169 = 11169; + public static final int ROCKS_11170 = 11170; + public static final int ROCKS_11171 = 11171; + public static final int ROCKS_11172 = 11172; + public static final int ROCKS_11173 = 11173; + public static final int ROCKS_11174 = 11174; + public static final int ROCKS_11175 = 11175; + public static final int ROCKS_11176 = 11176; + public static final int ROCKS_11177 = 11177; + public static final int ROCKS_11178 = 11178; + public static final int ROCKS_11179 = 11179; + public static final int ROCKS_11180 = 11180; + public static final int ROCKS_11181 = 11181; + public static final int ROCKS_11182 = 11182; + public static final int ROCKS_11183 = 11183; + public static final int ROCKS_11184 = 11184; + public static final int ROCKS_11185 = 11185; + public static final int ROCKS_11186 = 11186; + public static final int ROCKS_11187 = 11187; + public static final int ROCKS_11188 = 11188; + public static final int ROCKS_11189 = 11189; + public static final int ROCKS_11190 = 11190; + public static final int ROCKS_11191 = 11191; + public static final int ROCKS_11192 = 11192; + public static final int ROCKS_11193 = 11193; + public static final int ROCKS_11194 = 11194; + public static final int ROCKS_11195 = 11195; + public static final int DOOR_11196 = 11196; + public static final int DOOR_11197 = 11197; + public static final int LADDER_11198 = 11198; + public static final int LADDER_11199 = 11199; + public static final int LADDER_11200 = 11200; + public static final int LADDER_11201 = 11201; + public static final int TABLE_11202 = 11202; + public static final int TABLE_11203 = 11203; + public static final int PLAQUE_11204 = 11204; + public static final int PLAQUE_11205 = 11205; + public static final int PLAQUE_11206 = 11206; + public static final int PLAQUE_11207 = 11207; + public static final int COFFIN_11208 = 11208; + public static final int GANGPLANK_11209 = 11209; + public static final int GANGPLANK_11210 = 11210; + public static final int GANGPLANK_11211 = 11211; + public static final int GANGPLANK_11212 = 11212; + public static final int NULL_11213 = 11213; + public static final int CANNON_11214 = 11214; + public static final int BROKEN_CANNON = 11215; + public static final int BROKEN_CANNON_11216 = 11216; + public static final int CANNON_11217 = 11217; + public static final int NULL_11218 = 11218; + public static final int CANNON_11219 = 11219; + public static final int BROKEN_CANNON_11220 = 11220; + public static final int NULL_11221 = 11221; + public static final int NULL_11222 = 11222; + public static final int NULL_11223 = 11223; + public static final int NULL_11224 = 11224; + public static final int NULL_11225 = 11225; + public static final int NULL_11226 = 11226; + public static final int NULL_11227 = 11227; + public static final int CRATE_11228 = 11228; + public static final int CRATE_11229 = 11229; + public static final int NULL_11230 = 11230; + public static final int CLOSED_CHEST_11231 = 11231; + public static final int OPEN_CHEST_11232 = 11232; + public static final int NULL_11233 = 11233; + public static final int BARREL_11234 = 11234; + public static final int BARREL_11235 = 11235; + public static final int PLUNDER_STORAGE = 11236; + public static final int NULL_11237 = 11237; + public static final int POWDER_BARREL = 11238; + public static final int BARREL_11239 = 11239; + public static final int BARREL_11240 = 11240; + public static final int NULL_11241 = 11241; + public static final int NULL_11242 = 11242; + public static final int NULL_11243 = 11243; + public static final int CLIMBING_NET = 11244; + public static final int POWDER_BARREL_11245 = 11245; + public static final int REPAIR_LOCKER = 11246; + public static final int REPAIR_LOCKER_11247 = 11247; + public static final int GUN_LOCKER = 11248; + public static final int GUN_LOCKER_11249 = 11249; + public static final int NULL_11250 = 11250; + public static final int NULL_11251 = 11251; + public static final int NULL_11252 = 11252; + public static final int NULL_11253 = 11253; + public static final int NULL_11254 = 11254; + public static final int NULL_11255 = 11255; + public static final int NULL_11256 = 11256; + public static final int NULL_11257 = 11257; + public static final int NULL_11258 = 11258; + public static final int NULL_11259 = 11259; + public static final int NULL_11260 = 11260; + public static final int NULL_11261 = 11261; + public static final int NULL_11262 = 11262; + public static final int NULL_11263 = 11263; + public static final int NULL_11264 = 11264; + public static final int NULL_11265 = 11265; + public static final int NULL_11266 = 11266; + public static final int NULL_11267 = 11267; + public static final int NULL_11268 = 11268; + public static final int NULL_11269 = 11269; + public static final int NULL_11270 = 11270; + public static final int NULL_11271 = 11271; + public static final int NULL_11272 = 11272; + public static final int NULL_11273 = 11273; + public static final int NULL_11274 = 11274; + public static final int NULL_11275 = 11275; + public static final int MAST_11276 = 11276; + public static final int MAST_11277 = 11277; + public static final int MAST_11278 = 11278; + public static final int MAST_11279 = 11279; + public static final int SAIL_11280 = 11280; + public static final int SAIL_11281 = 11281; + public static final int SAIL_11282 = 11282; + public static final int SAIL_11283 = 11283; + public static final int NULL_11284 = 11284; + public static final int NULL_11285 = 11285; + public static final int NULL_11286 = 11286; + public static final int FIGUREHEAD_11287 = 11287; + public static final int NULL_11288 = 11288; + public static final int SHIPS_LADDER_11289 = 11289; + public static final int SHIPS_LADDER_11290 = 11290; + public static final int SAIL_11291 = 11291; + public static final int HOISTED_SAIL_11292 = 11292; + public static final int HOISTED_SAIL_11293 = 11293; + public static final int HOISTED_SAIL_11294 = 11294; + public static final int NULL_11295 = 11295; + public static final int NULL_11296 = 11296; + public static final int HOISTED_SAIL_11297 = 11297; + public static final int HOISTED_SAIL_11298 = 11298; + public static final int HOISTED_SAIL_11299 = 11299; + public static final int HOISTED_SAIL_11300 = 11300; + public static final int HOISTED_SAIL_11301 = 11301; + public static final int SAIL_11302 = 11302; + public static final int HOISTED_SAIL_11303 = 11303; + public static final int HOISTED_SAIL_11304 = 11304; + public static final int BARREL_11305 = 11305; + public static final int SHIPS_WHEEL_11306 = 11306; + public static final int ANCHOR_11307 = 11307; + public static final int SHIPS_LADDER_11308 = 11308; + public static final int SHIPS_LADDER_11309 = 11309; + public static final int CLIMBING_NET_11310 = 11310; + public static final int ROPE_11311 = 11311; + public static final int CANNON_11312 = 11312; + public static final int CANNON_11313 = 11313; + public static final int CANNON_11314 = 11314; + public static final int BARREL_11315 = 11315; + public static final int FUSE = 11316; + public static final int SHIP_HULL = 11317; + public static final int SHIP_HULL_11318 = 11318; + public static final int SHIP_HULL_11319 = 11319; + public static final int BARREL_11320 = 11320; + public static final int NULL_11321 = 11321; + public static final int BARREL_11322 = 11322; + public static final int CHEST_11323 = 11323; + public static final int STRANGE_ROCK = 11324; + public static final int NULL_11325 = 11325; + public static final int NULL_11326 = 11326; + public static final int NULL_11327 = 11327; + public static final int NULL_11328 = 11328; + public static final int NULL_11329 = 11329; + public static final int CRATE_11330 = 11330; + public static final int CRATE_11331 = 11331; + public static final int GATE_11332 = 11332; + public static final int GATE_11333 = 11333; + public static final int NULL_11334 = 11334; + public static final int BAMBOO_DESK_11335 = 11335; + public static final int BAMBOO_DESK_11336 = 11336; + public static final int BAMBOO_DESK_11337 = 11337; + public static final int BANK_BOOTH_11338 = 11338; + public static final int OPEN_CHEST_11339 = 11339; + public static final int NULL_11340 = 11340; + public static final int CLOSED_CHEST_11341 = 11341; + public static final int REPAIR_LOCKER_11342 = 11342; + public static final int GUN_LOCKER_11343 = 11343; + public static final int NULL_11344 = 11344; + public static final int NULL_11345 = 11345; + public static final int NULL_11346 = 11346; + public static final int NULL_11347 = 11347; + public static final int NULL_11348 = 11348; + public static final int NULL_11349 = 11349; + public static final int NULL_11350 = 11350; + public static final int NULL_11351 = 11351; + public static final int NULL_11352 = 11352; + public static final int NULL_11353 = 11353; + public static final int INTERDIMENSIONAL_RIFT = 11354; + public static final int NULL_11355 = 11355; + public static final int PORTAL_HOME = 11356; + public static final int PORTAL_MACHINE = 11357; + public static final int STAIRCASE_11358 = 11358; + public static final int NULL_11359 = 11359; + public static final int PIE_STALL = 11360; + public static final int RAW_CHOMPY_BIRD = 11361; + public static final int RAW_RABBIT = 11362; + public static final int IRON_SPIT = 11363; + public static final int DECORATIVE_PILLAR = 11364; + public static final int DECORATIVE_PILLAR_11365 = 11365; + public static final int DECORATIVE_PILLAR_11366 = 11366; + public static final int DECORATIVE_PILLAR_11367 = 11367; + public static final int NULL_11368 = 11368; + public static final int NULL_11369 = 11369; + public static final int NULL_11370 = 11370; + public static final int NULL_11371 = 11371; + public static final int NULL_11372 = 11372; + public static final int NULL_11373 = 11373; + public static final int NULL_11374 = 11374; + public static final int NULL_11375 = 11375; + public static final int NULL_11376 = 11376; + public static final int NULL_11377 = 11377; + public static final int NULL_11378 = 11378; + public static final int LARGE_DOOR_11379 = 11379; + public static final int LARGE_DOOR_11380 = 11380; + public static final int LARGE_DOOR_11381 = 11381; + public static final int LARGE_DOOR_11382 = 11382; + public static final int DECORATIVE_PILLAR_11383 = 11383; + public static final int DECORATIVE_PILLAR_11384 = 11384; + public static final int DECORATIVE_PILLAR_11385 = 11385; + public static final int DECORATIVE_PILLAR_11386 = 11386; + public static final int DECORATIVE_PILLAR_11387 = 11387; + public static final int DECORATIVE_PILLAR_11388 = 11388; + public static final int DECORATIVE_PILLAR_11389 = 11389; + public static final int DECORATIVE_PILLAR_11390 = 11390; + public static final int DECORATIVE_PILLAR_11391 = 11391; + public static final int DECORATIVE_PILLAR_11392 = 11392; + public static final int DECORATIVE_PILLAR_11393 = 11393; + public static final int DECORATIVE_PILLAR_11394 = 11394; + public static final int PILLAR_CANDLE = 11395; + public static final int MELTED_CANDLE = 11396; + public static final int PILLAR_CANDLE_FLAME = 11397; + public static final int INTERFACE_SURROUND = 11398; + public static final int INTERFACE_BUTTON_UP = 11399; + public static final int INTERFACE_BUTTON_DOWN = 11400; + public static final int INTERFACE_BUTTON_LEFT = 11401; + public static final int INTERFACE_BUTTON_RIGHT = 11402; + public static final int INTERFACE_BUTTON_IGNITE = 11403; + public static final int FIRE_11404 = 11404; + public static final int FIRE_11405 = 11405; + public static final int FIRE_11406 = 11406; + public static final int NULL_11407 = 11407; + public static final int NULL_11408 = 11408; + public static final int PIPE_WITH_ROPE = 11409; + public static final int PIPE_11410 = 11410; + public static final int ROPE_11411 = 11411; + public static final int STRAIGHT_ROPE = 11412; + public static final int ROPE_11413 = 11413; + public static final int ROPE_11414 = 11414; + public static final int ROPE_11415 = 11415; + public static final int ROPE_11416 = 11416; + public static final int DUG_HOLE = 11417; + public static final int MUD_PATCH_11418 = 11418; + public static final int NULL_11419 = 11419; + public static final int NULL_11420 = 11420; + public static final int NULL_11421 = 11421; + public static final int NULL_11422 = 11422; + public static final int GRILL_11423 = 11423; + public static final int ROCKS_11424 = 11424; + public static final int ROCKS_11425 = 11425; + public static final int ROCKS_11426 = 11426; + public static final int ROCKS_11427 = 11427; + public static final int ROCKS_11428 = 11428; + public static final int ROCKS_11429 = 11429; + public static final int ROCKS_11430 = 11430; + public static final int ROCKS_11431 = 11431; + public static final int ROCKS_11432 = 11432; + public static final int ROCKS_11433 = 11433; + public static final int ROCKS_11434 = 11434; + public static final int ROCKS_11435 = 11435; + public static final int ROCKS_11436 = 11436; + public static final int ROCKS_11437 = 11437; + public static final int ROCKS_11438 = 11438; + public static final int ROCKS_11439 = 11439; + public static final int ROCKS_11440 = 11440; + public static final int ROCKS_11441 = 11441; + public static final int ROCKS_11442 = 11442; + public static final int ROCKS_11443 = 11443; + public static final int ROCKS_11444 = 11444; + public static final int NULL_11445 = 11445; + public static final int NULL_11446 = 11446; + public static final int NULL_11447 = 11447; + public static final int NULL_11448 = 11448; + public static final int DOOR_11449 = 11449; + public static final int DOOR_11450 = 11450; + public static final int LEVER_A = 11451; + public static final int LEVER_A_11452 = 11452; + public static final int LEVER_B = 11453; + public static final int LEVER_B_11454 = 11454; + public static final int LEVER_C = 11455; + public static final int LEVER_C_11456 = 11456; + public static final int LEVER_D = 11457; + public static final int LEVER_D_11458 = 11458; + public static final int LEVER_E = 11459; + public static final int LEVER_E_11460 = 11460; + public static final int LEVER_F = 11461; + public static final int LEVER_F_11462 = 11462; + public static final int NULL_11463 = 11463; + public static final int NULL_11464 = 11464; + public static final int NULL_11465 = 11465; + public static final int NULL_11466 = 11466; + public static final int NULL_11467 = 11467; + public static final int LANTERN_11468 = 11468; + public static final int SPOOKY_PICTURE_11469 = 11469; + public static final int DOOR_11470 = 11470; + public static final int DOOR_11471 = 11471; + public static final int CANDLES_11472 = 11472; + public static final int CANDLES_11473 = 11473; + public static final int NULL_11474 = 11474; + public static final int NULL_11475 = 11475; + public static final int NULL_11476 = 11476; + public static final int NULL_11477 = 11477; + public static final int NULL_11478 = 11478; + public static final int NULL_11479 = 11479; + public static final int NULL_11480 = 11480; + public static final int NULL_11481 = 11481; + public static final int NULL_11482 = 11482; + public static final int DOOR_11483 = 11483; + public static final int BARREL_11484 = 11484; + public static final int CRATE_11485 = 11485; + public static final int CRATES_11486 = 11486; + public static final int BOXES_11487 = 11487; + public static final int CRATES_11488 = 11488; + public static final int CHAIR_11489 = 11489; + public static final int CHAIR_11490 = 11490; + public static final int LARGE_TABLE_11491 = 11491; + public static final int SMASHED_CHAIR_11492 = 11492; + public static final int GRANDFATHER_CLOCK_11493 = 11493; + public static final int CABBAGE_11494 = 11494; + public static final int GALLOWS_11495 = 11495; + public static final int CHAIR_11496 = 11496; + public static final int SPOOKY_PICTURE_11497 = 11497; + public static final int STAIRCASE_11498 = 11498; + public static final int STAIRCASE_11499 = 11499; + public static final int TABLE_11500 = 11500; + public static final int TABLE_11501 = 11501; + public static final int TABLE_11502 = 11502; + public static final int TABLE_11503 = 11503; + public static final int TABLE_11504 = 11504; + public static final int NULL_11505 = 11505; + public static final int NULL_11506 = 11506; + public static final int NULL_11507 = 11507; + public static final int NULL_11508 = 11508; + public static final int NULL_11509 = 11509; + public static final int DEAD_TREE_11510 = 11510; + public static final int STAIRCASE_11511 = 11511; + public static final int NULL_11512 = 11512; + public static final int NULL_11513 = 11513; + public static final int NULL_11514 = 11514; + public static final int NULL_11515 = 11515; + public static final int NULL_11516 = 11516; + public static final int NULL_11517 = 11517; + public static final int NULL_11518 = 11518; + public static final int NULL_11519 = 11519; + public static final int NULL_11520 = 11520; + public static final int NULL_11521 = 11521; + public static final int NULL_11522 = 11522; + public static final int NULL_11523 = 11523; + public static final int NULL_11524 = 11524; + public static final int NULL_11525 = 11525; + public static final int NULL_11526 = 11526; + public static final int NULL_11527 = 11527; + public static final int NULL_11528 = 11528; + public static final int NULL_11529 = 11529; + public static final int NULL_11530 = 11530; + public static final int NULL_11531 = 11531; + public static final int NULL_11532 = 11532; + public static final int NULL_11533 = 11533; + public static final int NULL_11534 = 11534; + public static final int NULL_11535 = 11535; + public static final int NULL_11536 = 11536; + public static final int NULL_11537 = 11537; + public static final int NULL_11538 = 11538; + public static final int NULL_11539 = 11539; + public static final int NULL_11540 = 11540; + public static final int NULL_11541 = 11541; + public static final int NULL_11542 = 11542; + public static final int NULL_11543 = 11543; + public static final int NULL_11544 = 11544; + public static final int NULL_11545 = 11545; + public static final int STRANGE_MACHINE_11546 = 11546; + public static final int STRANGE_MACHINE_11547 = 11547; + public static final int STRANGE_MACHINE_11548 = 11548; + public static final int STRANGE_MACHINE_11549 = 11549; + public static final int STRANGE_MACHINE_11550 = 11550; + public static final int TABLE_11551 = 11551; + public static final int ROCKS_11552 = 11552; + public static final int ROCKS_11553 = 11553; + public static final int ROCKS_11554 = 11554; + public static final int ROCKS_11555 = 11555; + public static final int ROCKS_11556 = 11556; + public static final int ROCKS_11557 = 11557; + public static final int NULL_11558 = 11558; + public static final int NULL_11559 = 11559; + public static final int NULL_11560 = 11560; + public static final int NULL_11561 = 11561; + public static final int NULL_11562 = 11562; + public static final int NULL_11563 = 11563; + public static final int NULL_11564 = 11564; + public static final int NULL_11565 = 11565; + public static final int NULL_11566 = 11566; + public static final int NULL_11567 = 11567; + public static final int NULL_11568 = 11568; + public static final int NULL_11569 = 11569; + public static final int NULL_11570 = 11570; + public static final int NULL_11571 = 11571; + public static final int NULL_11572 = 11572; + public static final int NULL_11573 = 11573; + public static final int NULL_11574 = 11574; + public static final int NULL_11575 = 11575; + public static final int NULL_11576 = 11576; + public static final int NULL_11577 = 11577; + public static final int NULL_11578 = 11578; + public static final int NULL_11579 = 11579; + public static final int NULL_11580 = 11580; + public static final int NULL_11581 = 11581; + public static final int NULL_11582 = 11582; + public static final int NULL_11583 = 11583; + public static final int NULL_11584 = 11584; + public static final int NULL_11585 = 11585; + public static final int NULL_11586 = 11586; + public static final int NULL_11587 = 11587; + public static final int NULL_11588 = 11588; + public static final int BARREL_11589 = 11589; + public static final int BARREL_11590 = 11590; + public static final int NULL_11591 = 11591; + public static final int NULL_11592 = 11592; + public static final int NULL_11593 = 11593; + public static final int NULL_11594 = 11594; + public static final int NULL_11595 = 11595; + public static final int NULL_11596 = 11596; + public static final int NULL_11597 = 11597; + public static final int NULL_11598 = 11598; + public static final int CRATE_11599 = 11599; + public static final int CRATES_11600 = 11600; + public static final int POTTERY_OVEN_11601 = 11601; + public static final int NULL_11602 = 11602; + public static final int STOOL_11603 = 11603; + public static final int NULL_11604 = 11604; + public static final int NULL_11605 = 11605; + public static final int STANDING_TORCH_11606 = 11606; + public static final int NULL_11607 = 11607; + public static final int NULL_11608 = 11608; + public static final int NULL_11609 = 11609; + public static final int NULL_11610 = 11610; + public static final int NULL_11611 = 11611; + public static final int NULL_11612 = 11612; + public static final int NULL_11613 = 11613; + public static final int STANDARD_11614 = 11614; + public static final int STANDARD_11615 = 11615; + public static final int DOOR_11616 = 11616; + public static final int DOOR_11617 = 11617; + public static final int NULL_11618 = 11618; + public static final int TABLE_11619 = 11619; + public static final int LONGHALL_DOOR = 11620; + public static final int LONGHALL_DOOR_11621 = 11621; + public static final int NULL_11622 = 11622; + public static final int NULL_11623 = 11623; + public static final int LONGHALL_DOOR_11624 = 11624; + public static final int LONGHALL_DOOR_11625 = 11625; + public static final int COUNTER_11626 = 11626; + public static final int SMALL_TABLE_11627 = 11627; + public static final int NULL_11628 = 11628; + public static final int ROCK_11629 = 11629; + public static final int STONE_SIGNPOST = 11630; + public static final int STONE_SIGNPOST_11631 = 11631; + public static final int NULL_11632 = 11632; + public static final int NULL_11633 = 11633; + public static final int ROCK_11634 = 11634; + public static final int ROCK_11635 = 11635; + public static final int ROCK_11636 = 11636; + public static final int ROCK_11637 = 11637; + public static final int ROCK_11638 = 11638; + public static final int ROCK_11639 = 11639; + public static final int CITY_GATE_11640 = 11640; + public static final int CITY_GATE_11641 = 11641; + public static final int CITY_GATE_11642 = 11642; + public static final int CITY_GATE_11643 = 11643; + public static final int CITY_GATE_11644 = 11644; + public static final int CITY_GATE_11645 = 11645; + public static final int CITY_GATE_11646 = 11646; + public static final int CITY_GATE_11647 = 11647; + public static final int CITY_GATE_11648 = 11648; + public static final int CITY_GATE_11649 = 11649; + public static final int CITY_GATE_11650 = 11650; + public static final int CITY_GATE_11651 = 11651; + public static final int NULL_11652 = 11652; + public static final int NULL_11653 = 11653; + public static final int NULL_11654 = 11654; + public static final int NULL_11655 = 11655; + public static final int NULL_11656 = 11656; + public static final int RACK_11657 = 11657; + public static final int SHELVES_11658 = 11658; + public static final int BARREL_11659 = 11659; + public static final int TABLE_11660 = 11660; + public static final int WATERPUMP_11661 = 11661; + public static final int SHOP_COUNTER = 11662; + public static final int CABINET_11663 = 11663; + public static final int NULL_11664 = 11664; + public static final int NULL_11665 = 11665; + public static final int FURNACE_11666 = 11666; + public static final int NULL_11667 = 11667; + public static final int NULL_11668 = 11668; + public static final int NULL_11669 = 11669; + public static final int NULL_11670 = 11670; + public static final int NULL_11671 = 11671; + public static final int NULL_11672 = 11672; + public static final int NULL_11673 = 11673; + public static final int SIGN_11674 = 11674; + public static final int BANNER_11675 = 11675; + public static final int NULL_11676 = 11676; + public static final int TREADMILL = 11677; + public static final int SPINNING_POLE = 11678; + public static final int NULL_11679 = 11679; + public static final int NULL_11680 = 11680; + public static final int NULL_11681 = 11681; + public static final int TABLE_11682 = 11682; + public static final int NULL_11683 = 11683; + public static final int NULL_11684 = 11684; + public static final int NULL_11685 = 11685; + public static final int NULL_11686 = 11686; + public static final int NULL_11687 = 11687; + public static final int NULL_11688 = 11688; + public static final int NULL_11689 = 11689; + public static final int NULL_11690 = 11690; + public static final int NULL_11691 = 11691; + public static final int NULL_11692 = 11692; + public static final int STATUE_11693 = 11693; + public static final int STATUE_11694 = 11694; + public static final int STATUE_11695 = 11695; + public static final int STATUE_11696 = 11696; + public static final int STATUE_11697 = 11697; + public static final int OLD_BOOKSHELF_11698 = 11698; + public static final int FLAGPOLE_11699 = 11699; + public static final int STATUE_OF_SARADOMIN_11700 = 11700; + public static final int STATUE_OF_SARADOMIN_11701 = 11701; + public static final int NULL_11702 = 11702; + public static final int NULL_11703 = 11703; + public static final int NULL_11704 = 11704; + public static final int NULL_11705 = 11705; + public static final int ROCKERY_11706 = 11706; + public static final int DOOR_11707 = 11707; + public static final int DOOR_11708 = 11708; + public static final int DOOR_11709 = 11709; + public static final int DOOR_11710 = 11710; + public static final int DOOR_11711 = 11711; + public static final int DOOR_11712 = 11712; + public static final int DOOR_11713 = 11713; + public static final int DOOR_11714 = 11714; + public static final int DOOR_11715 = 11715; + public static final int CASTLE_DOOR = 11716; + public static final int CASTLE_DOOR_11717 = 11717; + public static final int CASTLE_DOOR_11718 = 11718; + public static final int CASTLE_DOOR_11719 = 11719; + public static final int CASTLE_DOOR_11720 = 11720; + public static final int CASTLE_DOOR_11721 = 11721; + public static final int CASTLE_DOOR_11722 = 11722; + public static final int CASTLE_DOOR_11723 = 11723; + public static final int STAIRCASE_11724 = 11724; + public static final int STAIRCASE_11725 = 11725; + public static final int NULL_11726 = 11726; + public static final int LADDER_11727 = 11727; + public static final int LADDER_11728 = 11728; + public static final int STAIRCASE_11729 = 11729; + public static final int NULL_11730 = 11730; + public static final int STAIRCASE_11731 = 11731; + public static final int STAIRCASE_11732 = 11732; + public static final int STAIRCASE_11733 = 11733; + public static final int STAIRCASE_11734 = 11734; + public static final int STAIRCASE_11735 = 11735; + public static final int STAIRCASE_11736 = 11736; + public static final int STAIRCASE_11737 = 11737; + public static final int LARGE_TABLE_11738 = 11738; + public static final int LADDER_11739 = 11739; + public static final int LADDER_11740 = 11740; + public static final int LADDER_11741 = 11741; + public static final int LADDER_11742 = 11742; + public static final int TABLE_11743 = 11743; + public static final int BOXES_11744 = 11744; + public static final int CRATES_11745 = 11745; + public static final int STOOL_11746 = 11746; + public static final int BED_11747 = 11747; + public static final int TABLE_11748 = 11748; + public static final int TABLE_11749 = 11749; + public static final int NULL_11750 = 11750; + public static final int NULL_11751 = 11751; + public static final int NULL_11752 = 11752; + public static final int SUIT_OF_ARMOUR_11753 = 11753; + public static final int NULL_11754 = 11754; + public static final int NOTICE_BOARD = 11755; + public static final int NOTICE_BOARD_11756 = 11756; + public static final int CHEST_11757 = 11757; + public static final int BANK_BOOTH_11758 = 11758; + public static final int FOUNTAIN_11759 = 11759; + public static final int CHAIR_11760 = 11760; + public static final int STATUE_11761 = 11761; + public static final int BAR_PUMPS_11762 = 11762; + public static final int BAR_11763 = 11763; + public static final int PICNIC_TABLE = 11764; + public static final int BARREL_11765 = 11765; + public static final int BARREL_11766 = 11766; + public static final int BOOKCASE_11767 = 11767; + public static final int SHELVES_11768 = 11768; + public static final int SHELVES_11769 = 11769; + public static final int SHELVES_11770 = 11770; + public static final int SHELVES_11771 = 11771; + public static final int NULL_11772 = 11772; + public static final int NULL_11773 = 11773; + public static final int NULL_11774 = 11774; + public static final int NULL_11775 = 11775; + public static final int NULL_11776 = 11776; + public static final int NULL_11777 = 11777; + public static final int NULL_11778 = 11778; + public static final int NULL_11779 = 11779; + public static final int NULL_11780 = 11780; + public static final int NULL_11781 = 11781; + public static final int STANDING_STONE = 11782; + public static final int STANDING_STONE_11783 = 11783; + public static final int STANDING_STONE_11784 = 11784; + public static final int STANDING_STONE_11785 = 11785; + public static final int NULL_11786 = 11786; + public static final int NULL_11787 = 11787; + public static final int NULL_11788 = 11788; + public static final int ROCKS_11789 = 11789; + public static final int ROCKS_11790 = 11790; + public static final int ROCKS_11791 = 11791; + public static final int NULL_11792 = 11792; + public static final int WELL_11793 = 11793; + public static final int CHAIR_11794 = 11794; + public static final int CHAIR_11795 = 11795; + public static final int MIRROR_11796 = 11796; + public static final int NULL_11797 = 11797; + public static final int NULL_11798 = 11798; + public static final int HEATER = 11799; + public static final int NULL_11800 = 11800; + public static final int NULL_11801 = 11801; + public static final int NULL_11802 = 11802; + public static final int NULL_11803 = 11803; + public static final int NULL_11804 = 11804; + public static final int NULL_11805 = 11805; + public static final int NULL_11806 = 11806; + public static final int NULL_11807 = 11807; + public static final int NULL_11808 = 11808; + public static final int NULL_11809 = 11809; + public static final int NULL_11810 = 11810; + public static final int NULL_11811 = 11811; + public static final int BATHTUB = 11812; + public static final int WORK_BENCH = 11813; + public static final int WORK_BENCH_11814 = 11814; + public static final int NULL_11815 = 11815; + public static final int NULL_11816 = 11816; + public static final int NULL_11817 = 11817; + public static final int NULL_11818 = 11818; + public static final int NULL_11819 = 11819; + public static final int NULL_11820 = 11820; + public static final int NULL_11821 = 11821; + public static final int NULL_11822 = 11822; + public static final int NULL_11823 = 11823; + public static final int NULL_11824 = 11824; + public static final int NULL_11825 = 11825; + public static final int NULL_11826 = 11826; + public static final int NULL_11827 = 11827; + public static final int NULL_11828 = 11828; + public static final int NULL_11829 = 11829; + public static final int NULL_11830 = 11830; + public static final int NULL_11831 = 11831; + public static final int NULL_11832 = 11832; + public static final int NULL_11833 = 11833; + public static final int NULL_11834 = 11834; + public static final int NULL_11835 = 11835; + public static final int NULL_11836 = 11836; + public static final int NULL_11837 = 11837; + public static final int NULL_11838 = 11838; + public static final int NULL_11839 = 11839; + public static final int BRICKS_11840 = 11840; + public static final int BRICKS_11841 = 11841; + public static final int NULL_11842 = 11842; + public static final int NULL_11843 = 11843; + public static final int CRUMBLING_WALL_11844 = 11844; + public static final int NULL_11845 = 11845; + public static final int NULL_11846 = 11846; + public static final int NULL_11847 = 11847; + public static final int BOW_CABINET_11848 = 11848; + public static final int TABLE_11849 = 11849; + public static final int NULL_11850 = 11850; + public static final int NULL_11851 = 11851; + public static final int NULL_11852 = 11852; + public static final int NULL_11853 = 11853; + public static final int NULL_11854 = 11854; + public static final int NULL_11855 = 11855; + public static final int NULL_11856 = 11856; + public static final int NULL_11857 = 11857; + public static final int NULL_11858 = 11858; + public static final int NULL_11859 = 11859; + public static final int NULL_11860 = 11860; + public static final int STANDARD_11861 = 11861; + public static final int DWARF_BATH = 11862; + public static final int WINCH_11863 = 11863; + public static final int NULL_11864 = 11864; + public static final int NULL_11865 = 11865; + public static final int NULL_11866 = 11866; + public static final int TRAPDOOR_11867 = 11867; + public static final int DWARF_MULTICANNON_11868 = 11868; + public static final int MULTICANNON_PARTS = 11869; + public static final int MULTICANNON_PARTS_11870 = 11870; + public static final int NULL_11871 = 11871; + public static final int NULL_11872 = 11872; + public static final int MULTICANNON_PARTS_11873 = 11873; + public static final int MULTICANNON_PARTS_11874 = 11874; + public static final int CANARY = 11875; + public static final int BLACKSMITHS_TOOLS_11876 = 11876; + public static final int BED_11877 = 11877; + public static final int NULL_11878 = 11878; + public static final int NULL_11879 = 11879; + public static final int NULL_11880 = 11880; + public static final int NULL_11881 = 11881; + public static final int NULL_11882 = 11882; + public static final int NULL_11883 = 11883; + public static final int NULL_11884 = 11884; + public static final int NULL_11885 = 11885; + public static final int NULL_11886 = 11886; + public static final int NULL_11887 = 11887; + public static final int STAIRCASE_11888 = 11888; + public static final int STAIRCASE_11889 = 11889; + public static final int STAIRCASE_11890 = 11890; + public static final int SINISTER_BARREL = 11891; + public static final int TABLE_11892 = 11892; + public static final int BOOKCASE_11893 = 11893; + public static final int BOOKCASE_11894 = 11894; + public static final int THORNS = 11895; + public static final int THORNS_11896 = 11896; + public static final int THORNS_11897 = 11897; + public static final int NULL_11898 = 11898; + public static final int NULL_11899 = 11899; + public static final int NULL_11900 = 11900; + public static final int NULL_11901 = 11901; + public static final int NULL_11902 = 11902; + public static final int NULL_11903 = 11903; + public static final int NULL_11904 = 11904; + public static final int NULL_11905 = 11905; + public static final int NULL_11906 = 11906; + public static final int NULL_11907 = 11907; + public static final int NULL_11908 = 11908; + public static final int NULL_11909 = 11909; + public static final int CREATURE = 11910; + public static final int BUSH_11911 = 11911; + public static final int BUSH_11912 = 11912; + public static final int BUSH_11913 = 11913; + public static final int BUSH_11914 = 11914; + public static final int ROCKS_11915 = 11915; + public static final int ROCKS_11916 = 11916; + public static final int ROCKS_11917 = 11917; + public static final int ROCKS_11918 = 11918; + public static final int ROCKS_11919 = 11919; + public static final int ROCKS_11920 = 11920; + public static final int ROCKS_11921 = 11921; + public static final int ROCKS_11922 = 11922; + public static final int ROCKS_11923 = 11923; + public static final int ROCKS_11924 = 11924; + public static final int ROCKS_11925 = 11925; + public static final int ROCKS_11926 = 11926; + public static final int ROCKS_11927 = 11927; + public static final int ROCKS_11928 = 11928; + public static final int ROCKS_11929 = 11929; + public static final int ROCKS_11930 = 11930; + public static final int ROCKS_11931 = 11931; + public static final int ROCKS_11932 = 11932; + public static final int ROCKS_11933 = 11933; + public static final int ROCKS_11934 = 11934; + public static final int ROCKS_11935 = 11935; + public static final int ROCKS_11936 = 11936; + public static final int ROCKS_11937 = 11937; + public static final int ROCKS_11938 = 11938; + public static final int ROCKS_11939 = 11939; + public static final int ROCKS_11940 = 11940; + public static final int ROCKS_11941 = 11941; + public static final int ROCKS_11942 = 11942; + public static final int ROCKS_11943 = 11943; + public static final int ROCKS_11944 = 11944; + public static final int ROCKS_11945 = 11945; + public static final int ROCKS_11946 = 11946; + public static final int ROCKS_11947 = 11947; + public static final int ROCKS_11948 = 11948; + public static final int ROCKS_11949 = 11949; + public static final int ROCKS_11950 = 11950; + public static final int ROCKS_11951 = 11951; + public static final int ROCKS_11952 = 11952; + public static final int ROCKS_11953 = 11953; + public static final int ROCKS_11954 = 11954; + public static final int ROCKS_11955 = 11955; + public static final int ROCKS_11956 = 11956; + public static final int ROCKS_11957 = 11957; + public static final int ROCKS_11958 = 11958; + public static final int ROCKS_11959 = 11959; + public static final int ROCKS_11960 = 11960; + public static final int ROCKS_11961 = 11961; + public static final int ROCKS_11962 = 11962; + public static final int ROCKS_11963 = 11963; + public static final int ROCKS_11964 = 11964; + public static final int ROCKS_11965 = 11965; + public static final int NULL_11966 = 11966; + public static final int NULL_11967 = 11967; + public static final int NULL_11968 = 11968; + public static final int NULL_11969 = 11969; + public static final int NULL_11970 = 11970; + public static final int NULL_11971 = 11971; + public static final int NULL_11972 = 11972; + public static final int NULL_11973 = 11973; + public static final int NULL_11974 = 11974; + public static final int NULL_11975 = 11975; + public static final int NULL_11976 = 11976; + public static final int NULL_11977 = 11977; + public static final int NULL_11978 = 11978; + public static final int NULL_11979 = 11979; + public static final int NULL_11980 = 11980; + public static final int NULL_11981 = 11981; + public static final int NULL_11982 = 11982; + public static final int NULL_11983 = 11983; + public static final int NULL_11984 = 11984; + public static final int NULL_11985 = 11985; + public static final int NULL_11986 = 11986; + public static final int NULL_11987 = 11987; + public static final int NULL_11988 = 11988; + public static final int NULL_11989 = 11989; + public static final int NULL_11990 = 11990; + public static final int NULL_11991 = 11991; + public static final int NULL_11992 = 11992; + public static final int DOOR_11993 = 11993; + public static final int DOOR_11994 = 11994; + public static final int NULL_11995 = 11995; + public static final int NULL_11996 = 11996; + public static final int NULL_11997 = 11997; + public static final int NULL_11998 = 11998; + public static final int NULL_11999 = 11999; + public static final int NULL_12000 = 12000; + public static final int NULL_12001 = 12001; + public static final int NULL_12002 = 12002; + public static final int FAIRY_RING = 12003; + public static final int A_GAP_THROUGH_THE_WALL = 12004; + public static final int MUSHROOM_TORCH = 12005; + public static final int MUSHROOM_TORCH_12006 = 12006; + public static final int NULL_12007 = 12007; + public static final int NULL_12008 = 12008; + public static final int NULL_12009 = 12009; + public static final int NULL_12010 = 12010; + public static final int NULL_12011 = 12011; + public static final int NULL_12012 = 12012; + public static final int NULL_12013 = 12013; + public static final int NULL_12014 = 12014; + public static final int NULL_12015 = 12015; + public static final int NULL_12016 = 12016; + public static final int NULL_12017 = 12017; + public static final int NULL_12018 = 12018; + public static final int NULL_12019 = 12019; + public static final int NULL_12020 = 12020; + public static final int NULL_12021 = 12021; + public static final int NULL_12022 = 12022; + public static final int NULL_12023 = 12023; + public static final int NULL_12024 = 12024; + public static final int NULL_12025 = 12025; + public static final int NULL_12026 = 12026; + public static final int NULL_12027 = 12027; + public static final int NULL_12028 = 12028; + public static final int NULL_12029 = 12029; + public static final int NULL_12030 = 12030; + public static final int NULL_12031 = 12031; + public static final int NULL_12032 = 12032; + public static final int NULL_12033 = 12033; + public static final int NULL_12034 = 12034; + public static final int NULL_12035 = 12035; + public static final int NULL_12036 = 12036; + public static final int NULL_12037 = 12037; + public static final int NULL_12038 = 12038; + public static final int NULL_12039 = 12039; + public static final int NULL_12040 = 12040; + public static final int A_GAP_THROUGH_THE_WALL_12041 = 12041; + public static final int A_WALL = 12042; + public static final int A_WALL_12043 = 12043; + public static final int NULL_12044 = 12044; + public static final int MAGIC_DOOR_12045 = 12045; + public static final int MAGIC_DOOR_12046 = 12046; + public static final int MAGIC_DOOR_12047 = 12047; + public static final int MAGIC_DOOR_12048 = 12048; + public static final int NULL_12049 = 12049; + public static final int NULL_12050 = 12050; + public static final int NULL_12051 = 12051; + public static final int NULL_12052 = 12052; + public static final int NULL_12053 = 12053; + public static final int NULL_12054 = 12054; + public static final int NULL_12055 = 12055; + public static final int NULL_12056 = 12056; + public static final int NULL_12057 = 12057; + public static final int NULL_12058 = 12058; + public static final int NULL_12059 = 12059; + public static final int POTION_SHELVES = 12060; + public static final int POTION_SHELVES_12061 = 12061; + public static final int POTION_SHELF = 12062; + public static final int POTION_SHELF_12063 = 12063; + public static final int HEALING_CERTIFICATE = 12064; + public static final int CERTIFICATE_OF_HEALING = 12065; + public static final int NULL_12066 = 12066; + public static final int NULL_12067 = 12067; + public static final int FAIRY_WORKBENCH = 12068; + public static final int NULL_12069 = 12069; + public static final int NULL_12070 = 12070; + public static final int NULL_12071 = 12071; + public static final int NULL_12072 = 12072; + public static final int NULL_12073 = 12073; + public static final int NULL_12074 = 12074; + public static final int NULL_12075 = 12075; + public static final int NULL_12076 = 12076; + public static final int NULL_12077 = 12077; + public static final int NULL_12078 = 12078; + public static final int NULL_12079 = 12079; + public static final int NULL_12080 = 12080; + public static final int NULL_12081 = 12081; + public static final int NULL_12082 = 12082; + public static final int NULL_12083 = 12083; + public static final int NULL_12084 = 12084; + public static final int NULL_12085 = 12085; + public static final int NULL_12086 = 12086; + public static final int NULL_12087 = 12087; + public static final int NULL_12088 = 12088; + public static final int FAIRY_FOUNTAIN = 12089; + public static final int FAIRY_QUEEN = 12090; + public static final int FAIRY_QUEEN_THRONE = 12091; + public static final int GODFATHER_THRONE = 12092; + public static final int CHICKEN_SHRINE = 12093; + public static final int FAIRY_RING_12094 = 12094; + public static final int FAIRY_RING_12095 = 12095; + public static final int NULL_12096 = 12096; + public static final int NULL_12097 = 12097; + public static final int NULL_12098 = 12098; + public static final int NULL_12099 = 12099; + public static final int FURNACE_12100 = 12100; + public static final int NULL_12101 = 12101; + public static final int RANGE_12102 = 12102; + public static final int CRATE_12103 = 12103; + public static final int CRATES_12104 = 12104; + public static final int CRATE_12105 = 12105; + public static final int TABLE_12106 = 12106; + public static final int BARREL_12107 = 12107; + public static final int TABLE_12108 = 12108; + public static final int WALL_12109 = 12109; + public static final int GAG_BANNER = 12110; + public static final int DAIRY_COW_12111 = 12111; + public static final int LADDER_12112 = 12112; + public static final int LADDER_12113 = 12113; + public static final int COW_WHEEL = 12114; + public static final int SACKS_12115 = 12115; + public static final int NULL_12116 = 12116; + public static final int NULL_12117 = 12117; + public static final int NULL_12118 = 12118; + public static final int NULL_12119 = 12119; + public static final int CLOSED_CHEST_12120 = 12120; + public static final int OPEN_CHEST_12121 = 12121; + public static final int WATER_TROUGH = 12122; + public static final int NULL_12123 = 12123; + public static final int NULL_12124 = 12124; + public static final int GRAVESTONE_12125 = 12125; + public static final int ODD_MARKINGS_12126 = 12126; + public static final int JUTTING_WALL_12127 = 12127; + public static final int NULL_12128 = 12128; + public static final int NULL_12129 = 12129; + public static final int NULL_12130 = 12130; + public static final int TOMB_12131 = 12131; + public static final int TOMB_12132 = 12132; + public static final int JULIET = 12133; + public static final int COFFIN_12134 = 12134; + public static final int COFFIN_12135 = 12135; + public static final int NULL_12136 = 12136; + public static final int CADAVA_BUSH = 12137; + public static final int BUSH_12138 = 12138; + public static final int ROSEBUSH_12139 = 12139; + public static final int CHURCH_PEW_12140 = 12140; + public static final int NULL_12141 = 12141; + public static final int NULL_12142 = 12142; + public static final int NULL_12143 = 12143; + public static final int CANOE_STATION = 12144; + public static final int CANOE_STATION_12145 = 12145; + public static final int CANOE_STATION_12146 = 12146; + public static final int CANOE_STATION_12147 = 12147; + public static final int CANOE_STATION_12148 = 12148; + public static final int CANOE_STATION_12149 = 12149; + public static final int CANOE_STATION_12150 = 12150; + public static final int CANOE_STATION_12151 = 12151; + public static final int CANOE_STATION_12152 = 12152; + public static final int CANOE_STATION_12153 = 12153; + public static final int CANOE_STATION_12154 = 12154; + public static final int CANOE_STATION_12155 = 12155; + public static final int CANOE_STATION_12156 = 12156; + public static final int CANOE_STATION_12157 = 12157; + public static final int CANOE_STATION_12158 = 12158; + public static final int A_SINKING_CANOE = 12159; + public static final int A_SINKING_CANOE_12160 = 12160; + public static final int A_SINKING_CANOE_12161 = 12161; + public static final int A_SINKING_CANOE_12162 = 12162; + public static final int NULL_12163 = 12163; + public static final int NULL_12164 = 12164; + public static final int NULL_12165 = 12165; + public static final int NULL_12166 = 12166; + public static final int NULL_12167 = 12167; + public static final int CANOE = 12168; + public static final int CANOE_12169 = 12169; + public static final int CANOE_12170 = 12170; + public static final int CANOE_12171 = 12171; + public static final int NULL_12172 = 12172; + public static final int NULL_12173 = 12173; + public static final int NULL_12174 = 12174; + public static final int NULL_12175 = 12175; + public static final int NULL_12176 = 12176; + public static final int NULL_12177 = 12177; + public static final int NULL_12178 = 12178; + public static final int NULL_12179 = 12179; + public static final int NULL_12180 = 12180; + public static final int NULL_12181 = 12181; + public static final int NULL_12182 = 12182; + public static final int NULL_12183 = 12183; + public static final int NULL_12184 = 12184; + public static final int NULL_12185 = 12185; + public static final int NULL_12186 = 12186; + public static final int NULL_12187 = 12187; + public static final int NULL_12188 = 12188; + public static final int NULL_12189 = 12189; + public static final int NULL_12190 = 12190; + public static final int NULL_12191 = 12191; + public static final int NULL_12192 = 12192; + public static final int NULL_12193 = 12193; + public static final int NULL_12194 = 12194; + public static final int NULL_12195 = 12195; + public static final int NULL_12196 = 12196; + public static final int NULL_12197 = 12197; + public static final int NULL_12198 = 12198; + public static final int NULL_12199 = 12199; + public static final int NULL_12200 = 12200; + public static final int WELL_12201 = 12201; + public static final int MOLE_HILL = 12202; + public static final int LIGHT_12203 = 12203; + public static final int NULL_12204 = 12204; + public static final int NULL_12205 = 12205; + public static final int NULL_12206 = 12206; + public static final int NULL_12207 = 12207; + public static final int NULL_12208 = 12208; + public static final int NULL_12209 = 12209; + public static final int NULL_12210 = 12210; + public static final int NULL_12211 = 12211; + public static final int NULL_12212 = 12212; + public static final int NULL_12213 = 12213; + public static final int NULL_12214 = 12214; + public static final int NULL_12215 = 12215; + public static final int NULL_12216 = 12216; + public static final int NULL_12217 = 12217; + public static final int NULL_12218 = 12218; + public static final int NULL_12219 = 12219; + public static final int NULL_12220 = 12220; + public static final int NULL_12221 = 12221; + public static final int NULL_12222 = 12222; + public static final int NULL_12223 = 12223; + public static final int NULL_12224 = 12224; + public static final int NULL_12225 = 12225; + public static final int NULL_12226 = 12226; + public static final int NULL_12227 = 12227; + public static final int NULL_12228 = 12228; + public static final int NULL_12229 = 12229; + public static final int ROPE_12230 = 12230; + public static final int NULL_12231 = 12231; + public static final int STORE_CUBOARD = 12232; + public static final int COCKATRICE_HEAD = 12233; + public static final int BASILISK_HEAD = 12234; + public static final int KURASK_HEAD = 12235; + public static final int MOUNTED_SEA_BASS = 12236; + public static final int MOUNTED_SWORDFISH = 12237; + public static final int NULL_12238 = 12238; + public static final int VANILLA_PLANT = 12239; + public static final int BONES_12240 = 12240; + public static final int BONES_12241 = 12241; + public static final int BONES_12242 = 12242; + public static final int SKELETON_12243 = 12243; + public static final int SKELETON_12244 = 12244; + public static final int SKELETON_12245 = 12245; + public static final int SKELETON_12246 = 12246; + public static final int SKELETON_12247 = 12247; + public static final int SKELETON_12248 = 12248; + public static final int NULL_12249 = 12249; + public static final int NULL_12250 = 12250; + public static final int NULL_12251 = 12251; + public static final int NULL_12252 = 12252; + public static final int TUNNEL_ENTRANCE_12253 = 12253; + public static final int TUNNEL_ENTRANCE_12254 = 12254; + public static final int ROPE_12255 = 12255; + public static final int NEST = 12256; + public static final int DRAGON_EGG = 12257; + public static final int DRAGONFIRE = 12258; + public static final int NEST_12259 = 12259; + public static final int PORTAL_12260 = 12260; + public static final int NULL_12261 = 12261; + public static final int TRAPDOOR_12262 = 12262; + public static final int TRAPDOOR_12263 = 12263; + public static final int LADDER_12264 = 12264; + public static final int CELLAR_STAIRS = 12265; + public static final int NULL_12266 = 12266; + public static final int TRAPDOOR_12267 = 12267; + public static final int OPEN_TRAPDOOR = 12268; + public static final int STOVE_12269 = 12269; + public static final int NULL_12270 = 12270; + public static final int NULL_12271 = 12271; + public static final int NULL_12272 = 12272; + public static final int NULL_12273 = 12273; + public static final int NULL_12274 = 12274; + public static final int NULL_12275 = 12275; + public static final int NULL_12276 = 12276; + public static final int NULL_12277 = 12277; + public static final int NULL_12278 = 12278; + public static final int SINK_12279 = 12279; + public static final int LARGE_TABLE_12280 = 12280; + public static final int SMALL_TABLE_12281 = 12281; + public static final int BOOKCASE_12282 = 12282; + public static final int NULL_12283 = 12283; + public static final int NULL_12284 = 12284; + public static final int NULL_12285 = 12285; + public static final int NULL_12286 = 12286; + public static final int NULL_12287 = 12287; + public static final int NULL_12288 = 12288; + public static final int NULL_12289 = 12289; + public static final int NULL_12290 = 12290; + public static final int NULL_12291 = 12291; + public static final int NULL_12292 = 12292; + public static final int GRANDFATHER_CLOCK_12293 = 12293; + public static final int NULL_12294 = 12294; + public static final int NULL_12295 = 12295; + public static final int NULL_12296 = 12296; + public static final int NULL_12297 = 12297; + public static final int NULL_12298 = 12298; + public static final int NULL_12299 = 12299; + public static final int NULL_12300 = 12300; + public static final int CANDLES_12301 = 12301; + public static final int CANDLES_12302 = 12302; + public static final int NULL_12303 = 12303; + public static final int NULL_12304 = 12304; + public static final int NULL_12305 = 12305; + public static final int NULL_12306 = 12306; + public static final int NULL_12307 = 12307; + public static final int NULL_12308 = 12308; + public static final int CHEST_12309 = 12309; + public static final int CHAIR_12310 = 12310; + public static final int CHAIR_12311 = 12311; + public static final int CHAIR_12312 = 12312; + public static final int CHAIR_12313 = 12313; + public static final int BANQUET_TABLE = 12314; + public static final int BANQUET_TABLE_12315 = 12315; + public static final int BANQUET_TABLE_12316 = 12316; + public static final int BANQUET_TABLE_12317 = 12317; + public static final int CHAIR_12318 = 12318; + public static final int CHAIR_12319 = 12319; + public static final int PIRATE_PETE = 12320; + public static final int DWARF = 12321; + public static final int GENERAL_WARTFACE = 12322; + public static final int GENERAL_BENTNOZE = 12323; + public static final int LUMBRIDGE_GUIDE = 12324; + public static final int EVIL_DAVE = 12325; + public static final int SIR_AMIK_VARZE = 12326; + public static final int AWOWOGEI_12327 = 12327; + public static final int SKRACH_UGLOGWEE = 12328; + public static final int NULL_12329 = 12329; + public static final int DWARF_12330 = 12330; + public static final int NULL_12331 = 12331; + public static final int GENERAL_WARTFACE_12332 = 12332; + public static final int NULL_12333 = 12333; + public static final int GENERAL_BENTNOZE_12334 = 12334; + public static final int NULL_12335 = 12335; + public static final int NULL_12336 = 12336; + public static final int PIRATE_PETE_12337 = 12337; + public static final int NULL_12338 = 12338; + public static final int LUMBRIDGE_GUIDE_12339 = 12339; + public static final int NULL_12340 = 12340; + public static final int EVIL_DAVE_12341 = 12341; + public static final int NULL_12342 = 12342; + public static final int SKRACH_UGLOGWEE_12343 = 12343; + public static final int NULL_12344 = 12344; + public static final int SIR_AMIK_VARZE_12345 = 12345; + public static final int NULL_12346 = 12346; + public static final int AWOWOGEI_12347 = 12347; + public static final int DOOR_12348 = 12348; + public static final int LARGE_DOOR_12349 = 12349; + public static final int LARGE_DOOR_12350 = 12350; + public static final int BARRIER = 12351; + public static final int BARRIER_12352 = 12352; + public static final int BARRIER_12353 = 12353; + public static final int NULL_12354 = 12354; + public static final int PORTAL_12355 = 12355; + public static final int PORTAL_12356 = 12356; + public static final int NULL_12357 = 12357; + public static final int NULL_12358 = 12358; + public static final int NULL_12359 = 12359; + public static final int NULL_12360 = 12360; + public static final int NULL_12361 = 12361; + public static final int NULL_12362 = 12362; + public static final int NULL_12363 = 12363; + public static final int NULL_12364 = 12364; + public static final int NULL_12365 = 12365; + public static final int NULL_12366 = 12366; + public static final int NULL_12367 = 12367; + public static final int NULL_12368 = 12368; + public static final int NULL_12369 = 12369; + public static final int NULL_12370 = 12370; + public static final int NULL_12371 = 12371; + public static final int NULL_12372 = 12372; + public static final int NULL_12373 = 12373; + public static final int NULL_12374 = 12374; + public static final int NULL_12375 = 12375; + public static final int NULL_12376 = 12376; + public static final int NULL_12377 = 12377; + public static final int NULL_12378 = 12378; + public static final int NULL_12379 = 12379; + public static final int NULL_12380 = 12380; + public static final int NULL_12381 = 12381; + public static final int NULL_12382 = 12382; + public static final int NULL_12383 = 12383; + public static final int NULL_12384 = 12384; + public static final int NULL_12385 = 12385; + public static final int TABLE_12386 = 12386; + public static final int TABLE_12387 = 12387; + public static final int TABLE_12388 = 12388; + public static final int LADDER_12389 = 12389; + public static final int LADDER_12390 = 12390; + public static final int LADDER_12391 = 12391; + public static final int SACKS_12392 = 12392; + public static final int SACKS_12393 = 12393; + public static final int SACK_PILE = 12394; + public static final int SACK_PILE_12395 = 12395; + public static final int SACK_12396 = 12396; + public static final int NULL_12397 = 12397; + public static final int NULL_12398 = 12398; + public static final int SACK_12399 = 12399; + public static final int CAULDRON_12400 = 12400; + public static final int CAULDRON_12401 = 12401; + public static final int EXPLOSION = 12402; + public static final int SHELVES_12403 = 12403; + public static final int SHELVES_12404 = 12404; + public static final int CUPBOARD_12405 = 12405; + public static final int CUPBOARD_12406 = 12406; + public static final int STOOL_12407 = 12407; + public static final int STOOL_12408 = 12408; + public static final int STOOL_12409 = 12409; + public static final int SAUCEPAN = 12410; + public static final int SAUCEPAN_12411 = 12411; + public static final int ROLLING_PIN = 12412; + public static final int ROLLING_PIN_12413 = 12413; + public static final int SPORK = 12414; + public static final int SPORK_12415 = 12415; + public static final int NULL_12416 = 12416; + public static final int NULL_12417 = 12417; + public static final int NULL_12418 = 12418; + public static final int NULL_12419 = 12419; + public static final int NULL_12420 = 12420; + public static final int NULL_12421 = 12421; + public static final int NULL_12422 = 12422; + public static final int NULL_12423 = 12423; + public static final int NULL_12424 = 12424; + public static final int NULL_12425 = 12425; + public static final int NULL_12426 = 12426; + public static final int NULL_12427 = 12427; + public static final int NULL_12428 = 12428; + public static final int NULL_12429 = 12429; + public static final int NULL_12430 = 12430; + public static final int NULL_12431 = 12431; + public static final int NULL_12432 = 12432; + public static final int NULL_12433 = 12433; + public static final int BARREL_12434 = 12434; + public static final int BARREL_12435 = 12435; + public static final int NULL_12436 = 12436; + public static final int NULL_12437 = 12437; + public static final int NULL_12438 = 12438; + public static final int NULL_12439 = 12439; + public static final int STOOL_12440 = 12440; + public static final int NULL_12441 = 12441; + public static final int CRATE_12442 = 12442; + public static final int CRATE_12443 = 12443; + public static final int DOOR_12444 = 12444; + public static final int DOOR_12445 = 12445; + public static final int LARGE_DOOR_12446 = 12446; + public static final int LARGE_DOOR_12447 = 12447; + public static final int LARGE_DOOR_12448 = 12448; + public static final int LARGE_DOOR_12449 = 12449; + public static final int TABLE_12450 = 12450; + public static final int CHEST_12451 = 12451; + public static final int CHEST_12452 = 12452; + public static final int SKULLS = 12453; + public static final int NULL_12454 = 12454; + public static final int NULL_12455 = 12455; + public static final int NULL_12456 = 12456; + public static final int NULL_12457 = 12457; + public static final int NULL_12458 = 12458; + public static final int NULL_12459 = 12459; + public static final int UNDERWATER_CAVERN_ENTRANCE = 12460; + public static final int UNDERWATER_CAVERN_ENTRANCE_12461 = 12461; + public static final int UNDERWATER_CAVERN_ENTRANCE_12462 = 12462; + public static final int UNDERWATER_CAVERN_ENTRANCE_12463 = 12463; + public static final int NULL_12464 = 12464; + public static final int NULL_12465 = 12465; + public static final int NULL_12466 = 12466; + public static final int PEN_DOOR = 12467; + public static final int PEN_DOOR_12468 = 12468; + public static final int NULL_12469 = 12469; + public static final int NULL_12470 = 12470; + public static final int NULL_12471 = 12471; + public static final int NULL_12472 = 12472; + public static final int NULL_12473 = 12473; + public static final int ANCHOR_12474 = 12474; + public static final int ANCHOR_12475 = 12475; + public static final int ANCHOR_12476 = 12476; + public static final int KELP = 12477; + public static final int KELP_12478 = 12478; + public static final int CORAL_REEF = 12479; + public static final int CORAL = 12480; + public static final int CORAL_12481 = 12481; + public static final int CORAL_12482 = 12482; + public static final int CORAL_12483 = 12483; + public static final int CORAL_12484 = 12484; + public static final int CORAL_12485 = 12485; + public static final int CORAL_12486 = 12486; + public static final int CORAL_12487 = 12487; + public static final int CORAL_12488 = 12488; + public static final int CORAL_12489 = 12489; + public static final int CORAL_12490 = 12490; + public static final int CORAL_12491 = 12491; + public static final int CORAL_12492 = 12492; + public static final int CORAL_12493 = 12493; + public static final int CORAL_12494 = 12494; + public static final int CORAL_12495 = 12495; + public static final int CORAL_12496 = 12496; + public static final int CORAL_12497 = 12497; + public static final int CORAL_12498 = 12498; + public static final int CORAL_REEF_12499 = 12499; + public static final int CORAL_12500 = 12500; + public static final int CORAL_12501 = 12501; + public static final int CORAL_12502 = 12502; + public static final int CORAL_12503 = 12503; + public static final int CORAL_12504 = 12504; + public static final int CORAL_12505 = 12505; + public static final int CORAL_12506 = 12506; + public static final int CORAL_12507 = 12507; + public static final int CORAL_12508 = 12508; + public static final int CORAL_REEF_12509 = 12509; + public static final int CORAL_12510 = 12510; + public static final int CORAL_12511 = 12511; + public static final int CORAL_12512 = 12512; + public static final int CORAL_12513 = 12513; + public static final int CORAL_12514 = 12514; + public static final int CORAL_12515 = 12515; + public static final int CORAL_12516 = 12516; + public static final int CORAL_12517 = 12517; + public static final int CORAL_12518 = 12518; + public static final int CORAL_12519 = 12519; + public static final int CORAL_REEF_12520 = 12520; + public static final int CORAL_12521 = 12521; + public static final int CORAL_12522 = 12522; + public static final int CORAL_12523 = 12523; + public static final int CORAL_12524 = 12524; + public static final int CORAL_12525 = 12525; + public static final int CORAL_12526 = 12526; + public static final int CORAL_12527 = 12527; + public static final int CORAL_12528 = 12528; + public static final int CORAL_12529 = 12529; + public static final int ANCHOR_12530 = 12530; + public static final int BUBBLES = 12531; + public static final int NULL_12532 = 12532; + public static final int NULL_12533 = 12533; + public static final int NULL_12534 = 12534; + public static final int NULL_12535 = 12535; + public static final int STAIRCASE_12536 = 12536; + public static final int STAIRCASE_12537 = 12537; + public static final int STAIRCASE_12538 = 12538; + public static final int BOOKCASE_12539 = 12539; + public static final int BOOKCASE_12540 = 12540; + public static final int TABLE_12541 = 12541; + public static final int NULL_12542 = 12542; + public static final int LARGE_TABLE_12543 = 12543; + public static final int TABLE_12544 = 12544; + public static final int BOXES_12545 = 12545; + public static final int CRATE_12546 = 12546; + public static final int CRATE_12547 = 12547; + public static final int CRATES_12548 = 12548; + public static final int NULL_12549 = 12549; + public static final int OLD_TREE = 12550; + public static final int OLD_TREE_12551 = 12551; + public static final int OLD_TREE_12552 = 12552; + public static final int OLD_TREE_12553 = 12553; + public static final int CRUDE_BOAT = 12554; + public static final int ROOTS_12555 = 12555; + public static final int ROCK_AND_STRING = 12556; + public static final int ROCK_AND_STRING_12557 = 12557; + public static final int NULL_12558 = 12558; + public static final int TREE_12559 = 12559; + public static final int TREE_12560 = 12560; + public static final int OGRE_SPITROAST_12561 = 12561; + public static final int OGRE_SPITROAST_12562 = 12562; + public static final int OGRE_SPITROAST_12563 = 12563; + public static final int PILE_OF_ROCK_12564 = 12564; + public static final int PILE_OF_ROCK_12565 = 12565; + public static final int PILE_OF_ROCK_12566 = 12566; + public static final int PILE_OF_ROCK_12567 = 12567; + public static final int STEPPING_STONE_12568 = 12568; + public static final int TEMP_STONE_4_ZIP = 12569; + public static final int TROPICAL_TREE_12570 = 12570; + public static final int TROPICAL_TREE_12571 = 12571; + public static final int TROPICAL_TREE_12572 = 12572; + public static final int MONKEYBARS_12573 = 12573; + public static final int NULL_12574 = 12574; + public static final int MONKEYBARS_12575 = 12575; + public static final int SKULL_SLOPE_12576 = 12576; + public static final int NULL_12577 = 12577; + public static final int ROPE_12578 = 12578; + public static final int TROPICAL_TREE_12579 = 12579; + public static final int TROPICAL_TREE_12580 = 12580; + public static final int HOLE_12581 = 12581; + public static final int NULL_12582 = 12582; + public static final int NULL_12583 = 12583; + public static final int NULL_12584 = 12584; + public static final int NULL_12585 = 12585; + public static final int NULL_12586 = 12586; + public static final int NULL_12587 = 12587; + public static final int NULL_12588 = 12588; + public static final int ROCK_12589 = 12589; + public static final int ROCK_12590 = 12590; + public static final int NULL_12591 = 12591; + public static final int NULL_12592 = 12592; + public static final int NULL_12593 = 12593; + public static final int SNAKE = 12594; + public static final int SNAKE_12595 = 12595; + public static final int SNAKE_12596 = 12596; + public static final int HOLE_12597 = 12597; + public static final int SNAKE_12598 = 12598; + public static final int SNAKE_12599 = 12599; + public static final int SNAKE_12600 = 12600; + public static final int ROPE_12601 = 12601; + public static final int PIT_12602 = 12602; + public static final int TCHIKI_MONKEY_NUT_BUSH = 12603; + public static final int STRANGE_BANANA_TREE = 12604; + public static final int LIGHT_12605 = 12605; + public static final int BANANA_TREE_12606 = 12606; + public static final int BANANA_TREE_12607 = 12607; + public static final int RED_BANANA_TREE = 12608; + public static final int RED_BANANA_TREE_12609 = 12609; + public static final int NULL_12610 = 12610; + public static final int NULL_12611 = 12611; + public static final int NULL_12612 = 12612; + public static final int NULL_12613 = 12613; + public static final int NULL_12614 = 12614; + public static final int BUSH_12615 = 12615; + public static final int EXIT_12616 = 12616; + public static final int EXIT_12617 = 12617; + public static final int TROPICAL_TREE_12618 = 12618; + public static final int NULL_12619 = 12619; + public static final int NULL_12620 = 12620; + public static final int NULL_12621 = 12621; + public static final int VINE_12622 = 12622; + public static final int NULL_12623 = 12623; + public static final int NULL_12624 = 12624; + public static final int NULL_12625 = 12625; + public static final int NULL_12626 = 12626; + public static final int TROPICAL_TREE_12627 = 12627; + public static final int NULL_12628 = 12628; + public static final int NULL_12629 = 12629; + public static final int NULL_12630 = 12630; + public static final int NULL_12631 = 12631; + public static final int NULL_12632 = 12632; + public static final int NULL_12633 = 12633; + public static final int ROCK_12634 = 12634; + public static final int ROCK_12635 = 12635; + public static final int ROCK_12636 = 12636; + public static final int ROCK_12637 = 12637; + public static final int NULL_12638 = 12638; + public static final int NULL_12639 = 12639; + public static final int NULL_12640 = 12640; + public static final int NULL_12641 = 12641; + public static final int NULL_12642 = 12642; + public static final int NULL_12643 = 12643; + public static final int NULL_12644 = 12644; + public static final int NULL_12645 = 12645; + public static final int NULL_12646 = 12646; + public static final int NULL_12647 = 12647; + public static final int NULL_12648 = 12648; + public static final int NULL_12649 = 12649; + public static final int NULL_12650 = 12650; + public static final int NULL_12651 = 12651; + public static final int NULL_12652 = 12652; + public static final int NULL_12653 = 12653; + public static final int NULL_12654 = 12654; + public static final int NULL_12655 = 12655; + public static final int NULL_12656 = 12656; + public static final int EXIT_12657 = 12657; + public static final int NULL_12658 = 12658; + public static final int NULL_12659 = 12659; + public static final int NULL_12660 = 12660; + public static final int SIGNPOST_12661 = 12661; + public static final int NULL_12662 = 12662; + public static final int NULL_12663 = 12663; + public static final int NULL_12664 = 12664; + public static final int NULL_12665 = 12665; + public static final int NULL_12666 = 12666; + public static final int NULL_12667 = 12667; + public static final int NULL_12668 = 12668; + public static final int NULL_12669 = 12669; + public static final int NULL_12670 = 12670; + public static final int NULL_12671 = 12671; + public static final int NULL_12672 = 12672; + public static final int NULL_12673 = 12673; + public static final int NULL_12674 = 12674; + public static final int NULL_12675 = 12675; + public static final int NULL_12676 = 12676; + public static final int NULL_12677 = 12677; + public static final int NULL_12678 = 12678; + public static final int NULL_12679 = 12679; + public static final int NULL_12680 = 12680; + public static final int NULL_12681 = 12681; + public static final int NULL_12682 = 12682; + public static final int BRIDGE_12683 = 12683; + public static final int BRIDGE_12684 = 12684; + public static final int NULL_12685 = 12685; + public static final int NULL_12686 = 12686; + public static final int NULL_12687 = 12687; + public static final int NULL_12688 = 12688; + public static final int NULL_12689 = 12689; + public static final int NULL_12690 = 12690; + public static final int NULL_12691 = 12691; + public static final int NULL_12692 = 12692; + public static final int NULL_12693 = 12693; + public static final int NULL_12694 = 12694; + public static final int NULL_12695 = 12695; + public static final int NULL_12696 = 12696; + public static final int NULL_12697 = 12697; + public static final int NULL_12698 = 12698; + public static final int NULL_12699 = 12699; + public static final int NULL_12700 = 12700; + public static final int NULL_12701 = 12701; + public static final int NULL_12702 = 12702; + public static final int NULL_12703 = 12703; + public static final int NULL_12704 = 12704; + public static final int NULL_12705 = 12705; + public static final int NULL_12706 = 12706; + public static final int NULL_12707 = 12707; + public static final int NULL_12708 = 12708; + public static final int NULL_12709 = 12709; + public static final int NULL_12710 = 12710; + public static final int GRAVE_12711 = 12711; + public static final int GRAVE_12712 = 12712; + public static final int GRAVE_12713 = 12713; + public static final int GRAVE_12714 = 12714; + public static final int GRAVE_12715 = 12715; + public static final int GRAVESTONE_12716 = 12716; + public static final int GRAVESTONE_12717 = 12717; + public static final int GRAVESTONE_12718 = 12718; + public static final int GRAVESTONE_12719 = 12719; + public static final int GRAVESTONE_12720 = 12720; + public static final int GRAVE_12721 = 12721; + public static final int GRAVE_12722 = 12722; + public static final int GRAVE_12723 = 12723; + public static final int GRAVE_12724 = 12724; + public static final int GRAVE_12725 = 12725; + public static final int GRAVE_12726 = 12726; + public static final int GRAVE_12727 = 12727; + public static final int GRAVE_12728 = 12728; + public static final int GRAVE_12729 = 12729; + public static final int GRAVE_12730 = 12730; + public static final int MAUSOLEUM = 12731; + public static final int DEAD_TREE_12732 = 12732; + public static final int TREE_STUMP_12733 = 12733; + public static final int TABLE_12734 = 12734; + public static final int CLOSED_CHEST_12735 = 12735; + public static final int OPEN_CHEST_12736 = 12736; + public static final int BROKEN_DOWN_WALL = 12737; + public static final int NULL_12738 = 12738; + public static final int RUBBLE_12739 = 12739; + public static final int RUBBLE_12740 = 12740; + public static final int FALLEN_WALL = 12741; + public static final int RUBBLE_12742 = 12742; + public static final int NULL_12743 = 12743; + public static final int TRAPDOOR_12744 = 12744; + public static final int TRAPDOOR_12745 = 12745; + public static final int RUBBLE_12746 = 12746; + public static final int PILE_OF_RUBBLE_12747 = 12747; + public static final int LADDER_12748 = 12748; + public static final int RUBBLE_PILE = 12749; + public static final int PLAQUE_12750 = 12750; + public static final int NULL_12751 = 12751; + public static final int NULL_12752 = 12752; + public static final int NULL_12753 = 12753; + public static final int NULL_12754 = 12754; + public static final int NULL_12755 = 12755; + public static final int NULL_12756 = 12756; + public static final int NULL_12757 = 12757; + public static final int NULL_12758 = 12758; + public static final int NULL_12759 = 12759; + public static final int NULL_12760 = 12760; + public static final int DOOR_12761 = 12761; + public static final int NULL_12762 = 12762; + public static final int TRAPDOOR_12763 = 12763; + public static final int LADDER_12764 = 12764; + public static final int KEYHOLE = 12765; + public static final int BOOKCASE_12766 = 12766; + public static final int BOOKCASE_12767 = 12767; + public static final int CLOSED_CHEST_12768 = 12768; + public static final int OPEN_CHEST_12769 = 12769; + public static final int CAVE_ENTRANCE_12770 = 12770; + public static final int CAVE_ENTRANCE_12771 = 12771; + public static final int NULL_12772 = 12772; + public static final int WOODEN_BOARDS_12773 = 12773; + public static final int ROCK_12774 = 12774; + public static final int MARIUS = 12775; + public static final int LOW_FENCE = 12776; + public static final int TRAPDOOR_12777 = 12777; + public static final int TRAPDOOR_12778 = 12778; + public static final int LADDER_12779 = 12779; + public static final int LADDER_12780 = 12780; + public static final int LADDER_12781 = 12781; + public static final int BROKEN_ROOF = 12782; + public static final int REPAIRED_ROOF = 12783; + public static final int BUCKET_12784 = 12784; + public static final int BUCKET_12785 = 12785; + public static final int REPAIRED_WALL = 12786; + public static final int DAMAGED_WALL = 12787; + public static final int EMPTY_CRATE = 12788; + public static final int EMPTY_CRATE_12789 = 12789; + public static final int EMPTY_CRATE_12790 = 12790; + public static final int EMPTY_CRATE_12791 = 12791; + public static final int SHELVES_12792 = 12792; + public static final int SHELVES_12793 = 12793; + public static final int SHELVES_12794 = 12794; + public static final int NULL_12795 = 12795; + public static final int FIRE_12796 = 12796; + public static final int NULL_12797 = 12797; + public static final int BANK_BOOTH_12798 = 12798; + public static final int BANK_BOOTH_12799 = 12799; + public static final int BANK_BOOTH_12800 = 12800; + public static final int BANK_BOOTH_12801 = 12801; + public static final int TOMB_12802 = 12802; + public static final int NULL_12803 = 12803; + public static final int BARREL_12804 = 12804; + public static final int NULL_12805 = 12805; + public static final int BROKEN_FURNACE = 12806; + public static final int REPAIRED_FURNACE = 12807; + public static final int REPAIRED_FURNACE_12808 = 12808; + public static final int FURNACE_12809 = 12809; + public static final int NULL_12810 = 12810; + public static final int NULL_12811 = 12811; + public static final int RUBBLE_12812 = 12812; + public static final int RUBBLE_12813 = 12813; + public static final int RUBBLE_12814 = 12814; + public static final int RUBBLE_12815 = 12815; + public static final int GATE_12816 = 12816; + public static final int GATE_12817 = 12817; + public static final int GATE_12818 = 12818; + public static final int NULL_12819 = 12819; + public static final int EXIT_PATH = 12820; + public static final int NULL_12821 = 12821; + public static final int NULL_12822 = 12822; + public static final int NULL_12823 = 12823; + public static final int NULL_12824 = 12824; + public static final int NULL_12825 = 12825; + public static final int NULL_12826 = 12826; + public static final int NULL_12827 = 12827; + public static final int NULL_12828 = 12828; + public static final int NULL_12829 = 12829; + public static final int NULL_12830 = 12830; + public static final int NULL_12831 = 12831; + public static final int NULL_12832 = 12832; + public static final int NULL_12833 = 12833; + public static final int NULL_12834 = 12834; + public static final int NULL_12835 = 12835; + public static final int NULL_12836 = 12836; + public static final int NULL_12837 = 12837; + public static final int NULL_12838 = 12838; + public static final int NULL_12839 = 12839; + public static final int NULL_12840 = 12840; + public static final int NULL_12841 = 12841; + public static final int NULL_12842 = 12842; + public static final int NULL_12843 = 12843; + public static final int PILE_OF_BRICKS_12844 = 12844; + public static final int NULL_12845 = 12845; + public static final int NULL_12846 = 12846; + public static final int NULL_12847 = 12847; + public static final int NULL_12848 = 12848; + public static final int NULL_12849 = 12849; + public static final int NULL_12850 = 12850; + public static final int NULL_12851 = 12851; + public static final int NULL_12852 = 12852; + public static final int NULL_12853 = 12853; + public static final int NULL_12854 = 12854; + public static final int TABLE_12855 = 12855; + public static final int STORE_DOOR = 12856; + public static final int BAR_PUMPS_12857 = 12857; + public static final int NULL_12858 = 12858; + public static final int NULL_12859 = 12859; + public static final int NULL_12860 = 12860; + public static final int NULL_12861 = 12861; + public static final int NULL_12862 = 12862; + public static final int NULL_12863 = 12863; + public static final int NULL_12864 = 12864; + public static final int NULL_12865 = 12865; + public static final int NULL_12866 = 12866; + public static final int NULL_12867 = 12867; + public static final int NULL_12868 = 12868; + public static final int NULL_12869 = 12869; + public static final int NULL_12870 = 12870; + public static final int NULL_12871 = 12871; + public static final int TRAPDOOR_12872 = 12872; + public static final int BOOKCASE_12873 = 12873; + public static final int CRATE_12874 = 12874; + public static final int WHEELBARROW_12875 = 12875; + public static final int CRATE_12876 = 12876; + public static final int CRATES_12877 = 12877; + public static final int BOXES_12878 = 12878; + public static final int CRATE_12879 = 12879; + public static final int BED_12880 = 12880; + public static final int BOOKCASE_12881 = 12881; + public static final int BOOKCASE_12882 = 12882; + public static final int BOOKCASE_12883 = 12883; + public static final int TABLE_12884 = 12884; + public static final int CHAIR_12885 = 12885; + public static final int CHAIR_12886 = 12886; + public static final int CHAIR_12887 = 12887; + public static final int CHAIR_12888 = 12888; + public static final int SMASHED_CHAIR_12889 = 12889; + public static final int BARREL_12890 = 12890; + public static final int BARREL_12891 = 12891; + public static final int SMALL_TABLE_12892 = 12892; + public static final int SHELVES_12893 = 12893; + public static final int TREE_STUMP_12894 = 12894; + public static final int TREE_12895 = 12895; + public static final int TREE_12896 = 12896; + public static final int WELL_12897 = 12897; + public static final int NULL_12898 = 12898; + public static final int NULL_12899 = 12899; + public static final int NULL_12900 = 12900; + public static final int NULL_12901 = 12901; + public static final int NULL_12902 = 12902; + public static final int NULL_12903 = 12903; + public static final int NULL_12904 = 12904; + public static final int NULL_12905 = 12905; + public static final int LADDER_12906 = 12906; + public static final int LADDER_12907 = 12907; + public static final int NULL_12908 = 12908; + public static final int NULL_12909 = 12909; + public static final int NULL_12910 = 12910; + public static final int NULL_12911 = 12911; + public static final int NULL_12912 = 12912; + public static final int NULL_12913 = 12913; + public static final int NULL_12914 = 12914; + public static final int NULL_12915 = 12915; + public static final int NULL_12916 = 12916; + public static final int NULL_12917 = 12917; + public static final int NULL_12918 = 12918; + public static final int NULL_12919 = 12919; + public static final int NULL_12920 = 12920; + public static final int NULL_12921 = 12921; + public static final int NULL_12922 = 12922; + public static final int NULL_12923 = 12923; + public static final int NULL_12924 = 12924; + public static final int NULL_12925 = 12925; + public static final int NULL_12926 = 12926; + public static final int NULL_12927 = 12927; + public static final int NULL_12928 = 12928; + public static final int NULL_12929 = 12929; + public static final int NULL_12930 = 12930; + public static final int NULL_12931 = 12931; + public static final int NULL_12932 = 12932; + public static final int COUNTER_12933 = 12933; + public static final int NULL_12934 = 12934; + public static final int NULL_12935 = 12935; + public static final int NULL_12936 = 12936; + public static final int NULL_12937 = 12937; + public static final int NULL_12938 = 12938; + public static final int NULL_12939 = 12939; + public static final int NULL_12940 = 12940; + public static final int MINERAL_VEIN_12941 = 12941; + public static final int MINERAL_VEIN_12942 = 12942; + public static final int MINERAL_VEIN_12943 = 12943; + public static final int BOAT_12944 = 12944; + public static final int NULL_12945 = 12945; + public static final int NULL_12946 = 12946; + public static final int NULL_12947 = 12947; + public static final int NULL_12948 = 12948; + public static final int NULL_12949 = 12949; + public static final int NULL_12950 = 12950; + public static final int NULL_12951 = 12951; + public static final int NULL_12952 = 12952; + public static final int NULL_12953 = 12953; + public static final int NULL_12954 = 12954; + public static final int NULL_12955 = 12955; + public static final int NULL_12956 = 12956; + public static final int NULL_12957 = 12957; + public static final int NULL_12958 = 12958; + public static final int NULL_12959 = 12959; + public static final int NULL_12960 = 12960; + public static final int CRATE_12961 = 12961; + public static final int TABLE_12962 = 12962; + public static final int CRATE_12963 = 12963; + public static final int LADDER_12964 = 12964; + public static final int LADDER_12965 = 12965; + public static final int LADDER_12966 = 12966; + public static final int BARREL_12967 = 12967; + public static final int BARREL_12968 = 12968; + public static final int COOKING_POT_12969 = 12969; + public static final int BED_12970 = 12970; + public static final int TABLE_12971 = 12971; + public static final int TABLE_12972 = 12972; + public static final int CHAIR_12973 = 12973; + public static final int SINK_12974 = 12974; + public static final int NULL_12975 = 12975; + public static final int NULL_12976 = 12976; + public static final int CRATE_12977 = 12977; + public static final int CRATE_12978 = 12978; + public static final int ROCKING_CHAIR_12979 = 12979; + public static final int SHELVES_12980 = 12980; + public static final int HAT_STAND_12981 = 12981; + public static final int STILE_12982 = 12982; + public static final int NULL_12983 = 12983; + public static final int NULL_12984 = 12984; + public static final int NULL_12985 = 12985; + public static final int GATE_12986 = 12986; + public static final int GATE_12987 = 12987; + public static final int GATE_12988 = 12988; + public static final int GATE_12989 = 12989; + public static final int NULL_12990 = 12990; + public static final int NULL_12991 = 12991; + public static final int NULL_12992 = 12992; + public static final int NULL_12993 = 12993; + public static final int NULL_12994 = 12994; + public static final int NULL_12995 = 12995; + public static final int NULL_12996 = 12996; + public static final int NULL_12997 = 12997; + public static final int NULL_12998 = 12998; + public static final int NULL_12999 = 12999; + public static final int NULL_13000 = 13000; + public static final int DOOR_13001 = 13001; + public static final int DOOR_13002 = 13002; + public static final int CLOSED_CHEST_13003 = 13003; + public static final int OPEN_CHEST_13004 = 13004; + public static final int NULL_13005 = 13005; + public static final int DOOR_13006 = 13006; + public static final int DOOR_13007 = 13007; + public static final int DOOR_13008 = 13008; + public static final int DOOR_13009 = 13009; + public static final int NULL_13010 = 13010; + public static final int NULL_13011 = 13011; + public static final int NULL_13012 = 13012; + public static final int NULL_13013 = 13013; + public static final int NULL_13014 = 13014; + public static final int DOOR_13015 = 13015; + public static final int DOOR_13016 = 13016; + public static final int DOOR_13017 = 13017; + public static final int DOOR_13018 = 13018; + public static final int NULL_13019 = 13019; + public static final int NULL_13020 = 13020; + public static final int NULL_13021 = 13021; + public static final int NULL_13022 = 13022; + public static final int NULL_13023 = 13023; + public static final int NULL_13024 = 13024; + public static final int NULL_13025 = 13025; + public static final int NULL_13026 = 13026; + public static final int NULL_13027 = 13027; + public static final int NULL_13028 = 13028; + public static final int NULL_13029 = 13029; + public static final int NULL_13030 = 13030; + public static final int NULL_13031 = 13031; + public static final int NULL_13032 = 13032; + public static final int NULL_13033 = 13033; + public static final int NULL_13034 = 13034; + public static final int NULL_13035 = 13035; + public static final int NULL_13036 = 13036; + public static final int NULL_13037 = 13037; + public static final int NULL_13038 = 13038; + public static final int NULL_13039 = 13039; + public static final int NULL_13040 = 13040; + public static final int NULL_13041 = 13041; + public static final int NULL_13042 = 13042; + public static final int NULL_13043 = 13043; + public static final int NULL_13044 = 13044; + public static final int NULL_13045 = 13045; + public static final int NULL_13046 = 13046; + public static final int NULL_13047 = 13047; + public static final int NULL_13048 = 13048; + public static final int NULL_13049 = 13049; + public static final int NULL_13050 = 13050; + public static final int NULL_13051 = 13051; + public static final int NULL_13052 = 13052; + public static final int NULL_13053 = 13053; + public static final int NULL_13054 = 13054; + public static final int NULL_13055 = 13055; + public static final int NULL_13056 = 13056; + public static final int NULL_13057 = 13057; + public static final int NULL_13058 = 13058; + public static final int NULL_13059 = 13059; + public static final int NULL_13060 = 13060; + public static final int NULL_13061 = 13061; + public static final int NULL_13062 = 13062; + public static final int NULL_13063 = 13063; + public static final int NULL_13064 = 13064; + public static final int NULL_13065 = 13065; + public static final int NULL_13066 = 13066; + public static final int NULL_13067 = 13067; + public static final int NULL_13068 = 13068; + public static final int NULL_13069 = 13069; + public static final int NULL_13070 = 13070; + public static final int NULL_13071 = 13071; + public static final int NULL_13072 = 13072; + public static final int NULL_13073 = 13073; + public static final int NULL_13074 = 13074; + public static final int NULL_13075 = 13075; + public static final int NULL_13076 = 13076; + public static final int NULL_13077 = 13077; + public static final int NULL_13078 = 13078; + public static final int NULL_13079 = 13079; + public static final int NULL_13080 = 13080; + public static final int NULL_13081 = 13081; + public static final int NULL_13082 = 13082; + public static final int NULL_13083 = 13083; + public static final int NULL_13084 = 13084; + public static final int NULL_13085 = 13085; + public static final int NULL_13086 = 13086; + public static final int NULL_13087 = 13087; + public static final int NULL_13088 = 13088; + public static final int NULL_13089 = 13089; + public static final int NULL_13090 = 13090; + public static final int NULL_13091 = 13091; + public static final int NULL_13092 = 13092; + public static final int NULL_13093 = 13093; + public static final int LARGE_DOOR_13094 = 13094; + public static final int LARGE_DOOR_13095 = 13095; + public static final int LARGE_DOOR_13096 = 13096; + public static final int LARGE_DOOR_13097 = 13097; + public static final int NULL_13098 = 13098; + public static final int NULL_13099 = 13099; + public static final int DOOR_13100 = 13100; + public static final int DOOR_13101 = 13101; + public static final int DOOR_13102 = 13102; + public static final int DOOR_13103 = 13103; + public static final int NULL_13104 = 13104; + public static final int NULL_13105 = 13105; + public static final int NULL_13106 = 13106; + public static final int DOOR_13107 = 13107; + public static final int DOOR_13108 = 13108; + public static final int DOOR_13109 = 13109; + public static final int DOOR_13110 = 13110; + public static final int NULL_13111 = 13111; + public static final int NULL_13112 = 13112; + public static final int NULL_13113 = 13113; + public static final int NULL_13114 = 13114; + public static final int NULL_13115 = 13115; + public static final int NULL_13116 = 13116; + public static final int NULL_13117 = 13117; + public static final int DOOR_13118 = 13118; + public static final int DOOR_13119 = 13119; + public static final int DOOR_13120 = 13120; + public static final int NULL_13121 = 13121; + public static final int NULL_13122 = 13122; + public static final int NULL_13123 = 13123; + public static final int NULL_13124 = 13124; + public static final int NULL_13125 = 13125; + public static final int BOXING_MAT = 13126; + public static final int BOXING_MAT_13127 = 13127; + public static final int BOXING_MAT_13128 = 13128; + public static final int BOXING_RING = 13129; + public static final int BOXING_RING_13130 = 13130; + public static final int BOXING_RING_13131 = 13131; + public static final int BOXING_RING_13132 = 13132; + public static final int FENCING_RING = 13133; + public static final int FENCING_RING_13134 = 13134; + public static final int FENCING_RING_13135 = 13135; + public static final int FENCING_RING_13136 = 13136; + public static final int COMBAT_RING = 13137; + public static final int COMBAT_RING_13138 = 13138; + public static final int COMBAT_RING_13139 = 13139; + public static final int COMBAT_RING_13140 = 13140; + public static final int NOTHING_13141 = 13141; + public static final int BALANCE_BEAM = 13142; + public static final int BALANCE_BEAM_13143 = 13143; + public static final int BALANCE_BEAM_13144 = 13144; + public static final int MAGIC_BARRIER_13145 = 13145; + public static final int MAGIC_BARRIER_13146 = 13146; + public static final int RANGING_SPOT = 13147; + public static final int BED_13148 = 13148; + public static final int BED_13149 = 13149; + public static final int BED_13150 = 13150; + public static final int BED_13151 = 13151; + public static final int BED_13152 = 13152; + public static final int BED_13153 = 13153; + public static final int BED_13154 = 13154; + public static final int SHOE_BOX = 13155; + public static final int OAK_DRAWERS = 13156; + public static final int OAK_WARDROBE = 13157; + public static final int TEAK_DRAWERS = 13158; + public static final int TEAK_WARDROBE = 13159; + public static final int MAHOGANY_WARDROBE = 13160; + public static final int GILDED_WARDROBE = 13161; + public static final int SHAVING_STAND = 13162; + public static final int SHAVING_STAND_13163 = 13163; + public static final int DRESSER_13164 = 13164; + public static final int DRESSER_13165 = 13165; + public static final int DRESSER_13166 = 13166; + public static final int DRESSER_13167 = 13167; + public static final int DRESSER_13168 = 13168; + public static final int CLOCK_13169 = 13169; + public static final int CLOCK_13170 = 13170; + public static final int CLOCK_13171 = 13171; + public static final int SYMBOL_OF_SARADOMIN = 13172; + public static final int SYMBOL_OF_ZAMORAK = 13173; + public static final int SYMBOL_OF_GUTHIX = 13174; + public static final int ICON_OF_SARADOMIN = 13175; + public static final int ICON_OF_ZAMORAK = 13176; + public static final int ICON_OF_GUTHIX = 13177; + public static final int ICON_OF_BOB = 13178; + public static final int ALTAR_13179 = 13179; + public static final int ALTAR_13180 = 13180; + public static final int ALTAR_13181 = 13181; + public static final int ALTAR_13182 = 13182; + public static final int ALTAR_13183 = 13183; + public static final int ALTAR_13184 = 13184; + public static final int ALTAR_13185 = 13185; + public static final int ALTAR_13186 = 13186; + public static final int ALTAR_13187 = 13187; + public static final int ALTAR_13188 = 13188; + public static final int ALTAR_13189 = 13189; + public static final int ALTAR_13190 = 13190; + public static final int ALTAR_13191 = 13191; + public static final int ALTAR_13192 = 13192; + public static final int ALTAR_13193 = 13193; + public static final int ALTAR_13194 = 13194; + public static final int ALTAR_13195 = 13195; + public static final int ALTAR_13196 = 13196; + public static final int ALTAR_13197 = 13197; + public static final int ALTAR_13198 = 13198; + public static final int ALTAR_13199 = 13199; + public static final int TORCH = 13200; + public static final int TORCH_13201 = 13201; + public static final int TORCH_13202 = 13202; + public static final int TORCH_13203 = 13203; + public static final int TORCH_13204 = 13204; + public static final int TORCH_13205 = 13205; + public static final int TORCH_13206 = 13206; + public static final int TORCH_13207 = 13207; + public static final int INCENSE_BURNER = 13208; + public static final int INCENSE_BURNER_13209 = 13209; + public static final int INCENSE_BURNER_13210 = 13210; + public static final int INCENSE_BURNER_13211 = 13211; + public static final int INCENSE_BURNER_13212 = 13212; + public static final int INCENSE_BURNER_13213 = 13213; + public static final int WINDCHIMES = 13214; + public static final int BELLS = 13215; + public static final int ORGAN = 13216; + public static final int SHUTTERED_WINDOW = 13217; + public static final int DECORATIVE_WINDOW = 13218; + public static final int STAINEDGLASS_WINDOW = 13219; + public static final int DECORATIVE_WINDOW_13220 = 13220; + public static final int STAINEDGLASS_WINDOW_13221 = 13221; + public static final int DECORATIVE_WINDOW_13222 = 13222; + public static final int STAINEDGLASS_WINDOW_13223 = 13223; + public static final int DECORATIVE_WINDOW_13224 = 13224; + public static final int STAINEDGLASS_WINDOW_13225 = 13225; + public static final int SHUTTERED_WINDOW_13226 = 13226; + public static final int DECORATIVE_WINDOW_13227 = 13227; + public static final int STAINEDGLASS_WINDOW_13228 = 13228; + public static final int DECORATIVE_WINDOW_13229 = 13229; + public static final int STAINEDGLASS_WINDOW_13230 = 13230; + public static final int DECORATIVE_WINDOW_13231 = 13231; + public static final int STAINEDGLASS_WINDOW_13232 = 13232; + public static final int DECORATIVE_WINDOW_13233 = 13233; + public static final int STAINEDGLASS_WINDOW_13234 = 13234; + public static final int SHUTTERED_WINDOW_13235 = 13235; + public static final int DECORATIVE_WINDOW_13236 = 13236; + public static final int STAINEDGLASS_WINDOW_13237 = 13237; + public static final int DECORATIVE_WINDOW_13238 = 13238; + public static final int STAINEDGLASS_WINDOW_13239 = 13239; + public static final int DECORATIVE_WINDOW_13240 = 13240; + public static final int STAINEDGLASS_WINDOW_13241 = 13241; + public static final int DECORATIVE_WINDOW_13242 = 13242; + public static final int STAINEDGLASS_WINDOW_13243 = 13243; + public static final int SHUTTERED_WINDOW_13244 = 13244; + public static final int DECORATIVE_WINDOW_13245 = 13245; + public static final int STAINEDGLASS_WINDOW_13246 = 13246; + public static final int DECORATIVE_WINDOW_13247 = 13247; + public static final int STAINEDGLASS_WINDOW_13248 = 13248; + public static final int DECORATIVE_WINDOW_13249 = 13249; + public static final int STAINEDGLASS_WINDOW_13250 = 13250; + public static final int DECORATIVE_WINDOW_13251 = 13251; + public static final int STAINEDGLASS_WINDOW_13252 = 13252; + public static final int SHUTTERED_WINDOW_13253 = 13253; + public static final int DECORATIVE_WINDOW_13254 = 13254; + public static final int STAINEDGLASS_WINDOW_13255 = 13255; + public static final int DECORATIVE_WINDOW_13256 = 13256; + public static final int STAINEDGLASS_WINDOW_13257 = 13257; + public static final int DECORATIVE_WINDOW_13258 = 13258; + public static final int STAINEDGLASS_WINDOW_13259 = 13259; + public static final int DECORATIVE_WINDOW_13260 = 13260; + public static final int STAINEDGLASS_WINDOW_13261 = 13261; + public static final int SHUTTERED_WINDOW_13262 = 13262; + public static final int DECORATIVE_WINDOW_13263 = 13263; + public static final int STAINEDGLASS_WINDOW_13264 = 13264; + public static final int DECORATIVE_WINDOW_13265 = 13265; + public static final int STAINEDGLASS_WINDOW_13266 = 13266; + public static final int DECORATIVE_WINDOW_13267 = 13267; + public static final int STAINEDGLASS_WINDOW_13268 = 13268; + public static final int DECORATIVE_WINDOW_13269 = 13269; + public static final int STAINEDGLASS_WINDOW_13270 = 13270; + public static final int STATUE_13271 = 13271; + public static final int STATUE_13272 = 13272; + public static final int STATUE_13273 = 13273; + public static final int STATUE_13274 = 13274; + public static final int STATUE_13275 = 13275; + public static final int STATUE_13276 = 13276; + public static final int STATUE_13277 = 13277; + public static final int STATUE_13278 = 13278; + public static final int STATUE_13279 = 13279; + public static final int STATUE_13280 = 13280; + public static final int STATUE_13281 = 13281; + public static final int STATUE_13282 = 13282; + public static final int WOODEN_CRATE = 13283; + public static final int WOODEN_CRATE_13284 = 13284; + public static final int OAK_CHEST = 13285; + public static final int OAK_CHEST_13286 = 13286; + public static final int TEAK_CHEST = 13287; + public static final int TEAK_CHEST_13288 = 13288; + public static final int MAHOGANY_CHEST = 13289; + public static final int MAHOGANY_CHEST_13290 = 13290; + public static final int MAGIC_CHEST = 13291; + public static final int MAGIC_CHEST_13292 = 13292; + public static final int WOODEN_TABLE_13293 = 13293; + public static final int OAK_TABLE = 13294; + public static final int OAK_TABLE_13295 = 13295; + public static final int TEAK_TABLE = 13296; + public static final int TEAK_TABLE_13297 = 13297; + public static final int MAHOGANY_TABLE = 13298; + public static final int OPULENT_TABLE = 13299; + public static final int WOODEN_BENCH = 13300; + public static final int OAK_BENCH = 13301; + public static final int CARVED_OAK_BENCH = 13302; + public static final int TEAK_BENCH = 13303; + public static final int CARVED_TEAK_BENCH = 13304; + public static final int MAHOGANY_BENCH = 13305; + public static final int GILDED_BENCH = 13306; + public static final int ROPE_BELLPULL = 13307; + public static final int BELLPULL = 13308; + public static final int POSH_BELLPULL = 13309; + public static final int SKELETON_13310 = 13310; + public static final int PIPE_13311 = 13311; + public static final int BLOOD = 13312; + public static final int CAGE_13313 = 13313; + public static final int DOOR_13314 = 13314; + public static final int DOOR_13315 = 13315; + public static final int CAGE_13316 = 13316; + public static final int DOOR_13317 = 13317; + public static final int DOOR_13318 = 13318; + public static final int CAGE_13319 = 13319; + public static final int DOOR_13320 = 13320; + public static final int DOOR_13321 = 13321; + public static final int CAGE_13322 = 13322; + public static final int DOOR_13323 = 13323; + public static final int DOOR_13324 = 13324; + public static final int CAGE_13325 = 13325; + public static final int DOOR_13326 = 13326; + public static final int DOOR_13327 = 13327; + public static final int LADDER_13328 = 13328; + public static final int LADDER_13329 = 13329; + public static final int LADDER_13330 = 13330; + public static final int SLIMY_WATER = 13331; + public static final int SLIMY_WATER_13332 = 13332; + public static final int SLIMY_WATER_13333 = 13333; + public static final int SPIKES_13334 = 13334; + public static final int SPIKES_13335 = 13335; + public static final int SPIKES_13336 = 13336; + public static final int FIRE_13337 = 13337; + public static final int FLOOR_13338 = 13338; + public static final int FLOOR_13339 = 13339; + public static final int FLOOR_13340 = 13340; + public static final int TORCH_13341 = 13341; + public static final int CANDLE = 13342; + public static final int SKULL = 13343; + public static final int DOOR_13344 = 13344; + public static final int DOOR_13345 = 13345; + public static final int DOOR_13346 = 13346; + public static final int DOOR_13347 = 13347; + public static final int DOOR_13348 = 13348; + public static final int DOOR_13349 = 13349; + public static final int DOOR_13350 = 13350; + public static final int DOOR_13351 = 13351; + public static final int DOOR_13352 = 13352; + public static final int DOOR_13353 = 13353; + public static final int DOOR_13354 = 13354; + public static final int DOOR_13355 = 13355; + public static final int SPIKE_TRAP = 13356; + public static final int MAN_TRAP = 13357; + public static final int TANGLE_VINE = 13358; + public static final int MARBLE_TRAP = 13359; + public static final int TELEPORT_TRAP = 13360; + public static final int SPIKE_HIDDEN = 13361; + public static final int MAN_HIDDEN = 13362; + public static final int TANGLE_HIDDEN = 13363; + public static final int MARBLE_HIDDEN = 13364; + public static final int TELEPORT_HIDDEN = 13365; + public static final int BONES_13366 = 13366; + public static final int GUARD_DOG = 13367; + public static final int HOBGOBLIN = 13368; + public static final int TROLL = 13369; + public static final int HUGE_SPIDER = 13370; + public static final int HELLHOUND = 13371; + public static final int BABY_RED_DRAGON = 13372; + public static final int ROCNAR = 13373; + public static final int KALPHITE_SOLDIER = 13374; + public static final int STEEL_DRAGON = 13375; + public static final int DAGANNOTH = 13376; + public static final int TOKXIL = 13377; + public static final int DEMON = 13378; + public static final int TREASURE_HUNT_FAIRY_HOUSE = 13379; + public static final int TREASURE_HUNT_FAIRY_HOUSE_13380 = 13380; + public static final int GLOVE_RACK = 13381; + public static final int WEAPONS_RACK = 13382; + public static final int WEAPONS_RACK_13383 = 13383; + public static final int OAK_PRIZE_CHEST = 13384; + public static final int OAK_PRIZE_CHEST_13385 = 13385; + public static final int TEAK_PRIZE_CHEST = 13386; + public static final int TEAK_PRIZE_CHEST_13387 = 13387; + public static final int MAHOGANY_PRIZE_CHEST = 13388; + public static final int MAHOGANY_PRIZE_CHEST_13389 = 13389; + public static final int JACKY_JESTER = 13390; + public static final int JACKY_JESTER_13391 = 13391; + public static final int ATTACK_STONE = 13392; + public static final int ATTACK_STONE_13393 = 13393; + public static final int ATTACK_STONE_13394 = 13394; + public static final int ELEMENTAL_BALANCE = 13395; + public static final int ELEMENTAL_BALANCE_13396 = 13396; + public static final int ELEMENTAL_BALANCE_13397 = 13397; + public static final int STICK = 13398; + public static final int STICK_AND_HOOP = 13399; + public static final int DARTBOARD = 13400; + public static final int DARTBOARD_13401 = 13401; + public static final int ARCHERY_TARGET = 13402; + public static final int ARCHERY_TARGET_13403 = 13403; + public static final int HANGMAN_GAME = 13404; + public static final int PORTAL_13405 = 13405; + public static final int ROCK_13406 = 13406; + public static final int POND = 13407; + public static final int STATUE_13408 = 13408; + public static final int DUNGEON_ENTRANCE_13409 = 13409; + public static final int NULL_13410 = 13410; + public static final int TREE_13411 = 13411; + public static final int TREE_13412 = 13412; + public static final int OAK_TREE = 13413; + public static final int WILLOW_TREE_13414 = 13414; + public static final int MAPLE_TREE_13415 = 13415; + public static final int YEW_TREE_13416 = 13416; + public static final int MAGIC_TREE_13417 = 13417; + public static final int TREE_13418 = 13418; + public static final int TREE_13419 = 13419; + public static final int OAK_TREE_13420 = 13420; + public static final int WILLOW_TREE_13421 = 13421; + public static final int YEW_TREE_13422 = 13422; + public static final int MAPLETREE = 13423; + public static final int MAGIC_TREE_13424 = 13424; + public static final int FERN_13425 = 13425; + public static final int BUSH_13426 = 13426; + public static final int TALL_PLANT = 13427; + public static final int SHORT_PLANT = 13428; + public static final int LARGE_LEAF_PLANT = 13429; + public static final int BIG_LARGE_LEAF_PLANT = 13430; + public static final int PLANT_13431 = 13431; + public static final int FERN_13432 = 13432; + public static final int FERN_13433 = 13433; + public static final int DOCK_LEAF = 13434; + public static final int THISTLE_13435 = 13435; + public static final int REEDS = 13436; + public static final int ORANGE_FLOWER = 13437; + public static final int DAFFODILS = 13438; + public static final int BLUEBELLS = 13439; + public static final int ORANGE_FLOWER_13440 = 13440; + public static final int DAFFODILS_13441 = 13441; + public static final int BLUEBELLS_13442 = 13442; + public static final int SUNFLOWER_13443 = 13443; + public static final int MARIGOLDS = 13444; + public static final int ROSES_13445 = 13445; + public static final int SUNFLOWERS_13446 = 13446; + public static final int MARIGOLDS_13447 = 13447; + public static final int ROSES_13448 = 13448; + public static final int BOUNDARY_STONES = 13449; + public static final int WOODEN_FENCE = 13450; + public static final int STONE_WALL = 13451; + public static final int IRON_RAILINGS = 13452; + public static final int PICKET_FENCE = 13453; + public static final int GARDEN_FENCE = 13454; + public static final int MARBLE_WALL = 13455; + public static final int HEDGE_13456 = 13456; + public static final int HEDGE_13457 = 13457; + public static final int HEDGE_13458 = 13458; + public static final int HEDGE_13459 = 13459; + public static final int HEDGE_13460 = 13460; + public static final int HEDGE_13461 = 13461; + public static final int HEDGE_13462 = 13462; + public static final int HEDGE_13463 = 13463; + public static final int HEDGE_13464 = 13464; + public static final int HEDGE_13465 = 13465; + public static final int HEDGE_13466 = 13466; + public static final int HEDGE_13467 = 13467; + public static final int HEDGE_13468 = 13468; + public static final int HEDGE_13469 = 13469; + public static final int HEDGE_13470 = 13470; + public static final int HEDGE_13471 = 13471; + public static final int HEDGE_13472 = 13472; + public static final int HEDGE_13473 = 13473; + public static final int HEDGE_13474 = 13474; + public static final int HEDGE_13475 = 13475; + public static final int HEDGE_13476 = 13476; + public static final int GAZEBO = 13477; + public static final int SMALL_FOUNTAIN = 13478; + public static final int LARGE_FOUNTAIN = 13479; + public static final int ORNAMENTAL_FOUNTAIN = 13480; + public static final int CRAWLING_HAND = 13481; + public static final int COCKATRICE_HEAD_13482 = 13482; + public static final int BASILISK_HEAD_13483 = 13483; + public static final int KURASK_HEAD_13484 = 13484; + public static final int ABYSSAL_DEMON_HEAD = 13485; + public static final int KBD_HEADS = 13486; + public static final int KQ_HEAD = 13487; + public static final int MOUNTED_SEA_BASS_13488 = 13488; + public static final int MOUNTED_SWORDFISH_13489 = 13489; + public static final int MOUNTED_SHARK = 13490; + public static final int MITHRIL_ARMOUR = 13491; + public static final int ADAMANT_ARMOUR = 13492; + public static final int RUNE_ARMOUR = 13493; + public static final int RED_CASTLEWARS_ARMOUR = 13494; + public static final int WHITE_CASTLEWARS_ARMOUR = 13495; + public static final int GOLD_CASTLEWARS_ARMOUR = 13496; + public static final int STAIRCASE_13497 = 13497; + public static final int STAIRCASE_13498 = 13498; + public static final int STAIRCASE_13499 = 13499; + public static final int STAIRCASE_13500 = 13500; + public static final int STAIRCASE_13501 = 13501; + public static final int STAIRCASE_13502 = 13502; + public static final int STAIRCASE_13503 = 13503; + public static final int STAIRCASE_13504 = 13504; + public static final int STAIRCASE_13505 = 13505; + public static final int STAIRCASE_13506 = 13506; + public static final int RUNE_DISPLAY_CASE = 13507; + public static final int RUNE_DISPLAY_CASE_13508 = 13508; + public static final int RUNE_DISPLAY_CASE_13509 = 13509; + public static final int PORTRAIT_13510 = 13510; + public static final int PORTRAIT_13511 = 13511; + public static final int PAINTING_13512 = 13512; + public static final int PORTRAIT_13513 = 13513; + public static final int DESERT_PAINTING = 13514; + public static final int ISAFDAR_PAINTING = 13515; + public static final int KARAMJA_PAINTING = 13516; + public static final int LUMBRIDGE_PAINTING = 13517; + public static final int MORYTANIA_PAINTING = 13518; + public static final int SILVERLIGHT = 13519; + public static final int DARKLIGHT = 13520; + public static final int EXCALIBUR = 13521; + public static final int ANTIDRAGON_BREATH_SHIELD = 13522; + public static final int AMULET_OF_GLORY = 13523; + public static final int CAPE_OF_LEGENDS = 13524; + public static final int MAP = 13525; + public static final int MAP_13526 = 13526; + public static final int MAP_13527 = 13527; + public static final int FIREPIT = 13528; + public static final int FIREPIT_WITH_HOOK = 13529; + public static final int FIREPIT_WITH_HOOK_13530 = 13530; + public static final int FIREPIT_WITH_POT = 13531; + public static final int FIREPIT_WITH_POT_13532 = 13532; + public static final int SMALL_OVEN = 13533; + public static final int SMALL_OVEN_13534 = 13534; + public static final int SMALL_OVEN_13535 = 13535; + public static final int LARGE_OVEN = 13536; + public static final int LARGE_OVEN_13537 = 13537; + public static final int LARGE_OVEN_13538 = 13538; + public static final int IRON_RANGE = 13539; + public static final int IRON_RANGE_13540 = 13540; + public static final int IRON_RANGE_13541 = 13541; + public static final int FANCY_RANGE = 13542; + public static final int FNACY_RANGE = 13543; + public static final int FANCY_RANGE_13544 = 13544; + public static final int SHELVES_13545 = 13545; + public static final int SHELVES_13546 = 13546; + public static final int SHELVES_13547 = 13547; + public static final int SHELVES_13548 = 13548; + public static final int SHELVES_13549 = 13549; + public static final int SHELVES_13550 = 13550; + public static final int SHELVES_13551 = 13551; + public static final int SHELVES_13552 = 13552; + public static final int SHELVES_13553 = 13553; + public static final int SHELVES_13554 = 13554; + public static final int SHELVES_13555 = 13555; + public static final int SHELVES_13556 = 13556; + public static final int SHELVES_13557 = 13557; + public static final int SHELVES_13558 = 13558; + public static final int PUMP_AND_DRAIN = 13559; + public static final int PUMP_AND_DRAIN_13560 = 13560; + public static final int PUMP_AND_TUB = 13561; + public static final int PUMP_AND_TUB_13562 = 13562; + public static final int SINK_13563 = 13563; + public static final int SINK_13564 = 13564; + public static final int LARDER = 13565; + public static final int LARDER_13566 = 13566; + public static final int LARDER_13567 = 13567; + public static final int BEER_BARREL = 13568; + public static final int CIDER_BARREL = 13569; + public static final int ASGARNIAN_ALE_13570 = 13570; + public static final int GREENMANS_ALE_13571 = 13571; + public static final int DRAGON_BITTER_13572 = 13572; + public static final int CHEFS_DELIGHT_13573 = 13573; + public static final int PET_BLANKET = 13574; + public static final int PET_BASKET = 13575; + public static final int PET_BASKET_13576 = 13576; + public static final int WOODEN_TABLE_13577 = 13577; + public static final int OAK_TABLE_13578 = 13578; + public static final int TEAK_TABLE_13579 = 13579; + public static final int PET_BLANKET_13580 = 13580; + public static final int CHAIR_13581 = 13581; + public static final int CHAIR_13582 = 13582; + public static final int CHAIR_13583 = 13583; + public static final int CHAIR_13584 = 13584; + public static final int CHAIR_13585 = 13585; + public static final int CHAIR_13586 = 13586; + public static final int CHAIR_13587 = 13587; + public static final int RUG_13588 = 13588; + public static final int RUG_13589 = 13589; + public static final int RUG_13590 = 13590; + public static final int RUG_13591 = 13591; + public static final int RUG_13592 = 13592; + public static final int RUG_13593 = 13593; + public static final int RUG_13594 = 13594; + public static final int RUG_13595 = 13595; + public static final int RUG_13596 = 13596; + public static final int BOOKCASE_13597 = 13597; + public static final int BOOKCASE_13598 = 13598; + public static final int BOOKCASE_13599 = 13599; + public static final int SCROLL_RACK = 13600; + public static final int SCROLL_RACK_13601 = 13601; + public static final int SCROLL_RACK_13602 = 13602; + public static final int CURTAINS = 13603; + public static final int CURTAINS_13604 = 13604; + public static final int CURTAINS_13605 = 13605; + public static final int WALL_DECORATION = 13606; + public static final int WALL_DECORATION_13607 = 13607; + public static final int WALL_DECORATION_13608 = 13608; + public static final int CLAY_FIREPLACE = 13609; + public static final int CLAY_FIREPLACE_13610 = 13610; + public static final int LIMESTONE_FIREPLACE = 13611; + public static final int LIMESTONE_FIREPLACE_13612 = 13612; + public static final int MARBLE_FIREPLACE = 13613; + public static final int MARBLE_FIREPLACE_13614 = 13614; + public static final int VARROCK_PORTAL = 13615; + public static final int LUMBRIDGE_PORTAL = 13616; + public static final int FALADOR_PORTAL = 13617; + public static final int CAMELOT_PORTAL = 13618; + public static final int ARDOUGNE_PORTAL = 13619; + public static final int YANILLE_PORTAL = 13620; + public static final int TROLLHEIM_PORTAL = 13621; + public static final int VARROCK_PORTAL_13622 = 13622; + public static final int LUMBRIDGE_PORTAL_13623 = 13623; + public static final int FALADOR_PORTAL_13624 = 13624; + public static final int CAMELOT_PORTAL_13625 = 13625; + public static final int ARDOUGNE_PORTAL_13626 = 13626; + public static final int YANILLE_PORTAL_13627 = 13627; + public static final int TROLLHEIM_PORTAL_13628 = 13628; + public static final int VARROCK_PORTAL_13629 = 13629; + public static final int LUMBRIDGE_PORTAL_13630 = 13630; + public static final int FALADOR_PORTAL_13631 = 13631; + public static final int CAMELOT_PORTAL_13632 = 13632; + public static final int ARDOUGNE_PORTAL_13633 = 13633; + public static final int YANILLE_PORTAL_13634 = 13634; + public static final int TROLLHEIM_PORTAL_13635 = 13635; + public static final int PORTAL_FRAME = 13636; + public static final int PORTAL_FRAME_13637 = 13637; + public static final int PORTAL_FRAME_13638 = 13638; + public static final int SCRYING_POOL = 13639; + public static final int TELEPORTATION_FOCUS = 13640; + public static final int GREATER_TELEPORT_FOCUS = 13641; + public static final int LECTERN_13642 = 13642; + public static final int LECTERN_13643 = 13643; + public static final int LECTERN_13644 = 13644; + public static final int LECTERN_13645 = 13645; + public static final int LECTERN_13646 = 13646; + public static final int LECTERN_13647 = 13647; + public static final int LECTERN_13648 = 13648; + public static final int GLOBE = 13649; + public static final int ORNAMENTAL_GLOBE = 13650; + public static final int LUNAR_GLOBE = 13651; + public static final int CELESTIAL_GLOBE = 13652; + public static final int ARMILLARY_SPHERE = 13653; + public static final int SMALL_ORRERY = 13654; + public static final int LARGE_ORRERY = 13655; + public static final int TELESCOPE_13656 = 13656; + public static final int TELESCOPE_13657 = 13657; + public static final int TELESCOPE_13658 = 13658; + public static final int CRYSTAL_BALL_13659 = 13659; + public static final int ELEMENTAL_SPHERE = 13660; + public static final int CRYSTAL_OF_POWER = 13661; + public static final int ALCHEMICAL_CHART = 13662; + public static final int ASTRONOMICAL_CHART = 13663; + public static final int INFERNAL_CHART = 13664; + public static final int THRONE_13665 = 13665; + public static final int THRONE_13666 = 13666; + public static final int THRONE_13667 = 13667; + public static final int THRONE_13668 = 13668; + public static final int THRONE_13669 = 13669; + public static final int THRONE_13670 = 13670; + public static final int THRONE_13671 = 13671; + public static final int LEVER_13672 = 13672; + public static final int LEVER_13673 = 13673; + public static final int LEVER_13674 = 13674; + public static final int TRAPDOOR_13675 = 13675; + public static final int TRAPDOOR_13676 = 13676; + public static final int TRAPDOOR_13677 = 13677; + public static final int TRAPDOOR_13678 = 13678; + public static final int TRAPDOOR_13679 = 13679; + public static final int TRAPDOOR_13680 = 13680; + public static final int STEEL_CAGE = 13681; + public static final int MAGIC_CIRCLE_13682 = 13682; + public static final int GREATER_MAGIC_CIRCLE = 13683; + public static final int FLOOR_DECORATION = 13684; + public static final int FLOOR_DECORATION_13685 = 13685; + public static final int FLOOR_DECORATION_13686 = 13686; + public static final int FLOOR_DECORATION_13687 = 13687; + public static final int FLOOR_DECORATION_13688 = 13688; + public static final int FLOOR_DECORATION_13689 = 13689; + public static final int HANGING = 13690; + public static final int DECORATION = 13691; + public static final int DECORATION_13692 = 13692; + public static final int DECORATION_13693 = 13693; + public static final int TEAK_BENCH_13694 = 13694; + public static final int MAHOGANY_BENCH_13695 = 13695; + public static final int GILDED_BENCH_13696 = 13696; + public static final int NOTHING_13697 = 13697; + public static final int THRONE_13698 = 13698; + public static final int TOOLS_13699 = 13699; + public static final int TOOLS_13700 = 13700; + public static final int TOOLS_13701 = 13701; + public static final int TOOLS_13702 = 13702; + public static final int TOOLS_13703 = 13703; + public static final int WORKBENCH_13704 = 13704; + public static final int WORKBENCH_13705 = 13705; + public static final int WORKBENCH_13706 = 13706; + public static final int WORKBENCH_13707 = 13707; + public static final int WORKBENCH_13708 = 13708; + public static final int CLOCKMAKERS_BENCH = 13709; + public static final int CLOCKMAKERS_BENCH_13710 = 13710; + public static final int CLOCKMAKERS_BENCH_13711 = 13711; + public static final int CLOCKMAKERS_BENCH_13712 = 13712; + public static final int REPAIR_BENCH = 13713; + public static final int WHETSTONE = 13714; + public static final int ARMOUR_REPAIR_STAND = 13715; + public static final int HELMET_PLUMING_STAND = 13716; + public static final int PAINTING_STAND = 13717; + public static final int BANNER_MAKING_STAND = 13718; + public static final int STOOL_13719 = 13719; + public static final int STOOL_13720 = 13720; + public static final int NOTHING_13721 = 13721; + public static final int NOTHING_13722 = 13722; + public static final int NOTHING_13723 = 13723; + public static final int NOTHING_13724 = 13724; + public static final int NULL_13725 = 13725; + public static final int JACKY_JESTER_13726 = 13726; + public static final int JACKY_JESTER_13727 = 13727; + public static final int NULL_13728 = 13728; + public static final int NULL_13729 = 13729; + public static final int NULL_13730 = 13730; + public static final int NULL_13731 = 13731; + public static final int NULL_13732 = 13732; + public static final int NULL_13733 = 13733; + public static final int ROUND_SHIELD = 13734; + public static final int ROUND_SHIELD_13735 = 13735; + public static final int ROUND_SHIELD_13736 = 13736; + public static final int ROUND_SHIELD_13737 = 13737; + public static final int ROUND_SHIELD_13738 = 13738; + public static final int ROUND_SHIELD_13739 = 13739; + public static final int ROUND_SHIELD_13740 = 13740; + public static final int ROUND_SHIELD_13741 = 13741; + public static final int ROUND_SHIELD_13742 = 13742; + public static final int ROUND_SHIELD_13743 = 13743; + public static final int ROUND_SHIELD_13744 = 13744; + public static final int ROUND_SHIELD_13745 = 13745; + public static final int ROUND_SHIELD_13746 = 13746; + public static final int ROUND_SHIELD_13747 = 13747; + public static final int ROUND_SHIELD_13748 = 13748; + public static final int ROUND_SHIELD_13749 = 13749; + public static final int KITE_SHIELD = 13750; + public static final int KITE_SHIELD_13751 = 13751; + public static final int KITE_SHIELD_13752 = 13752; + public static final int KITE_SHIELD_13753 = 13753; + public static final int KITE_SHIELD_13754 = 13754; + public static final int KITE_SHIELD_13755 = 13755; + public static final int KITE_SHIELD_13756 = 13756; + public static final int KITE_SHIELD_13757 = 13757; + public static final int KITE_SHIELD_13758 = 13758; + public static final int KITE_SHIELD_13759 = 13759; + public static final int KITE_SHIELD_13760 = 13760; + public static final int KITE_SHIELD_13761 = 13761; + public static final int KITE_SHIELD_13762 = 13762; + public static final int KITE_SHIELD_13763 = 13763; + public static final int KITE_SHIELD_13764 = 13764; + public static final int KITE_SHIELD_13765 = 13765; + public static final int SQUARE_SHIELD = 13766; + public static final int SQUARE_SHIELD_13767 = 13767; + public static final int SQUARE_SHIELD_13768 = 13768; + public static final int SQUARE_SHIELD_13769 = 13769; + public static final int SQUARE_SHIELD_13770 = 13770; + public static final int SQUARE_SHIELD_13771 = 13771; + public static final int SQUARE_SHIELD_13772 = 13772; + public static final int SQUARE_SHIELD_13773 = 13773; + public static final int SQUARE_SHIELD_13774 = 13774; + public static final int SQUARE_SHIELD_13775 = 13775; + public static final int SQUARE_SHIELD_13776 = 13776; + public static final int SQUARE_SHIELD_13777 = 13777; + public static final int SQUARE_SHIELD_13778 = 13778; + public static final int SQUARE_SHIELD_13779 = 13779; + public static final int SQUARE_SHIELD_13780 = 13780; + public static final int SQUARE_SHIELD_13781 = 13781; + public static final int MAHOGANY_WALL_DECORATION = 13782; + public static final int MAHOGANY_WALL_DECORATION_13783 = 13783; + public static final int MAHOGANY_WALL_DECORATION_13784 = 13784; + public static final int MAHOGANY_WALL_DECORATION_13785 = 13785; + public static final int MAHOGANY_WALL_DECORATION_13786 = 13786; + public static final int MAHOGANY_WALL_DECORATION_13787 = 13787; + public static final int MAHOGANY_WALL_DECORATION_13788 = 13788; + public static final int MAHOGANY_WALL_DECORATION_13789 = 13789; + public static final int MAHOGANY_WALL_DECORATION_13790 = 13790; + public static final int MAHOGANY_WALL_DECORATION_13791 = 13791; + public static final int MAHOGANY_WALL_DECORATION_13792 = 13792; + public static final int MAHOGANY_WALL_DECORATION_13793 = 13793; + public static final int MAHOGANY_WALL_DECORATION_13794 = 13794; + public static final int MAHOGANY_WALL_DECORATION_13795 = 13795; + public static final int MAHOGANY_WALL_DECORATION_13796 = 13796; + public static final int MAHOGANY_WALL_DECORATION_13797 = 13797; + public static final int OAK_WALL_DECORATION = 13798; + public static final int OAK_WALL_DECORATION_13799 = 13799; + public static final int OAK_WALL_DECORATION_13800 = 13800; + public static final int OAK_WALL_DECORATION_13801 = 13801; + public static final int OAK_WALL_DECORATION_13802 = 13802; + public static final int OAK_WALL_DECORATION_13803 = 13803; + public static final int OAK_WALL_DECORATION_13804 = 13804; + public static final int OAK_WALL_DECORATION_13805 = 13805; + public static final int OAK_WALL_DECORATION_13806 = 13806; + public static final int OAK_WALL_DECORATION_13807 = 13807; + public static final int OAK_WALL_DECORATION_13808 = 13808; + public static final int OAK_WALL_DECORATION_13809 = 13809; + public static final int OAK_WALL_DECORATION_13810 = 13810; + public static final int OAK_WALL_DECORATION_13811 = 13811; + public static final int OAK_WALL_DECORATION_13812 = 13812; + public static final int OAK_WALL_DECORATION_13813 = 13813; + public static final int TEAK_WALL_DECORATION = 13814; + public static final int TEAK_WALL_DECORATION_13815 = 13815; + public static final int TEAK_WALL_DECORATION_13816 = 13816; + public static final int TEAK_WALL_DECORATION_13817 = 13817; + public static final int TEAK_WALL_DECORATION_13818 = 13818; + public static final int TEAK_WALL_DECORATION_13819 = 13819; + public static final int TEAK_WALL_DECORATION_13820 = 13820; + public static final int TEAK_WALL_DECORATION_13821 = 13821; + public static final int TEAK_WALL_DECORATION_13822 = 13822; + public static final int TEAK_WALL_DECORATION_13823 = 13823; + public static final int TEAK_WALL_DECORATION_13824 = 13824; + public static final int TEAK_WALL_DECORATION_13825 = 13825; + public static final int TEAK_WALL_DECORATION_13826 = 13826; + public static final int TEAK_WALL_DECORATION_13827 = 13827; + public static final int TEAK_WALL_DECORATION_13828 = 13828; + public static final int TEAK_WALL_DECORATION_13829 = 13829; + public static final int WINDOW_13830 = 13830; + public static final int PATH = 13831; + public static final int PATH_13832 = 13832; + public static final int PATH_13833 = 13833; + public static final int BROKEN_BRIDGE_13834 = 13834; + public static final int PARTIALLY_BROKEN_BRIDGE = 13835; + public static final int SIGHTLY_BROKEN_BRIDGE = 13836; + public static final int FIXED_BRIDGE = 13837; + public static final int BOG = 13838; + public static final int BOG_13839 = 13839; + public static final int SPINY_BUSH = 13840; + public static final int ROW_BOAT_13841 = 13841; + public static final int RIPPLES = 13842; + public static final int SWAMP_TREE = 13843; + public static final int SWAMP_TREE_13844 = 13844; + public static final int SWAMP_TREE_13845 = 13845; + public static final int VINE_HANGING_FROM_BRANCH = 13846; + public static final int SWAMP_TREE_13847 = 13847; + public static final int SWAMP_TREE_13848 = 13848; + public static final int SWAMP_TREE_13849 = 13849; + public static final int SWAMP_TREE_13850 = 13850; + public static final int NULL_13851 = 13851; + public static final int NULL_13852 = 13852; + public static final int NULL_13853 = 13853; + public static final int NULL_13854 = 13854; + public static final int NULL_13855 = 13855; + public static final int NULL_13856 = 13856; + public static final int NULL_13857 = 13857; + public static final int NULL_13858 = 13858; + public static final int NULL_13859 = 13859; + public static final int NULL_13860 = 13860; + public static final int NULL_13861 = 13861; + public static final int NULL_13862 = 13862; + public static final int NULL_13863 = 13863; + public static final int BOAT_13864 = 13864; + public static final int NULL_13865 = 13865; + public static final int PATH_13866 = 13866; + public static final int PATH_13867 = 13867; + public static final int PATH_13868 = 13868; + public static final int PATH_13869 = 13869; + public static final int PATH_13870 = 13870; + public static final int PATH_13871 = 13871; + public static final int BACKPACK = 13872; + public static final int SIGNPOST_13873 = 13873; + public static final int NULL_13874 = 13874; + public static final int NULL_13875 = 13875; + public static final int NULL_13876 = 13876; + public static final int NULL_13877 = 13877; + public static final int EXIT_13878 = 13878; + public static final int EXIT_13879 = 13879; + public static final int NULL_13880 = 13880; + public static final int FIRE_13881 = 13881; + public static final int EXIT_13882 = 13882; + public static final int NULL_13883 = 13883; + public static final int NULL_13884 = 13884; + public static final int NULL_13885 = 13885; + public static final int NULL_13886 = 13886; + public static final int NULL_13887 = 13887; + public static final int NULL_13888 = 13888; + public static final int NULL_13889 = 13889; + public static final int NULL_13890 = 13890; + public static final int DARK_HOLE_13891 = 13891; + public static final int DARK_HOLE_13892 = 13892; + public static final int DARK_HOLE_13893 = 13893; + public static final int DARK_HOLE_13894 = 13894; + public static final int DARK_HOLE_13895 = 13895; + public static final int DARK_HOLE_13896 = 13896; + public static final int NULL_13897 = 13897; + public static final int NULL_13898 = 13898; + public static final int BLACK_HOLE = 13899; + public static final int BLACK_HOLE_13900 = 13900; + public static final int EXIT_13901 = 13901; + public static final int NULL_13902 = 13902; + public static final int NULL_13903 = 13903; + public static final int EXIT_13904 = 13904; + public static final int NULL_13905 = 13905; + public static final int NULL_13906 = 13906; + public static final int NULL_13907 = 13907; + public static final int NULL_13908 = 13908; + public static final int NULL_13909 = 13909; + public static final int NULL_13910 = 13910; + public static final int NULL_13911 = 13911; + public static final int NULL_13912 = 13912; + public static final int CONFUSING_DOOR = 13913; + public static final int CONFUSING_DOOR_13914 = 13914; + public static final int CONFUSING_DOOR_13915 = 13915; + public static final int CONFUSING_DOOR_13916 = 13916; + public static final int CONFUSING_DOOR_13917 = 13917; + public static final int CONFUSING_DOOR_13918 = 13918; + public static final int CONFUSING_DOOR_13919 = 13919; + public static final int CONFUSING_DOOR_13920 = 13920; + public static final int CONFUSING_DOOR_13921 = 13921; + public static final int CONFUSING_DOOR_13922 = 13922; + public static final int CONFUSING_DOOR_13923 = 13923; + public static final int CONFUSING_DOOR_13924 = 13924; + public static final int HOLE_13925 = 13925; + public static final int NULL_13926 = 13926; + public static final int NULL_13927 = 13927; + public static final int NULL_13928 = 13928; + public static final int NULL_13929 = 13929; + public static final int NULL_13930 = 13930; + public static final int NULL_13931 = 13931; + public static final int EXIT_13932 = 13932; + public static final int EXIT_13933 = 13933; + public static final int NULL_13934 = 13934; + public static final int NULL_13935 = 13935; + public static final int NULL_13936 = 13936; + public static final int NULL_13937 = 13937; + public static final int HOPE_BRIDGE = 13938; + public static final int HOPE_BRIDGE_13939 = 13939; + public static final int HOPE_BRIDGE_13940 = 13940; + public static final int HOPE_BRIDGE_13941 = 13941; + public static final int HOPE_BRIDGE_13942 = 13942; + public static final int HOPE_BRIDGE_13943 = 13943; + public static final int HOPE_BRIDGE_13944 = 13944; + public static final int HOPE_BRIDGE_13945 = 13945; + public static final int HOPE_BRIDGE_13946 = 13946; + public static final int HOPE_BRIDGE_13947 = 13947; + public static final int HOPE_BRIDGE_13948 = 13948; + public static final int HOPE_BRIDGE_13949 = 13949; + public static final int HOPE_BRIDGE_13950 = 13950; + public static final int HOPE_BRIDGE_13951 = 13951; + public static final int HOPE_BRIDGE_13952 = 13952; + public static final int HOPE_BRIDGE_13953 = 13953; + public static final int HOPE_BRIDGE_13954 = 13954; + public static final int HOPE_BRIDGE_13955 = 13955; + public static final int HOPE_BRIDGE_13956 = 13956; + public static final int HOPE_BRIDGE_13957 = 13957; + public static final int HOPE_BRIDGE_13958 = 13958; + public static final int HOPE_BRIDGE_13959 = 13959; + public static final int HOPE_BRIDGE_13960 = 13960; + public static final int HOPE_BRIDGE_13961 = 13961; + public static final int NULL_13962 = 13962; + public static final int NULL_13963 = 13963; + public static final int NULL_13964 = 13964; + public static final int NULL_13965 = 13965; + public static final int NULL_13966 = 13966; + public static final int RIFT = 13967; + public static final int NULL_13968 = 13968; + public static final int RIFT_13969 = 13969; + public static final int RIFT_13970 = 13970; + public static final int RIFT_13971 = 13971; + public static final int RIFT_13972 = 13972; + public static final int RIFT_13973 = 13973; + public static final int RIFT_13974 = 13974; + public static final int RIFT_13975 = 13975; + public static final int RIFT_13976 = 13976; + public static final int RIFT_13977 = 13977; + public static final int RIFT_13978 = 13978; + public static final int RIFT_13979 = 13979; + public static final int RIFT_13980 = 13980; + public static final int NULL_13981 = 13981; + public static final int NULL_13982 = 13982; + public static final int NULL_13983 = 13983; + public static final int NULL_13984 = 13984; + public static final int NULL_13985 = 13985; + public static final int NULL_13986 = 13986; + public static final int NULL_13987 = 13987; + public static final int NULL_13988 = 13988; + public static final int NULL_13989 = 13989; + public static final int NULL_13990 = 13990; + public static final int NULL_13991 = 13991; + public static final int NULL_13992 = 13992; + public static final int NULL_13993 = 13993; + public static final int WEAPON_RACK_13994 = 13994; + public static final int WEAPON_RACK_13995 = 13995; + public static final int WEAPON_RACK_13996 = 13996; + public static final int WEAPON_RACK_13997 = 13997; + public static final int WEAPON_RACK_13998 = 13998; + public static final int ROPE_13999 = 13999; + public static final int NULL_14000 = 14000; + public static final int NULL_14001 = 14001; + public static final int WARNING_SIGN_14002 = 14002; + public static final int GRASS_14003 = 14003; + public static final int NULL_14004 = 14004; + public static final int POTBOILER = 14005; + public static final int POTBOILER_14006 = 14006; + public static final int POTBOILER_14007 = 14007; + public static final int POTBOILER_14008 = 14008; + public static final int POTBOILER_14009 = 14009; + public static final int WISHLIST = 14010; + public static final int MARKET_STALL_14011 = 14011; + public static final int MARKET_STALL_14012 = 14012; + public static final int MASSIVE_RIBS = 14013; + public static final int NULL_14014 = 14014; + public static final int NULL_14015 = 14015; + public static final int BOX_OF_BONES = 14016; + public static final int BOX_OF_BONES_14017 = 14017; + public static final int BONES_14018 = 14018; + public static final int BONES_14019 = 14019; + public static final int BONES_14020 = 14020; + public static final int BONES_14021 = 14021; + public static final int BONES_14022 = 14022; + public static final int BONES_14023 = 14023; + public static final int BONES_14024 = 14024; + public static final int BONES_14025 = 14025; + public static final int BONES_14026 = 14026; + public static final int BONES_14027 = 14027; + public static final int BONES_14028 = 14028; + public static final int BONES_14029 = 14029; + public static final int BONES_14030 = 14030; + public static final int BONES_14031 = 14031; + public static final int BONES_14032 = 14032; + public static final int NULL_14033 = 14033; + public static final int NULL_14034 = 14034; + public static final int FISHING_CONTEST_BANNER = 14035; + public static final int NULL_14036 = 14036; + public static final int NULL_14037 = 14037; + public static final int NULL_14038 = 14038; + public static final int NULL_14039 = 14039; + public static final int BONZOS_TABLE = 14040; + public static final int BONZOS_TABLE_14041 = 14041; + public static final int NULL_14042 = 14042; + public static final int BARREL_14043 = 14043; + public static final int TABLE_14044 = 14044; + public static final int BED_14045 = 14045; + public static final int NULL_14046 = 14046; + public static final int NULL_14047 = 14047; + public static final int NULL_14048 = 14048; + public static final int TABLE_14049 = 14049; + public static final int CHAIR_14050 = 14050; + public static final int SMALL_TABLE_14051 = 14051; + public static final int NULL_14052 = 14052; + public static final int NULL_14053 = 14053; + public static final int NULL_14054 = 14054; + public static final int NULL_14055 = 14055; + public static final int NULL_14056 = 14056; + public static final int NULL_14057 = 14057; + public static final int NULL_14058 = 14058; + public static final int NULL_14059 = 14059; + public static final int NULL_14060 = 14060; + public static final int NULL_14061 = 14061; + public static final int NULL_14062 = 14062; + public static final int NULL_14063 = 14063; + public static final int NULL_14064 = 14064; + public static final int NULL_14065 = 14065; + public static final int NULL_14066 = 14066; + public static final int NULL_14067 = 14067; + public static final int NULL_14068 = 14068; + public static final int NULL_14069 = 14069; + public static final int NULL_14070 = 14070; + public static final int NULL_14071 = 14071; + public static final int NULL_14072 = 14072; + public static final int NULL_14073 = 14073; + public static final int NULL_14074 = 14074; + public static final int NULL_14075 = 14075; + public static final int NULL_14076 = 14076; + public static final int NULL_14077 = 14077; + public static final int NULL_14078 = 14078; + public static final int NULL_14079 = 14079; + public static final int NULL_14080 = 14080; + public static final int NULL_14081 = 14081; + public static final int NULL_14082 = 14082; + public static final int NULL_14083 = 14083; + public static final int NULL_14084 = 14084; + public static final int NULL_14085 = 14085; + public static final int NULL_14086 = 14086; + public static final int NULL_14087 = 14087; + public static final int NULL_14088 = 14088; + public static final int NULL_14089 = 14089; + public static final int NULL_14090 = 14090; + public static final int NULL_14091 = 14091; + public static final int NULL_14092 = 14092; + public static final int NULL_14093 = 14093; + public static final int NULL_14094 = 14094; + public static final int NULL_14095 = 14095; + public static final int NULL_14096 = 14096; + public static final int NULL_14097 = 14097; + public static final int NULL_14098 = 14098; + public static final int NULL_14099 = 14099; + public static final int NULL_14100 = 14100; + public static final int NULL_14101 = 14101; + public static final int NULL_14102 = 14102; + public static final int NULL_14103 = 14103; + public static final int NULL_14104 = 14104; + public static final int NULL_14105 = 14105; + public static final int NULL_14106 = 14106; + public static final int NULL_14107 = 14107; + public static final int NULL_14108 = 14108; + public static final int NULL_14109 = 14109; + public static final int NULL_14110 = 14110; + public static final int NULL_14111 = 14111; + public static final int NULL_14112 = 14112; + public static final int NULL_14113 = 14113; + public static final int NULL_14114 = 14114; + public static final int NULL_14115 = 14115; + public static final int NULL_14116 = 14116; + public static final int NULL_14117 = 14117; + public static final int NULL_14118 = 14118; + public static final int NULL_14119 = 14119; + public static final int NULL_14120 = 14120; + public static final int NULL_14121 = 14121; + public static final int NULL_14122 = 14122; + public static final int NULL_14123 = 14123; + public static final int NULL_14124 = 14124; + public static final int NULL_14125 = 14125; + public static final int NULL_14126 = 14126; + public static final int NULL_14127 = 14127; + public static final int NULL_14128 = 14128; + public static final int NULL_14129 = 14129; + public static final int NULL_14130 = 14130; + public static final int NULL_14131 = 14131; + public static final int NULL_14132 = 14132; + public static final int NULL_14133 = 14133; + public static final int NULL_14134 = 14134; + public static final int NULL_14135 = 14135; + public static final int NULL_14136 = 14136; + public static final int NULL_14137 = 14137; + public static final int NULL_14138 = 14138; + public static final int NULL_14139 = 14139; + public static final int NULL_14140 = 14140; + public static final int NULL_14141 = 14141; + public static final int NULL_14142 = 14142; + public static final int NULL_14143 = 14143; + public static final int NULL_14144 = 14144; + public static final int NULL_14145 = 14145; + public static final int NULL_14146 = 14146; + public static final int NULL_14147 = 14147; + public static final int NULL_14148 = 14148; + public static final int NULL_14149 = 14149; + public static final int NULL_14150 = 14150; + public static final int NULL_14151 = 14151; + public static final int NULL_14152 = 14152; + public static final int NULL_14153 = 14153; + public static final int NULL_14154 = 14154; + public static final int NULL_14155 = 14155; + public static final int NULL_14156 = 14156; + public static final int NULL_14157 = 14157; + public static final int NULL_14158 = 14158; + public static final int NULL_14159 = 14159; + public static final int NULL_14160 = 14160; + public static final int NULL_14161 = 14161; + public static final int NULL_14162 = 14162; + public static final int TABLE_14163 = 14163; + public static final int NULL_14164 = 14164; + public static final int NULL_14165 = 14165; + public static final int NULL_14166 = 14166; + public static final int NULL_14167 = 14167; + public static final int EASTER_BIRD_PERCH = 14168; + public static final int PILE_OF_EGGS = 14169; + public static final int PILE_OF_EGGS_14170 = 14170; + public static final int PILE_OF_EGGS_14171 = 14171; + public static final int PILE_OF_EGGS_14172 = 14172; + public static final int SPEAKER = 14173; + public static final int SPEAKER_14174 = 14174; + public static final int CHUTE = 14175; + public static final int NULL_14176 = 14176; + public static final int NULL_14177 = 14177; + public static final int CHUTE_14178 = 14178; + public static final int LIGHT_14179 = 14179; + public static final int NULL_14180 = 14180; + public static final int NULL_14181 = 14181; + public static final int NULL_14182 = 14182; + public static final int NULL_14183 = 14183; + public static final int NULL_14184 = 14184; + public static final int NULL_14185 = 14185; + public static final int NULL_14186 = 14186; + public static final int NULL_14187 = 14187; + public static final int NULL_14188 = 14188; + public static final int NULL_14189 = 14189; + public static final int NULL_14190 = 14190; + public static final int NULL_14191 = 14191; + public static final int NULL_14192 = 14192; + public static final int NULL_14193 = 14193; + public static final int NULL_14194 = 14194; + public static final int NULL_14195 = 14195; + public static final int EGG_CHUTE = 14196; + public static final int EGG_CHUTE_14197 = 14197; + public static final int EGG_CHUTE_14198 = 14198; + public static final int EGG_CHUTE_14199 = 14199; + public static final int EGG_CHUTE_14200 = 14200; + public static final int EGG_CHUTE_14201 = 14201; + public static final int EGG_CHUTE_14202 = 14202; + public static final int HOLE_14203 = 14203; + public static final int MOUND = 14204; + public static final int MOUND_14205 = 14205; + public static final int MOUND_14206 = 14206; + public static final int MOUND_14207 = 14207; + public static final int MOUND_14208 = 14208; + public static final int MOUND_14209 = 14209; + public static final int NULL_14210 = 14210; + public static final int NULL_14211 = 14211; + public static final int WALL_14212 = 14212; + public static final int WALL_14213 = 14213; + public static final int NULL_14214 = 14214; + public static final int NULL_14215 = 14215; + public static final int WALL_14216 = 14216; + public static final int WALL_14217 = 14217; + public static final int WALL_14218 = 14218; + public static final int WALL_14219 = 14219; + public static final int WALL_14220 = 14220; + public static final int WALL_14221 = 14221; + public static final int NULL_14222 = 14222; + public static final int NULL_14223 = 14223; + public static final int BARRICADE_14224 = 14224; + public static final int BARRICADE_14225 = 14225; + public static final int BARRICADE_14226 = 14226; + public static final int BARRICADE_14227 = 14227; + public static final int BARRICADE_14228 = 14228; + public static final int BARRICADE_14229 = 14229; + public static final int BARRICADE_14230 = 14230; + public static final int BARRICADE_14231 = 14231; + public static final int BARRICADE_14232 = 14232; + public static final int GATE_14233 = 14233; + public static final int GATE_14234 = 14234; + public static final int GATE_14235 = 14235; + public static final int GATE_14236 = 14236; + public static final int GATE_14237 = 14237; + public static final int GATE_14238 = 14238; + public static final int GATE_14239 = 14239; + public static final int GATE_14240 = 14240; + public static final int GATE_14241 = 14241; + public static final int GATE_14242 = 14242; + public static final int GATE_14243 = 14243; + public static final int GATE_14244 = 14244; + public static final int GATE_14245 = 14245; + public static final int GATE_14246 = 14246; + public static final int GATE_14247 = 14247; + public static final int GATE_14248 = 14248; + public static final int NULL_14249 = 14249; + public static final int NULL_14250 = 14250; + public static final int NULL_14251 = 14251; + public static final int NULL_14252 = 14252; + public static final int NULL_14253 = 14253; + public static final int NULL_14254 = 14254; + public static final int NULL_14255 = 14255; + public static final int NULL_14256 = 14256; + public static final int NULL_14257 = 14257; + public static final int LANDER_BOAT = 14258; + public static final int LANDER_BOAT_14259 = 14259; + public static final int LANDER_BOAT_14260 = 14260; + public static final int LANDER_BOAT_14261 = 14261; + public static final int LANDER_BOAT_14262 = 14262; + public static final int LANDER_BOAT_14263 = 14263; + public static final int LANDER_BOAT_14264 = 14264; + public static final int LANDER_BOAT_14265 = 14265; + public static final int LANDER_BOAT_14266 = 14266; + public static final int LANDER_BOAT_14267 = 14267; + public static final int LANDER_BOAT_14268 = 14268; + public static final int LANDER_HATCH = 14269; + public static final int NULL_14270 = 14270; + public static final int NULL_14271 = 14271; + public static final int NULL_14272 = 14272; + public static final int NULL_14273 = 14273; + public static final int NULL_14274 = 14274; + public static final int NULL_14275 = 14275; + public static final int NULL_14276 = 14276; + public static final int NULL_14277 = 14277; + public static final int NULL_14278 = 14278; + public static final int NULL_14279 = 14279; + public static final int NULL_14280 = 14280; + public static final int NULL_14281 = 14281; + public static final int NULL_14282 = 14282; + public static final int BANNER_14283 = 14283; + public static final int NULL_14284 = 14284; + public static final int NULL_14285 = 14285; + public static final int NULL_14286 = 14286; + public static final int NULL_14287 = 14287; + public static final int NULL_14288 = 14288; + public static final int NULL_14289 = 14289; + public static final int NULL_14290 = 14290; + public static final int NULL_14291 = 14291; + public static final int NULL_14292 = 14292; + public static final int NULL_14293 = 14293; + public static final int NULL_14294 = 14294; + public static final int NULL_14295 = 14295; + public static final int LADDER_14296 = 14296; + public static final int NULL_14297 = 14297; + public static final int NULL_14298 = 14298; + public static final int NULL_14299 = 14299; + public static final int NULL_14300 = 14300; + public static final int NULL_14301 = 14301; + public static final int NULL_14302 = 14302; + public static final int NULL_14303 = 14303; + public static final int GANGPLANK_14304 = 14304; + public static final int GANGPLANK_14305 = 14305; + public static final int GANGPLANK_14306 = 14306; + public static final int GANGPLANK_14307 = 14307; + public static final int TREE_14308 = 14308; + public static final int TREE_14309 = 14309; + public static final int NULL_14310 = 14310; + public static final int NULL_14311 = 14311; + public static final int NULL_14312 = 14312; + public static final int NULL_14313 = 14313; + public static final int LADDER_14314 = 14314; + public static final int GANGPLANK_14315 = 14315; + public static final int NULL_14316 = 14316; + public static final int NULL_14317 = 14317; + public static final int NULL_14318 = 14318; + public static final int NULL_14319 = 14319; + public static final int NULL_14320 = 14320; + public static final int NULL_14321 = 14321; + public static final int NULL_14322 = 14322; + public static final int NULL_14323 = 14323; + public static final int NULL_14324 = 14324; + public static final int NULL_14325 = 14325; + public static final int NULL_14326 = 14326; + public static final int NULL_14327 = 14327; + public static final int NULL_14328 = 14328; + public static final int NULL_14329 = 14329; + public static final int NULL_14330 = 14330; + public static final int NULL_14331 = 14331; + public static final int NULL_14332 = 14332; + public static final int NULL_14333 = 14333; + public static final int NULL_14334 = 14334; + public static final int BONES_14335 = 14335; + public static final int NULL_14336 = 14336; + public static final int NULL_14337 = 14337; + public static final int NULL_14338 = 14338; + public static final int NULL_14339 = 14339; + public static final int NULL_14340 = 14340; + public static final int NULL_14341 = 14341; + public static final int NULL_14342 = 14342; + public static final int NULL_14343 = 14343; + public static final int NULL_14344 = 14344; + public static final int NULL_14345 = 14345; + public static final int NULL_14346 = 14346; + public static final int NULL_14347 = 14347; + public static final int NULL_14348 = 14348; + public static final int NULL_14349 = 14349; + public static final int NULL_14350 = 14350; + public static final int NULL_14351 = 14351; + public static final int NULL_14352 = 14352; + public static final int NULL_14353 = 14353; + public static final int NULL_14354 = 14354; + public static final int PILE_OF_BRICKS_14355 = 14355; + public static final int SHELVES_14356 = 14356; + public static final int SHELVES_14357 = 14357; + public static final int SHELVES_14358 = 14358; + public static final int SHELVES_14359 = 14359; + public static final int CAULDRON_14360 = 14360; + public static final int NULL_14361 = 14361; + public static final int CHARMS_14362 = 14362; + public static final int TABLE_14363 = 14363; + public static final int ROCKING_CHAIR_14364 = 14364; + public static final int NULL_14365 = 14365; + public static final int COUNTER_14366 = 14366; + public static final int BANK_BOOTH_14367 = 14367; + public static final int BANK_BOOTH_14368 = 14368; + public static final int CRATE_14369 = 14369; + public static final int CRATES_14370 = 14370; + public static final int BOXES_14371 = 14371; + public static final int CRATES_14372 = 14372; + public static final int BLACKSMITHS_TOOLS_14373 = 14373; + public static final int BARREL_14374 = 14374; + public static final int SHELVES_14375 = 14375; + public static final int SHELVES_14376 = 14376; + public static final int SHELVES_14377 = 14377; + public static final int SHELVES_14378 = 14378; + public static final int SHELVES_14379 = 14379; + public static final int NULL_14380 = 14380; + public static final int STOOL_14381 = 14381; + public static final int BANK_CHEST_14382 = 14382; + public static final int NULL_14383 = 14383; + public static final int NULL_14384 = 14384; + public static final int NULL_14385 = 14385; + public static final int NULL_14386 = 14386; + public static final int NULL_14387 = 14387; + public static final int NULL_14388 = 14388; + public static final int NULL_14389 = 14389; + public static final int NULL_14390 = 14390; + public static final int NULL_14391 = 14391; + public static final int NULL_14392 = 14392; + public static final int NULL_14393 = 14393; + public static final int NULL_14394 = 14394; + public static final int NULL_14395 = 14395; + public static final int NULL_14396 = 14396; + public static final int NULL_14397 = 14397; + public static final int NULL_14398 = 14398; + public static final int NULL_14399 = 14399; + public static final int NULL_14400 = 14400; + public static final int NULL_14401 = 14401; + public static final int NULL_14402 = 14402; + public static final int NULL_14403 = 14403; + public static final int NULL_14404 = 14404; + public static final int NULL_14405 = 14405; + public static final int NULL_14406 = 14406; + public static final int NULL_14407 = 14407; + public static final int NULL_14408 = 14408; + public static final int NULL_14409 = 14409; + public static final int NULL_14410 = 14410; + public static final int NULL_14411 = 14411; + public static final int NULL_14412 = 14412; + public static final int NULL_14413 = 14413; + public static final int NULL_14414 = 14414; + public static final int STUDY_DESK_14415 = 14415; + public static final int NULL_14416 = 14416; + public static final int NULL_14417 = 14417; + public static final int NULL_14418 = 14418; + public static final int NULL_14419 = 14419; + public static final int NULL_14420 = 14420; + public static final int NULL_14421 = 14421; + public static final int NULL_14422 = 14422; + public static final int NULL_14423 = 14423; + public static final int NULL_14424 = 14424; + public static final int NULL_14425 = 14425; + public static final int NULL_14426 = 14426; + public static final int NULL_14427 = 14427; + public static final int FISHING_SPOT_14428 = 14428; + public static final int NULL_14429 = 14429; + public static final int NULL_14430 = 14430; + public static final int RIFT_14431 = 14431; + public static final int NULL_14432 = 14432; + public static final int NULL_14433 = 14433; + public static final int GAS_BUBBLE = 14434; + public static final int NULL_14435 = 14435; + public static final int CAVE_ENTRANCE_14436 = 14436; + public static final int NULL_14437 = 14437; + public static final int NULL_14438 = 14438; + public static final int NULL_14439 = 14439; + public static final int NULL_14440 = 14440; + public static final int NULL_14441 = 14441; + public static final int NULL_14442 = 14442; + public static final int MUSHROOM_14443 = 14443; + public static final int MUSHROOM_14444 = 14444; + public static final int MUSHROOM_14445 = 14445; + public static final int MUSHROOM_14446 = 14446; + public static final int MUSHROOM_14447 = 14447; + public static final int MUSHROOM_14448 = 14448; + public static final int MUSHROOM_14449 = 14449; + public static final int NULL_14450 = 14450; + public static final int NULL_14451 = 14451; + public static final int NULL_14452 = 14452; + public static final int NULL_14453 = 14453; + public static final int NULL_14454 = 14454; + public static final int NULL_14455 = 14455; + public static final int NULL_14456 = 14456; + public static final int NULL_14457 = 14457; + public static final int NULL_14458 = 14458; + public static final int NULL_14459 = 14459; + public static final int NULL_14460 = 14460; + public static final int NULL_14461 = 14461; + public static final int NULL_14462 = 14462; + public static final int NULL_14463 = 14463; + public static final int NULL_14464 = 14464; + public static final int NULL_14465 = 14465; + public static final int NULL_14466 = 14466; + public static final int NULL_14467 = 14467; + public static final int NULL_14468 = 14468; + public static final int NULL_14469 = 14469; + public static final int NULL_14470 = 14470; + public static final int NULL_14471 = 14471; + public static final int SKELETON_14472 = 14472; + public static final int CAGE_14473 = 14473; + public static final int CAGE_14474 = 14474; + public static final int SKELETON_14475 = 14475; + public static final int SKELETON_14476 = 14476; + public static final int SKELETON_14477 = 14477; + public static final int SKELETON_14478 = 14478; + public static final int STOCKS_14479 = 14479; + public static final int SKELETON_14480 = 14480; + public static final int SKELETON_14481 = 14481; + public static final int NULL_14482 = 14482; + public static final int NULL_14483 = 14483; + public static final int NULL_14484 = 14484; + public static final int NULL_14485 = 14485; + public static final int NULL_14486 = 14486; + public static final int NULL_14487 = 14487; + public static final int NULL_14488 = 14488; + public static final int NULL_14489 = 14489; + public static final int NULL_14490 = 14490; + public static final int NULL_14491 = 14491; + public static final int NULL_14492 = 14492; + public static final int NULL_14493 = 14493; + public static final int NULL_14494 = 14494; + public static final int NULL_14495 = 14495; + public static final int NULL_14496 = 14496; + public static final int NULL_14497 = 14497; + public static final int NULL_14498 = 14498; + public static final int NULL_14499 = 14499; + public static final int NULL_14500 = 14500; + public static final int NULL_14501 = 14501; + public static final int NULL_14502 = 14502; + public static final int WILDERNESS_SIGN = 14503; + public static final int WILDERNESS_SIGN_14504 = 14504; + public static final int WILDERNESS_SIGN_14505 = 14505; + public static final int WILDERNESS_SIGN_14506 = 14506; + public static final int WILDERNESS_SIGN_14507 = 14507; + public static final int NULL_14508 = 14508; + public static final int NULL_14509 = 14509; + public static final int NULL_14510 = 14510; + public static final int NULL_14511 = 14511; + public static final int NULL_14512 = 14512; + public static final int TREE_14513 = 14513; + public static final int TREE_14514 = 14514; + public static final int TREE_14515 = 14515; + public static final int TREE_STUMP_14516 = 14516; + public static final int TREE_STUMP_14517 = 14517; + public static final int ROOTS_14518 = 14518; + public static final int ROOTS_14519 = 14519; + public static final int ROOTS_14520 = 14520; + public static final int TREE_14521 = 14521; + public static final int NULL_14522 = 14522; + public static final int SKELETON_14523 = 14523; + public static final int SKELETON_14524 = 14524; + public static final int SKELETON_14525 = 14525; + public static final int BONES_14526 = 14526; + public static final int BONES_14527 = 14527; + public static final int BONES_14528 = 14528; + public static final int BONES_14529 = 14529; + public static final int BONES_14530 = 14530; + public static final int BONES_14531 = 14531; + public static final int BONES_14532 = 14532; + public static final int BONES_14533 = 14533; + public static final int BONES_14534 = 14534; + public static final int BONES_14535 = 14535; + public static final int BONES_14536 = 14536; + public static final int BONES_14537 = 14537; + public static final int MUSHROOM_14538 = 14538; + public static final int MUSHROOM_14539 = 14539; + public static final int MUSHROOM_14540 = 14540; + public static final int MUSHROOM_14541 = 14541; + public static final int MUSHROOM_14542 = 14542; + public static final int NULL_14543 = 14543; + public static final int NULL_14544 = 14544; + public static final int NULL_14545 = 14545; + public static final int NULL_14546 = 14546; + public static final int NULL_14547 = 14547; + public static final int NULL_14548 = 14548; + public static final int NULL_14549 = 14549; + public static final int NULL_14550 = 14550; + public static final int NULL_14551 = 14551; + public static final int NULL_14552 = 14552; + public static final int NULL_14553 = 14553; + public static final int NULL_14554 = 14554; + public static final int NULL_14555 = 14555; + public static final int STONE_PILE = 14556; + public static final int STONE_PILE_14557 = 14557; + public static final int NULL_14558 = 14558; + public static final int NULL_14559 = 14559; + public static final int NULL_14560 = 14560; + public static final int NULL_14561 = 14561; + public static final int NULL_14562 = 14562; + public static final int NULL_14563 = 14563; + public static final int TREE_14564 = 14564; + public static final int TREE_14565 = 14565; + public static final int TREE_14566 = 14566; + public static final int TREE_STUMP_14567 = 14567; + public static final int ROOTS_14568 = 14568; + public static final int ROOTS_14569 = 14569; + public static final int ROOTS_14570 = 14570; + public static final int TREE_14571 = 14571; + public static final int NULL_14572 = 14572; + public static final int SKELETON_14573 = 14573; + public static final int SKELETON_14574 = 14574; + public static final int SKELETON_14575 = 14575; + public static final int BONES_14576 = 14576; + public static final int BONES_14577 = 14577; + public static final int BONES_14578 = 14578; + public static final int BONES_14579 = 14579; + public static final int BONES_14580 = 14580; + public static final int BONES_14581 = 14581; + public static final int BONES_14582 = 14582; + public static final int BONES_14583 = 14583; + public static final int BONES_14584 = 14584; + public static final int BONES_14585 = 14585; + public static final int BONES_14586 = 14586; + public static final int BONES_14587 = 14587; + public static final int MUSHROOM_14588 = 14588; + public static final int MUSHROOM_14589 = 14589; + public static final int MUSHROOM_14590 = 14590; + public static final int MUSHROOM_14591 = 14591; + public static final int MUSHROOM_14592 = 14592; + public static final int TREE_14593 = 14593; + public static final int TREE_14594 = 14594; + public static final int TREE_14595 = 14595; + public static final int TREE_STUMP_14596 = 14596; + public static final int ROOTS_14597 = 14597; + public static final int ROOTS_14598 = 14598; + public static final int ROOTS_14599 = 14599; + public static final int TREE_14600 = 14600; + public static final int NULL_14601 = 14601; + public static final int SKELETON_14602 = 14602; + public static final int SKELETON_14603 = 14603; + public static final int SKELETON_14604 = 14604; + public static final int BONES_14605 = 14605; + public static final int BONES_14606 = 14606; + public static final int BONES_14607 = 14607; + public static final int BONES_14608 = 14608; + public static final int BONES_14609 = 14609; + public static final int BONES_14610 = 14610; + public static final int BONES_14611 = 14611; + public static final int BONES_14612 = 14612; + public static final int BONES_14613 = 14613; + public static final int BONES_14614 = 14614; + public static final int BONES_14615 = 14615; + public static final int BONES_14616 = 14616; + public static final int MUSHROOM_14617 = 14617; + public static final int MUSHROOM_14618 = 14618; + public static final int MUSHROOM_14619 = 14619; + public static final int MUSHROOM_14620 = 14620; + public static final int MUSHROOM_14621 = 14621; + public static final int NULL_14622 = 14622; + public static final int NULL_14623 = 14623; + public static final int NULL_14624 = 14624; + public static final int NULL_14625 = 14625; + public static final int NULL_14626 = 14626; + public static final int NULL_14627 = 14627; + public static final int NULL_14628 = 14628; + public static final int NULL_14629 = 14629; + public static final int STONE_PILE_14630 = 14630; + public static final int STONE_PILE_14631 = 14631; + public static final int NULL_14632 = 14632; + public static final int NULL_14633 = 14633; + public static final int NULL_14634 = 14634; + public static final int TREE_14635 = 14635; + public static final int TREE_14636 = 14636; + public static final int TREE_14637 = 14637; + public static final int TREE_STUMP_14638 = 14638; + public static final int ROOTS_14639 = 14639; + public static final int ROOTS_14640 = 14640; + public static final int ROOTS_14641 = 14641; + public static final int TREE_14642 = 14642; + public static final int NULL_14643 = 14643; + public static final int SKELETON_14644 = 14644; + public static final int SKELETON_14645 = 14645; + public static final int SKELETON_14646 = 14646; + public static final int BONES_14647 = 14647; + public static final int BONES_14648 = 14648; + public static final int BONES_14649 = 14649; + public static final int BONES_14650 = 14650; + public static final int BONES_14651 = 14651; + public static final int BONES_14652 = 14652; + public static final int BONES_14653 = 14653; + public static final int BONES_14654 = 14654; + public static final int BONES_14655 = 14655; + public static final int BONES_14656 = 14656; + public static final int BONES_14657 = 14657; + public static final int BONES_14658 = 14658; + public static final int MUSHROOM_14659 = 14659; + public static final int MUSHROOM_14660 = 14660; + public static final int MUSHROOM_14661 = 14661; + public static final int MUSHROOM_14662 = 14662; + public static final int MUSHROOM_14663 = 14663; + public static final int TREE_14664 = 14664; + public static final int TREE_14665 = 14665; + public static final int TREE_14666 = 14666; + public static final int TREE_STUMP_14667 = 14667; + public static final int ROOTS_14668 = 14668; + public static final int ROOTS_14669 = 14669; + public static final int ROOTS_14670 = 14670; + public static final int TREE_14671 = 14671; + public static final int NULL_14672 = 14672; + public static final int SKELETON_14673 = 14673; + public static final int SKELETON_14674 = 14674; + public static final int SKELETON_14675 = 14675; + public static final int BONES_14676 = 14676; + public static final int BONES_14677 = 14677; + public static final int BONES_14678 = 14678; + public static final int BONES_14679 = 14679; + public static final int BONES_14680 = 14680; + public static final int BONES_14681 = 14681; + public static final int BONES_14682 = 14682; + public static final int BONES_14683 = 14683; + public static final int BONES_14684 = 14684; + public static final int BONES_14685 = 14685; + public static final int BONES_14686 = 14686; + public static final int BONES_14687 = 14687; + public static final int MUSHROOM_14688 = 14688; + public static final int MUSHROOM_14689 = 14689; + public static final int MUSHROOM_14690 = 14690; + public static final int MUSHROOM_14691 = 14691; + public static final int MUSHROOM_14692 = 14692; + public static final int TREE_14693 = 14693; + public static final int TREE_14694 = 14694; + public static final int TREE_14695 = 14695; + public static final int TREE_14696 = 14696; + public static final int TREE_STUMP_14697 = 14697; + public static final int ROOTS_14698 = 14698; + public static final int ROOTS_14699 = 14699; + public static final int ROOTS_14700 = 14700; + public static final int TREE_14701 = 14701; + public static final int NULL_14702 = 14702; + public static final int SKELETON_14703 = 14703; + public static final int SKELETON_14704 = 14704; + public static final int SKELETON_14705 = 14705; + public static final int BONES_14706 = 14706; + public static final int BONES_14707 = 14707; + public static final int BONES_14708 = 14708; + public static final int BONES_14709 = 14709; + public static final int BONES_14710 = 14710; + public static final int BONES_14711 = 14711; + public static final int BONES_14712 = 14712; + public static final int BONES_14713 = 14713; + public static final int BONES_14714 = 14714; + public static final int BONES_14715 = 14715; + public static final int BONES_14716 = 14716; + public static final int BONES_14717 = 14717; + public static final int MUSHROOM_14718 = 14718; + public static final int MUSHROOM_14719 = 14719; + public static final int MUSHROOM_14720 = 14720; + public static final int MUSHROOM_14721 = 14721; + public static final int MUSHROOM_14722 = 14722; + public static final int NULL_14723 = 14723; + public static final int NULL_14724 = 14724; + public static final int NULL_14725 = 14725; + public static final int NULL_14726 = 14726; + public static final int NULL_14727 = 14727; + public static final int NULL_14728 = 14728; + public static final int NULL_14729 = 14729; + public static final int NULL_14730 = 14730; + public static final int STONE_PILE_14731 = 14731; + public static final int STONE_PILE_14732 = 14732; + public static final int NULL_14733 = 14733; + public static final int NULL_14734 = 14734; + public static final int STAIRCASE_14735 = 14735; + public static final int STAIRCASE_14736 = 14736; + public static final int STAIRCASE_14737 = 14737; + public static final int TREE_14738 = 14738; + public static final int CRATE_14739 = 14739; + public static final int BARREL_14740 = 14740; + public static final int CRATES_14741 = 14741; + public static final int PILE_OF_CRATES = 14742; + public static final int SACK_14743 = 14743; + public static final int NULL_14744 = 14744; + public static final int LADDER_14745 = 14745; + public static final int LADDER_14746 = 14746; + public static final int LADDER_14747 = 14747; + public static final int LADDER_14748 = 14748; + public static final int DOOR_14749 = 14749; + public static final int DOOR_14750 = 14750; + public static final int DOOR_14751 = 14751; + public static final int DOOR_14752 = 14752; + public static final int DOOR_14753 = 14753; + public static final int DOOR_14754 = 14754; + public static final int BANNER_14755 = 14755; + public static final int BANNER_14756 = 14756; + public static final int BANNER_14757 = 14757; + public static final int LADDER_14758 = 14758; + public static final int ROOTS_14759 = 14759; + public static final int ROOTS_14760 = 14760; + public static final int ROOTS_14761 = 14761; + public static final int TABLE_14762 = 14762; + public static final int TABLE_14763 = 14763; + public static final int STOOL_14764 = 14764; + public static final int GRAVESTONE_14765 = 14765; + public static final int GRAVESTONE_14766 = 14766; + public static final int GRAVESTONE_14767 = 14767; + public static final int GRAVESTONE_14768 = 14768; + public static final int GRAVESTONE_14769 = 14769; + public static final int NULL_14770 = 14770; + public static final int BED_14771 = 14771; + public static final int BED_14772 = 14772; + public static final int CHEST_14773 = 14773; + public static final int CHEST_14774 = 14774; + public static final int NULL_14775 = 14775; + public static final int NULL_14776 = 14776; + public static final int NULL_14777 = 14777; + public static final int NULL_14778 = 14778; + public static final int NULL_14779 = 14779; + public static final int NULL_14780 = 14780; + public static final int NULL_14781 = 14781; + public static final int NULL_14782 = 14782; + public static final int NULL_14783 = 14783; + public static final int NULL_14784 = 14784; + public static final int NULL_14785 = 14785; + public static final int NULL_14786 = 14786; + public static final int NULL_14787 = 14787; + public static final int NULL_14788 = 14788; + public static final int NULL_14789 = 14789; + public static final int NULL_14790 = 14790; + public static final int NULL_14791 = 14791; + public static final int NULL_14792 = 14792; + public static final int NULL_14793 = 14793; + public static final int NULL_14794 = 14794; + public static final int NULL_14795 = 14795; + public static final int TREE_14796 = 14796; + public static final int TREE_14797 = 14797; + public static final int TREE_14798 = 14798; + public static final int TREE_14799 = 14799; + public static final int TREE_14800 = 14800; + public static final int TREE_14801 = 14801; + public static final int TREE_14802 = 14802; + public static final int TREE_14803 = 14803; + public static final int TREE_14804 = 14804; + public static final int TREE_14805 = 14805; + public static final int TREE_14806 = 14806; + public static final int TREE_14807 = 14807; + public static final int CREEPER = 14808; + public static final int CREEPER_14809 = 14809; + public static final int CREEPER_14810 = 14810; + public static final int CREEPER_14811 = 14811; + public static final int CREEPER_14812 = 14812; + public static final int CREEPER_14813 = 14813; + public static final int ROCK_14814 = 14814; + public static final int ROCK_14815 = 14815; + public static final int ROCK_14816 = 14816; + public static final int ROCK_14817 = 14817; + public static final int NULL_14818 = 14818; + public static final int NULL_14819 = 14819; + public static final int NULL_14820 = 14820; + public static final int NULL_14821 = 14821; + public static final int NULL_14822 = 14822; + public static final int NULL_14823 = 14823; + public static final int NULL_14824 = 14824; + public static final int OBELISK_14825 = 14825; + public static final int OBELISK_14826 = 14826; + public static final int OBELISK_14827 = 14827; + public static final int OBELISK_14828 = 14828; + public static final int OBELISK_14829 = 14829; + public static final int OBELISK_14830 = 14830; + public static final int OBELISK_14831 = 14831; + public static final int ROCKS_14832 = 14832; + public static final int ROCKS_14833 = 14833; + public static final int ROCKS_14834 = 14834; + public static final int ROCKS_14835 = 14835; + public static final int ROCKS_14836 = 14836; + public static final int ROCKS_14837 = 14837; + public static final int ROCKS_14838 = 14838; + public static final int ROCKS_14839 = 14839; + public static final int ROCKS_14840 = 14840; + public static final int ROCKS_14841 = 14841; + public static final int ROCKS_14842 = 14842; + public static final int ROCKS_14843 = 14843; + public static final int ROCKS_14844 = 14844; + public static final int ROCKS_14845 = 14845; + public static final int ROCKS_14846 = 14846; + public static final int ROCKS_14847 = 14847; + public static final int ROCKS_14848 = 14848; + public static final int ROCKS_14849 = 14849; + public static final int ROCKS_14850 = 14850; + public static final int ROCKS_14851 = 14851; + public static final int ROCKS_14852 = 14852; + public static final int ROCKS_14853 = 14853; + public static final int ROCKS_14854 = 14854; + public static final int ROCKS_14855 = 14855; + public static final int ROCKS_14856 = 14856; + public static final int ROCKS_14857 = 14857; + public static final int ROCKS_14858 = 14858; + public static final int ROCKS_14859 = 14859; + public static final int ROCKS_14860 = 14860; + public static final int ROCKS_14861 = 14861; + public static final int ROCKS_14862 = 14862; + public static final int ROCKS_14863 = 14863; + public static final int ROCKS_14864 = 14864; + public static final int BARREL_14865 = 14865; + public static final int BARREL_14866 = 14866; + public static final int BARREL_14867 = 14867; + public static final int SINK_14868 = 14868; + public static final int SHELVES_14869 = 14869; + public static final int NULL_14870 = 14870; + public static final int NULL_14871 = 14871; + public static final int STOOL_14872 = 14872; + public static final int HANGING_MEAT_14873 = 14873; + public static final int HANGING_MEAT_14874 = 14874; + public static final int NULL_14875 = 14875; + public static final int NULL_14876 = 14876; + public static final int NULL_14877 = 14877; + public static final int NULL_14878 = 14878; + public static final int TRAPDOOR_14879 = 14879; + public static final int TRAPDOOR_14880 = 14880; + public static final int NULL_14881 = 14881; + public static final int NULL_14882 = 14882; + public static final int ROCKS_14883 = 14883; + public static final int ROCKS_14884 = 14884; + public static final int ROCKS_14885 = 14885; + public static final int ROCKS_14886 = 14886; + public static final int ROCKS_14887 = 14887; + public static final int ROCKS_14888 = 14888; + public static final int ROCKS_14889 = 14889; + public static final int ROCKS_14890 = 14890; + public static final int BED_14891 = 14891; + public static final int ROCKS_14892 = 14892; + public static final int ROCKS_14893 = 14893; + public static final int ROCKS_14894 = 14894; + public static final int ROCKS_14895 = 14895; + public static final int ROCKS_14896 = 14896; + public static final int ROCKS_14897 = 14897; + public static final int ROCKS_14898 = 14898; + public static final int ROCKS_14899 = 14899; + public static final int ROCKS_14900 = 14900; + public static final int ROCKS_14901 = 14901; + public static final int ROCKS_14902 = 14902; + public static final int ROCKS_14903 = 14903; + public static final int ROCKS_14904 = 14904; + public static final int ROCKS_14905 = 14905; + public static final int ROCKS_14906 = 14906; + public static final int ROCKS_14907 = 14907; + public static final int NULL_14908 = 14908; + public static final int NULL_14909 = 14909; + public static final int BRONZE_PICKAXE = 14910; + public static final int NULL_14911 = 14911; + public static final int BRONZE_AXE = 14912; + public static final int ROCKS_14913 = 14913; + public static final int ROCKS_14914 = 14914; + public static final int ROCKS_14915 = 14915; + public static final int ROCKS_14916 = 14916; + public static final int SINK_14917 = 14917; + public static final int WASHBASIN = 14918; + public static final int RANGE_14919 = 14919; + public static final int TABLE_14920 = 14920; + public static final int SMALL_FURNACE_14921 = 14921; + public static final int HOLE_14922 = 14922; + public static final int DOOR_14923 = 14923; + public static final int DOOR_14924 = 14924; + public static final int NULL_14925 = 14925; + public static final int NULL_14926 = 14926; + public static final int NULL_14927 = 14927; + public static final int NULL_14928 = 14928; + public static final int COLONY_GATE = 14929; + public static final int NULL_14930 = 14930; + public static final int COLONY_GATE_14931 = 14931; + public static final int NULL_14932 = 14932; + public static final int NULL_14933 = 14933; + public static final int NULL_14934 = 14934; + public static final int NULL_14935 = 14935; + public static final int NULL_14936 = 14936; + public static final int NULL_14937 = 14937; + public static final int FISHING_SPOT_14938 = 14938; + public static final int NULL_14939 = 14939; + public static final int NULL_14940 = 14940; + public static final int NULL_14941 = 14941; + public static final int NULL_14942 = 14942; + public static final int NULL_14943 = 14943; + public static final int NULL_14944 = 14944; + public static final int BROKEN_WALL_14945 = 14945; + public static final int BROKEN_WALL_14946 = 14946; + public static final int BROKEN_WALL_14947 = 14947; + public static final int PATCHED_WALL_14948 = 14948; + public static final int PATCHED_WALL_14949 = 14949; + public static final int PATCHED_WALL_14950 = 14950; + public static final int COGS_14951 = 14951; + public static final int JUNK = 14952; + public static final int FISHING_WEIGHTS = 14953; + public static final int NULL_14954 = 14954; + public static final int NULL_14955 = 14955; + public static final int METAL_PRESS = 14956; + public static final int METAL_PRESS_14957 = 14957; + public static final int FIREBOX = 14958; + public static final int FIREBOX_14959 = 14959; + public static final int FIREBOX_14960 = 14960; + public static final int SHELVES_14961 = 14961; + public static final int CRATES_14962 = 14962; + public static final int CRATES_14963 = 14963; + public static final int BARREL_14964 = 14964; + public static final int LARGE_BARREL = 14965; + public static final int RACK_OF_BARRELS = 14966; + public static final int LARGE_BARREL_14967 = 14967; + public static final int BARROW = 14968; + public static final int BARROW_14969 = 14969; + public static final int BARROW_14970 = 14970; + public static final int HERMANS_DESK = 14971; + public static final int NET = 14972; + public static final int NET_14973 = 14973; + +} diff --git a/2006Scape Client/src/main/java/TextDrawingArea.java b/2006Scape Client/src/main/java/TextDrawingArea.java index 1f2358bc..a4beb456 100644 --- a/2006Scape Client/src/main/java/TextDrawingArea.java +++ b/2006Scape Client/src/main/java/TextDrawingArea.java @@ -83,6 +83,40 @@ public final class TextDrawingArea extends DrawingArea { textLeft(i, s, k, l - method384(s) / 2); } + public void textLeftAlpha(int _color, String s, int _y, int _x, int alpha, boolean _shadow) { + if (s == null) { + return; + } + _y -= anInt1497; + int shadowAlpha = (alpha * 192) / 256; + for (int i1 = 0; i1 < s.length(); i1++) { + if (s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') { + int j1 = getColorByName(s.substring(i1 + 1, i1 + 4)); + if (j1 != -1) { + _color = j1; + } + i1 += 4; + } else { + char c = s.charAt(i1); + if (c != ' ') { + if (_shadow && shadowAlpha > 0) { + method394(shadowAlpha, _x + anIntArray1494[c] + 1, aByteArrayArray1491[c], anIntArray1492[c], _y + anIntArray1495[c] + 1, anIntArray1493[c], 0); + } + if (alpha >= 255) { + method392(aByteArrayArray1491[c], _x + anIntArray1494[c], _y + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], _color); + } else { + method394(alpha, _x + anIntArray1494[c], aByteArrayArray1491[c], anIntArray1492[c], _y + anIntArray1495[c], anIntArray1493[c], _color); + } + } + _x += anIntArray1496[c]; + } + } + } + + public void textCenterAlpha(int _color, String s, int _y, int _x, int alpha, boolean _shadow) { + textLeftAlpha(_color, s, _y, _x - getTextWidth(s) / 2, alpha, _shadow); + } + public void textCenterShadow(int _color, int _x, String s, int _y, boolean _shadow) { textLeftShadow(_shadow, _x - getTextWidth(s) / 2, _color, s, _y); } @@ -309,6 +343,9 @@ public final class TextDrawingArea extends DrawingArea { } private void method392(byte abyte0[], int i, int j, int k, int l, int i1) { + if (i1 == 0) { + i1 = 1; + } int j1 = i + j * DrawingArea.width; int k1 = DrawingArea.width - k; int l1 = 0; @@ -385,6 +422,9 @@ public final class TextDrawingArea extends DrawingArea { } private void method394(int i, int j, byte abyte0[], int k, int l, int i1, int j1) { + if (j1 == 0) { + j1 = 1; + } int k1 = j + l * DrawingArea.width; int l1 = DrawingArea.width - k; int i2 = 0; diff --git a/2006Scape Client/src/main/java/Texture.java b/2006Scape Client/src/main/java/Texture.java index c26836a6..38fc8de7 100644 --- a/2006Scape Client/src/main/java/Texture.java +++ b/2006Scape Client/src/main/java/Texture.java @@ -111,7 +111,7 @@ final class Texture extends DrawingArea { anIntArrayArray1479[i] = null; } - private static int[] method371(int i) { + public static int[] method371(int i) { anIntArray1480[i] = anInt1481++; if (anIntArrayArray1479[i] != null) { return anIntArrayArray1479[i]; @@ -2094,11 +2094,11 @@ final class Texture extends DrawingArea { private static int[] anIntArray1476 = new int[50]; private static int anInt1477; private static int[][] anIntArrayArray1478; - private static int[][] anIntArrayArray1479 = new int[50][]; + public static int[][] anIntArrayArray1479 = new int[50][]; public static int anIntArray1480[] = new int[50]; public static int anInt1481; public static int anIntArray1482[] = new int[0x10000]; - private static int[][] anIntArrayArray1483 = new int[50][]; + public static int[][] anIntArrayArray1483 = new int[50][]; static { anIntArray1468 = new int[2048]; diff --git a/2006Scape Client/src/main/java/WorldController.java b/2006Scape Client/src/main/java/WorldController.java index 5db651d1..d6369227 100644 --- a/2006Scape Client/src/main/java/WorldController.java +++ b/2006Scape Client/src/main/java/WorldController.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -final class WorldController { +public final class WorldController { public static int drawDistance = 25; public WorldController(int ai[][][]) { @@ -132,6 +132,7 @@ final class WorldController { } if (l == 1) { Class43 class43_1 = new Class43(k3, l3, i4, j4, j1, l4, k1 == l1 && k1 == i2 && k1 == j2); + class43_1.isOverlay = true; for (int j5 = i; j5 >= 0; j5--) { if (groundArray[j5][j][k] == null) { groundArray[j5][j][k] = new Ground(j5, j, k); @@ -142,6 +143,7 @@ final class WorldController { return; } Class40 class40 = new Class40(k, k3, j3, i2, j1, i4, i1, k2, k4, i3, j2, l1, k1, l, j4, l3, l2, j, l4); + class40.plane = i; for (int k5 = i; k5 >= 0; k5--) { if (groundArray[k5][j][k] == null) { groundArray[k5][j][k] = new Ground(k5, j, k); @@ -218,6 +220,7 @@ final class WorldController { } groundArray[k1][l][k].obj1 = object1; + HD317Pipeline.invalidateStaticChunk(l, k); } public void method283(int i, int j, int k, int i1, int j1, int k1, Animable class30_sub2_sub4, int l1, byte byte0, int i2, int j2) { @@ -240,6 +243,7 @@ final class WorldController { } groundArray[i1][l1][j].obj2 = class26; + HD317Pipeline.invalidateStaticChunk(l1, j); } public boolean method284(int i, byte byte0, int j, int k, Animable class30_sub2_sub4, int l, int i1, int j1, int k1, int l1) { @@ -248,7 +252,11 @@ final class WorldController { } else { int i2 = l1 * 128 + 64 * l; int j2 = k1 * 128 + 64 * k; - return method287(i1, l1, k1, l, k, i2, j2, j, class30_sub2_sub4, j1, false, i, byte0); + boolean added = method287(i1, l1, k1, l, k, i2, j2, j, class30_sub2_sub4, j1, false, i, byte0); + if (added) { + HD317Pipeline.invalidateStaticChunk(l1, k1); + } + return added; } } @@ -410,6 +418,7 @@ final class WorldController { } if (class30_sub3 != null) { class30_sub3.obj1 = null; + HD317Pipeline.invalidateStaticChunk(i, k); } } @@ -417,6 +426,7 @@ final class WorldController { Ground class30_sub3 = groundArray[k][l][j]; if (class30_sub3 != null) { class30_sub3.obj2 = null; + HD317Pipeline.invalidateStaticChunk(l, j); } } @@ -429,6 +439,7 @@ final class WorldController { Object5 class28 = class30_sub3.obj5Array[j1]; if ((class28.uid >> 29 & 3) == 2 && class28.anInt523 == k && class28.anInt525 == l) { method289(class28); + HD317Pipeline.invalidateStaticChunk(k, l); return; } } @@ -441,6 +452,7 @@ final class WorldController { return; } class30_sub3.obj3 = null; + HD317Pipeline.invalidateStaticChunk(k, j); } public void method295(int i, int j, int k) { @@ -794,7 +806,7 @@ final class WorldController { anInt497 = k; anInt498 = l; anInt493 = k / 2; - anInt494 = l / 2; + anInt494 = (ClientSettings.ANDROID && ClientSettings.RESIZABLE && k < l) ? (int) (l * 0.38f) : (l / 2); boolean aflag[][][][] = new boolean[9][32][256][256]; for (int i1 = 128; i1 <= 384; i1 += 32) { for (int j1 = 0; j1 < 2048; j1 += 64) { @@ -905,19 +917,24 @@ final class WorldController { anInt453 = i / 128; anInt454 = j / 128; anInt447 = i1; - anInt449 = anInt453 - drawDistance; + hdMaxPlane = Math.max(0, Math.min(3, i1)); + boolean hdGpu = ClientSettings.HD_317 && HD317Pipeline.isGpuActive(); + int maxDist = hdGpu ? 60 : 38; + effectiveDrawDist = (ClientSettings.ANDROID || hdGpu) + ? Math.min(maxDist, drawDistance + (hdCamDistToPlayer >> 7) + 10) : drawDistance; + anInt449 = anInt453 - effectiveDrawDist; if (anInt449 < 0) { anInt449 = 0; } - anInt451 = anInt454 - drawDistance; + anInt451 = anInt454 - effectiveDrawDist; if (anInt451 < 0) { anInt451 = 0; } - anInt450 = anInt453 + drawDistance; + anInt450 = anInt453 + effectiveDrawDist; if (anInt450 > anInt438) { anInt450 = anInt438; } - anInt452 = anInt454 + drawDistance; + anInt452 = anInt454 + effectiveDrawDist; if (anInt452 > anInt439) { anInt452 = anInt439; } @@ -929,7 +946,7 @@ final class WorldController { for (int k2 = anInt451; k2 < anInt452; k2++) { Ground class30_sub3 = aclass30_sub3[i2][k2]; if (class30_sub3 != null) { - if (class30_sub3.anInt1321 > i1 || (!ClientSettings.ANDROID && !aBooleanArrayArray492[i2 - anInt453 + drawDistance][k2 - anInt454 + drawDistance]) && anIntArrayArrayArray440[k1][i2][k2] - l < 50) { + if (class30_sub3.anInt1321 > i1 || (!ClientSettings.ANDROID && !ClientSettings.RESIZABLE && !hdGpu && !aBooleanArrayArray492[i2 - anInt453 + drawDistance][k2 - anInt454 + drawDistance]) && anIntArrayArrayArray440[k1][i2][k2] - l < 50) { class30_sub3.aBoolean1322 = false; class30_sub3.aBoolean1323 = false; class30_sub3.anInt1325 = 0; @@ -946,13 +963,60 @@ final class WorldController { } + if (hdGpu) { + int cx = anInt453; + int cz = anInt454; + int maxR = effectiveDrawDist; + if (cx >= anInt449 && cx < anInt450 && cz >= anInt451 && cz < anInt452) { + renderHdTileColumn(cx, cz); + } + for (int r = 1; r <= maxR; r++) { + int minX = Math.max(anInt449, cx - r); + int maxX = Math.min(anInt450 - 1, cx + r); + int minZ = Math.max(anInt451, cz - r); + int maxZ = Math.min(anInt452 - 1, cz + r); + + int northZ = cz - r; + if (northZ >= anInt451 && northZ < anInt452) { + for (int tx = minX; tx <= maxX; tx++) { + renderHdTileColumn(tx, northZ); + } + } + int southZ = cz + r; + if (southZ >= anInt451 && southZ < anInt452) { + for (int tx = minX; tx <= maxX; tx++) { + renderHdTileColumn(tx, southZ); + } + } + int innerMinZ = Math.max(minZ, cz - r + 1); + int innerMaxZ = Math.min(maxZ, cz + r - 1); + int westX = cx - r; + if (westX >= anInt449 && westX < anInt450) { + for (int tz = innerMinZ; tz <= innerMaxZ; tz++) { + renderHdTileColumn(westX, tz); + } + } + int eastX = cx + r; + if (eastX >= anInt449 && eastX < anInt450) { + for (int tz = innerMinZ; tz <= innerMaxZ; tz++) { + renderHdTileColumn(eastX, tz); + } + } + } + aBoolean467 = false; + return; + } + + int loopDist = (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) + ? Math.max(drawDistance, 104) : (ClientSettings.ANDROID ? effectiveDrawDist : drawDistance); + for (int l1 = anInt442; l1 < anInt437; l1++) { Ground aclass30_sub3_1[][] = groundArray[l1]; - for (int l2 = -drawDistance; l2 <= 0; l2++) { + for (int l2 = -loopDist; l2 <= 0; l2++) { int i3 = anInt453 + l2; int k3 = anInt453 - l2; if (i3 >= anInt449 || k3 < anInt450) { - for (int i4 = -drawDistance; i4 <= 0; i4++) { + for (int i4 = -loopDist; i4 <= 0; i4++) { int k4 = anInt454 + i4; int i5 = anInt454 - i4; if (i3 >= anInt449) { @@ -996,11 +1060,11 @@ final class WorldController { for (int j2 = anInt442; j2 < anInt437; j2++) { Ground aclass30_sub3_2[][] = groundArray[j2]; - for (int j3 = -drawDistance; j3 <= 0; j3++) { + for (int j3 = -loopDist; j3 <= 0; j3++) { int l3 = anInt453 + j3; int j4 = anInt453 - j3; if (l3 >= anInt449 || j4 < anInt450) { - for (int l4 = -drawDistance; l4 <= 0; l4++) { + for (int l4 = -loopDist; l4 <= 0; l4++) { int j5 = anInt454 + l4; int k5 = anInt454 - l4; if (l3 >= anInt449) { @@ -1045,6 +1109,157 @@ final class WorldController { aBoolean467 = false; } + public static int hdPlayerTileX = 52; + public static int hdPlayerTileZ = 52; + public static int hdCamDistToPlayer = 1200; + public static int effectiveDrawDist = 25; + public static int hdMaxPlane = 3; + + private boolean isHdTileInFrustum(int tx, int tz) { + int wx = (tx << 7) + 64 - anInt455; + int wz = (tz << 7) + 64 - anInt457; + int wy = anIntArrayArrayArray440[0][tx][tz] - anInt456; + int cz0 = wz * anInt461 - wx * anInt460 >> 16; + int cz = wy * anInt458 + cz0 * anInt459 >> 16; + // Keep a 10-tile margin behind camera for nearby shadow casters and large multi-tile objects + if (cz < -1280) { + return false; + } + int maxCamDepth = (drawDistance + (hdCamDistToPlayer >> 7) + 16) * 256; + if (cz > maxCamDepth) { + return false; + } + int cxCam = wz * anInt460 + wx * anInt461 >> 16; + if (cz > 256 && Math.abs(cxCam) > cz + 768) { + return false; + } + return true; + } + + private void renderHdTileColumn(int tx, int tz) { + if (!isHdTileInFrustum(tx, tz)) { + return; + } + for (int plane = anInt442; plane < anInt437; plane++) { + Ground ground = groundArray[plane][tx][tz]; + if (ground != null && ground.aBoolean1322) { + renderHdTile(ground); + } + } + } + + private void renderHdAnimable(Animable animable, int orientation, int relX, int relY, int relZ, int uid) { + boolean prevAnimated = HD317Pipeline.drawingAnimatedObj; + HD317Pipeline.drawingAnimatedObj = !(animable instanceof Model); + try { + animable.method443(orientation, anInt458, anInt459, anInt460, anInt461, relX, relY, relZ, uid); + } finally { + HD317Pipeline.drawingAnimatedObj = prevAnimated; + } + } + + private void renderHdTile(Ground class30_sub3_1) { + int i = class30_sub3_1.anInt1308; + int j = class30_sub3_1.anInt1309; + int l = class30_sub3_1.anInt1310; + class30_sub3_1.aBoolean1322 = false; + class30_sub3_1.aBoolean1323 = false; + + if (class30_sub3_1.aClass30_Sub3_1329 != null) { + Ground class30_sub3_7 = class30_sub3_1.aClass30_Sub3_1329; + HD317Pipeline.drawingPlane = 0; + if (class30_sub3_7.aClass43_1311 != null) { + method315(class30_sub3_7.aClass43_1311, 0, anInt458, anInt459, anInt460, anInt461, i, j); + } else if (class30_sub3_7.aClass40_1312 != null) { + method316(i, anInt458, anInt460, class30_sub3_7.aClass40_1312, anInt459, j, anInt461); + } + Object1 class10 = class30_sub3_7.obj1; + if (class10 != null) { + HD317Pipeline.drawingWall = true; + if (class10.aClass30_Sub2_Sub4_278 != null) { + renderHdAnimable(class10.aClass30_Sub2_Sub4_278, 0, class10.anInt274 - anInt455, class10.anInt273 - anInt456, class10.anInt275 - anInt457, class10.uid); + } + if (class10.aClass30_Sub2_Sub4_279 != null) { + renderHdAnimable(class10.aClass30_Sub2_Sub4_279, 0, class10.anInt274 - anInt455, class10.anInt273 - anInt456, class10.anInt275 - anInt457, class10.uid); + } + HD317Pipeline.drawingWall = false; + } + for (int i2 = 0; i2 < class30_sub3_7.anInt1317; i2++) { + Object5 class28 = class30_sub3_7.obj5Array[i2]; + if (class28 != null && class28.aClass30_Sub2_Sub4_521 != null) { + renderHdAnimable(class28.aClass30_Sub2_Sub4_521, class28.anInt522, class28.anInt519 - anInt455, class28.anInt518 - anInt456, class28.anInt520 - anInt457, class28.uid); + } + } + } + + HD317Pipeline.drawingPlane = l; + if (class30_sub3_1.aClass43_1311 != null) { + method315(class30_sub3_1.aClass43_1311, l, anInt458, anInt459, anInt460, anInt461, i, j); + } else if (class30_sub3_1.aClass40_1312 != null) { + method316(i, anInt458, anInt460, class30_sub3_1.aClass40_1312, anInt459, j, anInt461); + } + + Object1 class10_3 = class30_sub3_1.obj1; + if (class10_3 != null) { + HD317Pipeline.drawingWall = true; + if (class10_3.aClass30_Sub2_Sub4_278 != null) { + renderHdAnimable(class10_3.aClass30_Sub2_Sub4_278, 0, class10_3.anInt274 - anInt455, class10_3.anInt273 - anInt456, class10_3.anInt275 - anInt457, class10_3.uid); + } + if (class10_3.aClass30_Sub2_Sub4_279 != null) { + renderHdAnimable(class10_3.aClass30_Sub2_Sub4_279, 0, class10_3.anInt274 - anInt455, class10_3.anInt273 - anInt456, class10_3.anInt275 - anInt457, class10_3.uid); + } + HD317Pipeline.drawingWall = false; + } + + Object2 class26 = class30_sub3_1.obj2; + if (class26 != null && class26.aClass30_Sub2_Sub4_504 != null) { + if ((class26.anInt502 & 0x300) != 0) { + int j4 = class26.anInt500 - anInt455; + int l5 = class26.anInt499 - anInt456; + int k6 = class26.anInt501 - anInt457; + int i8 = class26.anInt503; + if ((class26.anInt502 & 0x100) != 0) { + int i11 = j4 + anIntArray463[i8]; + int k11 = k6 + anIntArray464[i8]; + renderHdAnimable(class26.aClass30_Sub2_Sub4_504, i8 * 512 + 256, i11, l5, k11, class26.uid); + } + if ((class26.anInt502 & 0x200) != 0) { + int j11 = j4 + anIntArray465[i8]; + int l11 = k6 + anIntArray466[i8]; + renderHdAnimable(class26.aClass30_Sub2_Sub4_504, i8 * 512 + 1280 & 0x7ff, j11, l5, l11, class26.uid); + } + } else { + renderHdAnimable(class26.aClass30_Sub2_Sub4_504, class26.anInt503, class26.anInt500 - anInt455, class26.anInt499 - anInt456, class26.anInt501 - anInt457, class26.uid); + } + } + + Object3 class49 = class30_sub3_1.obj3; + if (class49 != null && class49.aClass30_Sub2_Sub4_814 != null) { + renderHdAnimable(class49.aClass30_Sub2_Sub4_814, 0, class49.anInt812 - anInt455, class49.anInt811 - anInt456, class49.anInt813 - anInt457, class49.uid); + } + + Object4 object4 = class30_sub3_1.obj4; + if (object4 != null) { + if (object4.aClass30_Sub2_Sub4_49 != null) { + object4.aClass30_Sub2_Sub4_49.method443(0, anInt458, anInt459, anInt460, anInt461, object4.anInt46 - anInt455, object4.anInt45 - anInt456 - object4.anInt52, object4.anInt47 - anInt457, object4.uid); + } + if (object4.aClass30_Sub2_Sub4_50 != null) { + object4.aClass30_Sub2_Sub4_50.method443(0, anInt458, anInt459, anInt460, anInt461, object4.anInt46 - anInt455, object4.anInt45 - anInt456 - object4.anInt52, object4.anInt47 - anInt457, object4.uid); + } + if (object4.aClass30_Sub2_Sub4_48 != null) { + object4.aClass30_Sub2_Sub4_48.method443(0, anInt458, anInt459, anInt460, anInt461, object4.anInt46 - anInt455, object4.anInt45 - anInt456 - object4.anInt52, object4.anInt47 - anInt457, object4.uid); + } + } + + for (int k2 = 0; k2 < class30_sub3_1.anInt1317; k2++) { + Object5 class28 = class30_sub3_1.obj5Array[k2]; + if (class28 != null && class28.anInt528 != anInt448 && class28.aClass30_Sub2_Sub4_521 != null) { + class28.anInt528 = anInt448; + renderHdAnimable(class28.aClass30_Sub2_Sub4_521, class28.anInt522, class28.anInt519 - anInt455, class28.anInt518 - anInt456, class28.anInt520 - anInt457, class28.uid); + } + } + } + private void method314(Ground class30_sub3, boolean flag) { aClass19_477.insertHead(class30_sub3); do { @@ -1118,7 +1333,8 @@ final class WorldController { } boolean flag1 = false; - if (class30_sub3_1.aClass43_1311 != null) { + HD317Pipeline.drawingPlane = l; + if (class30_sub3_1.aClass43_1311 != null) { if (!method320(l, i, j)) { flag1 = true; method315(class30_sub3_1.aClass43_1311, l, anInt458, anInt459, anInt460, anInt461, i, j); @@ -1495,6 +1711,66 @@ final class WorldController { } private void method315(Class43 class43, int i, int j, int k, int l, int i1, int j1, int k1) { + if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) { + if (aBoolean467) { + int l1; + int i2 = l1 = (j1 << 7) - anInt455; + int j2; + int k2 = j2 = (k1 << 7) - anInt457; + int l2; + int i3 = l2 = i2 + 128; + int j3; + int k3 = j3 = k2 + 128; + int l3 = anIntArrayArrayArray440[i][j1][k1] - anInt456; + int i4 = anIntArrayArrayArray440[i][j1 + 1][k1] - anInt456; + int j4 = anIntArrayArrayArray440[i][j1 + 1][k1 + 1] - anInt456; + int k4 = anIntArrayArrayArray440[i][j1][k1 + 1] - anInt456; + int l4 = k2 * l + i2 * i1 >> 16; + k2 = k2 * i1 - i2 * l >> 16; + i2 = l4; + l4 = l3 * k - k2 * j >> 16; + k2 = l3 * j + k2 * k >> 16; + l3 = l4; + l4 = j2 * l + i3 * i1 >> 16; + j2 = j2 * i1 - i3 * l >> 16; + i3 = l4; + l4 = i4 * k - j2 * j >> 16; + j2 = i4 * j + j2 * k >> 16; + i4 = l4; + l4 = k3 * l + l2 * i1 >> 16; + k3 = k3 * i1 - l2 * l >> 16; + l2 = l4; + l4 = j4 * k - k3 * j >> 16; + k3 = j4 * j + k3 * k >> 16; + j4 = l4; + l4 = j3 * l + l1 * i1 >> 16; + j3 = j3 * i1 - l1 * l >> 16; + l1 = l4; + l4 = k4 * k - j3 * j >> 16; + j3 = k4 * j + j3 * k >> 16; + k4 = l4; + if (k2 >= 50 && j2 >= 50 && k3 >= 50 && j3 >= 50) { + int i5 = Texture.textureInt1 + (i2 << 9) / k2; + int j5 = Texture.textureInt2 + (l3 << 9) / k2; + int k5 = Texture.textureInt1 + (i3 << 9) / j2; + int l5 = Texture.textureInt2 + (i4 << 9) / j2; + int i6 = Texture.textureInt1 + (l2 << 9) / k3; + int j6 = Texture.textureInt2 + (j4 << 9) / k3; + int k6 = Texture.textureInt1 + (l1 << 9) / j3; + int l6 = Texture.textureInt2 + (k4 << 9) / j3; + if ((i6 - k6) * (l5 - l6) - (j6 - l6) * (k5 - k6) > 0 && method318(anInt468, anInt469, j6, l6, l5, i6, k6, k5)) { + anInt470 = j1; + anInt471 = k1; + } + if ((i5 - k5) * (l6 - l5) - (j5 - l5) * (k6 - k5) > 0 && method318(anInt468, anInt469, j5, l5, l6, i5, k5, k6)) { + anInt470 = j1; + anInt471 = k1; + } + } + } + HD317Pipeline.drawSimpleTile(class43, i, j1, k1); + return; + } int l1; int i2 = l1 = (j1 << 7) - anInt455; int j2; @@ -1513,34 +1789,49 @@ final class WorldController { l4 = l3 * k - k2 * j >> 16; k2 = l3 * j + k2 * k >> 16; l3 = l4; - if (k2 < 50) { - return; - } l4 = j2 * l + i3 * i1 >> 16; j2 = j2 * i1 - i3 * l >> 16; i3 = l4; l4 = i4 * k - j2 * j >> 16; j2 = i4 * j + j2 * k >> 16; i4 = l4; - if (j2 < 50) { - return; - } l4 = k3 * l + l2 * i1 >> 16; k3 = k3 * i1 - l2 * l >> 16; l2 = l4; l4 = j4 * k - k3 * j >> 16; k3 = j4 * j + k3 * k >> 16; j4 = l4; - if (k3 < 50) { - return; - } l4 = j3 * l + l1 * i1 >> 16; j3 = j3 * i1 - l1 * l >> 16; l1 = l4; l4 = k4 * k - j3 * j >> 16; j3 = k4 * j + j3 * k >> 16; k4 = l4; - if (j3 < 50) { + if (k2 < 48 && j2 < 48 && k3 < 48 && j3 < 48) { + return; + } + if (k2 < 48 || j2 < 48 || k3 < 48 || j3 < 48) { + Texture.anInt1465 = 0; + int texId = class43.anInt720; + if (texId == -1) { + if (class43.anInt718 != 0xbc614e) { + emitClippedTileTriangle(l2, j4, k3, class43.anInt718, l1, k4, j3, class43.anInt719, i3, i4, j2, class43.anInt717, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0); + } + if (class43.anInt716 != 0xbc614e) { + emitClippedTileTriangle(i2, l3, k2, class43.anInt716, i3, i4, j2, class43.anInt717, l1, k4, j3, class43.anInt719, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0); + } + } else if (!lowMem) { + if (class43.aBoolean721) { + emitClippedTileTriangle(l2, j4, k3, class43.anInt718, l1, k4, j3, class43.anInt719, i3, i4, j2, class43.anInt717, texId, i2, i3, l1, l3, i4, k4, k2, j2, j3); + } else { + emitClippedTileTriangle(l2, j4, k3, class43.anInt718, l1, k4, j3, class43.anInt719, i3, i4, j2, class43.anInt717, texId, l2, l1, i3, j4, k4, i4, k3, j3, j2); + } + emitClippedTileTriangle(i2, l3, k2, class43.anInt716, i3, i4, j2, class43.anInt717, l1, k4, j3, class43.anInt719, texId, i2, i3, l1, l3, i4, k4, k2, j2, j3); + } else { + int i7 = anIntArray485[texId]; + emitClippedTileTriangle(l2, j4, k3, method317(i7, class43.anInt718), l1, k4, j3, method317(i7, class43.anInt719), i3, i4, j2, method317(i7, class43.anInt717), -1, 0, 0, 0, 0, 0, 0, 0, 0, 0); + emitClippedTileTriangle(i2, l3, k2, method317(i7, class43.anInt716), i3, i4, j2, method317(i7, class43.anInt717), l1, k4, j3, method317(i7, class43.anInt719), -1, 0, 0, 0, 0, 0, 0, 0, 0, 0); + } return; } int i5 = Texture.textureInt1 + (i2 << 9) / k2; @@ -1552,7 +1843,7 @@ final class WorldController { int k6 = Texture.textureInt1 + (l1 << 9) / j3; int l6 = Texture.textureInt2 + (k4 << 9) / j3; Texture.anInt1465 = 0; - if ((i6 - k6) * (l5 - l6) - (j6 - l6) * (k5 - k6) > 0) { + if ((long) (i6 - k6) * (l5 - l6) - (long) (j6 - l6) * (k5 - k6) > 0) { Texture.aBoolean1462 = i6 < 0 || k6 < 0 || k5 < 0 || i6 > DrawingArea.centerX || k6 > DrawingArea.centerX || k5 > DrawingArea.centerX; if (aBoolean467 && method318(anInt468, anInt469, j6, l6, l5, i6, k6, k5)) { anInt470 = j1; @@ -1573,7 +1864,7 @@ final class WorldController { Texture.method374(j6, l6, l5, i6, k6, k5, method317(i7, class43.anInt718), method317(i7, class43.anInt719), method317(i7, class43.anInt717)); } } - if ((i5 - k5) * (l6 - l5) - (j5 - l5) * (k6 - k5) > 0) { + if ((long) (i5 - k5) * (l6 - l5) - (long) (j5 - l5) * (k6 - k5) > 0) { Texture.aBoolean1462 = i5 < 0 || k5 < 0 || k6 < 0 || i5 > DrawingArea.centerX || k5 > DrawingArea.centerX || k6 > DrawingArea.centerX; if (aBoolean467 && method318(anInt468, anInt469, j5, l5, l6, i5, k5, k6)) { anInt470 = j1; @@ -1595,7 +1886,60 @@ final class WorldController { } private void method316(int i, int j, int k, Class40 class40, int l, int i1, int j1) { + if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) { + if (aBoolean467) { + int k1 = class40.anIntArray673.length; + boolean allBehind = true; + for (int l1 = 0; l1 < k1; l1++) { + int i2 = class40.anIntArray673[l1] - anInt455; + int k2 = class40.anIntArray674[l1] - anInt456; + int i3 = class40.anIntArray675[l1] - anInt457; + int k3 = i3 * k + i2 * j1 >> 16; + i3 = i3 * j1 - i2 * k >> 16; + i2 = k3; + k3 = k2 * l - i3 * j >> 16; + i3 = k2 * j + i3 * l >> 16; + k2 = k3; + if (i3 >= 50) { + allBehind = false; + Class40.anIntArray688[l1] = Texture.textureInt1 + (i2 << 9) / i3; + Class40.anIntArray689[l1] = Texture.textureInt2 + (k2 << 9) / i3; + } else { + Class40.anIntArray688[l1] = -5000; + Class40.anIntArray689[l1] = -5000; + } + } + if (!allBehind) { + k1 = class40.anIntArray679.length; + for (int j2 = 0; j2 < k1; j2++) { + int l2 = class40.anIntArray679[j2]; + int j3 = class40.anIntArray680[j2]; + int l3 = class40.anIntArray681[j2]; + int i4 = Class40.anIntArray688[l2]; + int j4 = Class40.anIntArray688[j3]; + int k4 = Class40.anIntArray688[l3]; + int l4 = Class40.anIntArray689[l2]; + int i5 = Class40.anIntArray689[j3]; + int j5 = Class40.anIntArray689[l3]; + if (i4 != -5000 && j4 != -5000 && k4 != -5000) { + if ((i4 - j4) * (j5 - i5) - (l4 - i5) * (k4 - j4) > 0 && method318(anInt468, anInt469, l4, i5, j5, i4, j4, k4)) { + anInt470 = i; + anInt471 = i1; + } + } + } + } + } + HD317Pipeline.drawShapedTile(class40, class40.plane, i, i1); + return; + } + int k1 = class40.anIntArray673.length; + int[] vx = new int[k1]; + int[] vy = new int[k1]; + int[] vz = new int[k1]; + boolean anyVisible = false; + boolean anyNear = false; for (int l1 = 0; l1 < k1; l1++) { int i2 = class40.anIntArray673[l1] - anInt455; int k2 = class40.anIntArray674[l1] - anInt456; @@ -1606,16 +1950,51 @@ final class WorldController { k3 = k2 * l - i3 * j >> 16; i3 = k2 * j + i3 * l >> 16; k2 = k3; - if (i3 < 50) { - return; + vx[l1] = i2; + vy[l1] = k2; + vz[l1] = i3; + if (i3 >= 48) { + anyVisible = true; + } else { + anyNear = true; } if (class40.anIntArray682 != null) { Class40.anIntArray690[l1] = i2; Class40.anIntArray691[l1] = k2; Class40.anIntArray692[l1] = i3; } - Class40.anIntArray688[l1] = Texture.textureInt1 + (i2 << 9) / i3; - Class40.anIntArray689[l1] = Texture.textureInt2 + (k2 << 9) / i3; + if (i3 >= 48) { + Class40.anIntArray688[l1] = Texture.textureInt1 + (i2 << 9) / i3; + Class40.anIntArray689[l1] = Texture.textureInt2 + (k2 << 9) / i3; + } + } + if (!anyVisible) { + return; + } + if (anyNear) { + Texture.anInt1465 = 0; + int triCount = class40.anIntArray679.length; + for (int j2 = 0; j2 < triCount; j2++) { + int v0 = class40.anIntArray679[j2]; + int v1 = class40.anIntArray680[j2]; + int v2 = class40.anIntArray681[j2]; + int texId = (class40.anIntArray682 != null) ? class40.anIntArray682[j2] : -1; + if (texId == -1) { + if (class40.anIntArray676[j2] != 0xbc614e) { + emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], class40.anIntArray676[j2], vx[v1], vy[v1], vz[v1], class40.anIntArray677[j2], vx[v2], vy[v2], vz[v2], class40.anIntArray678[j2], -1, 0, 0, 0, 0, 0, 0, 0, 0, 0); + } + } else if (!lowMem) { + if (class40.aBoolean683) { + emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], class40.anIntArray676[j2], vx[v1], vy[v1], vz[v1], class40.anIntArray677[j2], vx[v2], vy[v2], vz[v2], class40.anIntArray678[j2], texId, vx[0], vx[1], vx[3], vy[0], vy[1], vy[3], vz[0], vz[1], vz[3]); + } else { + emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], class40.anIntArray676[j2], vx[v1], vy[v1], vz[v1], class40.anIntArray677[j2], vx[v2], vy[v2], vz[v2], class40.anIntArray678[j2], texId, vx[v0], vx[v1], vx[v2], vy[v0], vy[v1], vy[v2], vz[v0], vz[v1], vz[v2]); + } + } else { + int k5 = anIntArray485[texId]; + emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], method317(k5, class40.anIntArray676[j2]), vx[v1], vy[v1], vz[v1], method317(k5, class40.anIntArray677[j2]), vx[v2], vy[v2], vz[v2], method317(k5, class40.anIntArray678[j2]), -1, 0, 0, 0, 0, 0, 0, 0, 0, 0); + } + } + return; } Texture.anInt1465 = 0; @@ -1630,7 +2009,7 @@ final class WorldController { int l4 = Class40.anIntArray689[l2]; int i5 = Class40.anIntArray689[j3]; int j5 = Class40.anIntArray689[l3]; - if ((i4 - j4) * (j5 - i5) - (l4 - i5) * (k4 - j4) > 0) { + if ((long) (i4 - j4) * (j5 - i5) - (long) (l4 - i5) * (k4 - j4) > 0) { Texture.aBoolean1462 = i4 < 0 || j4 < 0 || k4 < 0 || i4 > DrawingArea.centerX || j4 > DrawingArea.centerX || k4 > DrawingArea.centerX; if (aBoolean467 && method318(anInt468, anInt469, l4, i5, j5, i4, j4, k4)) { anInt470 = i; @@ -1655,6 +2034,70 @@ final class WorldController { } + private void emitClippedTileTriangle( + int x0, int y0, int z0, int c0, + int x1, int y1, int z1, int c1, + int x2, int y2, int z2, int c2, + int texId, + int tx0, int tx1, int tx2, + int ty0, int ty1, int ty2, + int tz0, int tz1, int tz2) { + final int NEAR_Z = 48; + int[] px = { x0, x1, x2 }; + int[] py = { y0, y1, y2 }; + int[] pz = { z0, z1, z2 }; + int[] pc = { c0, c1, c2 }; + int[] rx = new int[4]; + int[] ry = new int[4]; + int[] rz = new int[4]; + int[] rc = new int[4]; + int count = 0; + for (int i = 0; i < 3; i++) { + int j = (i + 1) % 3; + boolean inA = pz[i] >= NEAR_Z; + boolean inB = pz[j] >= NEAR_Z; + if (inA) { + rx[count] = px[i]; + ry[count] = py[i]; + rz[count] = pz[i]; + rc[count] = pc[i]; + count++; + } + if (inA != inB) { + int dz = pz[j] - pz[i]; + rx[count] = px[i] + (int) (((long) (px[j] - px[i]) * (NEAR_Z - pz[i])) / dz); + ry[count] = py[i] + (int) (((long) (py[j] - py[i]) * (NEAR_Z - pz[i])) / dz); + rz[count] = NEAR_Z; + rc[count] = pc[i]; + count++; + } + } + if (count < 3) return; + int[] sx = new int[count]; + int[] sy = new int[count]; + for (int i = 0; i < count; i++) { + sx[i] = Texture.textureInt1 + (rx[i] << 9) / rz[i]; + sy[i] = Texture.textureInt2 + (ry[i] << 9) / rz[i]; + } + for (int i = 1; i < count - 1; i++) { + int ax = sx[0], ay = sy[0], ac = rc[0]; + int bx = sx[i], by = sy[i], bc = rc[i]; + int cx = sx[i + 1], cy = sy[i + 1], cc = rc[i + 1]; + if (ax < -16000 || ax > 16000 || bx < -16000 || bx > 16000 || cx < -16000 || cx > 16000 + || ay < -16000 || ay > 16000 || by < -16000 || by > 16000 || cy < -16000 || cy > 16000) { + continue; + } + if ((long) (ax - bx) * (cy - by) - (long) (ay - by) * (cx - bx) > 0) { + Texture.aBoolean1462 = ax < 0 || bx < 0 || cx < 0 || ax > DrawingArea.centerX || bx > DrawingArea.centerX || cx > DrawingArea.centerX; + if (texId == -1) { + Texture.method374(ay, by, cy, ax, bx, cx, ac, bc, cc); + } else { + Texture.method378(ay, by, cy, ax, bx, cx, ac, bc, cc, tx0, tx1, tx2, ty0, ty1, ty2, Math.max(NEAR_Z, tz0), Math.max(NEAR_Z, tz1), Math.max(NEAR_Z, tz2), texId); + } + } + } + } + private int method317(int j, int k) { k = 127 - k; k = k * (j & 0x7f) / 160; @@ -1686,14 +2129,19 @@ final class WorldController { } private void method319() { + if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) { + anInt475 = 0; + return; + } int j = anIntArray473[anInt447]; Class47 aclass47[] = aClass47ArrayArray474[anInt447]; anInt475 = 0; + int maxGrid = ClientSettings.ANDROID ? (drawDistance * 2) : 50; for (int k = 0; k < j; k++) { Class47 class47 = aclass47[k]; if (class47.anInt791 == 1) { int l = class47.anInt787 - anInt453 + drawDistance; - if (l < 0 || l > 50) { + if (l < 0 || l > maxGrid) { continue; } int k1 = class47.anInt789 - anInt454 + drawDistance; @@ -1701,8 +2149,8 @@ final class WorldController { k1 = 0; } int j2 = class47.anInt790 - anInt454 + drawDistance; - if (j2 > 50) { - j2 = 50; + if (j2 > maxGrid) { + j2 = maxGrid; } boolean flag = false; while (k1 <= j2) { @@ -1733,7 +2181,7 @@ final class WorldController { } if (class47.anInt791 == 2) { int i1 = class47.anInt789 - anInt454 + drawDistance; - if (i1 < 0 || i1 > 50) { + if (i1 < 0 || i1 > maxGrid) { continue; } int l1 = class47.anInt787 - anInt453 + drawDistance; @@ -1741,8 +2189,8 @@ final class WorldController { l1 = 0; } int k2 = class47.anInt788 - anInt453 + drawDistance; - if (k2 > 50) { - k2 = 50; + if (k2 > maxGrid) { + k2 = maxGrid; } boolean flag1 = false; while (l1 <= k2) { @@ -1777,8 +2225,8 @@ final class WorldController { i2 = 0; } int l2 = class47.anInt790 - anInt454 + drawDistance; - if (l2 > 50) { - l2 = 50; + if (l2 > maxGrid) { + l2 = maxGrid; } if (i2 <= l2) { int i3 = class47.anInt787 - anInt453 + drawDistance; @@ -1786,8 +2234,8 @@ final class WorldController { i3 = 0; } int l3 = class47.anInt788 - anInt453 + drawDistance; - if (l3 > 50) { - l3 = 50; + if (l3 > maxGrid) { + l3 = maxGrid; } boolean flag2 = false; label0 : for (int i4 = i3; i4 <= l3; i4++) { @@ -2053,12 +2501,12 @@ final class WorldController { private final int anInt437; private final int anInt438; private final int anInt439; - private final int[][][] anIntArrayArrayArray440; - private final Ground[][][] groundArray; - private int anInt442; + public final int[][][] anIntArrayArrayArray440; + public final Ground[][][] groundArray; + public int anInt442; private int obj5CacheCurrPos; private final Object5[] obj5Cache; - private final int[][][] anIntArrayArrayArray445; + public final int[][][] anIntArrayArrayArray445; private static int anInt446; private static int anInt447; private static int anInt448; @@ -2068,13 +2516,13 @@ final class WorldController { private static int anInt452; private static int anInt453; private static int anInt454; - private static int anInt455; - private static int anInt456; - private static int anInt457; - private static int anInt458; - private static int anInt459; - private static int anInt460; - private static int anInt461; + public static int anInt455; + public static int anInt456; + public static int anInt457; + public static int anInt458; + public static int anInt459; + public static int anInt460; + public static int anInt461; private static Object5[] aClass28Array462 = new Object5[100]; private static final int[] anIntArray463 = {53, -53, -53, 53}; private static final int[] anIntArray464 = {-53, -53, 53, 53}; diff --git a/2006Scape Client/src/main/java/WorldWebWalker.java b/2006Scape Client/src/main/java/WorldWebWalker.java new file mode 100644 index 00000000..385064b6 --- /dev/null +++ b/2006Scape Client/src/main/java/WorldWebWalker.java @@ -0,0 +1,193 @@ +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +/** + * Lightweight F2P overworld road/bridge graph for long-distance smart walking. + * Connects major towns, bridges, banks, and crossroads without crossing locked/paid gates. + */ +public final class WorldWebWalker { + + private WorldWebWalker() { + } + + public static final int[][] NODES = { + // Draynor & Port Sarim & Rimmington (0-7) + {3092, 3243}, // 0: Draynor Bank + {3080, 3250}, // 1: Draynor Market + {3108, 3295}, // 2: Draynor Crossroads + {3145, 3265}, // 3: Draynor-Lumbridge Road + {3065, 3275}, // 4: Draynor West Road + {3045, 3255}, // 5: Port Sarim North + {3028, 3217}, // 6: Port Sarim Docks + {3005, 3215}, // 7: Port Sarim West + + // Rimmington & Falador (8-17) + {2965, 3225}, // 8: Rimmington North + {2957, 3214}, // 9: Rimmington Center + {3007, 3275}, // 10: Port Sarim-Falador Road + {3007, 3315}, // 11: Falador South Crossroads + {3007, 3328}, // 12: Falador South Gate + {3013, 3355}, // 13: Falador East Bank + {2965, 3380}, // 14: Falador Square + {2946, 3368}, // 15: Falador West Bank + {2965, 3405}, // 16: Falador North Gate + {2925, 3380}, // 17: Falador West Gate + + // Taverley & Barbarian Village & Edgeville (18-24) + {2905, 3420}, // 18: Taverley Road + {2895, 3440}, // 19: Taverley Center + {3010, 3420}, // 20: Falador-Barbarian Road + {3085, 3355}, // 21: Draynor-Barbarian Road + {3080, 3420}, // 22: Barbarian Village + {3088, 3465}, // 23: Edgeville South + {3094, 3492}, // 24: Edgeville Bank + + // Lumbridge (25-36) + {3185, 3245}, // 25: Lumbridge West Road + {3195, 3275}, // 26: Lumbridge Farm South + {3205, 3295}, // 27: Lumbridge Wheat North + {3222, 3218}, // 28: Lumbridge Castle + {3218, 3238}, // 29: Lumbridge North Gate + {3224, 3262}, // 30: Lumbridge Mid-West Road + {3238, 3288}, // 31: Lumbridge Chicken Coop Outside + {3229, 3226}, // 32: Lumbridge Bridge West + {3236, 3226}, // 33: Lumbridge Bridge East + {3250, 3255}, // 34: Lumbridge Cow Pasture South + {3250, 3267}, // 35: Lumbridge Cow Pasture Gate + {3218, 3190}, // 36: Lumbridge Swamp Road + + // Al-Kharid via free northern pass (37-42) + {3240, 3305}, // 37: North of Lumbridge Coop + {3288, 3302}, // 38: Al-Kharid North Pass + {3302, 3275}, // 39: Al-Kharid North Entrance + {3300, 3240}, // 40: Al-Kharid Mine Road + {3293, 3200}, // 41: Al-Kharid East Road + {3270, 3167}, // 42: Al-Kharid Bank + + // Varrock (43-52) + {3100, 3420}, // 43: Barbarian Bridge + {3145, 3420}, // 44: Varrock West Road + {3170, 3428}, // 45: Varrock West Gate + {3185, 3436}, // 46: Varrock West Bank + {3212, 3428}, // 47: Varrock Square + {3212, 3380}, // 48: Varrock South Gate + {3235, 3335}, // 49: Varrock South Road + {3253, 3420}, // 50: Varrock East Bank + {3273, 3428}, // 51: Varrock East Gate + {3285, 3370}, // 52: Varrock South-East Mine + {3254, 3322}, // 53: North of Cow Pasture / Fenced Field (east of River Lum) + {3292, 3335}, // 54: Al-Kharid - Varrock SE Mine Road + {3115, 3482}, // 55: Edgeville River East Bank + {3162, 3470}, // 56: Varrock NW / North of City Wall + {3155, 3295}, // 57: Fred's Farm / Windmill Road + {3145, 3215}, // 58: Draynor - Lumbridge Swamp Road + {3277, 3328}, // 59: Al-Kharid North-East Pass (above fenced field) + {3186, 3496}, // 60: Varrock Palace NW + {3215, 3508}, // 61: Varrock Palace North + {3244, 3503}, // 62: Varrock Palace NE + {3243, 3473}, // 63: Varrock East North Road + {3246, 3443} // 64: Varrock East Bank North Road + }; + + public static final int[][] EDGES = { + // Draynor / Port Sarim / Rimmington + {0, 1}, {0, 2}, {0, 3}, {0, 58}, {58, 36}, {1, 4}, {2, 3}, {2, 4}, {2, 57}, {57, 27}, + {4, 5}, {5, 6}, {6, 7}, + {7, 8}, {8, 9}, {5, 10}, {10, 11}, + // Falador / Taverley + {11, 12}, {12, 13}, {13, 14}, {14, 15}, {14, 16}, {14, 17}, + {17, 18}, {18, 19}, {16, 20}, {20, 22}, + // Barbarian Village / Edgeville + {2, 21}, {21, 22}, {22, 23}, {23, 24}, {55, 56}, {56, 60}, {60, 61}, {61, 62}, {62, 63}, {63, 64}, {64, 50}, + // Lumbridge + {3, 25}, {25, 26}, {25, 28}, {26, 27}, + {28, 29}, {28, 32}, {28, 36}, {29, 30}, + {32, 33}, {33, 34}, {34, 35}, {34, 31}, + // Al-Kharid free northern pass + {31, 37}, {37, 53}, {53, 59}, {59, 38}, {38, 39}, {39, 40}, {40, 41}, {41, 42}, + {38, 54}, {54, 52}, + // Varrock + {22, 43}, {43, 44}, {44, 45}, {45, 46}, {46, 47}, + {31, 49}, {49, 48}, {48, 47}, + {47, 50}, {50, 51}, {51, 52} + }; + + /** + * Computes a shortest road-node route between (startX, startY) and (targetX, targetY). + */ + public static List findRoute(PluginContext ctx, int startX, int startY, int targetX, int targetY) { + int n = NODES.length; + int startIdx = -1; + int bestReachDist = Integer.MAX_VALUE; + int fallbackIdx = -1; + int bestFallbackDist = Integer.MAX_VALUE; + + for (int i = 0; i < n; i++) { + int d = Math.max(Math.abs(NODES[i][0] - startX), Math.abs(NODES[i][1] - startY)); + if (ctx != null && d <= 50 && ctx.canReach(NODES[i][0], NODES[i][1], 52, false)) { + if (d < bestReachDist) { + bestReachDist = d; + startIdx = i; + } + } + if (d < bestFallbackDist) { + bestFallbackDist = d; + fallbackIdx = i; + } + } + if (startIdx == -1) { + if (bestFallbackDist > 80) return Collections.emptyList(); + startIdx = fallbackIdx; + } + + int endIdx = -1; + int bestEndDist = Integer.MAX_VALUE; + for (int i = 0; i < n; i++) { + int d = Math.max(Math.abs(NODES[i][0] - targetX), Math.abs(NODES[i][1] - targetY)); + if (d < bestEndDist) { + bestEndDist = d; + endIdx = i; + } + } + if (endIdx == -1 || bestEndDist > 80 || startIdx == endIdx) { + return Collections.emptyList(); + } + + double[] dist = new double[n]; + int[] prev = new int[n]; + boolean[] used = new boolean[n]; + Arrays.fill(dist, Double.MAX_VALUE); + Arrays.fill(prev, -1); + dist[startIdx] = 0; + + for (int iter = 0; iter < n; iter++) { + int u = -1; + for (int i = 0; i < n; i++) { + if (!used[i] && (u == -1 || dist[i] < dist[u])) { + u = i; + } + } + if (u == -1 || dist[u] == Double.MAX_VALUE || u == endIdx) break; + used[u] = true; + for (int[] e : EDGES) { + int v = (e[0] == u) ? e[1] : (e[1] == u ? e[0] : -1); + if (v == -1 || used[v]) continue; + double w = Math.hypot(NODES[u][0] - NODES[v][0], NODES[u][1] - NODES[v][1]); + if (dist[u] + w < dist[v]) { + dist[v] = dist[u] + w; + prev[v] = u; + } + } + } + + if (prev[endIdx] == -1) return Collections.emptyList(); + List route = new ArrayList<>(); + for (int cur = endIdx; cur != -1; cur = prev[cur]) { + route.add(NODES[cur]); + } + Collections.reverse(route); + return route; + } +} diff --git a/2006Scape Client/src/main/resources/hud_chat_frame.png b/2006Scape Client/src/main/resources/hud_chat_frame.png new file mode 100644 index 00000000..4e7eb1b2 Binary files /dev/null and b/2006Scape Client/src/main/resources/hud_chat_frame.png differ diff --git a/2006Scape Client/src/main/resources/hud_minimap_bezel.png b/2006Scape Client/src/main/resources/hud_minimap_bezel.png new file mode 100644 index 00000000..e7d58c7c Binary files /dev/null and b/2006Scape Client/src/main/resources/hud_minimap_bezel.png differ diff --git a/2006Scape Client/src/main/resources/hud_minimap_hole.png b/2006Scape Client/src/main/resources/hud_minimap_hole.png new file mode 100644 index 00000000..40709090 Binary files /dev/null and b/2006Scape Client/src/main/resources/hud_minimap_hole.png differ diff --git a/2006Scape Client/src/test/java/ScriptInterpreterTest.java b/2006Scape Client/src/test/java/ScriptInterpreterTest.java new file mode 100644 index 00000000..67561125 --- /dev/null +++ b/2006Scape Client/src/test/java/ScriptInterpreterTest.java @@ -0,0 +1,108 @@ +import org.junit.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static org.junit.Assert.*; + +public class ScriptInterpreterTest { + + @Test + public void parsesMetadataAndConfigItems() { + String src = + "// @name Test Script\n" + + "// @author Tester\n" + + "// @version 1.2.3\n" + + "// @minApi 1.0.0\n" + + "// @command test,tst\n" + + "// @config attackCows|Attack Cows|bool|true\n" + + "// @config maxRadius|Max Radius|int|18|5|35\n" + + "// @config style|Style|choice|Aggressive|Accurate,Aggressive,Defensive\n" + + "void onStart(ctx) {}\n"; + + ScriptInterpreter.ScriptMetadata meta = ScriptInterpreter.parseMetadata(src); + assertEquals("Test Script", meta.name); + assertEquals("Tester", meta.author); + assertEquals("1.2.3", meta.version); + assertEquals("1.0.0", meta.minApiVersion); + assertEquals(2, meta.commands.size()); + assertEquals("test", meta.commands.get(0)); + assertTrue(meta.configItems.size() >= 3); + } + + @Test + public void evaluatesControlFlowMathAndStringDispatch() { + String src = + "int total = 0;\n" + + "String lastMsg = \"\";\n" + + "int compute(int a, int b) {\n" + + " int i = 0;\n" + + " while (i < 3) {\n" + + " total += a + b;\n" + + " i++;\n" + + " }\n" + + " return Math.max(total, 10);\n" + + "}\n" + + "boolean checkChat(String msg) {\n" + + " lastMsg = msg.trim().toLowerCase();\n" + + " return lastMsg.contains(\"can't reach\") && lastMsg.length() > 5;\n" + + "}\n"; + + ScriptInterpreter.Environment env = ScriptInterpreter.compile(src); + Object res = env.invoke("compute", 2, 3); + assertEquals(15, ((Number) res).intValue()); + assertEquals(15, ((Number) env.getVariable("total")).intValue()); + + Object matched = env.invoke("checkChat", " I Can't Reach That! "); + assertEquals(Boolean.TRUE, matched); + assertEquals("i can't reach that!", env.getVariable("lastMsg")); + } + + @Test + public void evaluatesCollectionsNumbersAndStaticMethods() { + String src = + "int radius = 18;\n" + + "void onConfigChanged(String key, Object value) {\n" + + " if (key == \"radius\") {\n" + + " radius = value.intValue();\n" + + " }\n" + + "}\n" + + "int sumList(Object list) {\n" + + " int acc = 0;\n" + + " int i = 0;\n" + + " while (i < list.size()) {\n" + + " acc += list.get(i);\n" + + " i++;\n" + + " }\n" + + " return acc;\n" + + "}\n" + + "String mapLookup(Object m, String k) {\n" + + " if (m.containsKey(k)) { return m.get(k); }\n" + + " return \"none\";\n" + + "}\n" + + "boolean checkHasAction(Object arr, String act) {\n" + + " return PluginContext.hasAction(arr, act);\n" + + "}\n"; + + ScriptInterpreter.Environment env = ScriptInterpreter.compile(src); + env.invoke("onConfigChanged", "radius", Integer.valueOf(30)); + assertEquals(30, ((Number) env.getVariable("radius")).intValue()); + + List nums = new ArrayList<>(); + nums.add(4); + nums.add(6); + nums.add(10); + assertEquals(20, ((Number) env.invoke("sumList", nums)).intValue()); + + String[] actions = new String[] { "Talk-to", "Attack", null }; + assertEquals(Boolean.TRUE, env.invoke("checkHasAction", actions, "Attack")); + assertEquals(Boolean.FALSE, env.invoke("checkHasAction", actions, "Trade")); + + Map map = new HashMap<>(); + map.put("cow", "hide"); + assertTrue(map.containsKey("cow")); + assertEquals("hide", env.invoke("mapLookup", map, "cow")); + } +} diff --git a/2006Scape Server/data/cfg/npcDefinitions.json b/2006Scape Server/data/cfg/npcDefinitions.json index f9812ec5..be716d12 100644 --- a/2006Scape Server/data/cfg/npcDefinitions.json +++ b/2006Scape Server/data/cfg/npcDefinitions.json @@ -44556,7 +44556,7 @@ "respawn": 10, "combat": 98, "hitpoints": 100, - "maxHit": 0, + "maxHit": 20, "size": 1, "attackSpeed": 4000, "attackAnim": 429, @@ -44578,7 +44578,7 @@ "respawn": 10, "combat": 115, "hitpoints": 100, - "maxHit": 0, + "maxHit": 29, "size": 1, "attackSpeed": 4000, "attackAnim": 2067, diff --git a/2006Scape Server/data/cfg/spawns.json b/2006Scape Server/data/cfg/spawns.json index 4f421617..2b00bd34 100644 --- a/2006Scape Server/data/cfg/spawns.json +++ b/2006Scape Server/data/cfg/spawns.json @@ -22973,7 +22973,7 @@ "maxHit": 3, "strength": 10, "attack": 10, - "x": 3233, + "x": 3231, "y": 3300, "id": 41, "walk": 1, @@ -23113,7 +23113,7 @@ "maxHit": 3, "strength": 10, "attack": 10, - "x": 3185, + "x": 3186, "y": 3277, "id": 41, "walk": 1, @@ -23123,7 +23123,7 @@ "maxHit": 3, "strength": 10, "attack": 10, - "x": 3185, + "x": 3188, "y": 3277, "id": 41, "walk": 1, @@ -23737,11 +23737,11 @@ "maxHit": 0, "strength": 0, "attack": 0, - "x": 2896, - "y": 3428, + "x": 2899, + "y": 3429, "id": 454, "walk": 1, - "height": 0 + "height": 1 }, { "maxHit": 3, diff --git a/2006Scape Server/data/doors.json b/2006Scape Server/data/doors.json index 9f01e7cf..619e817e 100644 --- a/2006Scape Server/data/doors.json +++ b/2006Scape Server/data/doors.json @@ -174,6 +174,11 @@ "x": 3209, "y": 3490, "height": 0 + }, + { + "x": 3223, + "y": 3491, + "height": 0 } ], "id": 1512, @@ -275,6 +280,30 @@ "id": 1508, "type": 0 }, + { + "face": 3, + "locations": [ + { + "x": 3292, + "y": 3167, + "height": 0 + } + ], + "id": 1506, + "type": 0 + }, + { + "face": 3, + "locations": [ + { + "x": 3293, + "y": 3167, + "height": 0 + } + ], + "id": 1508, + "type": 0 + }, { "face": 0, "locations": [ diff --git a/2006Scape Server/data/doubledoors.json b/2006Scape Server/data/doubledoors.json index 3b3cb8f9..b1b6cc34 100644 --- a/2006Scape Server/data/doubledoors.json +++ b/2006Scape Server/data/doubledoors.json @@ -1757,7 +1757,7 @@ "height": 0 } ], - "id": 1516 + "id": 14751 }, { "face": 2, @@ -1768,7 +1768,7 @@ "height": 0 } ], - "id": 1519 + "id": 14752 }, { "face": 0, diff --git a/2006Scape Server/plugins/plugin/area/alkharid/AlKharidGateFirstClick.kt b/2006Scape Server/plugins/area/alkharid/AlKharidGateFirstClick.kt similarity index 84% rename from 2006Scape Server/plugins/plugin/area/alkharid/AlKharidGateFirstClick.kt rename to 2006Scape Server/plugins/area/alkharid/AlKharidGateFirstClick.kt index 52b61ef9..5ecae9a5 100644 --- a/2006Scape Server/plugins/plugin/area/alkharid/AlKharidGateFirstClick.kt +++ b/2006Scape Server/plugins/area/alkharid/AlKharidGateFirstClick.kt @@ -8,7 +8,6 @@ import com.rs2.game.players.Player import plugin.area.alkharid.AlKharidGateUtil.GATE_NORTH import plugin.area.alkharid.AlKharidGateUtil.GATE_SOUTH import plugin.area.alkharid.AlKharidGateUtil.hasCompletedPrinceAli -import plugin.area.alkharid.AlKharidGateUtil.isNearGate import plugin.area.alkharid.AlKharidGateUtil.passThroughGate @SubscribesTo(ObjectFirstClickEvent::class) @@ -20,11 +19,6 @@ class AlKharidGateFirstClick : EventSubscriber { return } - if (!isNearGate(player)) { - player.packetSender.sendMessage("You need to be closer to the gate to use it.") - return - } - if (player.hasCompletedPrinceAli()) { player.packetSender.sendMessage("The guards recognize you as a friend of Al-Kharid and let you pass.") passThroughGate(player) diff --git a/2006Scape Server/plugins/plugin/area/alkharid/AlKharidGateUtil.kt b/2006Scape Server/plugins/area/alkharid/AlKharidGateUtil.kt similarity index 59% rename from 2006Scape Server/plugins/plugin/area/alkharid/AlKharidGateUtil.kt rename to 2006Scape Server/plugins/area/alkharid/AlKharidGateUtil.kt index 7c4ca2ca..0621b48b 100644 --- a/2006Scape Server/plugins/plugin/area/alkharid/AlKharidGateUtil.kt +++ b/2006Scape Server/plugins/area/alkharid/AlKharidGateUtil.kt @@ -3,11 +3,15 @@ package plugin.area.alkharid import com.rs2.event.CycleEvent import com.rs2.event.CycleEventContainer import com.rs2.event.CycleEventHandler +import com.rs2.GameEngine import com.rs2.game.content.StaticItemList import com.rs2.game.content.StaticNpcList import com.rs2.game.content.StaticObjectList import com.rs2.game.content.music.sound.SoundList +import com.rs2.game.objects.Objects import com.rs2.game.players.Player +import com.rs2.world.clip.PathFinder +import com.rs2.world.clip.Region object AlKharidGateUtil { @@ -17,8 +21,6 @@ object AlKharidGateUtil { const val BORDER_GUARD_2 = StaticNpcList.BORDER_GUARD_926 const val TOLL_COINS = 10 const val COINS_ID = StaticItemList.COINS_995 - const val DIALOGUE_ACTION_TOLL = 502 - const val DIALOGUE_ACTION_SUB_TOLL = 508 fun Player.hasCompletedPrinceAli(): Boolean = this.princeAli >= 1 @@ -82,38 +84,52 @@ object AlKharidGateUtil { // Play gate opening sound player.packetSender.sendSound(SoundList.OPEN_GATE, 100, 0) - // Temporarily open gates visually - // South gate (2882) at (3268, 3227) swings to face 3 (south) - // North gate (2883) at (3268, 3228) swings to face 1 (north) - player.packetSender.`object`(GATE_SOUTH, 3268, 3227, 3, 0) - player.packetSender.`object`(GATE_NORTH, 3268, 3228, 1, 0) + // Open both gates for this player's scene and remove their server-side + // clipping too, so the route can actually cross the gate line. + Region.removeObject(GATE_SOUTH, 3268, 3227, player.heightLevel, 0, 0) + Region.removeObject(GATE_NORTH, 3268, 3228, player.heightLevel, 0, 0) + Region.addObject(GATE_SOUTH, 3268, 3227, player.heightLevel, 0, 3, false) + Region.addObject(GATE_NORTH, 3268, 3228, player.heightLevel, 0, 1, false) + GameEngine.objectHandler.placeObject(Objects(GATE_SOUTH, 3268, 3227, player.heightLevel, 3, 0, 0)) + GameEngine.objectHandler.placeObject(Objects(GATE_NORTH, 3268, 3228, player.heightLevel, 1, 0, 0)) - // Prevent client click packets from disrupting the transit + // Prevent client click packets from disrupting the transit. player.stopPlayer = true - // Clear walking queue history (prevents travelBack backwards step) - player.resetWalkingQueue() - - // Populate newWalkCmd steps - player.newWalkCmdSteps = steps.size - for (i in steps.indices) { - val (stepX, stepY) = steps[i] - player.newWalkCmdX[i] = stepX - player.mapRegionX * 8 - player.newWalkCmdY[i] = stepY - player.mapRegionY * 8 + val targetX = steps.last().first + val targetY = steps.last().second + val routeFound = PathFinder.getPathFinder().findRoute(player, targetX, targetY, false, 1, 1) + if (!routeFound) { + closeGateForPlayer(player) + player.stopPlayer = false + return } - val durationTicks = steps.size + 1 + var ticks = 0 CycleEventHandler.getSingleton().addEvent(player, object : CycleEvent() { override fun execute(container: CycleEventContainer) { - // Restore closed gates (both face 0) - player.packetSender.`object`(GATE_SOUTH, 3268, 3227, 0, 0) - player.packetSender.`object`(GATE_NORTH, 3268, 3228, 0, 0) - container.stop() + ticks++ + val crossedGate = player.absX == targetX && player.absY == targetY + // Keep the open state visible long enough for the client to + // render the swing, even when the player is already at the exit tile. + if ((crossedGate && ticks >= 3) || ticks >= 8) { + closeGateForPlayer(player) + container.stop() + } } override fun stop() { player.stopPlayer = false } - }, durationTicks) + }, 1) + } + + private fun closeGateForPlayer(player: Player) { + Region.removeObject(GATE_SOUTH, 3268, 3227, player.heightLevel, 0, 3) + Region.removeObject(GATE_NORTH, 3268, 3228, player.heightLevel, 0, 1) + Region.addObject(GATE_SOUTH, 3268, 3227, player.heightLevel, 0, 0, false) + Region.addObject(GATE_NORTH, 3268, 3228, player.heightLevel, 0, 0, false) + GameEngine.objectHandler.placeObject(Objects(GATE_SOUTH, 3268, 3227, player.heightLevel, 0, 0, 0)) + GameEngine.objectHandler.placeObject(Objects(GATE_NORTH, 3268, 3228, player.heightLevel, 0, 0, 0)) } } diff --git a/2006Scape Server/plugins/area/alkharid/BorderGuardFirstClick.kt b/2006Scape Server/plugins/area/alkharid/BorderGuardFirstClick.kt new file mode 100644 index 00000000..68e80c1c --- /dev/null +++ b/2006Scape Server/plugins/area/alkharid/BorderGuardFirstClick.kt @@ -0,0 +1,76 @@ +package plugin.area.alkharid + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.NpcFirstClickEvent +import com.rs2.game.players.Player +import plugin.area.alkharid.AlKharidGateUtil.BORDER_GUARD_1 +import plugin.area.alkharid.AlKharidGateUtil.BORDER_GUARD_2 +import plugin.area.alkharid.AlKharidGateUtil.hasCompletedPrinceAli +import plugin.area.alkharid.AlKharidGateUtil.isNearGate +import plugin.area.alkharid.AlKharidGateUtil.passThroughGate +import plugin.area.alkharid.AlKharidGateUtil.payToll + +@SubscribesTo(NpcFirstClickEvent::class) +class BorderGuardFirstClick : EventSubscriber { + + override fun subscribe(context: EventContext, player: Player, event: NpcFirstClickEvent) { + val npcId = event.npc + if (npcId != BORDER_GUARD_1 && npcId != BORDER_GUARD_2) { + return + } + + if (player.hasCompletedPrinceAli()) { + player.talkingNpc = npcId + player.dialogueFactory.clear() + player.dialogueFactory + .sendPlayerChat("Can I come through this gate?") + .sendNpcChat(npcId, "You may pass, friend of Al-Kharid.") + .execute() + } else { + startTollDialogue(player, npcId) + } + } + + private fun startTollDialogue(player: Player, npcId: Int) { + val dialogue = player.dialogueFactory + dialogue.clear() + player.talkingNpc = npcId + dialogue.sendPlayerChat("Can I come through this gate?") + .sendNpcChat(npcId, "You must pay a toll of 10 gold coins to pass.") + .sendOption( + "Okay, I'll pay.", { payToll(player, npcId) }, + "Who does my money go to?", { + dialogue.sendPlayerChat("Who does my money go to?") + .sendNpcChat(npcId, "The money goes to the city of Al-Kharid.", "Will you pay the toll?") + .sendOption( + "Okay, I'll pay.", { payToll(player, npcId) }, + "No thanks, I'll walk around.", { declineToll(player, npcId) } + ) + }, + "No thanks, I'll walk around.", { declineToll(player, npcId) } + ) + .execute() + } + + private fun payToll(player: Player, npcId: Int) { + if (!isNearGate(player)) { + player.packetSender.sendMessage("You need to be closer to the gate to use it.") + player.packetSender.closeAllWindows() + return + } + if (player.payToll()) { + player.packetSender.sendMessage("You pay the border guard 10 coins.") + passThroughGate(player) + } else { + player.dialogueFactory.sendPlayerChat("I haven't got that much.") + .sendNpcChat(npcId, "Well, you can't come through here then.") + } + } + + private fun declineToll(player: Player, npcId: Int) { + player.dialogueFactory.sendPlayerChat("No thanks, I'll walk around.") + .sendNpcChat(npcId, "Ok suit yourself.") + } +} diff --git a/2006Scape Server/plugins/plugin/buttons/ButtonClick.java b/2006Scape Server/plugins/buttons/ButtonClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/buttons/ButtonClick.java rename to 2006Scape Server/plugins/buttons/ButtonClick.java diff --git a/2006Scape Server/plugins/buttons/combat/AutocastCancelButtonPlugin.kt b/2006Scape Server/plugins/buttons/combat/AutocastCancelButtonPlugin.kt new file mode 100644 index 00000000..1d9c3d1f --- /dev/null +++ b/2006Scape Server/plugins/buttons/combat/AutocastCancelButtonPlugin.kt @@ -0,0 +1,26 @@ +package plugin.buttons.combat + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ButtonActionEvent +import com.rs2.game.items.DeprecatedItems +import com.rs2.game.players.Player + +@SubscribesTo(ButtonActionEvent::class) +class AutocastCancelButtonPlugin : EventSubscriber { + override fun test(event: ButtonActionEvent) = event.button in CANCEL_BUTTONS + + override fun subscribe(context: EventContext, player: Player, event: ButtonActionEvent) { + if (player.isDead) return + val weaponId = player.playerEquipment[player.playerWeapon] + player.itemAssistant.sendWeapon(weaponId, DeprecatedItems.getItemName(weaponId)) + if (!player.autocasting) { + player.packetSender.sendFrame36(43, player.fightMode) + } + } + + private companion object { + val CANCEL_BUTTONS = setOf(2004, 6161, 7212, 12101, 24017) + } +} diff --git a/2006Scape Server/plugins/buttons/combat/AutocastMenuButtonsPlugin.kt b/2006Scape Server/plugins/buttons/combat/AutocastMenuButtonsPlugin.kt new file mode 100644 index 00000000..dd40ba37 --- /dev/null +++ b/2006Scape Server/plugins/buttons/combat/AutocastMenuButtonsPlugin.kt @@ -0,0 +1,58 @@ +package plugin.buttons.combat + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ButtonActionEvent +import com.rs2.game.content.combat.magic.MagicData +import com.rs2.game.players.Player + +@SubscribesTo(ButtonActionEvent::class) +class AutocastMenuButtonsPlugin : EventSubscriber { + override fun test(event: ButtonActionEvent) = + event.button == CHOOSE_SPELL_BUTTON || event.button == ATTACK_WITH_BUTTON_1 || event.button == ATTACK_WITH_BUTTON_2 + + override fun subscribe(context: EventContext, player: Player, event: ButtonActionEvent) { + if (player.isDead) return + if (event.button == CHOOSE_SPELL_BUTTON) { + openSpellSelect(player) + return + } + + if (player.autocastId >= 0) { + if (player.autocasting) { + player.playerAssistant.resetAutocast() + player.spellId = 0 + player.usingMagic = false + } else { + player.autocasting = true + player.packetSender.sendConfig(108, 3) + player.packetSender.sendConfig(43, -1) + player.packetSender.sendString(MagicData.getSpellName(player.autocastId), 352, true) + } + } else { + openSpellSelect(player) + } + } + + private fun openSpellSelect(player: Player) { + val weapon = player.playerEquipment[player.playerWeapon] + if (player.playerMagicBook == 1) { + if (weapon == ANCIENT_STAFF) { + player.packetSender.setSidebarInterface(0, 1689) + } else { + player.packetSender.sendMessage("You can't autocast ancients without an ancient staff.") + } + } else if (player.playerMagicBook == 0) { + player.packetSender.setSidebarInterface(0, if (weapon == SLAYERS_STAFF) 12050 else 1829) + } + } + + private companion object { + const val CHOOSE_SPELL_BUTTON = 1097 + const val ATTACK_WITH_BUTTON_1 = 1093 + const val ATTACK_WITH_BUTTON_2 = 1094 + const val ANCIENT_STAFF = 4675 + const val SLAYERS_STAFF = 4170 + } +} diff --git a/2006Scape Server/plugins/buttons/combat/AutocastSpellSelectPlugin.kt b/2006Scape Server/plugins/buttons/combat/AutocastSpellSelectPlugin.kt new file mode 100644 index 00000000..cfbd7f07 --- /dev/null +++ b/2006Scape Server/plugins/buttons/combat/AutocastSpellSelectPlugin.kt @@ -0,0 +1,82 @@ +package plugin.buttons.combat + +import com.rs2.Constants +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ButtonActionEvent +import com.rs2.game.content.combat.magic.MagicData +import com.rs2.game.players.Player + +@SubscribesTo(ButtonActionEvent::class) +class AutocastSpellSelectPlugin : EventSubscriber { + override fun test(event: ButtonActionEvent) = SPELL_BY_BUTTON.containsKey(event.button) + + override fun subscribe(context: EventContext, player: Player, event: ButtonActionEvent) { + if (player.isDead) return + val spellIndex = SPELL_BY_BUTTON.getValue(event.button) + val weapon = player.playerEquipment[player.playerWeapon] + + if (spellIndex in 32..47) { + if (player.playerMagicBook != 1 || weapon != ANCIENT_STAFF) { + player.packetSender.sendMessage("You can't autocast ancients without an ancient staff.") + return + } + } else { + if (player.playerMagicBook != 0) { + return + } + if ((spellIndex == 27 || spellIndex == 25) && weapon != SLAYERS_STAFF) { + return + } + } + + val requiredLevel = MagicData.MAGIC_SPELLS[spellIndex][1] + if (player.playerLevel[Constants.MAGIC] < requiredLevel) { + player.packetSender.sendMessage("You need a Magic level of $requiredLevel to cast this spell.") + return + } + + player.autocasting = true + player.autocastId = spellIndex + player.packetSender.sendConfig(108, 3) + player.packetSender.sendConfig(43, -1) + player.packetSender.setSidebarInterface(0, 328) + player.packetSender.sendString(MagicData.getSpellName(spellIndex), 352, true) + } + + private companion object { + const val ANCIENT_STAFF = 4675 + const val SLAYERS_STAFF = 4170 + + val SPELL_BY_BUTTON = mapOf( + // Interface 1829 (Modern Combat Spells) + 1830 to 0, 1831 to 1, 1832 to 2, 1833 to 3, + 1834 to 4, 1835 to 5, 1836 to 6, 1837 to 7, + 1838 to 8, 1839 to 9, 1840 to 10, 1841 to 11, + 1842 to 12, 1843 to 13, 1844 to 14, 1845 to 15, + + // Interface 1689 (Ancient Magicks) + 13189 to 32, 13241 to 33, 13147 to 34, 6162 to 35, + 13215 to 36, 13267 to 37, 13167 to 38, 13125 to 39, + 13202 to 40, 13254 to 41, 13158 to 42, 13114 to 43, + 13228 to 44, 13280 to 45, 13178 to 46, 13136 to 47, + + // Interface 12050 (Slayer Staff) + 12052 to 27, 12056 to 25, + 12051 to 12, 12053 to 13, 12054 to 14, 12055 to 15, + + // Legacy / Custom Interface Fallback IDs + 7038 to 0, 7039 to 1, 7040 to 2, 7041 to 3, + 7042 to 4, 7043 to 5, 7044 to 6, 7045 to 7, + 7046 to 8, 7047 to 9, 7048 to 10, 7049 to 11, + 7050 to 12, 7051 to 13, 7052 to 14, 7053 to 15, + 51133 to 32, 51185 to 33, 51091 to 34, 24018 to 35, + 51159 to 36, 51211 to 37, 51111 to 38, 51069 to 39, + 51146 to 40, 51198 to 41, 51102 to 42, 51058 to 43, + 51172 to 44, 51224 to 45, 51122 to 46, 51080 to 47, + 47019 to 27, 47020 to 25, + 47021 to 12, 47022 to 13, 47023 to 14, 47024 to 15 + ) + } +} diff --git a/2006Scape Server/plugins/buttons/combat/CombatStyleButtonsPlugin.kt b/2006Scape Server/plugins/buttons/combat/CombatStyleButtonsPlugin.kt new file mode 100644 index 00000000..a5c92396 --- /dev/null +++ b/2006Scape Server/plugins/buttons/combat/CombatStyleButtonsPlugin.kt @@ -0,0 +1,38 @@ +package plugin.buttons.combat + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ButtonActionEvent +import com.rs2.game.players.Player + +@SubscribesTo(ButtonActionEvent::class) +class CombatStyleButtonsPlugin : EventSubscriber { + override fun test(event: ButtonActionEvent) = STYLE_BY_BUTTON.containsKey(event.button) + + override fun subscribe(context: EventContext, player: Player, event: ButtonActionEvent) { + if (player.isDead) return + player.fightMode = STYLE_BY_BUTTON.getValue(event.button) + if (player.autocasting) { + player.playerAssistant.resetAutocast() + } + } + + private companion object { + val STYLE_BY_BUTTON = mapOf( + // Attack / Accurate (0) + 9125 to 0, 6221 to 0, 22228 to 0, 48010 to 0, 21200 to 0, 1080 to 0, + 6168 to 0, 6236 to 0, 17102 to 0, 8234 to 0, 14218 to 0, 14221 to 0, + // Defence / Defensive (1) + 9126 to 1, 48008 to 1, 22229 to 1, 21201 to 1, 1078 to 1, 6169 to 1, + 33019 to 1, 18078 to 1, 8235 to 1, 14219 to 1, + // Strength / Aggressive / Rapid (2) + 9128 to 2, 6220 to 2, 22230 to 2, 21203 to 2, 21202 to 2, 1079 to 2, + 6171 to 2, 6170 to 2, 33020 to 2, 6235 to 2, 17101 to 2, 8237 to 2, + 8236 to 2, 14220 to 2, + // Controlled / Longrange (3) + 9127 to 3, 48009 to 3, 33018 to 3, 6234 to 3, 6219 to 3, 18077 to 3, + 18080 to 3, 18079 to 3, 17100 to 3 + ) + } +} diff --git a/2006Scape Server/plugins/plugin/buttons/gameframe/BrightnessButtons.java b/2006Scape Server/plugins/buttons/gameframe/BrightnessButtons.java similarity index 100% rename from 2006Scape Server/plugins/plugin/buttons/gameframe/BrightnessButtons.java rename to 2006Scape Server/plugins/buttons/gameframe/BrightnessButtons.java diff --git a/2006Scape Server/plugins/plugin/buttons/gameframe/LogoutButton.java b/2006Scape Server/plugins/buttons/gameframe/LogoutButton.java similarity index 100% rename from 2006Scape Server/plugins/plugin/buttons/gameframe/LogoutButton.java rename to 2006Scape Server/plugins/buttons/gameframe/LogoutButton.java diff --git a/2006Scape Server/plugins/plugin/buttons/gameframe/MusicVolumeButtons.java b/2006Scape Server/plugins/buttons/gameframe/MusicVolumeButtons.java similarity index 100% rename from 2006Scape Server/plugins/plugin/buttons/gameframe/MusicVolumeButtons.java rename to 2006Scape Server/plugins/buttons/gameframe/MusicVolumeButtons.java diff --git a/2006Scape Server/plugins/plugin/buttons/gameframe/SoundVolumeButtons.java b/2006Scape Server/plugins/buttons/gameframe/SoundVolumeButtons.java similarity index 100% rename from 2006Scape Server/plugins/plugin/buttons/gameframe/SoundVolumeButtons.java rename to 2006Scape Server/plugins/buttons/gameframe/SoundVolumeButtons.java diff --git a/2006Scape Server/plugins/plugin/buttons/gameframe/ToggleRunButtons.java b/2006Scape Server/plugins/buttons/gameframe/ToggleRunButtons.java similarity index 100% rename from 2006Scape Server/plugins/plugin/buttons/gameframe/ToggleRunButtons.java rename to 2006Scape Server/plugins/buttons/gameframe/ToggleRunButtons.java diff --git a/2006Scape Server/plugins/plugin/buttons/gameframe/ToggleSplitChatButtons.java b/2006Scape Server/plugins/buttons/gameframe/ToggleSplitChatButtons.java similarity index 100% rename from 2006Scape Server/plugins/plugin/buttons/gameframe/ToggleSplitChatButtons.java rename to 2006Scape Server/plugins/buttons/gameframe/ToggleSplitChatButtons.java diff --git a/2006Scape Server/plugins/plugin/click/item/ItemFirstClick.java b/2006Scape Server/plugins/click/item/ItemFirstClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/item/ItemFirstClick.java rename to 2006Scape Server/plugins/click/item/ItemFirstClick.java diff --git a/2006Scape Server/plugins/plugin/click/item/ItemOnItem.java b/2006Scape Server/plugins/click/item/ItemOnItem.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/item/ItemOnItem.java rename to 2006Scape Server/plugins/click/item/ItemOnItem.java diff --git a/2006Scape Server/plugins/plugin/click/item/ItemOnNpc.java b/2006Scape Server/plugins/click/item/ItemOnNpc.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/item/ItemOnNpc.java rename to 2006Scape Server/plugins/click/item/ItemOnNpc.java diff --git a/2006Scape Server/plugins/plugin/click/item/ItemOnObject.java b/2006Scape Server/plugins/click/item/ItemOnObject.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/item/ItemOnObject.java rename to 2006Scape Server/plugins/click/item/ItemOnObject.java diff --git a/2006Scape Server/plugins/plugin/click/item/ItemSecondClick.java b/2006Scape Server/plugins/click/item/ItemSecondClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/item/ItemSecondClick.java rename to 2006Scape Server/plugins/click/item/ItemSecondClick.java diff --git a/2006Scape Server/plugins/plugin/click/item/ItemThirdClick.java b/2006Scape Server/plugins/click/item/ItemThirdClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/item/ItemThirdClick.java rename to 2006Scape Server/plugins/click/item/ItemThirdClick.java diff --git a/2006Scape Server/plugins/plugin/click/magic/MagicOnItem.java b/2006Scape Server/plugins/click/magic/MagicOnItem.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/magic/MagicOnItem.java rename to 2006Scape Server/plugins/click/magic/MagicOnItem.java diff --git a/2006Scape Server/plugins/plugin/click/npc/NpcFirstClick.java b/2006Scape Server/plugins/click/npc/NpcFirstClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/npc/NpcFirstClick.java rename to 2006Scape Server/plugins/click/npc/NpcFirstClick.java diff --git a/2006Scape Server/plugins/plugin/click/npc/NpcSecondClick.java b/2006Scape Server/plugins/click/npc/NpcSecondClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/npc/NpcSecondClick.java rename to 2006Scape Server/plugins/click/npc/NpcSecondClick.java diff --git a/2006Scape Server/plugins/plugin/click/npc/NpcThirdClick.java b/2006Scape Server/plugins/click/npc/NpcThirdClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/npc/NpcThirdClick.java rename to 2006Scape Server/plugins/click/npc/NpcThirdClick.java diff --git a/2006Scape Server/plugins/plugin/click/obj/ObjectFirstClick.java b/2006Scape Server/plugins/click/obj/ObjectFirstClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/obj/ObjectFirstClick.java rename to 2006Scape Server/plugins/click/obj/ObjectFirstClick.java diff --git a/2006Scape Server/plugins/plugin/click/obj/ObjectFourthClick.java b/2006Scape Server/plugins/click/obj/ObjectFourthClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/obj/ObjectFourthClick.java rename to 2006Scape Server/plugins/click/obj/ObjectFourthClick.java diff --git a/2006Scape Server/plugins/plugin/click/obj/ObjectSecondClick.java b/2006Scape Server/plugins/click/obj/ObjectSecondClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/obj/ObjectSecondClick.java rename to 2006Scape Server/plugins/click/obj/ObjectSecondClick.java diff --git a/2006Scape Server/plugins/plugin/click/obj/ObjectThirdClick.java b/2006Scape Server/plugins/click/obj/ObjectThirdClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/click/obj/ObjectThirdClick.java rename to 2006Scape Server/plugins/click/obj/ObjectThirdClick.java diff --git a/2006Scape Server/plugins/plugin/commands/Drops.kt b/2006Scape Server/plugins/commands/SearchDrops.kt similarity index 94% rename from 2006Scape Server/plugins/plugin/commands/Drops.kt rename to 2006Scape Server/plugins/commands/SearchDrops.kt index c6b5bad9..5e4dcc05 100644 --- a/2006Scape Server/plugins/plugin/commands/Drops.kt +++ b/2006Scape Server/plugins/commands/SearchDrops.kt @@ -12,7 +12,7 @@ import com.rs2.util.NpcDrop import org.apollo.cache.def.ItemDefinition @SubscribesTo(CommandEvent::class) -class Drops : EventSubscriber { +class SearchDrops : EventSubscriber { companion object { private const val INTERFACE_ID = 8134 @@ -20,7 +20,7 @@ class Drops : EventSubscriber { private const val SUBTITLE_LINE_ID = 8145 private const val MAX_SCROLL_LINES = 199 private const val MAX_DISPLAY_RESULTS = 196 - private val CLEAR_RANGES = arrayOf(8144..8195, 12174..12223, 14945..15044) + private val CLEAR_RANGES = arrayOf(8146..8195, 12174..12223, 14945..15044) private fun formatChance(chance: Int): String = when { chance <= 1 -> "@gre@Always@bla@" @@ -114,15 +114,16 @@ class Drops : EventSubscriber { val items = ArrayList() } + override fun test(event: CommandEvent): Boolean = when (event.name.lowercase()) { + "searchdrops", "drops", "dropsearch" -> true + else -> false + } + override fun subscribe(context: EventContext, player: Player?, event: CommandEvent) { if (player == null) return - when (event.name.lowercase()) { - "drops", "searchdrops" -> { - context.breakSubscriberChain() - handleDropsCommand(player, event.arguments) - } - } + context.breakSubscriberChain() + handleDropsCommand(player, event.arguments) } private fun handleDropsCommand(player: Player, arguments: Array) { @@ -137,7 +138,7 @@ class Drops : EventSubscriber { when (subcommand) { "item", "i" -> { if (query.isEmpty()) { - player.packetSender.sendMessage("Usage: ::drops item ") + player.packetSender.sendMessage("Usage: ::searchdrops item ") return } val drops = NPCDropsHandler.getNpcDrops() @@ -149,7 +150,7 @@ class Drops : EventSubscriber { } "npc", "n" -> { if (query.isEmpty()) { - player.packetSender.sendMessage("Usage: ::drops npc ") + player.packetSender.sendMessage("Usage: ::searchdrops npc ") return } val drops = NPCDropsHandler.getNpcDrops() @@ -164,7 +165,7 @@ class Drops : EventSubscriber { } private fun sendUsage(player: Player) { - player.packetSender.sendMessage("Usage: ::drops item or ::drops npc ") + player.packetSender.sendMessage("Usage: ::searchdrops item or ::searchdrops npc ") } private fun handleItemDropsCommand(player: Player, drops: Array, query: String) { diff --git a/2006Scape Server/plugins/plugin/commands/SearchItem.kt b/2006Scape Server/plugins/commands/SearchItem.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/commands/SearchItem.kt rename to 2006Scape Server/plugins/commands/SearchItem.kt diff --git a/2006Scape Server/plugins/plugin/commands/Teleport.kt b/2006Scape Server/plugins/commands/admin/Teleport.kt similarity index 70% rename from 2006Scape Server/plugins/plugin/commands/Teleport.kt rename to 2006Scape Server/plugins/commands/admin/Teleport.kt index 98638902..a3267a22 100644 --- a/2006Scape Server/plugins/plugin/commands/Teleport.kt +++ b/2006Scape Server/plugins/commands/admin/Teleport.kt @@ -1,4 +1,4 @@ -package plugin.commands +package plugin.commands.admin import com.rs2.Constants import com.rs2.event.EventContext @@ -30,7 +30,36 @@ class Teleport : EventSubscriber { "cammy" to "camelot", "ardy" to "ardougne", "ape" to "ape atoll", - "apeatoll" to "ape atoll" + "apeatoll" to "ape atoll", + "tav" to "taverley", + "taverly" to "taverley", + "edge" to "edgeville", + "alkharid" to "al kharid", + "duel" to "duel arena", + "cw" to "castle wars", + "castlewars" to "castle wars", + "pc" to "pest control", + "pestcontrol" to "pest control", + "portsarim" to "port sarim", + "sarim" to "port sarim", + "relekka" to "rellekka" + ) + + // Named destinations that are not spell teleports, mapped to x, y, z + private val NAMED_LOCATIONS = mapOf( + "barrows" to Triple(3565, 3308, 0), + "taverley" to Triple(2896, 3428, 0), + "edgeville" to Triple(3088, 3500, 0), + "al kharid" to Triple(3293, 3174, 0), + "karamja" to Triple(2911, 3152, 0), + "draynor" to Triple(3103, 3249, 0), + "duel arena" to Triple(3313, 3234, 0), + "castle wars" to Triple(2441, 3090, 0), + "pest control" to Triple(2659, 2676, 0), + "port sarim" to Triple(3041, 3202, 0), + "rellekka" to Triple(2620, 3686, 0), + "brimhaven" to Triple(2772, 3234, 0), + "entrana" to Triple(2834, 3335, 0) ) private val VALID_CITIES_MESSAGES = listOf( @@ -38,7 +67,10 @@ class Teleport : EventSubscriber { "Modern: varrock, lumbridge (lumby), falador (fally), camelot (cammy),", " ardougne (ardy), watchtower, trollheim, ape atoll (ape)", "Ancient: paddewwa, senntisten, kharyll, lassar,", - " dareeyak, carrallangar, annakarl, ghorrock" + " dareeyak, carrallangar, annakarl, ghorrock", + "Other: barrows, taverley (tav), edgeville (edge), al kharid, karamja,", + " draynor, duel arena (duel), castle wars (cw), pest control (pc),", + " port sarim, rellekka, brimhaven, entrana" ) } @@ -63,6 +95,14 @@ class Teleport : EventSubscriber { if (x == null) { val normalized = arguments.joinToString(" ").lowercase().replace('_', ' ').replace('-', ' ').trim() val resolvedCity = CITY_ALIASES[normalized] ?: normalized + val namedLocation = NAMED_LOCATIONS[resolvedCity] + if (namedLocation != null) { + val (destX, destY, destZ) = namedLocation + val displayName = resolvedCity.split(" ").joinToString(" ") { it.replaceFirstChar(Char::titlecase) } + teleport(player, destX, destY, destZ, player.playerMagicBook == 1) + player.packetSender.sendMessage("Teleporting to $displayName...") + return + } val city = CITIES[resolvedCity] if (city == null) { player.packetSender.sendMessage("Unknown city '$normalized'.") diff --git a/2006Scape Server/plugins/plugin/commands/SearchNpc.kt b/2006Scape Server/plugins/commands/developer/SearchNpc.kt similarity index 99% rename from 2006Scape Server/plugins/plugin/commands/SearchNpc.kt rename to 2006Scape Server/plugins/commands/developer/SearchNpc.kt index 61bc8118..cbb88588 100644 --- a/2006Scape Server/plugins/plugin/commands/SearchNpc.kt +++ b/2006Scape Server/plugins/commands/developer/SearchNpc.kt @@ -1,4 +1,4 @@ -package plugin.commands +package plugin.commands.developer import com.rs2.event.EventContext import com.rs2.event.EventSubscriber diff --git a/2006Scape Server/plugins/commands/developer/SetLevel.kt b/2006Scape Server/plugins/commands/developer/SetLevel.kt new file mode 100644 index 00000000..a01f2b42 --- /dev/null +++ b/2006Scape Server/plugins/commands/developer/SetLevel.kt @@ -0,0 +1,136 @@ +package plugin.commands.developer + +import com.rs2.Constants +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.DeveloperCommandEvent +import com.rs2.game.players.Player +import com.rs2.game.players.PlayerAssistant + +@SubscribesTo(DeveloperCommandEvent::class) +class SetLevel : EventSubscriber { + + companion object { + private val COMMAND_NAMES = setOf("setlevel", "level", "skill") + + private val SKILL_NAMES = listOf( + "Attack", + "Defence", + "Strength", + "Hitpoints", + "Ranged", + "Prayer", + "Magic", + "Cooking", + "Woodcutting", + "Fletching", + "Fishing", + "Firemaking", + "Crafting", + "Smithing", + "Mining", + "Herblore", + "Agility", + "Thieving", + "Slayer", + "Farming", + "Runecrafting" + ) + + private val SKILL_IDS_BY_NAME = mapOf( + "attack" to Constants.ATTACK, + "att" to Constants.ATTACK, + "atk" to Constants.ATTACK, + "defence" to Constants.DEFENCE, + "defense" to Constants.DEFENCE, + "def" to Constants.DEFENCE, + "strength" to Constants.STRENGTH, + "str" to Constants.STRENGTH, + "hitpoints" to Constants.HITPOINTS, + "hitpoint" to Constants.HITPOINTS, + "hp" to Constants.HITPOINTS, + "ranged" to Constants.RANGED, + "range" to Constants.RANGED, + "rng" to Constants.RANGED, + "prayer" to Constants.PRAYER, + "pray" to Constants.PRAYER, + "magic" to Constants.MAGIC, + "mage" to Constants.MAGIC, + "cooking" to Constants.COOKING, + "cook" to Constants.COOKING, + "woodcutting" to Constants.WOODCUTTING, + "wc" to Constants.WOODCUTTING, + "fletching" to Constants.FLETCHING, + "fletch" to Constants.FLETCHING, + "fishing" to Constants.FISHING, + "fish" to Constants.FISHING, + "firemaking" to Constants.FIREMAKING, + "fm" to Constants.FIREMAKING, + "crafting" to Constants.CRAFTING, + "craft" to Constants.CRAFTING, + "smithing" to Constants.SMITHING, + "smith" to Constants.SMITHING, + "mining" to Constants.MINING, + "mine" to Constants.MINING, + "herblore" to Constants.HERBLORE, + "herb" to Constants.HERBLORE, + "agility" to Constants.AGILITY, + "agil" to Constants.AGILITY, + "thieving" to Constants.THIEVING, + "thief" to Constants.THIEVING, + "slayer" to Constants.SLAYER, + "slay" to Constants.SLAYER, + "farming" to Constants.FARMING, + "farm" to Constants.FARMING, + "runecrafting" to Constants.RUNECRAFTING, + "runecraft" to Constants.RUNECRAFTING, + "rc" to Constants.RUNECRAFTING + ) + + private fun resolveSkillId(rawSkill: String): Int? { + val numeric = rawSkill.toIntOrNull() + if (numeric != null) { + return if (numeric in SKILL_NAMES.indices) numeric else null + } + val normalized = rawSkill.lowercase().replace(" ", "").replace("_", "").replace("-", "") + return SKILL_IDS_BY_NAME[normalized] + } + } + + override fun test(event: DeveloperCommandEvent): Boolean = + COMMAND_NAMES.contains(event.name.lowercase()) + + override fun subscribe(context: EventContext, player: Player?, event: DeveloperCommandEvent) { + if (player == null) return + + context.breakSubscriberChain() + + val arguments = event.arguments + if (arguments.size < 2) { + player.packetSender.sendMessage("Usage: ::setlevel ") + player.packetSender.sendMessage("Examples: ::setlevel 1 99 or ::setlevel attack 99") + return + } + + val level = arguments.last().toIntOrNull() + if (level == null) { + player.packetSender.sendMessage("Usage: ::setlevel ") + return + } + + val rawSkill = arguments.dropLast(1).joinToString(" ") + val skillId = resolveSkillId(rawSkill) + if (skillId == null) { + player.packetSender.sendMessage("Unknown skill '$rawSkill'. Valid IDs: 0-${SKILL_NAMES.lastIndex} (e.g. attack, hitpoints, herblore, rc).") + return + } + + val clampedLevel = level.coerceIn(1, 99) + player.playerXP[skillId] = PlayerAssistant.getXPForLevel(clampedLevel) + 5 + player.playerLevel[skillId] = PlayerAssistant.getLevelForXP(player.playerXP[skillId]) + player.playerAssistant.refreshSkill(skillId) + player.playerAssistant.levelUp(skillId) + player.packetSender.sendMessage("Set your ${SKILL_NAMES[skillId]} level to $clampedLevel.") + } +} diff --git a/2006Scape Server/plugins/plugin/commands/SpawnItem.kt b/2006Scape Server/plugins/commands/developer/SpawnItem.kt similarity index 99% rename from 2006Scape Server/plugins/plugin/commands/SpawnItem.kt rename to 2006Scape Server/plugins/commands/developer/SpawnItem.kt index bdee263e..9c954ed4 100644 --- a/2006Scape Server/plugins/plugin/commands/SpawnItem.kt +++ b/2006Scape Server/plugins/commands/developer/SpawnItem.kt @@ -1,4 +1,4 @@ -package plugin.commands +package plugin.commands.developer import com.rs2.event.EventContext import com.rs2.event.EventSubscriber diff --git a/2006Scape Server/plugins/plugin/commands/SpawnNpc.kt b/2006Scape Server/plugins/commands/developer/SpawnNpc.kt similarity index 99% rename from 2006Scape Server/plugins/plugin/commands/SpawnNpc.kt rename to 2006Scape Server/plugins/commands/developer/SpawnNpc.kt index e74c5eea..1cc175d4 100644 --- a/2006Scape Server/plugins/plugin/commands/SpawnNpc.kt +++ b/2006Scape Server/plugins/commands/developer/SpawnNpc.kt @@ -1,4 +1,4 @@ -package plugin.commands +package plugin.commands.developer import com.rs2.event.EventContext import com.rs2.event.EventSubscriber diff --git a/2006Scape Server/plugins/plugin/commands/Spellbook.kt b/2006Scape Server/plugins/commands/developer/Spellbook.kt similarity index 98% rename from 2006Scape Server/plugins/plugin/commands/Spellbook.kt rename to 2006Scape Server/plugins/commands/developer/Spellbook.kt index 8904986d..4eabecd3 100644 --- a/2006Scape Server/plugins/plugin/commands/Spellbook.kt +++ b/2006Scape Server/plugins/commands/developer/Spellbook.kt @@ -1,4 +1,4 @@ -package plugin.commands +package plugin.commands.developer import com.rs2.event.EventContext import com.rs2.event.EventSubscriber diff --git a/2006Scape Server/plugins/plugin/integration/discord/DiscordActivity.kt b/2006Scape Server/plugins/integration/discord/DiscordActivity.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/DiscordActivity.kt rename to 2006Scape Server/plugins/integration/discord/DiscordActivity.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/DiscordBot.kt b/2006Scape Server/plugins/integration/discord/DiscordBot.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/DiscordBot.kt rename to 2006Scape Server/plugins/integration/discord/DiscordBot.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/DiscordCommandSubscriber.kt b/2006Scape Server/plugins/integration/discord/DiscordCommandSubscriber.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/DiscordCommandSubscriber.kt rename to 2006Scape Server/plugins/integration/discord/DiscordCommandSubscriber.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/DiscordConfig.kt b/2006Scape Server/plugins/integration/discord/DiscordConfig.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/DiscordConfig.kt rename to 2006Scape Server/plugins/integration/discord/DiscordConfig.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/DiscordShutdownSubscriber.kt b/2006Scape Server/plugins/integration/discord/DiscordShutdownSubscriber.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/DiscordShutdownSubscriber.kt rename to 2006Scape Server/plugins/integration/discord/DiscordShutdownSubscriber.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/DiscordStartupSubscriber.kt b/2006Scape Server/plugins/integration/discord/DiscordStartupSubscriber.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/DiscordStartupSubscriber.kt rename to 2006Scape Server/plugins/integration/discord/DiscordStartupSubscriber.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/WelcomeMessage.kt b/2006Scape Server/plugins/integration/discord/WelcomeMessage.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/WelcomeMessage.kt rename to 2006Scape Server/plugins/integration/discord/WelcomeMessage.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/Commands.kt b/2006Scape Server/plugins/integration/discord/commands/Commands.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/Commands.kt rename to 2006Scape Server/plugins/integration/discord/commands/Commands.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/Forum.kt b/2006Scape Server/plugins/integration/discord/commands/Forum.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/Forum.kt rename to 2006Scape Server/plugins/integration/discord/commands/Forum.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/Issues.kt b/2006Scape Server/plugins/integration/discord/commands/Issues.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/Issues.kt rename to 2006Scape Server/plugins/integration/discord/commands/Issues.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/Link.kt b/2006Scape Server/plugins/integration/discord/commands/Link.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/Link.kt rename to 2006Scape Server/plugins/integration/discord/commands/Link.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/Online.kt b/2006Scape Server/plugins/integration/discord/commands/Online.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/Online.kt rename to 2006Scape Server/plugins/integration/discord/commands/Online.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/Players.kt b/2006Scape Server/plugins/integration/discord/commands/Players.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/Players.kt rename to 2006Scape Server/plugins/integration/discord/commands/Players.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/Website.kt b/2006Scape Server/plugins/integration/discord/commands/Website.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/Website.kt rename to 2006Scape Server/plugins/integration/discord/commands/Website.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/admin/AdminCommands.kt b/2006Scape Server/plugins/integration/discord/commands/admin/AdminCommands.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/admin/AdminCommands.kt rename to 2006Scape Server/plugins/integration/discord/commands/admin/AdminCommands.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/admin/GameKick.kt b/2006Scape Server/plugins/integration/discord/commands/admin/GameKick.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/admin/GameKick.kt rename to 2006Scape Server/plugins/integration/discord/commands/admin/GameKick.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/admin/MoveHome.kt b/2006Scape Server/plugins/integration/discord/commands/admin/MoveHome.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/admin/MoveHome.kt rename to 2006Scape Server/plugins/integration/discord/commands/admin/MoveHome.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/admin/Purge.kt b/2006Scape Server/plugins/integration/discord/commands/admin/Purge.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/admin/Purge.kt rename to 2006Scape Server/plugins/integration/discord/commands/admin/Purge.kt diff --git a/2006Scape Server/plugins/plugin/integration/discord/commands/admin/Update.kt b/2006Scape Server/plugins/integration/discord/commands/admin/Update.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/discord/commands/admin/Update.kt rename to 2006Scape Server/plugins/integration/discord/commands/admin/Update.kt diff --git a/2006Scape Server/plugins/plugin/integration/website/PlayersOnlineWebsite.kt b/2006Scape Server/plugins/integration/website/PlayersOnlineWebsite.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/website/PlayersOnlineWebsite.kt rename to 2006Scape Server/plugins/integration/website/PlayersOnlineWebsite.kt diff --git a/2006Scape Server/plugins/plugin/integration/website/RegisteredAccsWebsite.kt b/2006Scape Server/plugins/integration/website/RegisteredAccsWebsite.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/website/RegisteredAccsWebsite.kt rename to 2006Scape Server/plugins/integration/website/RegisteredAccsWebsite.kt diff --git a/2006Scape Server/plugins/plugin/integration/website/WebsiteConfig.kt b/2006Scape Server/plugins/integration/website/WebsiteConfig.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/website/WebsiteConfig.kt rename to 2006Scape Server/plugins/integration/website/WebsiteConfig.kt diff --git a/2006Scape Server/plugins/plugin/integration/website/WebsiteService.kt b/2006Scape Server/plugins/integration/website/WebsiteService.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/website/WebsiteService.kt rename to 2006Scape Server/plugins/integration/website/WebsiteService.kt diff --git a/2006Scape Server/plugins/plugin/integration/website/WebsiteShutdownSubscriber.kt b/2006Scape Server/plugins/integration/website/WebsiteShutdownSubscriber.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/website/WebsiteShutdownSubscriber.kt rename to 2006Scape Server/plugins/integration/website/WebsiteShutdownSubscriber.kt diff --git a/2006Scape Server/plugins/plugin/integration/website/WebsiteStartupSubscriber.kt b/2006Scape Server/plugins/integration/website/WebsiteStartupSubscriber.kt similarity index 100% rename from 2006Scape Server/plugins/plugin/integration/website/WebsiteStartupSubscriber.kt rename to 2006Scape Server/plugins/integration/website/WebsiteStartupSubscriber.kt diff --git a/2006Scape Server/plugins/plugin/npc/fadli/SecondClick.java b/2006Scape Server/plugins/npc/fadli/SecondClick.java similarity index 100% rename from 2006Scape Server/plugins/plugin/npc/fadli/SecondClick.java rename to 2006Scape Server/plugins/npc/fadli/SecondClick.java diff --git a/2006Scape Server/plugins/npc/imp/ImpTeleportPlugin.kt b/2006Scape Server/plugins/npc/imp/ImpTeleportPlugin.kt new file mode 100644 index 00000000..e5c23c09 --- /dev/null +++ b/2006Scape Server/plugins/npc/imp/ImpTeleportPlugin.kt @@ -0,0 +1,117 @@ +package plugin.npc.imp + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.NpcTickSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.NpcTickEvent +import com.rs2.game.content.StaticNpcList.IMP +import com.rs2.game.content.StaticNpcList.IMP_709 +import com.rs2.game.npcs.Npc +import com.rs2.game.npcs.NpcHandler +import com.rs2.game.players.Player +import com.rs2.game.players.PlayerHandler +import com.rs2.util.Misc +import com.rs2.world.clip.PathFinder +import com.rs2.world.clip.Region + +@SubscribesTo(NpcTickEvent::class) +class ImpTeleportPlugin : EventSubscriber, NpcTickSubscriber { + + private val timers = IntArray(NpcHandler.npcs.size) + private val lastDamageTimes = LongArray(NpcHandler.npcs.size) + + override fun npcTypes() = intArrayOf(IMP, IMP_709) + + override fun test(event: NpcTickEvent) = event.npc.npcType == IMP || event.npc.npcType == IMP_709 + + override fun subscribe(context: EventContext, player: Player?, event: NpcTickEvent) { + if (processImp(event.index, event.npc)) { + event.cancelTick() + } + } + + private fun processImp(index: Int, npc: Npc): Boolean { + if (index < 0 || index >= timers.size) return false + + if (npc.isDead || npc.HP <= 0) { + timers[index] = SPAWN_TIMER_TICKS + lastDamageTimes[index] = npc.lastDamageTaken + return false + } + + if (timers[index] <= 0) { + timers[index] = SPAWN_TIMER_TICKS + } + + // Authentic 2006 RS2: 1/10 chance to teleport when taking non-lethal damage + if (npc.lastDamageTaken > 0 && npc.lastDamageTaken != lastDamageTimes[index]) { + lastDamageTimes[index] = npc.lastDamageTaken + if (npc.freezeTimer <= 0 && Misc.random(9) == 0 && tryTeleport(index, npc)) { + return true + } + } + + // Authentic 2006 RS2: 70 ticks on spawn, 50-200 ticks thereafter; 1/2 chance if out of combat > 8 ticks + timers[index]-- + if (timers[index] == 0) { + timers[index] = Misc.random(MIN_TIMER_TICKS, MAX_TIMER_TICKS) + val outOfCombat = System.currentTimeMillis() - npc.lastDamageTaken > COMBAT_COOLDOWN_MS + if (npc.freezeTimer <= 0 && npc.randomWalk && outOfCombat && Misc.random(1) == 0) { + return tryTeleport(index, npc) + } + } + return false + } + + private fun tryTeleport(index: Int, npc: Npc): Boolean { + for (attempt in 0 until MAX_ATTEMPTS) { + val destX = npc.absX + Misc.random(TELEPORT_RADIUS * 2) - TELEPORT_RADIUS + val destY = npc.absY + Misc.random(TELEPORT_RADIUS * 2) - TELEPORT_RADIUS + if (destX == npc.absX && destY == npc.absY) continue + if ((Region.getClipping(destX, destY, npc.heightLevel) and BLOCKED_CLIP_MASK) != 0) continue + if (!PathFinder.getPathFinder().accessible(npc.absX, npc.absY, npc.heightLevel, destX, destY)) continue + + teleportImp(index, npc, destX, destY) + return true + } + return false + } + + private fun teleportImp(index: Int, npc: Npc, destX: Int, destY: Int) { + val oldX = npc.absX + val oldY = npc.absY + for (p in PlayerHandler.players) { + if (p == null) continue + if (p.heightLevel == npc.heightLevel && p.distanceToPoint(oldX, oldY) <= 25) { + p.packetSender.stillGfx(SMOKE_PUFF_GFX, oldX, oldY, npc.heightLevel, 0) + } + if (p.npcIndex == index || p.followNpcId == index) { + p.combatAssistant.resetPlayerAttack() + } + } + npc.underAttack = false + npc.killerId = 0 + npc.underAttackBy = 0 + npc.walkingHome = false + npc.moveX = 0 + npc.moveY = 0 + npc.direction = -1 + npc.facePlayer(null) + npc.absX = destX + npc.absY = destY + npc.teleported = true + npc.gfx0(SMOKE_PUFF_GFX) + } + + private companion object { + const val SMOKE_PUFF_GFX = 86 + const val TELEPORT_RADIUS = 20 + const val MAX_ATTEMPTS = 15 + const val SPAWN_TIMER_TICKS = 70 + const val MIN_TIMER_TICKS = 50 + const val MAX_TIMER_TICKS = 200 + const val COMBAT_COOLDOWN_MS = 4800L + const val BLOCKED_CLIP_MASK = 0x1280180 + } +} diff --git a/2006Scape Server/plugins/objects/dairycow/DairyCowItemOnObjectPlugin.kt b/2006Scape Server/plugins/objects/dairycow/DairyCowItemOnObjectPlugin.kt new file mode 100644 index 00000000..ea7f9427 --- /dev/null +++ b/2006Scape Server/plugins/objects/dairycow/DairyCowItemOnObjectPlugin.kt @@ -0,0 +1,21 @@ +package plugin.objects.dairycow + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ItemOnObjectEvent +import com.rs2.game.content.StaticItemList.BUCKET +import com.rs2.game.content.StaticObjectList.DAIRY_COW +import com.rs2.game.players.Player + +@SubscribesTo(ItemOnObjectEvent::class) +class DairyCowItemOnObjectPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: ItemOnObjectEvent) { + if (event.gameObject != DAIRY_COW) return + if (event.item == BUCKET) { + DairyCowMilking.milk(player) + } else { + player.packetSender.sendMessage("Nothing interesting happens.") + } + } +} diff --git a/2006Scape Server/plugins/objects/dairycow/DairyCowMilking.kt b/2006Scape Server/plugins/objects/dairycow/DairyCowMilking.kt new file mode 100644 index 00000000..4dc4601d --- /dev/null +++ b/2006Scape Server/plugins/objects/dairycow/DairyCowMilking.kt @@ -0,0 +1,47 @@ +package plugin.objects.dairycow + +import com.rs2.event.CycleEvent +import com.rs2.event.CycleEventContainer +import com.rs2.event.CycleEventHandler +import com.rs2.game.content.StaticItemList.BUCKET +import com.rs2.game.content.StaticItemList.BUCKET_OF_MILK +import com.rs2.game.players.Player +import java.util.Collections +import java.util.WeakHashMap + +/** Shared implementation for the dairy cow's object, item-on-object, and NPC interactions. */ +internal object DairyCowMilking { + private val activePlayers = Collections.newSetFromMap(WeakHashMap()) + private val lock = Any() + + fun milk(player: Player) { + synchronized(lock) { + if (!activePlayers.add(player)) return + } + + if (!player.itemAssistant.playerHasItem(BUCKET, 1)) { + player.packetSender.sendMessage("You need a bucket in order to milk this cow.") + synchronized(lock) { activePlayers.remove(player) } + return + } + + player.startAnimation(2305) + CycleEventHandler.getSingleton().addEvent(player, object : CycleEvent() { + override fun execute(container: CycleEventContainer) { + if (player.itemAssistant.playerHasItem(BUCKET, 1)) { + player.itemAssistant.deleteItem(BUCKET, 1) + player.packetSender.sendMessage("You milk the cow.") + player.itemAssistant.addItem(BUCKET_OF_MILK, 1) + } else { + player.packetSender.sendMessage("You need a bucket in order to milk this cow.") + } + container.stop() + } + + override fun stop() { + synchronized(lock) { activePlayers.remove(player) } + } + }, 7) + } + +} diff --git a/2006Scape Server/plugins/objects/dairycow/DairyCowObjectPlugin.kt b/2006Scape Server/plugins/objects/dairycow/DairyCowObjectPlugin.kt new file mode 100644 index 00000000..3e0235a5 --- /dev/null +++ b/2006Scape Server/plugins/objects/dairycow/DairyCowObjectPlugin.kt @@ -0,0 +1,15 @@ +package plugin.objects.dairycow + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ObjectFirstClickEvent +import com.rs2.game.content.StaticObjectList.DAIRY_COW +import com.rs2.game.players.Player + +@SubscribesTo(ObjectFirstClickEvent::class) +class DairyCowObjectPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: ObjectFirstClickEvent) { + if (event.gameObject == DAIRY_COW) DairyCowMilking.milk(player) + } +} diff --git a/2006Scape Server/plugins/objects/flourmill/FlourMillActions.kt b/2006Scape Server/plugins/objects/flourmill/FlourMillActions.kt new file mode 100644 index 00000000..7a54093d --- /dev/null +++ b/2006Scape Server/plugins/objects/flourmill/FlourMillActions.kt @@ -0,0 +1,92 @@ +package plugin.objects.flourmill + +import com.rs2.event.CycleEvent +import com.rs2.event.CycleEventContainer +import com.rs2.event.CycleEventHandler +import com.rs2.game.content.StaticItemList.GRAIN +import com.rs2.game.content.StaticItemList.POT +import com.rs2.game.content.StaticItemList.POT_OF_FLOUR +import com.rs2.game.content.StaticObjectList.FLOUR_BIN +import com.rs2.game.content.StaticObjectList.NULL_1781 +import com.rs2.game.players.Player +import com.rs2.world.clip.Region + +internal object FlourMillActions { + private const val LIMIT = 30 + private const val BIN_X = 3166 + private const val BIN_Y = 3306 + + fun addGrain(player: Player, itemId: Int) { + if (itemId != GRAIN) { + player.packetSender.sendMessage("Nothing interesting happens.") + return + } + + val grain = FlourMillPluginState.grain(player) + val flour = FlourMillPluginState.flour(player) + if (grain == LIMIT - flour || flour == LIMIT) { + player.packetSender.sendMessage("You can't put anymore grain into the hopper.") + return + } + + player.startAnimation(832) + player.itemAssistant.deleteItem(GRAIN, 1) + FlourMillPluginState.setGrain(player, grain + 1) + player.packetSender.sendMessage("You put the grain in the hopper.") + } + + fun operateHopper(player: Player) { + val grain = FlourMillPluginState.grain(player) + val flour = FlourMillPluginState.flour(player) + if (grain <= 0) { + player.startAnimation(832) + player.packetSender.sendMessage("You operate the hopper. Nothing interesting happens.") + return + } + + if (flour == LIMIT) { + player.packetSender.sendMessage("There is currently too much grain in the hopper.") + return + } + + player.packetSender.sendMessage("You operate the hopper. The grain slides down the chute.") + player.startAnimation(832) + CycleEventHandler.getSingleton().addEvent(player, object : CycleEvent() { + override fun execute(container: CycleEventContainer) { + if (player.disconnected || player.distanceToPoint(BIN_X, BIN_Y) > 60) { + container.stop() + return + } + if (player.heightLevel == 2) return + if (player.heightLevel == 0) { + player.packetSender.`object`(FLOUR_BIN, BIN_X, BIN_Y, 0, 10) + Region.addObject(FLOUR_BIN, BIN_X, BIN_Y, 0, 10, 0, false) + container.stop() + } + } + + override fun stop() = Unit + }, 1) + + FlourMillPluginState.setFlour(player, (flour + grain).coerceAtMost(LIMIT)) + FlourMillPluginState.setGrain(player, 0) + } + + fun collectFlour(player: Player) { + val flour = FlourMillPluginState.flour(player) + if (player.itemAssistant.playerHasItem(POT, 1) && flour > 0) { + player.itemAssistant.deleteItem(POT, 1) + player.itemAssistant.addItem(POT_OF_FLOUR, 1) + player.packetSender.sendMessage("You fill a pot with flour from the bin.") + val remainingFlour = (flour - 1).coerceAtLeast(0) + FlourMillPluginState.setFlour(player, remainingFlour) + if (remainingFlour == 0) { + player.packetSender.`object`(NULL_1781, BIN_X, BIN_Y, 0, 10) + Region.addObject(NULL_1781, BIN_X, BIN_Y, 0, 10, 0, false) + player.packetSender.sendMessage("The flour bin is now empty.") + } + } else { + player.packetSender.sendMessage("You don't have an empty pot to fill flour with.") + } + } +} diff --git a/2006Scape Server/plugins/objects/flourmill/FlourMillItemOnObjectPlugin.kt b/2006Scape Server/plugins/objects/flourmill/FlourMillItemOnObjectPlugin.kt new file mode 100644 index 00000000..c2f9c5d1 --- /dev/null +++ b/2006Scape Server/plugins/objects/flourmill/FlourMillItemOnObjectPlugin.kt @@ -0,0 +1,26 @@ +package plugin.objects.flourmill + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ItemOnObjectEvent +import com.rs2.game.content.StaticItemList.POT +import com.rs2.game.content.StaticObjectList.FLOUR_BIN +import com.rs2.game.content.StaticObjectList.HOPPER_2714 +import com.rs2.game.players.Player + +@SubscribesTo(ItemOnObjectEvent::class) +class FlourMillItemOnObjectPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: ItemOnObjectEvent) { + when (event.gameObject) { + HOPPER_2714 -> FlourMillActions.addGrain(player, event.item) + FLOUR_BIN -> { + if (event.item == POT) { + FlourMillActions.collectFlour(player) + } else { + player.packetSender.sendMessage("Nothing interesting happens.") + } + } + } + } +} diff --git a/2006Scape Server/plugins/objects/flourmill/FlourMillObjectPlugin.kt b/2006Scape Server/plugins/objects/flourmill/FlourMillObjectPlugin.kt new file mode 100644 index 00000000..f70cd856 --- /dev/null +++ b/2006Scape Server/plugins/objects/flourmill/FlourMillObjectPlugin.kt @@ -0,0 +1,21 @@ +package plugin.objects.flourmill + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ObjectFirstClickEvent +import com.rs2.game.content.StaticObjectList.FLOUR_BIN +import com.rs2.game.content.StaticObjectList.HOPPER_CONTROLS +import com.rs2.game.content.StaticObjectList.NULL_1781 +import com.rs2.game.players.Player + +@SubscribesTo(ObjectFirstClickEvent::class) +class FlourMillObjectPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: ObjectFirstClickEvent) { + when (event.gameObject) { + FLOUR_BIN -> FlourMillActions.collectFlour(player) + NULL_1781 -> player.packetSender.sendMessage("The flour bin is already empty.") + HOPPER_CONTROLS -> FlourMillActions.operateHopper(player) + } + } +} diff --git a/2006Scape Server/plugins/objects/flourmill/FlourMillPluginState.kt b/2006Scape Server/plugins/objects/flourmill/FlourMillPluginState.kt new file mode 100644 index 00000000..cdc5a051 --- /dev/null +++ b/2006Scape Server/plugins/objects/flourmill/FlourMillPluginState.kt @@ -0,0 +1,21 @@ +package plugin.objects.flourmill + +import com.rs2.game.players.Player + +internal object FlourMillPluginState { + private const val PLUGIN_ID = "objects.flourmill" + private const val GRAIN_KEY = "grain" + private const val FLOUR_KEY = "flour" + + fun grain(player: Player): Int = player.pluginData.getInt(PLUGIN_ID, GRAIN_KEY, 0) + + fun setGrain(player: Player, amount: Int) { + player.pluginData.putInt(PLUGIN_ID, GRAIN_KEY, amount.coerceAtLeast(0)) + } + + fun flour(player: Player): Int = player.pluginData.getInt(PLUGIN_ID, FLOUR_KEY, 0) + + fun setFlour(player: Player, amount: Int) { + player.pluginData.putInt(PLUGIN_ID, FLOUR_KEY, amount.coerceAtLeast(0)) + } +} diff --git a/2006Scape Server/plugins/objects/flourmill/FlourMillRegionPlugin.kt b/2006Scape Server/plugins/objects/flourmill/FlourMillRegionPlugin.kt new file mode 100644 index 00000000..8e3add78 --- /dev/null +++ b/2006Scape Server/plugins/objects/flourmill/FlourMillRegionPlugin.kt @@ -0,0 +1,17 @@ +package plugin.objects.flourmill + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.PlayerObjectsLoadedEvent +import com.rs2.game.content.StaticObjectList.FLOUR_BIN +import com.rs2.game.players.Player + +@SubscribesTo(PlayerObjectsLoadedEvent::class) +class FlourMillRegionPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: PlayerObjectsLoadedEvent) { + if (player.heightLevel == 0 && FlourMillPluginState.flour(player) > 0) { + player.packetSender.checkObjectSpawn(FLOUR_BIN, 3166, 3306, 0, 10) + } + } +} diff --git a/2006Scape Server/plugins/plugin/area/alkharid/AlKharidDialogueButtons.kt b/2006Scape Server/plugins/plugin/area/alkharid/AlKharidDialogueButtons.kt deleted file mode 100644 index 39c58ae3..00000000 --- a/2006Scape Server/plugins/plugin/area/alkharid/AlKharidDialogueButtons.kt +++ /dev/null @@ -1,87 +0,0 @@ -package plugin.area.alkharid - -import com.rs2.event.EventContext -import com.rs2.event.EventSubscriber -import com.rs2.event.SubscribesTo -import com.rs2.event.impl.ButtonActionEvent -import com.rs2.game.players.Player -import plugin.area.alkharid.AlKharidGateUtil.DIALOGUE_ACTION_SUB_TOLL -import plugin.area.alkharid.AlKharidGateUtil.DIALOGUE_ACTION_TOLL -import plugin.area.alkharid.AlKharidGateUtil.isNearGate -import plugin.area.alkharid.AlKharidGateUtil.passThroughGate -import plugin.area.alkharid.AlKharidGateUtil.payToll - -@SubscribesTo(ButtonActionEvent::class) -class AlKharidDialogueButtons : EventSubscriber { - - override fun subscribe(context: EventContext, player: Player, event: ButtonActionEvent) { - val action = player.dialogueAction - if (action != DIALOGUE_ACTION_TOLL && action != DIALOGUE_ACTION_SUB_TOLL) { - return - } - - val button = event.button - - if (action == DIALOGUE_ACTION_TOLL) { - when (button) { - // Option 1: "Okay, I'll pay." - 9167 -> { - if (!isNearGate(player)) { - player.packetSender.sendMessage("You need to be closer to the gate to use it.") - player.packetSender.closeAllWindows() - player.dialogueAction = 0 - return - } - if (player.payToll()) { - player.packetSender.sendMessage("You pay the border guard 10 coins.") - passThroughGate(player) - player.nextChat = 0 - } else { - player.dialogueHandler.sendPlayerChat("I haven't got that much.") - player.nextChat = 1028 // Guard: "Well, you can't come through here then." - } - player.dialogueAction = 0 - } - // Option 2: "Who does my money go to?" - 9168 -> { - player.dialogueHandler.sendPlayerChat("Who does my money go to?") - player.nextChat = 1023 - player.dialogueAction = 0 - } - // Option 3: "No thanks, I'll walk around." - 9169 -> { - player.dialogueHandler.sendPlayerChat("No thanks, I'll walk around.") - player.nextChat = 1029 // Guard: "Ok suit yourself." - player.dialogueAction = 0 - } - } - } else if (action == DIALOGUE_ACTION_SUB_TOLL) { - when (button) { - // Option 1: "Okay, I'll pay." - 9157 -> { - if (!isNearGate(player)) { - player.packetSender.sendMessage("You need to be closer to the gate to use it.") - player.packetSender.closeAllWindows() - player.dialogueAction = 0 - return - } - if (player.payToll()) { - player.packetSender.sendMessage("You pay the border guard 10 coins.") - passThroughGate(player) - player.nextChat = 0 - } else { - player.dialogueHandler.sendPlayerChat("I haven't got that much.") - player.nextChat = 1028 // Guard: "Well, you can't come through here then." - } - player.dialogueAction = 0 - } - // Option 2: "No thanks, I'll walk around." - 9158 -> { - player.dialogueHandler.sendPlayerChat("No thanks, I'll walk around.") - player.nextChat = 1029 // Guard: "Ok suit yourself." - player.dialogueAction = 0 - } - } - } - } -} diff --git a/2006Scape Server/plugins/plugin/area/alkharid/BorderGuardFirstClick.kt b/2006Scape Server/plugins/plugin/area/alkharid/BorderGuardFirstClick.kt deleted file mode 100644 index 846ea99d..00000000 --- a/2006Scape Server/plugins/plugin/area/alkharid/BorderGuardFirstClick.kt +++ /dev/null @@ -1,47 +0,0 @@ -package plugin.area.alkharid - -import com.rs2.event.EventContext -import com.rs2.event.EventSubscriber -import com.rs2.event.SubscribesTo -import com.rs2.event.impl.NpcFirstClickEvent -import com.rs2.game.npcs.NpcHandler -import com.rs2.game.players.Player -import plugin.area.alkharid.AlKharidGateUtil.BORDER_GUARD_1 -import plugin.area.alkharid.AlKharidGateUtil.BORDER_GUARD_2 -import plugin.area.alkharid.AlKharidGateUtil.hasCompletedPrinceAli - -@SubscribesTo(NpcFirstClickEvent::class) -class BorderGuardFirstClick : EventSubscriber { - - override fun subscribe(context: EventContext, player: Player, event: NpcFirstClickEvent) { - val npcId = event.npc - if (npcId != BORDER_GUARD_1 && npcId != BORDER_GUARD_2) { - return - } - - val guardIndex = if (event.npcIndex > 0) event.npcIndex else player.npcClickIndex - - val guard = if (guardIndex in 1 until NpcHandler.npcs.size) NpcHandler.npcs[guardIndex] else null - if (guard != null) { - val playerOnLumbridgeSide = player.absX <= 3267 - val guardOnLumbridgeSide = guard.absX <= 3267 - if (playerOnLumbridgeSide != guardOnLumbridgeSide) { - player.packetSender.sendMessage("I can't reach that.") - player.stopMovement() - guard.facePlayer(null) - guard.dirUpdateRequired = false - guard.updateRequired = false - return - } - guard.facePlayer(player) - } - - if (player.hasCompletedPrinceAli()) { - player.talkingNpc = npcId - player.dialogueHandler.sendPlayerChat("Can I come through this gate?") - player.nextChat = 1030 // "You may pass, friend of Al-Kharid." - } else { - player.dialogueHandler.sendDialogues(1018, npcId) - } - } -} diff --git a/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantConstants.kt b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantConstants.kt new file mode 100644 index 00000000..8d7917d4 --- /dev/null +++ b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantConstants.kt @@ -0,0 +1,18 @@ +package plugin.quests.cooksassistant + +internal object CooksAssistantConstants { + const val PLUGIN_ID = "quests.cooksassistant" + + const val STAGE_NOT_STARTED = 0 + const val STAGE_IN_PROGRESS = 1 + const val STAGE_COMPLETE = 2 + + const val ITEMS_GIVEN_KEY = "itemsGiven" + const val GAVE_MILK_KEY = "gaveMilk" + const val GAVE_FLOUR_KEY = "gaveFlour" + const val GAVE_EGG_KEY = "gaveEgg" + + const val QUEST_VARP_ID = 29 + const val JOURNAL_BUTTON_ID = 28165 + const val QUEST_LIST_STRING_ID = 7333 +} diff --git a/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantJournalPlugin.kt b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantJournalPlugin.kt new file mode 100644 index 00000000..c6174e51 --- /dev/null +++ b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantJournalPlugin.kt @@ -0,0 +1,68 @@ +package plugin.quests.cooksassistant + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ButtonActionEvent +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.players.Player +import com.rs2.game.content.StaticItemList.BUCKET_OF_MILK +import com.rs2.game.content.StaticItemList.EGG +import com.rs2.game.content.StaticItemList.POT_OF_FLOUR + +import plugin.quests.cooksassistant.CooksAssistantConstants.GAVE_EGG_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.GAVE_FLOUR_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.GAVE_MILK_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.ITEMS_GIVEN_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.JOURNAL_BUTTON_ID +import plugin.quests.cooksassistant.CooksAssistantConstants.PLUGIN_ID +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_COMPLETE +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_IN_PROGRESS +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_NOT_STARTED + +@SubscribesTo(ButtonActionEvent::class) +class CooksAssistantJournalPlugin : EventSubscriber { + override fun test(event: ButtonActionEvent) = event.button == JOURNAL_BUTTON_ID + + override fun subscribe(context: EventContext, player: Player, event: ButtonActionEvent) { + for (id in 8144 until 8196) player.packetSender.sendString("", id) + for (id in 12174 until 12224) player.packetSender.sendString("", id) + for (id in 14945 until 15045) player.packetSender.sendString("", id) + player.packetSender.sendString("@dre@Cook's Assistant", 8144) + player.packetSender.sendString("", 8145) + val stage = player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_NOT_STARTED) + val itemsGiven = player.pluginData.getInt(PLUGIN_ID, ITEMS_GIVEN_KEY, 0) == 1 + when (stage) { + STAGE_NOT_STARTED -> { + player.packetSender.sendString("I can start this quest by speaking to the Cook in the", 8147) + player.packetSender.sendString("Lumbridge Castle kitchen.", 8148) + player.packetSender.sendString("", 8149) + player.packetSender.sendString("There are no minimum requirements.", 8150) + } + STAGE_IN_PROGRESS -> { + if (itemsGiven) { + player.packetSender.sendString("@str@I talked to the cook.", 8147) + player.packetSender.sendString("@str@I gave the cook his items.", 8148) + player.packetSender.sendString("I should go speak to the cook.", 8149) + } else { + player.packetSender.sendString("@str@I've talked to the cook.", 8147) + player.packetSender.sendString("He wants me to gather the following materials:", 8148) + val hasEgg = player.pluginData.getInt(PLUGIN_ID, GAVE_EGG_KEY, 0) == 1 || player.itemAssistant.playerHasItem(EGG, 1) + val hasMilk = player.pluginData.getInt(PLUGIN_ID, GAVE_MILK_KEY, 0) == 1 || player.itemAssistant.playerHasItem(BUCKET_OF_MILK, 1) + val hasFlour = player.pluginData.getInt(PLUGIN_ID, GAVE_FLOUR_KEY, 0) == 1 || player.itemAssistant.playerHasItem(POT_OF_FLOUR, 1) + player.packetSender.sendString(if (hasEgg) "@str@1 egg" else "@red@1 egg", 8149) + player.packetSender.sendString(if (hasMilk) "@str@1 bucket of milk" else "@red@1 bucket of milk", 8150) + player.packetSender.sendString(if (hasFlour) "@str@1 pot of flour" else "@red@1 pot of flour", 8151) + } + } + STAGE_COMPLETE -> { + player.packetSender.sendString("@str@It was the Duke of Lumbridge's birthday, and I helped", 8147) + player.packetSender.sendString("@str@the cook by finding him an egg, some milk, and flour.", 8148) + player.packetSender.sendString("@red@ QUEST COMPLETE", 8150) + player.packetSender.sendString("As a reward, I gained 1 Quest Point, 300 Cooking", 8151) + player.packetSender.sendString("Experience, 500 coins, and access to the cook's range.", 8152) + } + } + player.packetSender.showInterface(8134) + } +} diff --git a/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantLoadDataPlugin.kt b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantLoadDataPlugin.kt new file mode 100644 index 00000000..6f6383ea --- /dev/null +++ b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantLoadDataPlugin.kt @@ -0,0 +1,37 @@ +package plugin.quests.cooksassistant + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.PlayerLoadDataEvent +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.players.Player + +import plugin.quests.cooksassistant.CooksAssistantConstants.ITEMS_GIVEN_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.PLUGIN_ID +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_COMPLETE +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_IN_PROGRESS +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_NOT_STARTED + +@SubscribesTo(PlayerLoadDataEvent::class) +class CooksAssistantLoadDataPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: PlayerLoadDataEvent) { + val currentStage = player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, -1) + if (currentStage >= 0) return + + val legacyStage = event.getLegacyString(LEGACY_STAGE_KEY, "")?.toIntOrNull() ?: return + val mappedStage = when { + legacyStage >= 3 -> STAGE_COMPLETE + legacyStage >= 1 -> STAGE_IN_PROGRESS + else -> STAGE_NOT_STARTED + } + player.pluginData.putInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, mappedStage) + if (legacyStage == 2) { + player.pluginData.putInt(PLUGIN_ID, ITEMS_GIVEN_KEY, 1) + } + } + + private companion object { + const val LEGACY_STAGE_KEY = "cookAss" + } +} diff --git a/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantNpcPlugin.kt b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantNpcPlugin.kt new file mode 100644 index 00000000..471ca69f --- /dev/null +++ b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantNpcPlugin.kt @@ -0,0 +1,226 @@ +package plugin.quests.cooksassistant + +import com.rs2.Constants +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.NpcFirstClickEvent +import com.rs2.game.content.StaticItemList.BUCKET_OF_MILK +import com.rs2.game.content.StaticItemList.EGG +import com.rs2.game.content.StaticItemList.POT_OF_FLOUR +import com.rs2.game.content.StaticNpcList.COOK +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.content.quests.QuestRewards +import com.rs2.game.players.Player +import plugin.quests.cooksassistant.CooksAssistantConstants.GAVE_EGG_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.GAVE_FLOUR_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.GAVE_MILK_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.ITEMS_GIVEN_KEY +import plugin.quests.cooksassistant.CooksAssistantConstants.PLUGIN_ID +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_COMPLETE +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_IN_PROGRESS +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_NOT_STARTED + +@SubscribesTo(NpcFirstClickEvent::class) +class CooksAssistantNpcPlugin : EventSubscriber { + override fun test(event: NpcFirstClickEvent) = event.npc == COOK + + override fun subscribe(context: EventContext, player: Player, event: NpcFirstClickEvent) { + player.talkingNpc = event.npc + when (player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_NOT_STARTED)) { + STAGE_NOT_STARTED -> startQuest(player, event.npc) + STAGE_IN_PROGRESS -> { + if (player.pluginData.getInt(PLUGIN_ID, ITEMS_GIVEN_KEY, 0) == 1) { + finishQuestDialogue(player, event.npc) + } else { + checkIngredients(player, event.npc) + } + } + STAGE_COMPLETE -> { + val dialogue = player.dialogueFactory + dialogue.clear() + dialogue.sendNpcChat(event.npc, "Hello friend, how is the adventuring going?") + .sendPlayerChat("I am getting strong and mighty. Grrr.") + .sendNpcChat(event.npc, "Glad to hear it.") + .execute() + } + } + } + + private fun startQuest(player: Player, npc: Int) { + val dialogue = player.dialogueFactory + dialogue.clear() + dialogue.sendNpcChat(npc, "What am I to do?") + .sendOption( + "What's wrong?", { + dialogue.clear() + dialogue.sendPlayerChat("What's wrong?") + .sendNpcChat( + npc, + "Oh dear, oh dear, oh dear, I'm in a terrible terrible", + "mess! It's the Duke's birthday today, and I should be", + "making him a lovely big birthday cake!" + ) + .sendNpcChat( + npc, + "I've forgotten to buy the ingredients. I'll never get", + "them in time now. He'll sack me! What will I do? I have", + "four children and a goat to look after. Would you help", + "me? Please?" + ) + .sendOption( + "I'm always happy to help a cook in distress.", { acceptQuest(player, npc) }, + "I can't right now, Maybe later.", { declineQuest(dialogue, npc) } + ) + }, + "Can you cook me a cake?", { + dialogue.clear() + dialogue.sendNpcChat(npc, "Does it look like I have the time?") + }, + "You don't look very happy.", { + dialogue.clear() + dialogue.sendPlayerChat("You don't look so happy.") + .sendNpcChat( + npc, + "Oh dear, oh dear, oh dear, I'm in a terrible terrible", + "mess! It's the Duke's birthday today, and I should be", + "making him a lovely big birthday cake!" + ) + .sendNpcChat( + npc, + "I've forgotten to buy the ingredients. I'll never get", + "them in time now. He'll sack me! What will I do? I have", + "four children and a goat to look after. Would you help", + "me? Please?" + ) + .sendOption( + "I'm always happy to help a cook in distress.", { acceptQuest(player, npc) }, + "I can't right now, Maybe later.", { declineQuest(dialogue, npc) } + ) + }, + "Nice hat.", { + dialogue.clear() + dialogue.sendNpcChat(npc, "I don't have time for your jibber-jabber!") + } + ).execute() + } + + private fun acceptQuest(player: Player, npc: Int) { + val dialogue = player.dialogueFactory + dialogue.clear() + player.pluginData.putInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_IN_PROGRESS) + QuestAssistant.sendStages(player) + dialogue.sendPlayerChat("I'm always happy to help a cook in distress.") + .sendNpcChat( + npc, + "Oh thank you, thank you. I need milk, an egg, and", + "flour. I'd be very grateful if you can get them for me." + ) + .sendPlayerChat("So where do I find these ingredients then?") + .sendNpcChat( + npc, + "You'll find a windmill north-west of here to make flour,", + "a chicken farm across the river to the east for eggs,", + "and dairy cows in the field just east of the castle." + ) + } + + private fun declineQuest(dialogue: com.rs2.game.dialogues.factory.DialogueFactory, npc: Int) { + dialogue.clear() + dialogue.sendPlayerChat("I can't right now, Maybe later.") + .sendNpcChat(npc, "Fine. I always knew you Adventurer types were callous", "beasts. Go on your merry way!") + } + + private fun checkIngredients(player: Player, npc: Int) { + val dialogue = player.dialogueFactory + dialogue.clear() + + var gaveMilk = player.pluginData.getInt(PLUGIN_ID, GAVE_MILK_KEY, 0) == 1 + var gaveFlour = player.pluginData.getInt(PLUGIN_ID, GAVE_FLOUR_KEY, 0) == 1 + var gaveEgg = player.pluginData.getInt(PLUGIN_ID, GAVE_EGG_KEY, 0) == 1 + + val hasMilk = !gaveMilk && player.itemAssistant.playerHasItem(BUCKET_OF_MILK, 1) + val hasFlour = !gaveFlour && player.itemAssistant.playerHasItem(POT_OF_FLOUR, 1) + val hasEgg = !gaveEgg && player.itemAssistant.playerHasItem(EGG, 1) + + dialogue.sendNpcChat(npc, "How are you getting on with finding the ingredients?") + + if (!hasMilk && !hasFlour && !hasEgg) { + dialogue.sendPlayerChat("I haven't got any of them yet, I'm still looking.") + .sendNpcChat(npc, "Please get the ingredients quickly. I'm running out of", "time! The Duke will throw me into the streets!") + .execute() + return + } + + if (hasMilk) { + dialogue.sendPlayerChat("Here's a bucket of milk.") + player.itemAssistant.deleteItem(BUCKET_OF_MILK, 1) + player.pluginData.putInt(PLUGIN_ID, GAVE_MILK_KEY, 1) + gaveMilk = true + } + if (hasFlour) { + dialogue.sendPlayerChat("Here's a pot of flour.") + player.itemAssistant.deleteItem(POT_OF_FLOUR, 1) + player.pluginData.putInt(PLUGIN_ID, GAVE_FLOUR_KEY, 1) + gaveFlour = true + } + if (hasEgg) { + dialogue.sendPlayerChat("Here's an egg.") + player.itemAssistant.deleteItem(EGG, 1) + player.pluginData.putInt(PLUGIN_ID, GAVE_EGG_KEY, 1) + gaveEgg = true + } + + if (gaveMilk && gaveFlour && gaveEgg) { + player.pluginData.putInt(PLUGIN_ID, ITEMS_GIVEN_KEY, 1) + dialogue.onAction { showCompletionDialogue(player, npc) }.execute() + } else { + val missing = mutableListOf() + if (!gaveMilk) missing.add("a bucket of milk") + if (!gaveFlour) missing.add("a pot of flour") + if (!gaveEgg) missing.add("an egg") + dialogue.sendNpcChat( + npc, + "Thanks for the ingredients you have got so far.", + "Please get the rest quickly! I still need ${missing.joinToString(" and ")}." + ).execute() + } + } + + private fun finishQuestDialogue(player: Player, npc: Int) { + showCompletionDialogue(player, npc, showThanks = false) + } + + private fun showCompletionDialogue(player: Player, npc: Int, showThanks: Boolean = true) { + val dialogue = player.dialogueFactory + dialogue.clear() + if (showThanks) { + dialogue.sendNpcChat(npc, "You've brought me everything I need! I am saved!", "Thank you!") + } + dialogue.sendPlayerChat("So do I get to go to the Duke's Party?") + .sendNpcChat(npc, "I'm afraid not, only the big cheeses get to dine with the", "Duke.") + .sendPlayerChat("Well, maybe one day I'll be important enough to sit on", "the Duke's table.") + .sendNpcChat(npc, "Maybe, but I won't be holding my breath.") + .onAction { reward(player) } + .execute() + } + + private fun reward(player: Player) { + player.pluginData.putInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_COMPLETE) + player.pluginData.putInt(PLUGIN_ID, ITEMS_GIVEN_KEY, 0) + QuestRewards.questReward( + player, + "Cook's Assistant", + "1 Quest Point", + "300 Cooking XP", + "Permission to use the", + "Cook's range", + "", + "", + 326 + ) + player.playerAssistant.addSkillXP(300.0, Constants.COOKING) + player.questPoints++ + QuestAssistant.sendStages(player) + } +} diff --git a/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantQuestStatusPlugin.kt b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantQuestStatusPlugin.kt new file mode 100644 index 00000000..aa2bf9cd --- /dev/null +++ b/2006Scape Server/plugins/quests/cooksassistant/CooksAssistantQuestStatusPlugin.kt @@ -0,0 +1,36 @@ +package plugin.quests.cooksassistant + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.QuestStatusEvent +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.players.Player + +import plugin.quests.cooksassistant.CooksAssistantConstants.PLUGIN_ID +import plugin.quests.cooksassistant.CooksAssistantConstants.QUEST_LIST_STRING_ID +import plugin.quests.cooksassistant.CooksAssistantConstants.QUEST_VARP_ID +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_COMPLETE +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_IN_PROGRESS +import plugin.quests.cooksassistant.CooksAssistantConstants.STAGE_NOT_STARTED + +@SubscribesTo(QuestStatusEvent::class) +class CooksAssistantQuestStatusPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: QuestStatusEvent) { + val stage = player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_NOT_STARTED) + val color = when (stage) { + STAGE_COMPLETE -> COMPLETE_COLOR + STAGE_IN_PROGRESS -> IN_PROGRESS_COLOR + else -> NOT_STARTED_COLOR + } + player.packetSender.sendString("Cook's Assistant", QUEST_LIST_STRING_ID) + player.packetSender.sendColor(QUEST_LIST_STRING_ID, color) + player.packetSender.sendConfig(QUEST_VARP_ID, stage) + } + + private companion object { + const val NOT_STARTED_COLOR = 31 shl 10 + const val IN_PROGRESS_COLOR = (31 shl 10) or (31 shl 5) + const val COMPLETE_COLOR = 31 shl 5 + } +} diff --git a/2006Scape Server/plugins/quests/cooksassistant/CooksRangePlugin.kt b/2006Scape Server/plugins/quests/cooksassistant/CooksRangePlugin.kt new file mode 100644 index 00000000..13b35c7b --- /dev/null +++ b/2006Scape Server/plugins/quests/cooksassistant/CooksRangePlugin.kt @@ -0,0 +1,30 @@ +package plugin.quests.cooksassistant + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ItemOnObjectEvent +import com.rs2.game.content.StaticNpcList.COOK +import com.rs2.game.content.StaticObjectList.COOKING_RANGE +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.content.skills.cooking.Cooking +import com.rs2.game.players.Player + +@SubscribesTo(ItemOnObjectEvent::class) +class CooksRangePlugin : EventSubscriber { + override fun test(event: ItemOnObjectEvent) = event.gameObject == COOKING_RANGE + + override fun subscribe(context: EventContext, player: Player, event: ItemOnObjectEvent) { + val stage = player.pluginData.getInt(CooksAssistantConstants.PLUGIN_ID, QuestAssistant.STAGE_KEY, CooksAssistantConstants.STAGE_NOT_STARTED) + if (stage < CooksAssistantConstants.STAGE_COMPLETE) { + player.talkingNpc = COOK + val dialogue = player.dialogueFactory + dialogue.clear() + dialogue.sendNpcChat(COOK, "Hey! Who said you could use that?") + .sendStatement("You need to complete Cook's Assistant before using the Cook's range.") + .execute() + return + } + Cooking.startCooking(player, event.item, event.gameObject) + } +} diff --git a/2006Scape Server/plugins/quests/druidicritual/DruidicRitualCauldronPlugin.kt b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualCauldronPlugin.kt new file mode 100644 index 00000000..9f801fb7 --- /dev/null +++ b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualCauldronPlugin.kt @@ -0,0 +1,60 @@ +package plugin.quests.druidicritual + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ItemOnObjectEvent +import com.rs2.game.content.StaticItemList.ENCHANTED_BEAR +import com.rs2.game.content.StaticItemList.ENCHANTED_BEEF +import com.rs2.game.content.StaticItemList.ENCHANTED_CHICKEN +import com.rs2.game.content.StaticItemList.ENCHANTED_RAT +import com.rs2.game.content.StaticItemList.RAW_BEAR_MEAT +import com.rs2.game.content.StaticItemList.RAW_BEEF +import com.rs2.game.content.StaticItemList.RAW_CHICKEN +import com.rs2.game.content.StaticItemList.RAW_RAT_MEAT +import com.rs2.game.content.StaticObjectList.CAULDRON_OF_THUNDER +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.players.Player +import plugin.quests.druidicritual.DruidicRitualConstants.PLUGIN_ID +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_ENCHANT_MEATS +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_NOT_STARTED + +@SubscribesTo(ItemOnObjectEvent::class) +class DruidicRitualCauldronPlugin : EventSubscriber { + override fun test(event: ItemOnObjectEvent) = event.gameObject == CAULDRON_OF_THUNDER + + override fun subscribe(context: EventContext, player: Player, event: ItemOnObjectEvent) { + val enchanted = MEAT_CONVERSIONS[event.item] + if (enchanted == null) { + player.packetSender.sendMessage("Nothing interesting happens.") + return + } + + val stage = player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_NOT_STARTED) + if (stage < STAGE_ENCHANT_MEATS) { + player.packetSender.sendMessage("You have no reason to do that right now.") + return + } + + if (!player.itemAssistant.playerHasItem(event.item, 1)) { + return + } + + player.startAnimation(DIP_ANIMATION) + player.itemAssistant.deleteItem(event.item, 1) + player.itemAssistant.addItem(enchanted.itemId, 1) + player.packetSender.sendMessage("You dip the ${enchanted.meatName} in the cauldron.") + } + + private data class EnchantedMeat(val itemId: Int, val meatName: String) + + private companion object { + const val DIP_ANIMATION = 832 + val MEAT_CONVERSIONS = mapOf( + RAW_BEEF to EnchantedMeat(ENCHANTED_BEEF, "raw beef"), + RAW_RAT_MEAT to EnchantedMeat(ENCHANTED_RAT, "raw rat meat"), + RAW_BEAR_MEAT to EnchantedMeat(ENCHANTED_BEAR, "raw bear meat"), + RAW_CHICKEN to EnchantedMeat(ENCHANTED_CHICKEN, "raw chicken") + ) + } +} diff --git a/2006Scape Server/plugins/quests/druidicritual/DruidicRitualConstants.kt b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualConstants.kt new file mode 100644 index 00000000..983584ce --- /dev/null +++ b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualConstants.kt @@ -0,0 +1,14 @@ +package plugin.quests.druidicritual + +internal object DruidicRitualConstants { + const val PLUGIN_ID = "quests.druidicritual" + + const val STAGE_NOT_STARTED = 0 + const val STAGE_TALK_TO_SANFEW = 1 + const val STAGE_ENCHANT_MEATS = 2 + const val STAGE_RETURN_TO_KAQEMEEX = 3 + const val STAGE_COMPLETE = 4 + + const val JOURNAL_BUTTON_ID = 28187 + const val QUEST_LIST_STRING_ID = 7355 +} diff --git a/2006Scape Server/plugins/quests/druidicritual/DruidicRitualJournalPlugin.kt b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualJournalPlugin.kt new file mode 100644 index 00000000..326b0083 --- /dev/null +++ b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualJournalPlugin.kt @@ -0,0 +1,73 @@ +package plugin.quests.druidicritual + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ButtonActionEvent +import com.rs2.game.content.StaticItemList.ENCHANTED_BEAR +import com.rs2.game.content.StaticItemList.ENCHANTED_BEEF +import com.rs2.game.content.StaticItemList.ENCHANTED_CHICKEN +import com.rs2.game.content.StaticItemList.ENCHANTED_RAT +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.players.Player +import plugin.quests.druidicritual.DruidicRitualConstants.JOURNAL_BUTTON_ID +import plugin.quests.druidicritual.DruidicRitualConstants.PLUGIN_ID +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_COMPLETE +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_ENCHANT_MEATS +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_NOT_STARTED +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_RETURN_TO_KAQEMEEX +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_TALK_TO_SANFEW + +@SubscribesTo(ButtonActionEvent::class) +class DruidicRitualJournalPlugin : EventSubscriber { + override fun test(event: ButtonActionEvent) = event.button == JOURNAL_BUTTON_ID + + override fun subscribe(context: EventContext, player: Player, event: ButtonActionEvent) { + for (id in 8144 until 8196) player.packetSender.sendString("", id) + for (id in 12174 until 12224) player.packetSender.sendString("", id) + for (id in 14945 until 15045) player.packetSender.sendString("", id) + + player.packetSender.sendString("@dre@Druidic Ritual", 8144) + player.packetSender.sendString("", 8145) + + when (player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_NOT_STARTED)) { + STAGE_NOT_STARTED -> { + player.packetSender.sendString("I can start this quest by speaking to Kaqemeex who is", 8147) + player.packetSender.sendString("at the stone circle north of Taverley.", 8148) + player.packetSender.sendString("", 8149) + player.packetSender.sendString("There are no minimum requirements.", 8150) + } + STAGE_TALK_TO_SANFEW -> { + player.packetSender.sendString("@str@I have spoken to Kaqemeex.", 8147) + player.packetSender.sendString("He asked me to speak to Sanfew in the village", 8148) + player.packetSender.sendString("south of the stone circle.", 8149) + } + STAGE_ENCHANT_MEATS -> { + player.packetSender.sendString("@str@I have spoken to Kaqemeex and Sanfew.", 8147) + player.packetSender.sendString("Sanfew needs me to dip four raw meats in the", 8148) + player.packetSender.sendString("Cauldron of Thunder in Taverley Dungeon:", 8149) + player.packetSender.sendString(meatLine(player, ENCHANTED_BEEF, "Enchanted beef"), 8150) + player.packetSender.sendString(meatLine(player, ENCHANTED_RAT, "Enchanted rat meat"), 8151) + player.packetSender.sendString(meatLine(player, ENCHANTED_BEAR, "Enchanted bear meat"), 8152) + player.packetSender.sendString(meatLine(player, ENCHANTED_CHICKEN, "Enchanted chicken"), 8153) + } + STAGE_RETURN_TO_KAQEMEEX -> { + player.packetSender.sendString("@str@I have spoken to Kaqemeex and Sanfew.", 8147) + player.packetSender.sendString("@str@I gave Sanfew the four enchanted meats.", 8148) + player.packetSender.sendString("I should return to Kaqemeex at the stone circle.", 8149) + } + STAGE_COMPLETE -> { + player.packetSender.sendString("@str@I helped Kaqemeex and Sanfew purify the circle.", 8147) + player.packetSender.sendString("", 8148) + player.packetSender.sendString("@red@ QUEST COMPLETE", 8150) + player.packetSender.sendString("As a reward, I gained 4 Quest Points, 250 Herblore", 8151) + player.packetSender.sendString("Experience, and access to the Herblore skill.", 8152) + } + } + player.packetSender.showInterface(8134) + } + + private fun meatLine(player: Player, itemId: Int, label: String): String { + return if (player.itemAssistant.playerHasItem(itemId, 1)) "@str@$label" else "@red@$label" + } +} diff --git a/2006Scape Server/plugins/quests/druidicritual/DruidicRitualNpcPlugin.kt b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualNpcPlugin.kt new file mode 100644 index 00000000..6de1593d --- /dev/null +++ b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualNpcPlugin.kt @@ -0,0 +1,305 @@ +package plugin.quests.druidicritual + +import com.rs2.Constants +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.NpcFirstClickEvent +import com.rs2.game.content.StaticItemList.ENCHANTED_BEAR +import com.rs2.game.content.StaticItemList.ENCHANTED_BEEF +import com.rs2.game.content.StaticItemList.ENCHANTED_CHICKEN +import com.rs2.game.content.StaticItemList.ENCHANTED_RAT +import com.rs2.game.content.StaticItemList.GUAM_LEAF +import com.rs2.game.content.StaticNpcList.KAQEMEEX +import com.rs2.game.content.StaticNpcList.SANFEW +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.content.quests.QuestRewards +import com.rs2.game.players.Player +import plugin.quests.druidicritual.DruidicRitualConstants.PLUGIN_ID +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_COMPLETE +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_ENCHANT_MEATS +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_NOT_STARTED +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_RETURN_TO_KAQEMEEX +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_TALK_TO_SANFEW + +@SubscribesTo(NpcFirstClickEvent::class) +class DruidicRitualNpcPlugin : EventSubscriber { + override fun test(event: NpcFirstClickEvent) = event.npc == KAQEMEEX || event.npc == SANFEW + + override fun subscribe(context: EventContext, player: Player, event: NpcFirstClickEvent) { + player.talkingNpc = event.npc + val stage = player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_NOT_STARTED) + when (event.npc) { + KAQEMEEX -> handleKaqemeex(player, stage) + SANFEW -> handleSanfew(player, stage) + } + } + + private fun handleKaqemeex(player: Player, stage: Int) { + val dialogue = player.dialogueFactory + dialogue.clear() + when (stage) { + STAGE_NOT_STARTED -> { + dialogue.sendPlayerChat("Hello there.") + .sendNpcChat(KAQEMEEX, "What brings you to our holy monument?") + .sendOption( + "Who are you?", { + dialogue.clear() + dialogue.sendPlayerChat("Who are you?") + .sendNpcChat( + KAQEMEEX, + "We are the druids of Guthix. We worship our god at", + "our famous stone circles. You will find them located", + "throughout these lands." + ) + }, + "I'm in search of a quest.", { + dialogue.clear() + dialogue.sendPlayerChat("I'm in search of a quest.") + .sendNpcChat( + KAQEMEEX, + "Hmm. I think I may have a worthwhile quest for you", + "actually. I don't know if you are familiar with the", + "stone circle south of Varrock or not, but..." + ) + .sendNpcChat( + KAQEMEEX, + "That used to be OUR stone circle. Unfortunately, many", + "many years ago, dark wizards cast a wicked spell upon", + "it so that they could corrupt its power for their own", + "evil ends." + ) + .sendNpcChat( + KAQEMEEX, + "When they cursed the rocks for their rituals they made", + "them useless to us and our magics. We require a brave", + "adventurer to go on a quest for us to help purify the", + "circle of Varrock." + ) + .sendOption( + "Ok, I will try and help.", { + dialogue.clear() + player.pluginData.putInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_TALK_TO_SANFEW) + QuestAssistant.sendStages(player) + dialogue.sendPlayerChat("Ok, I will try and help.") + .sendNpcChat( + KAQEMEEX, + "Excellent. Go to the village south of this place and", + "speak to my fellow druid, Sanfew, who is working on the", + "purification ritual. He knows what is required to", + "complete it." + ) + .sendPlayerChat("Will do.") + }, + "No, that doesn't sound very interesting.", { + dialogue.clear() + dialogue.sendPlayerChat("No, that doesn't sound very interesting.") + .sendNpcChat( + KAQEMEEX, + "I will not try and change your mind adventurer.", + "Some day when you have matured you may reconsider." + ) + } + ) + }, + "Did you build this?", { + dialogue.clear() + dialogue.sendPlayerChat("Did you build this?") + .sendNpcChat( + KAQEMEEX, + "What, personally? No, of course I didn't. However, our", + "forefathers did. The first druids of Guthix built many", + "stone circles across these lands over eight hundred", + "years ago." + ) + } + ).execute() + } + STAGE_TALK_TO_SANFEW, STAGE_ENCHANT_MEATS -> { + dialogue.sendNpcChat( + KAQEMEEX, + "Have you spoken to Sanfew yet? You can find him in the", + "village south of here." + ).execute() + } + STAGE_RETURN_TO_KAQEMEEX -> { + dialogue.sendNpcChat( + KAQEMEEX, + "I have word from Sanfew that you have been very", + "helpful in assisting him with his preparations for the", + "purification ritual." + ) + .sendNpcChat( + KAQEMEEX, + "As promised I will now teach you the ancient arts of", + "Herblore." + ) + .sendNpcChat( + KAQEMEEX, + "Herblore is the skill of working with herbs and other", + "ingredients, to make useful potions and poison." + ) + .sendNpcChat( + KAQEMEEX, + "First you will need a vial, which can be found or made", + "with the crafting skill." + ) + .sendNpcChat( + KAQEMEEX, + "Then you must fill your vial with water by using it on a", + "fountain or sink. Then you must add the herb to the", + "vial of water." + ) + .sendNpcChat( + KAQEMEEX, + "You must clean the herb before you can use it, however,", + "so that you can identify what kind of herb it is. You", + "will find many herbs around the world, or from monsters." + ) + .sendNpcChat( + KAQEMEEX, + "Once you have added the herb to the vial of water, you", + "will have an unfinished potion. To finish it, you must", + "add another ingredient, which varies by potion." + ) + .sendNpcChat( + KAQEMEEX, + "Good luck with your Herblore practices, adventurer!" + ) + .onAction { completeQuest(player) } + .execute() + } + else -> { + dialogue.sendPlayerChat("Hello there.") + .sendNpcChat( + KAQEMEEX, + "Hello again, my friend. I hope your studies in the", + "art of Herblore are going well!" + ).execute() + } + } + } + + private fun handleSanfew(player: Player, stage: Int) { + val dialogue = player.dialogueFactory + dialogue.clear() + when (stage) { + STAGE_NOT_STARTED -> { + dialogue.sendNpcChat( + SANFEW, + "What can I do for you young 'un? If you're looking for", + "a quest, you should speak to Kaqemeex at the stone", + "circle to the north." + ).execute() + } + STAGE_TALK_TO_SANFEW -> { + dialogue.sendNpcChat(SANFEW, "What can I do for you young 'un?") + .sendPlayerChat("I've been sent to assist you with the ritual to purify", "the Varrockian stone circle.") + .sendNpcChat( + SANFEW, + "Well, what I'm struggling with right now is the meats", + "needed for the potion to honour Guthix. I need the raw", + "meats of four different animals for it, but not just", + "any old meats will do." + ) + .sendNpcChat( + SANFEW, + "Each meat has to be dipped individually into the", + "Cauldron of Thunder for it to work correctly." + ) + .sendPlayerChat("Where can I find this cauldron?") + .sendNpcChat( + SANFEW, + "It is located somewhere in the mysterious underground", + "halls which are located somewhere in the woods just", + "South of here. They are very dangerous for the", + "unprepared, so be careful." + ) + .sendNpcChat( + SANFEW, + "The meats I require are raw beef, raw rat meat, raw", + "bear meat, and raw chicken. Once you have dipped all", + "four into the cauldron, bring them back to me." + ) + .onAction { + player.pluginData.putInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_ENCHANT_MEATS) + QuestAssistant.sendStages(player) + dialogue.clear() + player.packetSender.closeAllWindows() + } + .execute() + } + STAGE_ENCHANT_MEATS -> { + val hasMeats = ENCHANTED_MEATS.all { player.itemAssistant.playerHasItem(it, 1) } + if (hasMeats) { + dialogue.sendNpcChat(SANFEW, "Did you bring me the required ingredients for the", "potion?") + .sendPlayerChat("Yes, I have all four now!") + .sendNpcChat( + SANFEW, + "Well hand 'em over then lad!", + "Thank you very much adventurer. These will do nicely." + ) + .sendNpcChat( + SANFEW, + "Now go and talk to Kaqemeex and he will introduce you", + "to the wonderful world of Herblore and potion making!" + ) + .onAction { + if (ENCHANTED_MEATS.all { player.itemAssistant.playerHasItem(it, 1) }) { + ENCHANTED_MEATS.forEach { player.itemAssistant.deleteItem(it, 1) } + player.pluginData.putInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_RETURN_TO_KAQEMEEX) + QuestAssistant.sendStages(player) + } + dialogue.clear() + player.packetSender.closeAllWindows() + } + .execute() + } else { + dialogue.sendNpcChat( + SANFEW, + "Have you dipped the raw beef, raw rat meat, raw bear", + "meat, and raw chicken in the Cauldron of Thunder yet?" + ) + .sendPlayerChat("Not yet, I'm still working on it.") + .execute() + } + } + STAGE_RETURN_TO_KAQEMEEX -> { + dialogue.sendNpcChat( + SANFEW, + "Go and talk to Kaqemeex at the stone circle to the", + "north and he will teach you Herblore." + ).execute() + } + else -> { + dialogue.sendNpcChat( + SANFEW, + "Hello again, adventurer. Thank you once more for", + "helping us with the purification ritual!" + ).execute() + } + } + } + + private fun completeQuest(player: Player) { + player.dialogueFactory.clear() + player.pluginData.putInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_COMPLETE) + player.questPoints += 4 + player.playerAssistant.addSkillXP(250.0, Constants.HERBLORE) + QuestRewards.questReward( + player, + "Druidic Ritual", + "4 Quest Points", + "250 Herblore XP", + "Access to Herblore skill", + "", + "", + "", + GUAM_LEAF + ) + } + + private companion object { + val ENCHANTED_MEATS = listOf(ENCHANTED_BEEF, ENCHANTED_RAT, ENCHANTED_BEAR, ENCHANTED_CHICKEN) + } +} diff --git a/2006Scape Server/plugins/quests/druidicritual/DruidicRitualPrisonDoorPlugin.kt b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualPrisonDoorPlugin.kt new file mode 100644 index 00000000..f872db15 --- /dev/null +++ b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualPrisonDoorPlugin.kt @@ -0,0 +1,170 @@ +package plugin.quests.druidicritual + +import com.rs2.GameEngine +import com.rs2.event.CycleEvent +import com.rs2.event.CycleEventContainer +import com.rs2.event.CycleEventHandler +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.ObjectFirstClickEvent +import com.rs2.game.content.StaticNpcList.SUIT_OF_ARMOUR +import com.rs2.game.content.StaticObjectList.PRISON_DOOR_2143 +import com.rs2.game.content.StaticObjectList.PRISON_DOOR_2144 +import com.rs2.game.content.music.sound.SoundList +import com.rs2.game.npcs.NpcHandler +import com.rs2.game.objects.Objects +import com.rs2.game.players.Player +import com.rs2.world.clip.PathFinder +import com.rs2.world.clip.Region + +@SubscribesTo(ObjectFirstClickEvent::class) +class DruidicRitualPrisonDoorPlugin : EventSubscriber { + override fun test(event: ObjectFirstClickEvent) = + event.gameObject == PRISON_DOOR_2143 || event.gameObject == PRISON_DOOR_2144 + + override fun subscribe(context: EventContext, player: Player, event: ObjectFirstClickEvent) { + if (player.objectX != DOOR_X || (player.objectY != SOUTH_DOOR_Y && player.objectY != NORTH_DOOR_Y)) { + return + } + if (System.currentTimeMillis() - player.doorDelay < 1200) { + return + } + player.doorDelay = System.currentTimeMillis() + player.packetSender.closeAllWindows() + + val movingEast = player.absX <= DOOR_X - 1 + if (movingEast && player.combatLevel < 55 && !hasNearbySuitOfArmour(player)) { + spawnSuitOfArmourFromScenery(player) + player.packetSender.sendMessage("Suddenly the suit of armour comes to life!") + return + } + + val targetX = if (movingEast) DOOR_X else DOOR_X - 1 + val targetY = player.objectY + + player.packetSender.sendSound(SoundList.OPEN_GATE, 100, 0) + openDoors(player) + + player.stopPlayer = true + val routeFound = PathFinder.getPathFinder().findRoute(player, targetX, targetY, false, 1, 1) + if (!routeFound) { + closeDoors(player) + player.stopPlayer = false + return + } + + var ticks = 0 + CycleEventHandler.getSingleton().addEvent(player, object : CycleEvent() { + override fun execute(container: CycleEventContainer) { + ticks++ + val crossed = player.absX == targetX && player.absY == targetY + if ((crossed && ticks >= 3) || ticks >= 8) { + closeDoors(player) + container.stop() + } + } + + override fun stop() { + player.stopPlayer = false + } + }, 1) + } + + private fun spawnSuitOfArmourFromScenery(player: Player) { + val h = player.heightLevel + var found: Objects? = null + var bestDist = Int.MAX_VALUE + for (x in 2885..2888) { + for (y in 9826..9834) { + for (id in 817..820) { + val obj = Region.getObject(id, x, y, h) + if (obj != null) { + val d = Math.abs(player.absX - x) + Math.abs(player.absY - y) + if (d < bestDist) { + bestDist = d + found = obj + } + } + } + } + } + + val spawnX = found?.objectX ?: 2887 + val spawnY = found?.objectY ?: 9829 + + if (found != null) { + GameEngine.objectHandler.placeObject( + Objects(-1, found.objectX, found.objectY, h, found.objectFace, found.objectType, 0) + ) + } + + NpcHandler.spawnNpc( + player, SUIT_OF_ARMOUR, spawnX, spawnY, h, + 0, 29, 3, 19, 19, true, false + ) + + if (found != null) { + val orig = found + var ticks = 0 + var restored = false + fun restoreScenery() { + if (!restored) { + restored = true + GameEngine.objectHandler.placeObject( + Objects(orig.objectId, orig.objectX, orig.objectY, h, orig.objectFace, orig.objectType, 0) + ) + } + } + CycleEventHandler.getSingleton().addEvent(player, object : CycleEvent() { + override fun execute(container: CycleEventContainer) { + ticks++ + if (!hasNearbySuitOfArmour(player) || ticks >= 200) { + restoreScenery() + container.stop() + } + } + + override fun stop() { + restoreScenery() + } + }, 2) + } + } + + private fun hasNearbySuitOfArmour(player: Player): Boolean { + for (npc in NpcHandler.npcs) { + if (npc != null && !npc.isDead && npc.npcType == SUIT_OF_ARMOUR && + npc.heightLevel == player.heightLevel && + Math.abs(npc.absX - DOOR_X) <= 8 && Math.abs(npc.absY - SOUTH_DOOR_Y) <= 8 + ) { + return true + } + } + return false + } + + private fun openDoors(player: Player) { + Region.removeObject(PRISON_DOOR_2144, DOOR_X, SOUTH_DOOR_Y, player.heightLevel, 0, 0) + Region.removeObject(PRISON_DOOR_2143, DOOR_X, NORTH_DOOR_Y, player.heightLevel, 0, 0) + Region.addObject(PRISON_DOOR_2144, DOOR_X, SOUTH_DOOR_Y, player.heightLevel, 0, 3, false) + Region.addObject(PRISON_DOOR_2143, DOOR_X, NORTH_DOOR_Y, player.heightLevel, 0, 1, false) + GameEngine.objectHandler.placeObject(Objects(PRISON_DOOR_2144, DOOR_X, SOUTH_DOOR_Y, player.heightLevel, 3, 0, 0)) + GameEngine.objectHandler.placeObject(Objects(PRISON_DOOR_2143, DOOR_X, NORTH_DOOR_Y, player.heightLevel, 1, 0, 0)) + } + + private fun closeDoors(player: Player) { + Region.removeObject(PRISON_DOOR_2144, DOOR_X, SOUTH_DOOR_Y, player.heightLevel, 0, 3) + Region.removeObject(PRISON_DOOR_2143, DOOR_X, NORTH_DOOR_Y, player.heightLevel, 0, 1) + Region.addObject(PRISON_DOOR_2144, DOOR_X, SOUTH_DOOR_Y, player.heightLevel, 0, 0, false) + Region.addObject(PRISON_DOOR_2143, DOOR_X, NORTH_DOOR_Y, player.heightLevel, 0, 0, false) + GameEngine.objectHandler.placeObject(Objects(PRISON_DOOR_2144, DOOR_X, SOUTH_DOOR_Y, player.heightLevel, 0, 0, 0)) + GameEngine.objectHandler.placeObject(Objects(PRISON_DOOR_2143, DOOR_X, NORTH_DOOR_Y, player.heightLevel, 0, 0, 0)) + } + + private companion object { + const val DOOR_X = 2889 + const val SOUTH_DOOR_Y = 9830 + const val NORTH_DOOR_Y = 9831 + } +} diff --git a/2006Scape Server/plugins/quests/druidicritual/DruidicRitualQuestStatusPlugin.kt b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualQuestStatusPlugin.kt new file mode 100644 index 00000000..d52469a9 --- /dev/null +++ b/2006Scape Server/plugins/quests/druidicritual/DruidicRitualQuestStatusPlugin.kt @@ -0,0 +1,35 @@ +package plugin.quests.druidicritual + +import com.rs2.event.EventContext +import com.rs2.event.EventSubscriber +import com.rs2.event.SubscribesTo +import com.rs2.event.impl.QuestStatusEvent +import com.rs2.game.content.quests.QuestAssistant +import com.rs2.game.players.Player +import plugin.quests.druidicritual.DruidicRitualConstants.PLUGIN_ID +import plugin.quests.druidicritual.DruidicRitualConstants.QUEST_LIST_STRING_ID +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_COMPLETE +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_NOT_STARTED +import plugin.quests.druidicritual.DruidicRitualConstants.STAGE_RETURN_TO_KAQEMEEX + +@SubscribesTo(QuestStatusEvent::class) +class DruidicRitualQuestStatusPlugin : EventSubscriber { + override fun subscribe(context: EventContext, player: Player, event: QuestStatusEvent) { + val stage = player.pluginData.getInt(PLUGIN_ID, QuestAssistant.STAGE_KEY, STAGE_NOT_STARTED) + val color = when { + stage >= STAGE_COMPLETE -> COMPLETE_COLOR + stage in 1..STAGE_RETURN_TO_KAQEMEEX -> IN_PROGRESS_COLOR + else -> NOT_STARTED_COLOR + } + player.packetSender.sendString("Druidic Ritual", QUEST_LIST_STRING_ID) + player.packetSender.sendColor(QUEST_LIST_STRING_ID, color) + player.packetSender.sendConfig(QUEST_VARP_ID, stage) + } + + private companion object { + const val QUEST_VARP_ID = 80 + const val NOT_STARTED_COLOR = 31 shl 10 + const val IN_PROGRESS_COLOR = (31 shl 10) or (31 shl 5) + const val COMPLETE_COLOR = 31 shl 5 + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/Constants.java b/2006Scape Server/src/main/java/com/rs2/Constants.java index 34db3805..3861b203 100644 --- a/2006Scape Server/src/main/java/com/rs2/Constants.java +++ b/2006Scape Server/src/main/java/com/rs2/Constants.java @@ -39,6 +39,13 @@ public class Constants { */ public static String SERVER_NAME = "2006Scape", WEBSITE_LINK = "https://2006Scape.org"; public static int WORLD = 1, HTTP_PORT = 8080, JAGGRAB_PORT = 43595, MAX_PLAYERS = 200, SAVE_TIMER = 120, TIMEOUT = 60, RESPAWN_X = 3222, RESPAWN_Y = 3218, CYCLE_LOGGING_TICK = 10; + + /** + * Returns the WebSocket port (+1000 offset from the TCP game port). + */ + public static int getWebSocketPort() { + return (WORLD == 1) ? 44594 : 44596 + WORLD; + } public static boolean GUI_ENABLED = false, FILE_SERVER = true, SERVER_DEBUG = false, MEMBERS_ONLY = false, TUTORIAL_ISLAND = false, PARTY_ROOM_DISABLED = false, CLUES_ENABLED = true, ITEM_REQUIREMENTS = true, ADMIN_CAN_TRADE = false, ADMIN_DROP_ITEMS = false, ADMIN_CAN_SELL_ITEMS = false, VARIABLE_XP_RATE = false, diff --git a/2006Scape Server/src/main/java/com/rs2/event/EventProvider.java b/2006Scape Server/src/main/java/com/rs2/event/EventProvider.java index 97049c5f..8aae3153 100644 --- a/2006Scape Server/src/main/java/com/rs2/event/EventProvider.java +++ b/2006Scape Server/src/main/java/com/rs2/event/EventProvider.java @@ -33,4 +33,8 @@ public interface EventProvider { */ void post(Player player, E event); + default boolean postNpcTick(int index, com.rs2.game.npcs.Npc npc) { + return false; + } + } diff --git a/2006Scape Server/src/main/java/com/rs2/event/NpcTickSubscriber.java b/2006Scape Server/src/main/java/com/rs2/event/NpcTickSubscriber.java new file mode 100644 index 00000000..d64d54bd --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/event/NpcTickSubscriber.java @@ -0,0 +1,9 @@ +package com.rs2.event; + +/** + * Optional marker for {@link com.rs2.event.impl.NpcTickEvent} subscribers to index dispatch by NPC type. + */ +public interface NpcTickSubscriber { + + int[] npcTypes(); +} diff --git a/2006Scape Server/src/main/java/com/rs2/event/UniversalEventProvider.java b/2006Scape Server/src/main/java/com/rs2/event/UniversalEventProvider.java index 13c3f1cd..b70caa07 100644 --- a/2006Scape Server/src/main/java/com/rs2/event/UniversalEventProvider.java +++ b/2006Scape Server/src/main/java/com/rs2/event/UniversalEventProvider.java @@ -3,6 +3,8 @@ package com.rs2.event; import com.google.common.base.Preconditions; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; +import com.rs2.event.impl.NpcTickEvent; +import com.rs2.game.npcs.Npc; import com.rs2.game.players.Player; import com.rs2.util.ClassUtils; @@ -22,6 +24,11 @@ public final class UniversalEventProvider implements EventProvider { */ private final Multimap, EventSubscriber> events = ArrayListMultimap.create(); + /** + * A {@link Multimap} of NPC type IDs to {@link NpcTickEvent} subscribers for O(1) per-tick lookup. + */ + private final Multimap> npcTickSubscribers = ArrayListMultimap.create(); + /** * The universal context of this event provider. */ @@ -30,13 +37,29 @@ public final class UniversalEventProvider implements EventProvider { @SuppressWarnings("unchecked") @Override public void provideSubscriber(EventSubscriber subscriber) { - checkSubscriber(subscriber, annotation -> events.put(annotation.value(), (EventSubscriber) subscriber)); + checkSubscriber(subscriber, annotation -> { + events.put(annotation.value(), (EventSubscriber) subscriber); + if (annotation.value() == NpcTickEvent.class && subscriber instanceof NpcTickSubscriber) { + EventSubscriber tickSub = (EventSubscriber) subscriber; + for (int npcType : ((NpcTickSubscriber) subscriber).npcTypes()) { + npcTickSubscribers.put(npcType, tickSub); + } + } + }); } @SuppressWarnings("unchecked") @Override public void depriveSubscriber(EventSubscriber subscriber) { - checkSubscriber(subscriber, annotation -> events.remove(annotation.value(), (EventSubscriber) subscriber)); + checkSubscriber(subscriber, annotation -> { + events.remove(annotation.value(), (EventSubscriber) subscriber); + if (annotation.value() == NpcTickEvent.class && subscriber instanceof NpcTickSubscriber) { + EventSubscriber tickSub = (EventSubscriber) subscriber; + for (int npcType : ((NpcTickSubscriber) subscriber).npcTypes()) { + npcTickSubscribers.remove(npcType, tickSub); + } + } + }); } private void checkSubscriber(EventSubscriber subscriber, Consumer consumer) { @@ -63,6 +86,25 @@ public final class UniversalEventProvider implements EventProvider { context.repairSubscriberChain(); } + + @Override + public boolean postNpcTick(int index, Npc npc) { + Collection> subscribers = npcTickSubscribers.get(npc.npcType); + if (subscribers.isEmpty()) { + return false; + } + NpcTickEvent event = new NpcTickEvent(index, npc); + for (EventSubscriber subscriber : subscribers) { + if (subscriber.test(event)) { + subscriber.subscribe(context, null, event); + if (context.isChainBroken()) { + break; + } + } + } + context.repairSubscriberChain(); + return event.isTickCancelled(); + } public Multimap, EventSubscriber> getEvents() { return events; diff --git a/2006Scape Server/src/main/java/com/rs2/event/impl/NpcTickEvent.java b/2006Scape Server/src/main/java/com/rs2/event/impl/NpcTickEvent.java new file mode 100644 index 00000000..79926fed --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/event/impl/NpcTickEvent.java @@ -0,0 +1,35 @@ +package com.rs2.event.impl; + +import com.rs2.event.Event; +import com.rs2.game.npcs.Npc; + +/** + * Dispatched once per game tick for NPC types with registered {@link com.rs2.event.NpcTickSubscriber}s. + */ +public final class NpcTickEvent implements Event { + + private final int index; + private final Npc npc; + private boolean tickCancelled = false; + + public NpcTickEvent(int index, Npc npc) { + this.index = index; + this.npc = npc; + } + + public int getIndex() { + return index; + } + + public Npc getNpc() { + return npc; + } + + public void cancelTick() { + this.tickCancelled = true; + } + + public boolean isTickCancelled() { + return tickCancelled; + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerLoadDataEvent.java b/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerLoadDataEvent.java new file mode 100644 index 00000000..0ec05320 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerLoadDataEvent.java @@ -0,0 +1,63 @@ +package com.rs2.event.impl; + +import com.rs2.event.Event; +import com.rs2.game.players.PlayerPluginData; + +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.Map; + +/** Provides namespaced plugin values loaded from a player's character save. */ +public final class PlayerLoadDataEvent implements Event { + private final Map values = new LinkedHashMap<>(); + private final Map legacyValues = new LinkedHashMap<>(); + + public PlayerLoadDataEvent(Map savedValues, Map savedLegacyValues) { + if (savedValues != null) { + values.putAll(savedValues); + } + if (savedLegacyValues != null) { + legacyValues.putAll(savedLegacyValues); + } + } + + public String getString(String plugin, String key, String defaultValue) { + String value = values.get(PlayerPluginData.key(plugin, key)); + return value == null ? defaultValue : value; + } + + public int getInt(String plugin, String key, int defaultValue) { + String value = getString(plugin, key, null); + if (value == null) return defaultValue; + try { + return Integer.parseInt(value); + } catch (NumberFormatException ignored) { + return defaultValue; + } + } + + public long getLong(String plugin, String key, long defaultValue) { + String value = getString(plugin, key, null); + if (value == null) return defaultValue; + try { + return Long.parseLong(value); + } catch (NumberFormatException ignored) { + return defaultValue; + } + } + + public boolean getBoolean(String plugin, String key, boolean defaultValue) { + String value = getString(plugin, key, null); + return value == null ? defaultValue : Boolean.parseBoolean(value); + } + + public Map getValues() { + return Collections.unmodifiableMap(values); + } + + /** Returns a value from an older, non-namespaced character save field. */ + public String getLegacyString(String key, String defaultValue) { + String value = legacyValues.get(key); + return value == null ? defaultValue : value; + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerObjectsLoadedEvent.java b/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerObjectsLoadedEvent.java new file mode 100644 index 00000000..87d62870 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerObjectsLoadedEvent.java @@ -0,0 +1,7 @@ +package com.rs2.event.impl; + +import com.rs2.event.Event; + +/** Fired after the server has sent a player's region objects and custom spawns. */ +public final class PlayerObjectsLoadedEvent implements Event { +} diff --git a/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerSaveDataEvent.java b/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerSaveDataEvent.java new file mode 100644 index 00000000..bfd9f28e --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/event/impl/PlayerSaveDataEvent.java @@ -0,0 +1,37 @@ +package com.rs2.event.impl; + +import com.rs2.event.Event; + +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.Map; +import com.rs2.game.players.PlayerPluginData; + +/** Allows plugins to add namespaced values to a player's character save. */ +public final class PlayerSaveDataEvent implements Event { + private final Map values = new LinkedHashMap<>(); + + public void putString(String plugin, String key, String value) { + if (value == null) { + throw new IllegalArgumentException("Plugin save values cannot be null."); + } + values.put(PlayerPluginData.key(plugin, key), value); + } + + public void putInt(String plugin, String key, int value) { + putString(plugin, key, Integer.toString(value)); + } + + public void putLong(String plugin, String key, long value) { + putString(plugin, key, Long.toString(value)); + } + + public void putBoolean(String plugin, String key, boolean value) { + putString(plugin, key, Boolean.toString(value)); + } + + public Map getValues() { + return Collections.unmodifiableMap(values); + } + +} diff --git a/2006Scape Server/src/main/java/com/rs2/event/impl/QuestStatusEvent.java b/2006Scape Server/src/main/java/com/rs2/event/impl/QuestStatusEvent.java new file mode 100644 index 00000000..c9585b59 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/event/impl/QuestStatusEvent.java @@ -0,0 +1,7 @@ +package com.rs2.event.impl; + +import com.rs2.event.Event; + +/** Allows plugins to update their quest entries when the quest list is refreshed. */ +public final class QuestStatusEvent implements Event { +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatAssistant.java b/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatAssistant.java index a2a0e5e3..c528cbe8 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatAssistant.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatAssistant.java @@ -30,6 +30,7 @@ import com.rs2.game.players.PlayerHandler; import com.rs2.util.Misc; import com.rs2.world.Boundary; import com.rs2.world.clip.PathFinder; +import com.rs2.world.clip.Region; import static com.rs2.game.content.StaticNpcList.*; @@ -396,32 +397,45 @@ public class CombatAssistant { Npc npc = NpcHandler.npcs[i]; int targetX = Math.max(npc.getX(), Math.min(player.getX(), npc.getX() + npc.getSize() - 1)); int targetY = Math.max(npc.getY(), Math.min(player.getY(), npc.getY() + npc.getSize() - 1)); - if (!PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, targetX, targetY)) { + boolean projectile = player.isUsingProjectileCombat(); + if (projectile && !PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, targetX, targetY)) { + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + player.stopMovement(); + resetPlayerAttack(); + player.getPlayerAssistant().resetFollow(); + } return; } /** * Processing the npc attack distances */ - //distance 1 = melee [good] - //distance 2 = hally [good] - //distance 3 = darts, long range = 5 [good] - //distance 4 = knifes, axes, long range = 6 [good] - //distance 7 = shortbow, mode = normal, long range = 9 [good] - //distance 9 = longbow, long range = 10 [good] - //distance = 10 = crystal bow, both modes [good] - boolean inMelee = NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 1) - && (npc.getSize() > 1 || player.getX() == npc.getX() || player.getY() == npc.getY()); - if (!NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 2) && RangeData.usingHally(player) && !player.usingRangeWeapon && !player.usingBow && !player.usingMagic - || !NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 4) && player.usingRangeWeapon && !player.usingBow && !player.usingMagic - || !inMelee && !player.usingRangeWeapon && !RangeData.usingHally(player) && !player.usingBow && !player.usingMagic - || !NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 7) && (player.usingBow || player.usingMagic)) { - return; + boolean isMelee = player.isMeleeCombat(); + if (isMelee) { + int reachDist = player.isUsingHally() ? player.getAttackDistance() : 1; + boolean inMelee = NpcData.goodDistanceNpc(i, player.getX(), player.getY(), reachDist) + && (player.isUsingHally() + ? Region.canReachHalberd(player.getX(), player.getY(), player.heightLevel, npc.getX(), npc.getY(), npc.getSize()) + : Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, npc.getX(), npc.getY(), npc.getSize())); + if (!inMelee) { + return; + } else { + player.stopMovement(); + } } else { - if (player.usingMagic || player.usingBow || player.usingRangeWeapon) { - player.followNpcId = 0; + int attackDist = player.getAttackDistance(); + if (!NpcData.goodDistanceNpc(i, player.getX(), player.getY(), attackDist)) { + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + player.stopMovement(); + resetPlayerAttack(); + player.getPlayerAssistant().resetFollow(); + } + return; + } else { + player.stopMovement(); } - player.stopMovement(); } } } @@ -440,21 +454,28 @@ public class CombatAssistant { return; } - boolean projectile = player.usingBow || player.usingMagic || player.usingRangeWeapon; + boolean projectile = player.isUsingProjectileCombat(); if (projectile && !PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, PlayerHandler.players[i].absX, PlayerHandler.players[i].absY)) { return; } + if (player.isMeleeCombat()) { + boolean canReachMelee = player.isUsingHally() + ? Region.canReachHalberd(player.getX(), player.getY(), player.heightLevel, PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 1) + : Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 1); + if (!canReachMelee) { + return; + } + } + /** * Processing the player attacking distances */ - if (!player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 4) && player.usingRangeWeapon && !player.usingBow && !player.usingMagic - || !player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 2) && !player.usingRangeWeapon && RangeData.usingHally(player) && !player.usingBow && !player.usingMagic - || !player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), getRequiredDistance()) && !player.usingRangeWeapon && !RangeData.usingHally(player) && !player.usingBow && !player.usingMagic - || !player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 10) && (player.usingBow || player.usingMagic)) { + int dist = player.isMeleeCombat() ? getRequiredDistance() : player.getAttackDistance(); + if (!player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), dist)) { return; } else { - if (player.usingMagic || player.usingBow || player.usingRangeWeapon) { + if (player.isUsingProjectileCombat()) { player.followPlayerId = 0; } player.stopMovement(); @@ -487,7 +508,7 @@ public class CombatAssistant { if (!SlayerRequirements.itemNeededSlayer(player, i) || !player.getSlayer().canAttackNpc(i)) { return; } - if (NpcHandler.npcs[i].npcType == COUNT_DRAYNOR && player.vampSlayer > 2) { + if (NpcHandler.npcs[i].npcType == COUNT_DRAYNOR && player.vampSlayer >= 2) { if (!player.getItemAssistant().playerHasItem(1549, 1) || !player.getItemAssistant().playerHasItem(2347, 1)) { player.getPacketSender().sendMessage("You need a stake and hammer to attack count draynor."); resetPlayerAttack(); @@ -527,10 +548,15 @@ public class CombatAssistant { player.followNpcId = i; player.followPlayerId = 0; - boolean inMelee = NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 1) - && (npc.getSize() > 1 || player.getX() == npc.getX() || player.getY() == npc.getY()); - if (!player.usingRangeWeapon && !RangeData.usingHally(player) && !player.usingBow && !player.usingMagic && inMelee) { - player.stopMovement(); + int reachDist = player.isUsingHally() ? player.getAttackDistance() : 1; + boolean inMelee = NpcData.goodDistanceNpc(i, player.getX(), player.getY(), reachDist) + && (player.isUsingHally() + ? Region.canReachHalberd(player.getX(), player.getY(), player.heightLevel, npc.getX(), npc.getY(), npc.getSize()) + : Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, npc.getX(), npc.getY(), npc.getSize())); + if (player.isMeleeCombat()) { + if (inMelee) { + player.stopMovement(); + } } if (player.attackTimer <= 0) { player.usingBow = false; @@ -574,22 +600,18 @@ public class CombatAssistant { int targetX = Math.max(npc.getX(), Math.min(player.getX(), npc.getX() + npc.getSize() - 1)); int targetY = Math.max(npc.getY(), Math.min(player.getY(), npc.getY() + npc.getSize() - 1)); - if (!PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, targetX, targetY)) { + boolean projectile = player.isUsingProjectileCombat(); + if (projectile && !PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, targetX, targetY)) { return; } /** * Distances for attacking npcs */ - if (!NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 2) && RangeData.usingHally(player) && !player.usingRangeWeapon && !player.usingBow && !player.usingMagic - || !NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 4) && player.usingRangeWeapon && !player.usingBow && !player.usingMagic - || !inMelee && !player.usingRangeWeapon && !RangeData.usingHally(player) && !player.usingBow && !player.usingMagic - || !NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 8) && (player.usingBow || player.usingMagic)) { + if (!NpcData.goodDistanceNpc(i, player.getX(), player.getY(), player.getAttackDistance()) + || (player.isMeleeCombat() && !inMelee)) { return; } else { - if (player.usingMagic || player.usingBow || player.usingRangeWeapon) { - player.followNpcId = 0; - } player.stopMovement(); } @@ -603,7 +625,7 @@ public class CombatAssistant { player.npcIndex = 0; return; } - if (RangeData.correctBowAndArrows(player) < player.playerEquipment[player.playerArrows] && CombatConstants.CORRECT_ARROWS && player.usingBow && !RangeData.usingCrystalBow(player) && player.playerEquipment[player.playerWeapon] != 9185) { + if (RangeData.correctBowAndArrows(player) < RangeData.getBaseArrowId(player.playerEquipment[player.playerArrows]) && CombatConstants.CORRECT_ARROWS && player.usingBow && !RangeData.usingCrystalBow(player) && player.playerEquipment[player.playerWeapon] != 9185) { player.getItemAssistant(); player.getItemAssistant(); player.getPacketSender().sendMessage("You can't use " + DeprecatedItems.getItemName(player.playerEquipment[player.playerArrows]).toLowerCase() + "s with a " + DeprecatedItems.getItemName(player.playerEquipment[player.playerWeapon]).toLowerCase() + "."); @@ -620,7 +642,7 @@ public class CombatAssistant { /** * Don't run up to player if using hally, set distance to 2 */ - if (player.usingBow || player.usingMagic || player.usingRangeWeapon || NpcData.goodDistanceNpc(i, player.getX(), player.getY(), 2) && RangeData.usingHally(player) || inMelee) { + if (player.isUsingProjectileCombat() || inMelee) { player.stopMovement(); } if (!checkMagicReqs(player.spellId)) { @@ -678,11 +700,10 @@ public class CombatAssistant { } player.lastArrowUsed = player.playerEquipment[player.playerArrows]; player.lastWeaponUsed = player.playerEquipment[player.playerWeapon]; - player.gfx100(RangeData.getRangeStartGFX(player)); player.hitDelay = getHitDelay(); player.projectileStage = 1; player.oldNpcIndex = i; - if (player.playerEquipment[player.playerWeapon] >= 4212 && player.playerEquipment[player.playerWeapon] <= 4223) { + if (RangeData.usingCrystalBow(player)) { player.rangeItemUsed = player.playerEquipment[player.playerWeapon]; player.crystalBowArrowCount++; player.lastArrowUsed = 0; @@ -690,6 +711,7 @@ public class CombatAssistant { player.rangeItemUsed = player.playerEquipment[player.playerArrows]; player.getItemAssistant().deleteArrow(); } + player.gfx100(RangeData.getRangeStartGFX(player)); fireProjectileNpc(); } @@ -732,6 +754,7 @@ public class CombatAssistant { player.spellId = 0; if (!player.autocasting) { player.npcIndex = 0; + player.followNpcId = 0; } } if (player.usingBow && CombatConstants.CRYSTAL_BOW_DEGRADES) { // crystal bow degrading @@ -864,33 +887,43 @@ public class CombatAssistant { player.getPacketSender().sendMessage("Range has been disabled for this duel!"); return; } - if (player.duelRule[3] && !player.usingBow && !player.usingRangeWeapon && !player.usingMagic) { + if (player.duelRule[3] && player.isMeleeCombat()) { player.getPacketSender().sendMessage("Melee has been disabled for this duel!"); return; } - if (player.duelRule[4] && player.usingMagic) { + if (player.duelRule[4] && player.isUsingMagic()) { player.getPacketSender().sendMessage("Magic has been disabled for this duel!"); resetPlayerAttack(); return; } - if (!PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, PlayerHandler.players[i].absX, PlayerHandler.players[i].absY)) { + if (player.isUsingProjectileCombat() && !PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, PlayerHandler.players[i].absX, PlayerHandler.players[i].absY)) { return; } + if (player.isMeleeCombat()) { + boolean canReachMelee = player.isUsingHally() + ? Region.canReachHalberd(player.getX(), player.getY(), player.heightLevel, PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 1) + : Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 1); + if (!canReachMelee) { + if (player.freezeTimer > 0) { + resetPlayerAttack(); + } + return; + } + } + /** * Attacking player distances */ - if (!player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 4) && player.usingRangeWeapon && !player.usingBow && !player.usingMagic - || !player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 2) && !player.usingRangeWeapon && RangeData.usingHally(player) && !player.usingBow && !player.usingMagic - || !player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), getRequiredDistance()) && !player.usingRangeWeapon && !RangeData.usingHally(player) && !player.usingBow && !player.usingMagic - || !player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), 10) && (player.usingBow || player.usingMagic)) { - if (!player.usingBow && !player.usingMagic && !player.usingRangeWeapon && player.freezeTimer > 0) { + int dist = player.isMeleeCombat() ? getRequiredDistance() : player.getAttackDistance(); + if (!player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[i].getX(), PlayerHandler.players[i].getY(), dist)) { + if (player.isMeleeCombat() && player.freezeTimer > 0) { resetPlayerAttack(); } return; } else { - if (player.usingMagic || player.usingBow || player.usingRangeWeapon) { + if (player.isUsingProjectileCombat()) { player.followPlayerId = 0; } } @@ -898,14 +931,14 @@ public class CombatAssistant { if (!usingCross && !usingArrows && player.usingBow - && (player.playerEquipment[player.playerWeapon] < 4212 || player.playerEquipment[player.playerWeapon] > 4223) + && !RangeData.usingCrystalBow(player) && !player.usingMagic) { player.getPacketSender().sendMessage("There is no ammo left in your quiver."); player.stopMovement(); resetPlayerAttack(); return; } - if (RangeData.correctBowAndArrows(player) < player.playerEquipment[player.playerArrows] + if (RangeData.correctBowAndArrows(player) < RangeData.getBaseArrowId(player.playerEquipment[player.playerArrows]) && CombatConstants.CORRECT_ARROWS && player.usingBow && !RangeData.usingCrystalBow(player) && player.playerEquipment[player.playerWeapon] != 9185 @@ -927,7 +960,7 @@ public class CombatAssistant { /** * Ensuring the player doesnt run up to the player when ranging/maging */ - if (player.usingBow || player.usingMagic || player.usingRangeWeapon || RangeData.usingHally(player)) { + if (player.isUsingProjectileCombat()) { player.stopMovement(); } @@ -1007,7 +1040,7 @@ public class CombatAssistant { player.oldPlayerIndex = i; } if (player.usingBow && !player.usingRangeWeapon && !player.usingMagic || usingCross) { // range hit delay - if (player.playerEquipment[player.playerWeapon] >= 4212&& player.playerEquipment[player.playerWeapon] <= 4223) { + if (RangeData.usingCrystalBow(player)) { player.rangeItemUsed = player.playerEquipment[player.playerWeapon]; player.crystalBowArrowCount++; } else { @@ -1067,7 +1100,7 @@ public class CombatAssistant { MagicSpells.getStartHeight(player), MagicSpells.getEndHeight(player), -i - 1, MagicSpells.getStartDelay(player)); } - if (player.autocastId > 0) { + if (player.autocastId >= 0) { //We don't need to set the followId if they are already autocasting, setting followId here makes a manual cast (when autocast is set) run up to the player. //player.followId = player.playerIndex; player.followDistance = 5; @@ -1709,6 +1742,9 @@ public class CombatAssistant { } public int getRequiredDistance() { + if (player.isUsingHally()) { + return CombatConstants.HALBERD_ATTACK_DISTANCE; + } if (player.followPlayerId > 0 && player.freezeTimer <= 0) { return player.isMoving ? 3 : 2; } diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatConstants.java b/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatConstants.java index 5b8c5f35..004e22ce 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatConstants.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/combat/CombatConstants.java @@ -32,4 +32,19 @@ public class CombatConstants { public final static boolean COMBAT_SOUNDS = true; + public final static int MELEE_ATTACK_DISTANCE = 1; + public final static int HALBERD_ATTACK_DISTANCE = 2; + public final static int MAGIC_ATTACK_DISTANCE = 8; + public final static int BOW_DEFAULT_DISTANCE = 8; + public final static int OTHER_RANGE_DEFAULT_DISTANCE = 4; + public final static int DART_DEFAULT_DISTANCE = 3; + public final static int DART_LONGRANGE_DISTANCE = 5; + public final static int THROWN_DEFAULT_DISTANCE = 4; + public final static int THROWN_LONGRANGE_DISTANCE = 6; + public final static int SHORTBOW_DEFAULT_DISTANCE = 7; + public final static int SHORTBOW_LONGRANGE_DISTANCE = 9; + public final static int LONGBOW_DEFAULT_DISTANCE = 8; + public final static int LONGBOW_LONGRANGE_DISTANCE = 10; + public final static int CRYSTAL_BOW_DISTANCE = 10; + } diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/combat/magic/MagicData.java b/2006Scape Server/src/main/java/com/rs2/game/content/combat/magic/MagicData.java index 2581de3a..f3a6e899 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/combat/magic/MagicData.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/combat/magic/MagicData.java @@ -158,7 +158,7 @@ public class MagicData { public static String getSpellName(int id) { switch (id) { case 0: - return "Air Strike"; + return "Wind Strike"; case 1: return "Water Strike"; case 2: @@ -166,7 +166,7 @@ public class MagicData { case 3: return "Fire Strike"; case 4: - return "Air Bolt"; + return "Wind Bolt"; case 5: return "Water Bolt"; case 6: @@ -174,7 +174,7 @@ public class MagicData { case 7: return "Fire Bolt"; case 8: - return "Air Blast"; + return "Wind Blast"; case 9: return "Water Blast"; case 10: @@ -182,41 +182,47 @@ public class MagicData { case 11: return "Fire Blast"; case 12: - return "Air Wave"; + return "Wind Wave"; case 13: return "Water Wave"; case 14: return "Earth Wave"; case 15: return "Fire Wave"; + case 25: + return "Crumble Undead"; + case 26: + return "Iban Blast"; + case 27: + return "Magic Dart"; case 32: - return "Shadow Rush"; - case 33: return "Smoke Rush"; + case 33: + return "Shadow Rush"; case 34: return "Blood Rush"; case 35: return "Ice Rush"; case 36: - return "Shadow Burst"; - case 37: return "Smoke Burst"; + case 37: + return "Shadow Burst"; case 38: return "Blood Burst"; case 39: return "Ice Burst"; case 40: - return "Shadow Blitz"; - case 41: return "Smoke Blitz"; + case 41: + return "Shadow Blitz"; case 42: return "Blood Blitz"; case 43: return "Ice Blitz"; case 44: - return "Shadow Barrage"; - case 45: return "Smoke Barrage"; + case 45: + return "Shadow Barrage"; case 46: return "Blood Barrage"; case 47: diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/combat/npcs/NpcCombat.java b/2006Scape Server/src/main/java/com/rs2/game/content/combat/npcs/NpcCombat.java index 73234880..5b139d94 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/combat/npcs/NpcCombat.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/combat/npcs/NpcCombat.java @@ -17,6 +17,7 @@ import com.rs2.game.players.Player; import com.rs2.game.players.PlayerHandler; import com.rs2.util.Misc; import com.rs2.world.Boundary; +import com.rs2.world.clip.PathFinder; import static com.rs2.game.content.StaticNpcList.*; @@ -31,7 +32,8 @@ public class NpcCombat { continue; } if (player.goodDistance(c.absX, c.absY, - NpcHandler.npcs[i].absX, NpcHandler.npcs[i].absY, 15)) { + NpcHandler.npcs[i].absX, NpcHandler.npcs[i].absY, 15) + && PathFinder.isProjectilePathClear(NpcHandler.npcs[i].absX, NpcHandler.npcs[i].absY, NpcHandler.npcs[i].heightLevel, c.absX, c.absY)) { if (NpcHandler.npcs[i].attackType == AttackType.MAGIC.getValue()) { if (!c.getPrayer().prayerActive[16]) { if (Misc.random(500) + 200 > Misc.random(c.getCombatAssistant().mageDef())) { @@ -83,7 +85,8 @@ public class NpcCombat { continue; } if (player.goodDistance(c.absX, c.absY, - NpcHandler.npcs[i].absX, NpcHandler.npcs[i].absY, 15)) { + NpcHandler.npcs[i].absX, NpcHandler.npcs[i].absY, 15) + && PathFinder.isProjectilePathClear(NpcHandler.npcs[i].absX, NpcHandler.npcs[i].absY, NpcHandler.npcs[i].heightLevel, c.absX, c.absY)) { int nX = NpcHandler.npcs[i].getX() + NpcHandler.offset(i); int nY = NpcHandler.npcs[i].getY() + NpcHandler.offset(i); int pX = c.getX(); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeData.java b/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeData.java index 11ad585b..8d3af462 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeData.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeData.java @@ -10,8 +10,39 @@ public class RangeData { }; - public final static int[] ARROWS = { BRONZE_ARROW,BRONZE_ARROWP,IRON_ARROW,IRON_ARROWP,STEEL_ARROW,STEEL_ARROWP,MITHRIL_ARROW,MITHRIL_ARROWP,ADAMANT_ARROW,ADAMANT_ARROWP,RUNE_ARROW,RUNE_ARROWP,BOLT_RACK,9140,9141,9142,9143,9144,9240,9241,9242,9243,9244,9245,BROAD_ARROWS,BROAD_ARROWS_4160,BROAD_ARROWS_4172 + public final static int[] ARROWS = { BRONZE_ARROW,BRONZE_ARROWP,BRONZE_ARROW_5616,BRONZE_ARROWS,IRON_ARROW,IRON_ARROWP,IRON_ARROW_5617,IRON_ARROWS,STEEL_ARROW,STEEL_ARROWP,STEEL_ARROW_5618,STEEL_ARROWS,MITHRIL_ARROW,MITHRIL_ARROWP,MITHRIL_ARROW_5619,MITHRIL_ARROWS,ADAMANT_ARROW,ADAMANT_ARROWP,ADAMANT_ARROW_5620,ADAMANT_ARROWS,RUNE_ARROW,RUNE_ARROWP,RUNE_ARROW_5621,RUNE_ARROWS,BOLT_RACK,9140,9141,9142,9143,9144,9240,9241,9242,9243,9244,9245,BROAD_ARROWS,BROAD_ARROWS_4160,BROAD_ARROWS_4172 }; + + public static int getBaseArrowId(int arrowId) { + switch (arrowId) { + case BRONZE_ARROWP: + case BRONZE_ARROW_5616: + case BRONZE_ARROWS: + return BRONZE_ARROW; + case IRON_ARROWP: + case IRON_ARROW_5617: + case IRON_ARROWS: + return IRON_ARROW; + case STEEL_ARROWP: + case STEEL_ARROW_5618: + case STEEL_ARROWS: + return STEEL_ARROW; + case MITHRIL_ARROWP: + case MITHRIL_ARROW_5619: + case MITHRIL_ARROWS: + return MITHRIL_ARROW; + case ADAMANT_ARROWP: + case ADAMANT_ARROW_5620: + case ADAMANT_ARROWS: + return ADAMANT_ARROW; + case RUNE_ARROWP: + case RUNE_ARROW_5621: + case RUNE_ARROWS: + return RUNE_ARROW; + default: + return arrowId; + } + } public final static int[] NO_ARROW_DROP = { NEW_CRYSTAL_BOW,CRYSTAL_BOW_FULL,CRYSTAL_BOW_910,CRYSTAL_BOW_810,CRYSTAL_BOW_710,CRYSTAL_BOW_610,CRYSTAL_BOW_510,CRYSTAL_BOW_410,CRYSTAL_BOW_310,CRYSTAL_BOW_210,CRYSTAL_BOW_110,KARILS_CROSSBOW,KARILS_XBOW_100,KARILS_XBOW_75,KARILS_XBOW_50,KARILS_XBOW_25 }; public final static int[] OTHER_RANGE_WEAPONS = { IRON_KNIFE,BRONZE_KNIFE,STEEL_KNIFE,MITHRIL_KNIFE,ADAMANT_KNIFE,RUNE_KNIFE,BLACK_KNIFE,BRONZE_DART,IRON_DART,STEEL_DART,MITHRIL_DART,ADAMANT_DART,RUNE_DART,BRONZE_JAVELIN,IRON_JAVELIN,STEEL_JAVELIN,MITHRIL_JAVELIN,ADAMANT_JAVELIN,RUNE_JAVELIN,BRONZE_THROWNAXE,IRON_THROWNAXE,STEEL_THROWNAXE,MITHRIL_THROWNAXE,ADAMNT_THROWNAXE,RUNE_THROWNAXE,TOKTZXILUL }; @@ -107,11 +138,10 @@ public class RangeData { case MAGIC_LONGBOW: case MAGIC_SHORTBOW: - if (c.playerEquipment[c.playerArrows] == RUNE_ARROW) { - return RUNE_ARROW; - } else if (c.playerEquipment[c.playerArrows] == BROAD_ARROWS_4172) { + if (c.playerEquipment[c.playerArrows] == BROAD_ARROWS_4172) { return BROAD_ARROWS_4172; } + return RUNE_ARROW; case KARILS_CROSSBOW: case KARILS_XBOW_75: @@ -123,7 +153,7 @@ public class RangeData { } public static int getRangeStartGFX(Player c) { - switch (c.rangeItemUsed) { + switch (getBaseArrowId(c.rangeItemUsed)) { case IRON_KNIFE: return 220; @@ -211,7 +241,7 @@ public class RangeData { public static int getRangeProjectileGFX(Player c) { if (c.bowSpecShot > 0) { - switch (c.rangeItemUsed) { + switch (getBaseArrowId(c.rangeItemUsed)) { default: return 249; } @@ -219,7 +249,7 @@ public class RangeData { if (c.playerEquipment[c.playerWeapon] == 9185) { //TODO magic numbwr rune cbow return 27; } - switch (c.rangeItemUsed) { + switch (getBaseArrowId(c.rangeItemUsed)) { case IRON_KNIFE: return 213; diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeMaxHit.java b/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeMaxHit.java index 80f7aead..f401df9e 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeMaxHit.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/combat/range/RangeMaxHit.java @@ -74,6 +74,7 @@ public class RangeMaxHit { } public static int getRangeStr(int i) { + i = RangeData.getBaseArrowId(i); int str = 0; int[][] data = { { 877, 10 }, { 9140, 46 }, { 9145, 36 }, { 9141, 64 }, { 9142, 82 }, { 9143, 100 }, { 9144, 115 }, { 9236, 14 }, diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/minigames/Barrows.java b/2006Scape Server/src/main/java/com/rs2/game/content/minigames/Barrows.java index d01bfb11..4cdf3cc5 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/minigames/Barrows.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/minigames/Barrows.java @@ -94,12 +94,21 @@ public class Barrows { c.getDialogueHandler().sendDialogues(1007, c.npcType); } else if (c.absX == 3005 && c.absY == 3376) { c.getDialogueHandler().sendDialogues(1007, c.npcType); - } else if (c.absX == 2999 && c.absY == 3383 && c.pirateTreasure == 4) { - NpcHandler.spawnNpc(c, 1217, c.absX + Misc.random(1), c.absY + Misc.random(1), c.heightLevel, 0, 10, 2, 5, 5, true, true); - c.getDialogueHandler().sendNpcChat1("First moles, now this! Take this, vanda!", c.talkingNpc, "Gardener"); - c.pirateTreasure = 5; - } else if (c.absX == 2999 && c.absY == 3383 && c.pirateTreasure == 5) { + } else if (c.absX == 2999 && c.absY == 3383 && c.pirateTreasure == 3) { + boolean gardenerAlive = false; + for (int i = 0; i < NpcHandler.MAX_NPCS; i++) { + if (NpcHandler.npcs[i] != null && !NpcHandler.npcs[i].isDead && NpcHandler.npcs[i].npcType == 1217 && NpcHandler.npcs[i].spawnedBy == c.playerId) { + gardenerAlive = true; + break; + } + } + if (!gardenerAlive && !c.clickedVamp) { + NpcHandler.spawnNpc(c, 1217, c.absX + Misc.random(1), c.absY + Misc.random(1), c.heightLevel, 0, 10, 2, 5, 5, true, true); + c.getDialogueHandler().sendNpcChat1("First moles, now this! Take this, vanda!", c.talkingNpc, "Gardener"); + c.clickedVamp = true; + } else { QuestRewards.pirateFinish(c); + } } else { c.getPacketSender().sendMessage("You don't find anything..."); } @@ -157,7 +166,7 @@ public class Barrows { } c.getPacketSender().closeAllWindows(); } else if (c.barrowsKillCount == 5) { - NpcHandler.spawnNpc(c, 2026, c.getX(), c.getY()-1, 3, 0, 120, 25, 200, 200, true, true); + NpcHandler.spawnNpc(c, 2026, c.getX()-1, c.getY(), 3, 0, 120, 25, 200, 200, true, true); c.getPacketSender().closeAllWindows(); } else if (c.barrowsKillCount > 5) { c.getPlayerAssistant().movePlayer(3551, 9694, 0); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestAssistant.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestAssistant.java index fa7b5836..f2000e7b 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestAssistant.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestAssistant.java @@ -1,7 +1,6 @@ package com.rs2.game.content.quests; import com.rs2.game.content.quests.impl.BlackKnightsFortress; -import com.rs2.game.content.quests.impl.CooksAssistant; import com.rs2.game.content.quests.impl.DoricsQuest; import com.rs2.game.content.quests.impl.GertrudesCat; import com.rs2.game.content.quests.impl.ImpCatcher; @@ -16,6 +15,7 @@ import com.rs2.game.content.quests.impl.VampyreSlayer; import com.rs2.game.content.quests.impl.WitchsPotion; import com.rs2.game.content.quests.impl.LostCity; import com.rs2.game.players.Player; +import com.rs2.event.impl.QuestStatusEvent; /** * Quest Assistant @@ -24,18 +24,19 @@ import com.rs2.game.players.Player; public class QuestAssistant { - public static final int MAXIMUM_QUESTPOINTS = 26; + public static final int MAXIMUM_QUESTPOINTS = 30; + public static final String STAGE_KEY = "stage"; public static void sendStages(Player player) { player.getPacketSender().sendString("QP: " + player.questPoints + " ", 3985); for (Quests quests : Quests.values()) { - if (!quests.questStatus() && quests.getStringId() > 0) { + if (!quests.isImplemented() && quests.getStringId() > 0) { player.getPacketSender().sendString("", quests.getStringId()); } } if (player.pirateTreasure == 0) { player.getPacketSender().sendString("Pirate's Treasure", 7341); - } else if (player.pirateTreasure == 6) { + } else if (player.pirateTreasure >= 4) { player.getPacketSender().sendString("@gre@Pirate's Treasure", 7341); } else { player.getPacketSender().sendString("@yel@Pirate's Treasure", 7341); @@ -49,23 +50,23 @@ public class QuestAssistant { } if (player.romeojuliet == 0) { player.getPacketSender().sendString("Romeo and Juliet", 7343); - } else if (player.romeojuliet < 9) { + } else if (player.romeojuliet < 100) { player.getPacketSender().sendString("@yel@Romeo and Juliet", 7343); - } else if (player.romeojuliet >= 9) { + } else if (player.romeojuliet >= 100) { player.getPacketSender().sendString("@gre@Romeo and Juliet", 7343); } if (player.vampSlayer == 0) { player.getPacketSender().sendString("Vampyre Slayer", 7347); - } else if (player.vampSlayer == 5) { + } else if (player.vampSlayer >= 3) { player.getPacketSender().sendString("@gre@Vampyre Slayer", 7347); } else { player.getPacketSender().sendString("@yel@Vampyre Slayer", 7347); } if (player.doricQuest == 0) { player.getPacketSender().sendString("Doric's Quest", 7336); - } else if (player.doricQuest == 3) { + } else if (player.doricQuest >= 100) { player.getPacketSender().sendString("@gre@Doric's Quest", 7336); } else { player.getPacketSender().sendString("@yel@Doric's Quest", 7336); @@ -86,60 +87,68 @@ public class QuestAssistant { } if (player.gertCat == 0) { player.getPacketSender().sendString("Gertrudes Cat", 7360); - } else if (player.gertCat == 7) { + } else if (player.gertCat >= 6) { player.getPacketSender().sendString("@gre@Gertrudes Cat", 7360); } else { player.getPacketSender().sendString("@yel@Gertrudes Cat", 7360); } if (player.sheepShear == 0) { player.getPacketSender().sendString("Sheep Shearer", 7344); - } else if (player.sheepShear == 2) { + } else if (player.sheepShear >= 21) { player.getPacketSender().sendString("@gre@Sheep Shearer", 7344); } else { player.getPacketSender().sendString("@yel@Sheep Shearer", 7344); } if (player.runeMist == 0) { player.getPacketSender().sendString("Rune Mysteries", 7335); - } else if (player.runeMist == 4) { + } else if (player.runeMist >= 6) { player.getPacketSender().sendString("@gre@Rune Mysteries", 7335); } else { player.getPacketSender().sendString("@yel@Rune Mysteries", 7335); } if (player.knightS == 0) { player.getPacketSender().sendString("The Knight's Sword", 7346); - } else if (player.knightS < 9) { + } else if (player.knightS < 7) { player.getPacketSender().sendString("@yel@The Knight's Sword", 7346); - } else if (player.knightS == 9) { + } else if (player.knightS >= 7) { player.getPacketSender().sendString("@gre@The Knight's Sword", 7346); } - if (player.cookAss == 0) { - player.getPacketSender().sendString("Cook's Assistant", 7333); - } else if (player.cookAss == 3) { - player.getPacketSender().sendString("@gre@Cook's Assistant", 7333); - } else if (player.cookAss > 0 && player.cookAss < 3) { - player.getPacketSender().sendString("@yel@Cook's Assistant", 7333); - } if (player.blackKnight == 0) { player.getPacketSender().sendString("Black Knights' Fortress", 7332); - } else if (player.blackKnight == 3) { + } else if (player.blackKnight >= 4) { player.getPacketSender().sendString("@gre@Black Knights' Fortress", 7332); } else { player.getPacketSender().sendString("@yel@Black Knights' Fortress", 7332); } if (player.shieldArrav == 0) { player.getPacketSender().sendString("Shield of Arrav", 7345); - } else if (player.shieldArrav == 8) { + } else if (player.shieldArrav >= 7) { player.getPacketSender().sendString("@gre@Shield of Arrav", 7345); } else { player.getPacketSender().sendString("@yel@Shield of Arrav", 7345); } if (player.lostCity == 0) { player.getPacketSender().sendString("Lost City", 7367); - } else if (player.lostCity == 3) { + } else if (player.lostCity >= 6) { player.getPacketSender().sendString("@gre@Lost City", 7367); } else { player.getPacketSender().sendString("@yel@Lost City", 7367); } + player.getPacketSender().sendConfig(71, player.pirateTreasure); + player.getPacketSender().sendConfig(67, player.witchspot); + player.getPacketSender().sendConfig(144, player.romeojuliet); + player.getPacketSender().sendConfig(178, player.vampSlayer); + player.getPacketSender().sendConfig(31, player.doricQuest); + player.getPacketSender().sendConfig(107, player.restGhost); + player.getPacketSender().sendConfig(160, player.impsC); + player.getPacketSender().sendConfig(180, player.gertCat); + player.getPacketSender().sendConfig(179, player.sheepShear); + player.getPacketSender().sendConfig(63, player.runeMist); + player.getPacketSender().sendConfig(122, player.knightS); + player.getPacketSender().sendConfig(130, player.blackKnight); + player.getPacketSender().sendConfig(145, player.shieldArrav); + player.getPacketSender().sendConfig(147, player.lostCity); + player.post(new QuestStatusEvent()); } public enum Quests { @@ -169,7 +178,7 @@ public class QuestAssistant { DEATH(32246, 8438, "Death Plateau", false), CREATURE(47097, 12129, "Creature of Fenkenstrain", false), DESERT_TREASURE(50052, 12852, "Desert Treasure", false), - DRUDIC_RITUAL(28187, 7355, "Drudic Ritual", false), + DRUDIC_RITUAL(28187, 7355, "Druidic Ritual", true), DWARF_CANNON(28188, 7356, "Dwarf Cannon", false), EADGARS_RUSE(33231, 8679, "Eadgars Ruse", false), DEVIOUS(61225, 15841, "Devious Minds", false), @@ -250,21 +259,21 @@ public class QuestAssistant { private final int button, string; private final String name; - private final boolean questStatus; + private final boolean implemented; - private Quests(final int button, final int string, final String name, final boolean questStatus) { + private Quests(final int button, final int string, final String name, final boolean implemented) { this.button = button; this.name = name; this.string = string; - this.questStatus = questStatus; + this.implemented = implemented; } public int getStringId() { return string; } - public boolean questStatus() { - return questStatus; + public boolean isImplemented() { + return implemented; } public int getButton() { @@ -288,9 +297,6 @@ public class QuestAssistant { public static void questButtons(Player player, int buttonId) { switch (buttonId) { - case 28165: - CooksAssistant.showInformation(player); - break; case 28167: RuneMysteries.showInformation(player); break; @@ -336,8 +342,9 @@ public class QuestAssistant { default: - if (Quests.forButton(buttonId) != null) { - player.getPacketSender().sendMessage("The quest " + Quests.forButton(buttonId).getName() + " is currently disabled."); + Quests quest = Quests.forButton(buttonId); + if (quest != null && !quest.isImplemented()) { + player.getPacketSender().sendMessage("The quest " + quest.getName() + " is currently disabled."); } break; } diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestRewards.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestRewards.java index 589695f4..4a4fe258 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestRewards.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/QuestRewards.java @@ -36,7 +36,8 @@ public class QuestRewards { player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7346); player.getPlayerAssistant().addSkillXP(12725, Constants.SMITHING); player.questPoints ++; - player.knightS = 9; + player.knightS = 7; + QuestAssistant.sendStages(player); } public static void gertFinish(Player player) { @@ -48,7 +49,8 @@ public class QuestRewards { player.getItemAssistant().addOrDropItem(1560, 1); player.getPlayerAssistant().addSkillXP(1525, Constants.COOKING); player.questPoints++; - player.gertCat = 7; + player.gertCat = 6; + QuestAssistant.sendStages(player); } public static void pirateFinish(Player c) { @@ -57,7 +59,8 @@ public class QuestRewards { c.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7341); c.getItemAssistant().addOrDropItem(2714, 1); c.questPoints += 2; - c.pirateTreasure = 6; + c.pirateTreasure = 4; + QuestAssistant.sendStages(c); } public static void witchFinish(Player client) { @@ -74,7 +77,8 @@ public class QuestRewards { QUEST_NAME = "Romeo and Juliet"; player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7343); player.questPoints += 5; - player.romeojuliet = 9; + player.romeojuliet = 100; + QuestAssistant.sendStages(player); } public static void restFinish(Player client) { @@ -92,7 +96,8 @@ public class QuestRewards { player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7347); player.getPlayerAssistant().addSkillXP(4825, Constants.ATTACK); player.questPoints += 3; - player.vampSlayer = 5; + player.vampSlayer = 3; + QuestAssistant.sendStages(player); } public static void runeFinish(Player player) { @@ -101,7 +106,8 @@ public class QuestRewards { player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7335); player.getItemAssistant().addOrDropItem(1438, 1); player.questPoints++; - player.runeMist = 4; + player.runeMist = 6; + QuestAssistant.sendStages(player); } public static void sheepFinish(Player player) { @@ -111,7 +117,8 @@ public class QuestRewards { player.getItemAssistant().addOrDropItem(995, 60); player.getPlayerAssistant().addSkillXP(150, Constants.CRAFTING); player.questPoints++; - player.sheepShear = 2; + player.sheepShear = 21; + QuestAssistant.sendStages(player); } public static void doricFinish(Player player) { @@ -121,7 +128,8 @@ public class QuestRewards { player.getItemAssistant().addOrDropItem(995, 180); player.getPlayerAssistant().addSkillXP(1300, Constants.MINING); player.questPoints++; - player.doricQuest = 3; + player.doricQuest = 100; + QuestAssistant.sendStages(player); } public static void impFinish(Player player) { @@ -134,23 +142,14 @@ public class QuestRewards { player.impsC = 2; } - public static void cookReward(Player player) { - questReward(player, "Cook's Assistant", "1 Quest Point", "500 Coins", "300 Cooking XP", "", "", "", 326); - QUEST_NAME = "Cook's Assistant"; - player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7333); - player.getItemAssistant().addOrDropItem(995, 500); - player.getPlayerAssistant().addSkillXP(300, Constants.COOKING); - player.questPoints++; - player.cookAss = 3; - } - public static void blackKnightReward(Player player) { questReward(player, "Black Knights' Fortress", "3 Quest Points", "2,500 Coins", "", "", "", "", 0); QUEST_NAME = "Black Knights' Fortress"; player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7332); player.getItemAssistant().addOrDropItem(995, 2500); player.questPoints += 3; - player.blackKnight = 3; + player.blackKnight = 4; + QuestAssistant.sendStages(player); } public static void shieldArravReward(Player player) { @@ -159,7 +158,8 @@ public class QuestRewards { player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7345); player.getItemAssistant().addOrDropItem(995, 1200); player.questPoints++; - player.shieldArrav = 8; + player.shieldArrav = 7; + QuestAssistant.sendStages(player); } public static void lostCityReward(Player player) { @@ -167,6 +167,7 @@ public class QuestRewards { QUEST_NAME = "Lost City"; player.getPacketSender().sendString("@gre@" + QUEST_NAME + "", 7367); player.questPoints += 3; - player.lostCity = 3; + player.lostCity = 6; + QuestAssistant.sendStages(player); } } diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/BlackKnightsFortress.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/BlackKnightsFortress.java index 87f842f0..4f34f0ba 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/BlackKnightsFortress.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/BlackKnightsFortress.java @@ -33,7 +33,7 @@ public class BlackKnightsFortress { client.getPacketSender().sendString("@str@I've killed 30 Black Knights", 8148); client.getPacketSender().sendString("@str@and given Sir Amik Varze his items.", 8149); client.getPacketSender().sendString("I should go speak to Sir Amik Varze.", 8150); - } else if (client.blackKnight == 3) { + } else if (client.blackKnight >= 4) { client.getPacketSender().sendString("@str@I talked to Sir Amik Varze.", 8147); client.getPacketSender().sendString("@str@I've killed 30 Black Knights", 8148); client.getPacketSender().sendString("@str@and given Sir Amik Varze his items.", 8149); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/CooksAssistant.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/CooksAssistant.java deleted file mode 100644 index b1caf62f..00000000 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/CooksAssistant.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.rs2.game.content.quests.impl; - -import com.rs2.game.players.Player; - -/** - * @author Andrew (Mr Extremez) - * Cooks Assistant - */ - -public class CooksAssistant { - - private static final int EGG = 1944; - private static final int MILK = 1927; - private static final int FLOUR = 1933; - - public static void showInformation(Player client) { - for (int i = 8144; i < 8196; i++) { - client.getPacketSender().sendString("", i); - } - for (int i = 12174; i < (12174 + 50); i++) { - client.getPacketSender().sendString( "", i); - } - for (int i = 14945; i < (14945 + 100); i++) { - client.getPacketSender().sendString("", i); - } - client.getPacketSender().sendString("@dre@Cook's Assistant", 8144); - client.getPacketSender().sendString("", 8145); - if (client.cookAss == 0) { - client.getPacketSender().sendString("Cook's Assistant", 8144); - client.getPacketSender().sendString("I can start this quest by speaking to the Cook in the", 8147); - client.getPacketSender().sendString("Lumbridge Castle kitchen.", 8148); - client.getPacketSender().sendString("", 8149); - client.getPacketSender().sendString("There are no minimum requirements.", 8150); - } else if (client.cookAss == 1) { - client.getPacketSender().sendString("Cook's Assistant", 8144); - client.getPacketSender().sendString("@str@I've talked to the cook.", 8147); - client.getPacketSender().sendString("He wants me to gather the following materials:", 8148); - if (client.getItemAssistant().playerHasItem(EGG, 1)) { - client.getPacketSender().sendString("@str@1 egg", 8149); - } else { - client.getPacketSender().sendString("@red@1 egg", 8149); - } - if (client.getItemAssistant().playerHasItem(MILK, 1)) { - client.getPacketSender().sendString("@str@1 bucket of milk", 8150); - } else { - client.getPacketSender().sendString("@red@1 bucket of milk", 8150); - } - if (client.getItemAssistant().playerHasItem(FLOUR, 1)) { - client.getPacketSender().sendString("@str@1 heap of flour", 8151); - } else { - client.getPacketSender().sendString("@red@1 pot of flour", 8151); - } - } else if (client.cookAss == 2) { - client.getPacketSender().sendString("Cook's Assistant", 8144); - client.getPacketSender().sendString("@str@I talked to the cook.", 8147); - client.getPacketSender().sendString("@str@I gave the cook his items.", 8148); - client.getPacketSender().sendString("I should go speak to the cook.", 8149); - } else if (client.cookAss == 3) { - client.getPacketSender().sendString("Cook's Assistant", 8144); - client.getPacketSender().sendString("@str@I talked to the cook.", 8147); - client.getPacketSender().sendString("@str@I gave him his items.", 8148); - client.getPacketSender().sendString("@red@ QUEST COMPLETE", 8150); - client.getPacketSender().sendString("As a reward, I gained 150 Cooking Experience.", 8151); - } - client.getPacketSender().showInterface(8134); - } - -} diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/DoricsQuest.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/DoricsQuest.java index 1ea5bd3c..8e38dff4 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/DoricsQuest.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/DoricsQuest.java @@ -30,7 +30,7 @@ public class DoricsQuest { client.getPacketSender().sendString("", 8149); client.getPacketSender().sendString( "Recommended Levels: 15 Mining", 8150); - } else if (client.doricQuest == 1) { + } else if (client.doricQuest == 10) { client.getPacketSender().sendString("Dorics Quest", 8144); client.getPacketSender().sendString( "@str@I've talked to the doric.", 8147); @@ -51,7 +51,7 @@ public class DoricsQuest { } else { client.getPacketSender().sendString("@red@2 Iron ore", 8151); } - } else if (client.doricQuest == 2) { + } else if (client.doricQuest == 20) { client.getPacketSender().sendString("Dorics Quest", 8144); client.getPacketSender().sendString( "@str@I talked to the doric.", 8147); @@ -59,7 +59,7 @@ public class DoricsQuest { "@str@I gave the doric his items.", 8148); client.getPacketSender().sendString( "I should go speak to the doric.", 8149); - } else if (client.doricQuest == 3) { + } else if (client.doricQuest >= 100) { client.getPacketSender().sendString("Dorics Quest", 8144); client.getPacketSender().sendString( "@str@I talked to the doric.", 8147); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/GertrudesCat.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/GertrudesCat.java index 51595d94..956d3bc3 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/GertrudesCat.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/GertrudesCat.java @@ -30,14 +30,6 @@ public class GertrudesCat { "I should speak to Wilough and Shilop.", 8148); client.getPacketSender().sendString("They are in the varrock square.", 8149); } else if (client.gertCat == 2) { - client.getPacketSender().sendString("Gertrudes Cat", 8144); - client.getPacketSender().sendString( - "@str@I've talked to Wilough and Shilop", 8147); - client.getPacketSender().sendString("@str@I gave them 100 coins", - 8148); - client.getPacketSender().sendString( - "I should try to find Gertrudes Cat.", 8149); - } else if (client.gertCat == 3) { client.getPacketSender().sendString("Gertrudes Cat", 8144); client.getPacketSender().sendString( "@str@I've talked to the Gertrudes Cat", 8147); @@ -47,7 +39,7 @@ public class GertrudesCat { 8149); client.getPacketSender().sendString("The cat still seems mad you should give her some,", 8150); client.getPacketSender().sendString("seasoned salmon.", 8151); - } else if (client.gertCat == 4) { + } else if (client.gertCat == 3) { client.getPacketSender().sendString("Gertrudes Cat", 8144); client.getPacketSender().sendString("@str@The cat is still mad", 8147); @@ -55,7 +47,7 @@ public class GertrudesCat { 8148); client.getPacketSender().sendString("@str@seasoned samon.", 8149); client.getPacketSender().sendString("I should talk to Gertrudes cat to see how she feels.", 8150); - } else if (client.gertCat == 5) { + } else if (client.gertCat == 4) { client.getPacketSender().sendString("Gertrudes Cat", 8144); client.getPacketSender().sendString( "@str@The cat seems to be mad", 8147); @@ -63,7 +55,7 @@ public class GertrudesCat { "@str@because she can't find her kittens.", 8148); client.getPacketSender().sendString("I should go in the lumberyard and", 8149); client.getPacketSender().sendString("check it out.", 8150); - } else if (client.gertCat == 6) { + } else if (client.gertCat == 5) { client.getPacketSender().sendString("Gertrudes Cat", 8144); client.getPacketSender().sendString("@str@I gave gertrudes cat", 8147); @@ -71,7 +63,7 @@ public class GertrudesCat { client.getPacketSender().sendString( "@str@and she now seems happy.", 8149); client.getPacketSender().sendString("I should head back to Gertrude.", 8150); - } else if (client.gertCat == 7) { + } else if (client.gertCat >= 6) { client.getPacketSender().sendString("Gertrudes Cat", 8144); client.getPacketSender().sendString( "@str@I helped gertrude with her", 8147); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/KnightsSword.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/KnightsSword.java index 30f7c39e..bea0ac95 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/KnightsSword.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/KnightsSword.java @@ -1,5 +1,6 @@ package com.rs2.game.content.quests.impl; +import com.rs2.game.content.StaticItemList; import com.rs2.game.players.Player; public class KnightsSword { @@ -40,22 +41,6 @@ public class KnightsSword { player.getPacketSender().sendString("Red berry pie. Now that he likes me I should talk to him", 8156); player.getPacketSender().sendString("and find out if he'll make the sword for me.", 8157); } else if(player.knightS == 4) { - player.getPacketSender().sendString("@str@The squire has lost Sir Vyvin's sword and asked me", 8147); - player.getPacketSender().sendString("@str@to find a replacement. He suggested that I start", 8148); - player.getPacketSender().sendString("@str@by speaking to Reldo, the librarian in the Varrock Castle", 8149); - player.getPacketSender().sendString("", 8150); - player.getPacketSender().sendString("@str@Reldo told me there may be an Imcando dwarf living near the", 8151); - player.getPacketSender().sendString("@str@Asgarnian peninsula. He said I should bring him some", 8152); - player.getPacketSender().sendString("@str@Red Berry Pie to get him to be willing to talk to me", 8153); - player.getPacketSender().sendString("", 8154); - player.getPacketSender().sendString("@str@I found the Imcando dwarf named Thurgo and gave him some", 8155); - player.getPacketSender().sendString("@str@Red berry pie. Now that he likes me I should talk to him", 8156); - player.getPacketSender().sendString("@str@and find out if he'll make the sword for me.", 8157); - player.getPacketSender().sendString("", 8158); - player.getPacketSender().sendString("Thurgo says he needs a picture of the sword.", 8159); - player.getPacketSender().sendString("Maybe the squire will have one?", 8160); - player.getPacketSender().sendString("", 8161); - } else if(player.knightS == 5) { player.getPacketSender().sendString("@str@The squire has lost Sir Vyvin's sword and asked me", 8147); player.getPacketSender().sendString("@str@to find a replacement. He suggested that I start", 8148); player.getPacketSender().sendString("@str@by speaking to Reldo, the librarian in the Varrock Castle", 8149); @@ -79,7 +64,7 @@ public class KnightsSword { player.getPacketSender().sendString("", 8167); player.getPacketSender().sendString("", 8168); player.getPacketSender().sendString("", 8169); - } else if(player.knightS == 6) { + } else if(player.knightS == 5) { player.getPacketSender().sendString("@str@The squire has lost Sir Vyvin's sword and asked me", 8147); player.getPacketSender().sendString("@str@to find a replacement. He suggested that I start", 8148); player.getPacketSender().sendString("@str@by speaking to Reldo, the librarian in the Varrock Castle", 8149); @@ -103,7 +88,7 @@ public class KnightsSword { player.getPacketSender().sendString("", 8167); player.getPacketSender().sendString("", 8168); player.getPacketSender().sendString("", 8169); - } else if(player.knightS == 7) { + } else if(player.knightS == 6) { player.getPacketSender().sendString("The squire has lost Sir Vyvin's sword and asked me", 8147); player.getPacketSender().sendString("to find a replacement.@str@ He suggested that I start", 8148); player.getPacketSender().sendString("@str@by speaking to Reldo, the librarian in the Varrock Castle", 8149); @@ -124,40 +109,21 @@ public class KnightsSword { player.getPacketSender().sendString("@str@get caught.", 8164); player.getPacketSender().sendString("@str@I should bring the picture to Thurgo", 8165); player.getPacketSender().sendString("", 8166); - player.getPacketSender().sendString("Thurgo has asked me to bring him 2 iron bars and 1 blurite", 8167); - player.getPacketSender().sendString("ore for him to make the sword with. He says blurite can be", 8168); - player.getPacketSender().sendString("mined in the cave by his home, but it is guarded by", 8169); - player.getPacketSender().sendString("dangerous monsters. So I should be very careful.", 8170); - } else if(player.knightS == 8) { - player.getPacketSender().sendString("The squire has lost Sir Vyvin's sword and asked me", 8147); - player.getPacketSender().sendString("to find a replacement.@str@ He suggested that I start", 8148); - player.getPacketSender().sendString("@str@by speaking to Reldo, the librarian in the Varrock Castle", 8149); - player.getPacketSender().sendString("", 8150); - player.getPacketSender().sendString("@str@Reldo told me there may be an Imcando dwarf living near the", 8151); - player.getPacketSender().sendString("@str@Asgarnian peninsula. He said I should bring him some", 8152); - player.getPacketSender().sendString("@str@Red Berry Pie to get him to be willing to talk to me.", 8153); - player.getPacketSender().sendString("", 8154); - player.getPacketSender().sendString("@str@I found the Imcando dwarf named Thurgo and gave him some", 8155); - player.getPacketSender().sendString("@str@Red berry pie. Now that he likes me I should talk to him", 8156); - player.getPacketSender().sendString("@str@and find out if he'll make the sword for me.", 8157); - player.getPacketSender().sendString("", 8158); - player.getPacketSender().sendString("@str@Thurgo says he needs a picture of the sword.", 8159); - player.getPacketSender().sendString("@str@Maybe the squire will have one?", 8160); - player.getPacketSender().sendString("", 8161); - player.getPacketSender().sendString("@str@The squire thinks Sir Vyvin keeps a picture of the sword in", 8162); - player.getPacketSender().sendString("@str@cupboard in his room, but I must be very careful not to", 8163); - player.getPacketSender().sendString("@str@get caught.", 8164); - player.getPacketSender().sendString("@str@I should bring the picture to Thurgo", 8165); - player.getPacketSender().sendString("", 8166); - player.getPacketSender().sendString("@str@Thurgo has asked me to bring him 2 iron bars and 1 blurite", 8167); - player.getPacketSender().sendString("@str@ore for him to make the sword with. He says blurite can be", 8168); - player.getPacketSender().sendString("@str@mined in the cave by his home, but it is guarded by", 8169); - player.getPacketSender().sendString("@str@dangerous monsters. So I should be very careful.", 8170); - player.getPacketSender().sendString("", 8171); - player.getPacketSender().sendString("Thurgo made me the sword, I should bring it back to the", 8172); - player.getPacketSender().sendString("knight to get my reward!", 8173); - player.getPacketSender().sendString("", 8174); - } else if(player.knightS == 9) { + if (player.getItemAssistant().playerHasItem(StaticItemList.BLURITE_SWORD, 1)) { + player.getPacketSender().sendString("@str@Thurgo has asked me to bring him 2 iron bars and 1 blurite", 8167); + player.getPacketSender().sendString("@str@ore for him to make the sword with. He says blurite can be", 8168); + player.getPacketSender().sendString("@str@mined in the cave by his home, but it is guarded by", 8169); + player.getPacketSender().sendString("@str@dangerous monsters. So I should be very careful.", 8170); + player.getPacketSender().sendString("", 8171); + player.getPacketSender().sendString("Thurgo made me the sword, I should bring it back to the", 8172); + player.getPacketSender().sendString("knight to get my reward!", 8173); + } else { + player.getPacketSender().sendString("Thurgo has asked me to bring him 2 iron bars and 1 blurite", 8167); + player.getPacketSender().sendString("ore for him to make the sword with. He says blurite can be", 8168); + player.getPacketSender().sendString("mined in the cave by his home, but it is guarded by", 8169); + player.getPacketSender().sendString("dangerous monsters. So I should be very careful.", 8170); + } + } else if(player.knightS >= 7) { player.getPacketSender().sendString("@str@The squire has lost Sir Vyvin's sword and asked me", 8147); player.getPacketSender().sendString("@str@to find a replacement. He suggested that I start", 8148); player.getPacketSender().sendString("@str@by speaking to Reldo, the librarian in the Varrock Castle", 8149); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/LostCity.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/LostCity.java index 86993cd9..aca23f26 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/LostCity.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/LostCity.java @@ -55,7 +55,7 @@ public class LostCity { "Swamp through the use of a Dramen staff, which I can craft", 8149); client.getPacketSender().sendString( "by obtaining logs from a Spirit Tree.", 8149); - } else if (client.lostCity == 3) { + } else if (client.lostCity >= 6) { client.getPacketSender().sendString("Lost City", 8144); client.getPacketSender().sendString( "@str@I defeated the Spirit Tree", 8147); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/PiratesTreasure.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/PiratesTreasure.java index ca00867f..e9a5c452 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/PiratesTreasure.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/PiratesTreasure.java @@ -1,5 +1,6 @@ package com.rs2.game.content.quests.impl; +import com.rs2.game.content.StaticItemList; import com.rs2.game.players.Player; /** @@ -43,8 +44,14 @@ public class PiratesTreasure { "@str@I talked to Redbeard.", 8147); client.getPacketSender().sendString( "@str@I found a way to get the rum", 8148); - client.getPacketSender().sendString( - "I should get the rum and return to Redbeard.", 8149); + if (client.getItemAssistant().playerHasItem(StaticItemList.CHEST_KEY, 1)) { + client.getPacketSender().sendString("@str@I gave him the rum", 8149); + client.getPacketSender().sendString( + "I should look at the chest in the Blue Moon Inn.", 8150); + } else { + client.getPacketSender().sendString( + "I should get the rum and return to Redbeard.", 8149); + } } else if (client.pirateTreasure == 3) { client.getPacketSender().sendString("Pirate's Treasure", 8144); client.getPacketSender().sendString( @@ -54,34 +61,10 @@ public class PiratesTreasure { client.getPacketSender().sendString("@str@I gave him the rum", 8149); client.getPacketSender().sendString( - "He told me I need to look at the chest in", 8149); - client.getPacketSender().sendString("The blue moon inn", 8150); - } else if (client.pirateTreasure == 4) { - client.getPacketSender().sendString("Pirate's Treasure", 8144); + "@str@I looked in the chest", 8150); client.getPacketSender().sendString( - "@str@I talked to Redbeard.", 8147); - client.getPacketSender().sendString( - "@str@I found a way to get the rum", 8148); - client.getPacketSender().sendString("@str@I gave him the rum", - 8149); - client.getPacketSender().sendString( - "@str@I looked in the chest", 8149); - client.getPacketSender().sendString( - "I need to go to falador and kill the gardener", 8150); - } else if (client.pirateTreasure == 5) { - client.getPacketSender().sendString( - "@str@I talked to Redbeard.", 8147); - client.getPacketSender().sendString( - "@str@I found a way to get the rum", 8148); - client.getPacketSender().sendString("@str@I gave him the rum", - 8149); - client.getPacketSender().sendString( - "@str@I looked in the chest", 8149); - client.getPacketSender().sendString( - "@str@I went to falador and killed the gardener", 8150); - client.getPacketSender().sendString( - "I should find the casket now", 8151); - } else if (client.pirateTreasure == 6) { + "I need to go to falador and dig for the treasure", 8151); + } else if (client.pirateTreasure >= 4) { client.getPacketSender().sendString( "@str@I talked to Redbeard.", 8147); client.getPacketSender().sendString( diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RomeoJuliet.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RomeoJuliet.java index caa9eb87..dbfef44d 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RomeoJuliet.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RomeoJuliet.java @@ -26,7 +26,7 @@ public class RomeoJuliet { "To start the quest, you should talk with Romeo", 8147); client.getPacketSender().sendString("found in Varrock Square.", 8148); - } else if (client.romeojuliet == 1) { + } else if (client.romeojuliet == 10) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", @@ -40,7 +40,7 @@ public class RomeoJuliet { "and return to him, as she hasn't been responding to any", 8151); client.getPacketSender().sendString("his letters lately.", 8152); - } else if (client.romeojuliet == 2) { + } else if (client.romeojuliet == 20) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", @@ -67,7 +67,7 @@ public class RomeoJuliet { "she gave you a message and asked you to leave", 8155); client.getPacketSender().sendString("Could this be for Romeo?", 8156); - } else if (client.romeojuliet == 4) { + } else if (client.romeojuliet == 30) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", @@ -98,7 +98,7 @@ public class RomeoJuliet { "You have spoken to Romeo and given him the message", 8158); client.getPacketSender().sendString( "You should try to talk to him again", 8159); - } else if (client.romeojuliet == 5) { + } else if (client.romeojuliet == 40) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", @@ -139,7 +139,7 @@ public class RomeoJuliet { "@str@You should try to talk to him again", 8159); client.getPacketSender().sendString( "Romeo says you should see a witch called Winelda", 8160); - } else if (client.romeojuliet == 6) { + } else if (client.romeojuliet == 45) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", @@ -186,7 +186,7 @@ public class RomeoJuliet { "Winelda needs me to bring her 1 rats tail, 1 bone, and 1", 8162); client.getPacketSender().sendString("vial of water", 8163); - } else if (client.romeojuliet == 7) { + } else if (client.romeojuliet == 50) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", @@ -241,7 +241,7 @@ public class RomeoJuliet { 8162); client.getPacketSender().sendString( "I should go speak to Juliet", 8163); - } else if (client.romeojuliet == 8) { + } else if (client.romeojuliet == 60) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", @@ -302,7 +302,7 @@ public class RomeoJuliet { "I should speak to juliet and give her the potion", 8168); client.getPacketSender().sendString( "I should go speak to Romeo", 8169); - } else if (client.romeojuliet == 9) { + } else if (client.romeojuliet >= 100) { client.getPacketSender() .sendString( "@str@To start the quest, you should talk with Romeo", diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RuneMysteries.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RuneMysteries.java index 3b1439d9..a6d947d5 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RuneMysteries.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/RuneMysteries.java @@ -53,7 +53,7 @@ public class RuneMysteries { 8148); client.getPacketSender().sendString( "I should go back to the wizard tower", 8149); - } else if (client.runeMist == 4) { + } else if (client.runeMist >= 6) { client.getPacketSender().sendString("Rune Mysteries", 8144); client.getPacketSender().sendString("@str@I talked to Sedridor", 8147); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/SheepShearer.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/SheepShearer.java index 3d665087..057934c0 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/SheepShearer.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/SheepShearer.java @@ -28,7 +28,7 @@ public class SheepShearer { client.getPacketSender().sendString("Lumbridge.", 8148); client.getPacketSender().sendString("Minimum Requirments:", 8149); client.getPacketSender().sendString("None.", 8150); - } else if (client.sheepShear == 1) { + } else if (client.sheepShear >= 1 && client.sheepShear < 21) { client.getPacketSender().sendString("Sheep Shearer", 8144); client.getPacketSender().sendString("@str@I've talked to fred", 8147); @@ -40,7 +40,7 @@ public class SheepShearer { client.getPacketSender().sendString("@red@Ball of Wool", 8149); } - } else if (client.sheepShear == 2) { + } else if (client.sheepShear >= 21) { client.getPacketSender().sendString("Sheep Shearer", 8144); client.getPacketSender().sendString("@str@I gave fred his wool", 8147); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/ShieldArrav.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/ShieldArrav.java index a258df89..d1ce9ba0 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/ShieldArrav.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/ShieldArrav.java @@ -44,17 +44,12 @@ public class ShieldArrav { "in @red@Varrock's Palace Library", }; } else if (player.shieldArrav == 2) { - lines = new String[]{ - "@str@I found 'The Shield of Arrav' book", - "I should speak to @red@Reldo", - }; - } else if (player.shieldArrav == 3) { lines = new String[]{ "@str@I found 'The Shield of Arrav' book", "@str@I've spoken with Raldo", "Lets go speak with @red@Baraek", }; - } else if (player.shieldArrav == 4) { + } else if (player.shieldArrav == 3) { lines = new String[]{ "@str@I found 'The Shield of Arrav' book", "@str@I've spoken with Raldo", @@ -63,7 +58,7 @@ public class ShieldArrav { "He said it was located in the South Eastern side of Varrock,", "I should check it out.", }; - } else if (player.shieldArrav == 5) { + } else if (player.shieldArrav == 4) { lines = new String[]{ "@str@I found 'The Shield of Arrav' book", "@str@I've spoken with Raldo", @@ -72,7 +67,7 @@ public class ShieldArrav { "I need to goto the @red@Blue Moon Inn", "and obtain the intelligence report.", }; - } else if (player.shieldArrav == 6) { + } else if (player.shieldArrav == 5) { lines = new String[]{ "@str@I found 'The Shield of Arrav' book", "@str@I've spoken with Raldo", @@ -83,7 +78,7 @@ public class ShieldArrav { "and take it to @red@Curator Haig Halen", "he should be at @red@Varrock Museum" }; - } else if (player.shieldArrav == 7) { + } else if (player.shieldArrav == 6) { lines = new String[]{ "@str@I found 'The Shield of Arrav' book", "@str@I've spoken with Raldo", @@ -94,7 +89,7 @@ public class ShieldArrav { "I need to take this certificate", "to @red@King Roald @bla@for my reward", }; - } else if (player.shieldArrav == 8) { + } else if (player.shieldArrav >= 7) { lines = new String[]{ "@str@I found 'The Shield of Arrav' book", "@str@I've spoken with Raldo", diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/VampyreSlayer.java b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/VampyreSlayer.java index fa6c8df0..29df790d 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/VampyreSlayer.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/quests/impl/VampyreSlayer.java @@ -37,12 +37,6 @@ public class VampyreSlayer { "I should speak to Doctor Harlow", }; } else if (client.vampSlayer == 2) { - lines = new String[]{ - "@str@I've talked to Doctor Harlow", - "I need to bring him a beer.", - "I should speak to the bartender", - }; - } else if (client.vampSlayer == 3) { lines = new String[]{ "@str@I've talked to the bartender", "@str@I gave Doctor Harlow the beer", @@ -51,12 +45,7 @@ public class VampyreSlayer { "Get everything you need and go to Draynor Village.", "Begin your battle.", }; - } else if (client.vampSlayer == 4) { - lines = new String[]{ - "@str@I've killed the Vampire", - "I need to talk to Morgan to complete the quest.", - }; - } else if (client.vampSlayer == 5) { + } else if (client.vampSlayer >= 3) { lines = new String[]{ "@str@I've killed the Vampire", "@str@I've Talked to Morgan", diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/skills/cooking/Cooking.java b/2006Scape Server/src/main/java/com/rs2/game/content/skills/cooking/Cooking.java index 82bed57a..c723323f 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/skills/cooking/Cooking.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/skills/cooking/Cooking.java @@ -223,11 +223,13 @@ public class Cooking extends SkillHandler { return; } boolean burn; - if (player.playerEquipment[ItemConstants.HANDS] == StaticItemList.COOKING_GAUNTLETS) { - burn = !getSuccess(player, 3, item.getLevelReq(), item.getStopBurnGloves()); - } else { - burn = !getSuccess(player, 3, item.getLevelReq(), item.getStopBurn()); + int baseStopBurn = player.playerEquipment[ItemConstants.HANDS] == StaticItemList.COOKING_GAUNTLETS + ? item.getStopBurnGloves() + : item.getStopBurn(); + if (objectId == StaticObjectList.COOKING_RANGE) { + baseStopBurn = Math.max(item.getLevelReq(), baseStopBurn - 4); } + burn = !getSuccess(player, 3, item.getLevelReq(), baseStopBurn); player.getItemAssistant().deleteItem(item.getRawItem(), player.getItemAssistant().getItemSlot(itemId), 1); if (!burn) { diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/skills/core/Fishing.java b/2006Scape Server/src/main/java/com/rs2/game/content/skills/core/Fishing.java index 401eeda8..ea1e14b8 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/skills/core/Fishing.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/skills/core/Fishing.java @@ -83,7 +83,7 @@ public class Fishing extends SkillHandler { c.getDialogueHandler().sendStatement( "You need more " + DeprecatedItems.getItemName(data[i][3]) - .toLowerCase().toLowerCase() + .toLowerCase() + " in order to fish at this spot."); return; } diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/skills/smithing/SilverCrafting.java b/2006Scape Server/src/main/java/com/rs2/game/content/skills/smithing/SilverCrafting.java index aff6f7b2..09d8b60f 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/skills/smithing/SilverCrafting.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/skills/smithing/SilverCrafting.java @@ -126,7 +126,7 @@ public class SilverCrafting { + DeprecatedItems .getItemName( silverCraft.getResult()) - .toLowerCase().toLowerCase() + "."); + .toLowerCase() + "."); player.getItemAssistant().deleteItem(SILVER_BAR, 1); player.getItemAssistant().addItem(silverCraft.getResult(), 1); diff --git a/2006Scape Server/src/main/java/com/rs2/game/content/skills/woodcutting/Woodcutting.java b/2006Scape Server/src/main/java/com/rs2/game/content/skills/woodcutting/Woodcutting.java index d8712ecf..c6094531 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/content/skills/woodcutting/Woodcutting.java +++ b/2006Scape Server/src/main/java/com/rs2/game/content/skills/woodcutting/Woodcutting.java @@ -37,7 +37,9 @@ public class Woodcutting { MAGIC(new int[] {1306}, 7401, 75, 250, 1513, 150, 3), EVERGREEN(new int[] {1319, 1318, 1315, 1316, 1332}, 1341, 1, 25, 1511, 11, 100), ACHEY(new int[] {2023}, 3371, 1, 25, 1511, 11, 100), - DRAMEN(new int[] {1292}, 1341, 36, 0, 771, 45, 100); + DRAMEN(new int[] {1292}, 1341, 36, 0, 771, 45, 100), + HOLLOW_SMALL(new int[] {2289}, 2310, 45, 83, 3239, 40, 8), + HOLLOW_LARGE(new int[] {4060}, 4061, 45, 83, 3239, 40, 8); private int[] treeId; private int stumpId, levelReq, xpRecieved, logRecieved, respawnTime, cutChance; @@ -232,10 +234,6 @@ public class Woodcutting { if (p.isWoodcutting || p.isFletching || p.isFiremaking || p.playerIsFletching) { return; } - if (p.absX == 2717 && p.absY == 3461) { - p.getPacketSender().sendMessage("You can't cut the tree from here!"); - return; - } if (!SkillHandler.WOODCUTTING) { p.getPacketSender().sendMessage("This skill is currently disabled."); return; @@ -243,6 +241,13 @@ public class Woodcutting { int wcLevel = p.playerLevel[Constants.WOODCUTTING]; p.woodcuttingAxe = -1; treeData tree = treeData.getTree(objectId); + if (tree == null) { + return; + } + com.rs2.game.objects.Object existingObj = com.rs2.GameEngine.objectManager.getObject(x, y, p.heightLevel); + if (existingObj != null && existingObj.objectId == tree.getStump()) { + return; + } p.turnPlayerTo(x, y); if (tree.getLevelReq() > wcLevel) { p.getPacketSender().sendMessage("You need a Woodcutting level of " + tree.getLevelReq() + " to cut this tree."); @@ -263,89 +268,88 @@ public class Woodcutting { p.getPacketSender().sendMessage("You do not have enough inventory slots to do that."); return; } - if (Misc.goodDistance(p.objectX, p.objectY, p.absX, p.absY, 3)) { - if (p.isWoodcutting) { - p.getPacketSender().sendMessage("You are already woodcutting!"); - return; - } - p.startAnimation(Axe_Settings[p.woodcuttingAxe][3]); - p.isWoodcutting = true; - p.getPacketSender().sendSound(SoundList.TREE_CUT_BEGIN, 100, 0); - repeatAnimation(p); - p.treeX = x; - p.treeY = y; - if (p.tutorialProgress == 3) { - p.getPacketSender().closeAllWindows(); - p.getPacketSender().chatbox(6180); - if (p.playerAppearance[0] == 0) { - p.getDialogueHandler().chatboxText("", "Your character is now attempting to cut down the tree. Sit back", "for a moment while he does all the hard work.", "", "Please wait"); - } else { - p.getDialogueHandler().chatboxText("", "Your character is now attempting to cut down the tree. Sit back", "for a moment while she does all the hard work.", "", "Please wait"); - } - p.getPacketSender().chatbox(6179); + p.startAnimation(Axe_Settings[p.woodcuttingAxe][3]); + p.isWoodcutting = true; + p.getPacketSender().sendSound(SoundList.TREE_CUT_BEGIN, 100, 0); + repeatAnimation(p); + p.treeX = x; + p.treeY = y; + if (p.tutorialProgress == 3) { + p.getPacketSender().closeAllWindows(); + p.getPacketSender().chatbox(6180); + if (p.playerAppearance[0] == 0) { + p.getDialogueHandler().chatboxText("", "Your character is now attempting to cut down the tree. Sit back", "for a moment while he does all the hard work.", "", "Please wait"); } else { - p.getPacketSender().sendMessage("You swing your axe at the tree."); + p.getDialogueHandler().chatboxText("", "Your character is now attempting to cut down the tree. Sit back", "for a moment while she does all the hard work.", "", "Please wait"); } - CycleEventHandler.getSingleton().addEvent("WoodcuttingEvent".hashCode(), p, new CycleEvent() { - - @Override - public void execute(CycleEventContainer container) { - if (p.woodcuttingAxe <= -1) - { - container.stop(); - return; - } - if (!p.isWoodcutting) { - container.stop(); - return; - } - if (p.disconnected) { - container.stop(); - return; - } - if (p.isWoodcutting) { - p.startAnimation(Axe_Settings[p.woodcuttingAxe][3]); - } - if (p.getItemAssistant().freeSlots() < 1) { - p.getPacketSender().sendMessage("You have ran out of inventory slots."); - container.stop(); - } - int XP = tree.getXpReceived(); - if (p.isWoodcutting) { - p.getItemAssistant().addItem(tree.getLogRecieved(), 1); - p.getPlayerAssistant().addSkillXP(XP, 8); - p.getPacketSender().sendMessage("You manage to get some " + DeprecatedItems.getItemName(tree.getLogRecieved()).toLowerCase() + " from the tree."); - } - if (p.tutorialProgress == 3) { - p.getDialogueHandler().sendDialogues(3014, 0); - } - if (p.isWoodcutting) { - BirdNest.birdNests(p); - } - if (p.isWoodcutting && p.tutorialProgress >= 36 && p.treeSpiritSpawned == false) { - RandomEventHandler.addRandom(p); - } - if (p.isWoodcutting && Misc.random(350) == 69 && p.tutorialProgress >= 36 && p.randomEventsEnabled) { - TreeSpirit.spawnTreeSpirit(p); - } - if (p.playerIsFletching || p.isFiremaking) { - container.stop(); - } - if (Misc.random(100) <= tree.getChance()) { - cutDownTree(tree.getRespawnTime(), x, y, type, tree.getStump(), objectId); - p.getPacketSender().sendSound(SoundList.TREE_EMPTY, 100, 0); - container.stop(); - } - } - @Override - public void stop() { - p.startAnimation(65535); - p.isWoodcutting = false; - p.treeX = 0; - p.treeY = 0; - } - }, getTimer(tree, p.woodcuttingAxe, wcLevel)); + p.getPacketSender().chatbox(6179); + } else { + p.getPacketSender().sendMessage("You swing your axe at the tree."); } + CycleEventHandler.getSingleton().addEvent("WoodcuttingEvent".hashCode(), p, new CycleEvent() { + + @Override + public void execute(CycleEventContainer container) { + if (p.woodcuttingAxe <= -1) + { + container.stop(); + return; + } + if (!p.isWoodcutting) { + container.stop(); + return; + } + if (p.disconnected) { + container.stop(); + return; + } + com.rs2.game.objects.Object existingObj = com.rs2.GameEngine.objectManager.getObject(x, y, p.heightLevel); + if (existingObj != null && existingObj.objectId == tree.getStump()) { + container.stop(); + return; + } + if (p.isWoodcutting) { + p.startAnimation(Axe_Settings[p.woodcuttingAxe][3]); + } + if (p.getItemAssistant().freeSlots() < 1) { + p.getPacketSender().sendMessage("You have ran out of inventory slots."); + container.stop(); + } + int XP = tree.getXpReceived(); + if (p.isWoodcutting) { + p.getItemAssistant().addItem(tree.getLogRecieved(), 1); + p.getPlayerAssistant().addSkillXP(XP, 8); + p.getPacketSender().sendMessage("You manage to get some " + DeprecatedItems.getItemName(tree.getLogRecieved()).toLowerCase() + " from the tree."); + } + if (p.tutorialProgress == 3) { + p.getDialogueHandler().sendDialogues(3014, 0); + } + if (p.isWoodcutting) { + BirdNest.birdNests(p); + } + if (p.isWoodcutting && p.tutorialProgress >= 36 && p.treeSpiritSpawned == false) { + RandomEventHandler.addRandom(p); + } + if (p.isWoodcutting && Misc.random(350) == 69 && p.tutorialProgress >= 36 && p.randomEventsEnabled) { + TreeSpirit.spawnTreeSpirit(p); + } + if (p.playerIsFletching || p.isFiremaking) { + container.stop(); + } + if (Misc.random(100) <= tree.getChance()) { + cutDownTree(tree.getRespawnTime(), x, y, type, tree.getStump(), objectId); + p.getPacketSender().sendSound(SoundList.TREE_EMPTY, 100, 0); + container.stop(); + } + } + @Override + public void stop() { + p.startAnimation(65535); + p.isWoodcutting = false; + p.treeX = 0; + p.treeY = 0; + } + }, getTimer(tree, p.woodcuttingAxe, wcLevel)); } public static void stopWoodcutting(Player player) { @@ -365,15 +369,17 @@ public class Woodcutting { } public static boolean playerTrees(Player player, int tree) { - boolean trees2 = false; - for (int i = 0; i < trees.length; i++) { - for (int i1 = 0; i1 < 6; i1++) { - if (tree == trees[i1][i]) { - trees2 = true; + if (treeData.getTree(tree) != null) { + return true; + } + for (int[] row : trees) { + for (int id : row) { + if (tree == id) { + return true; } } } - return trees2; + return false; } public static int[][] trees = { diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/ChatEmotes.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/ChatEmotes.java index 1199c294..5464253a 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/dialogues/ChatEmotes.java +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/ChatEmotes.java @@ -19,6 +19,7 @@ public enum ChatEmotes { DISTRESSED2(597), ALMOST_CRYING(598), BOWS_HEAD_SAD(598), + SAD_599(599), DRUNK_LEFT(600), DRUNK_RIGHT(601), NOT_INTERESTED(602), @@ -44,7 +45,7 @@ public enum ChatEmotes { private int animId; - static int getAnimId(ChatEmotes ce) { + public static int getAnimId(ChatEmotes ce) { return ce.animId; } - } \ No newline at end of file + } diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/Dialogue.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/Dialogue.java index 2e02e0fb..edee58e3 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/dialogues/Dialogue.java +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/Dialogue.java @@ -4,18 +4,18 @@ import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; -/** - * Dialogue - **/ - +/** Continues either a legacy dialogue or an active factory dialogue. */ public class Dialogue implements PacketType { - @Override - public void processPacket(Player c, Packet packet) { - if (c.nextChat > 0) { - c.getDialogueHandler().sendDialogues(c.nextChat, c.talkingNpc); + public void processPacket(Player player, Packet packet) { + if (player.getDialogueFactory().isActive()) { + player.getDialogueFactory().execute(); + return; + } + if (player.nextChat > 0) { + player.getDialogueHandler().sendDialogues(player.nextChat, player.talkingNpc); } else { - c.getDialogueHandler().sendDialogues(0, -1); + player.getDialogueHandler().sendDialogues(0, -1); } } } diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueHandler.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueHandler.java index 9efb8096..8cb6620e 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueHandler.java +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueHandler.java @@ -31,6 +31,7 @@ public class DialogueHandler { } public void endDialogue() { + player.getDialogueFactory().clear(); player.nextChat = 0; player.dialogueAction = 0; player.talkingNpc = -1; @@ -313,140 +314,6 @@ public class DialogueHandler { player.nextChat = 0; player.ptjob = 2; break; - case 50: - sendNpcChat1("What am I to do?", player.talkingNpc, "Cook"); - player.nextChat = 51; - break; - case 51: - sendOption("What's wrong?", "Can you cook me a cake?", - "You don't look very happy.", "Nice hat."); - player.dialogueAction = 52; - break; - case 52: - sendPlayerChat("What's wrong?"); - player.nextChat = 54; - break; - case 54: - sendNpcChat3( - "Oh dear, oh dear, oh dear, I'm in a terrible terrible", - "mess! It's the Duke's birthday today, and I should be", - "making him a lovely big birthday cake!", - player.talkingNpc, "Cook"); - player.nextChat = 55; - break; - case 55: - sendNpcChat4( - "I've forgotten to buy the ingredients. I'll never get", - "them in time now. He'll sack me! What will I do? I have", - "four children and a goat to look after. Would you help", - "me? Please?", player.talkingNpc, "Cook"); - player.nextChat = 56; - break; - case 56: - sendOption("I'm always happy to help a cook in distress.", - "I can't right now, Maybe later."); - player.dialogueAction = 57; - break; - case 57: - sendPlayerChat("Yes, I'll help you.");// 9157 - player.nextChat = 60; - break; - case 58: - sendPlayerChat("I can't right now, Maybe later.");// 9158 - player.nextChat = 59; - break; - case 59: - sendNpcChat1("Oh please! Hurry then!", player.talkingNpc, "Cook"); - player.nextChat = 0; - break; - case 60: - sendNpcChat2("Oh thank you, thank you. I need milk, an egg, and", - "flour. I'd be very grateful if you can get them for me.", - player.talkingNpc, "Cook"); - player.cookAss = 1; - QuestAssistant.sendStages(player); - player.nextChat = 61; - break; - case 61: - sendPlayerChat("So where do I find these ingredients then?"); - player.nextChat = 62; - break; - case 62: - sendNpcChat3("You can find flour in any of the shops here.", - "You can find eggs by killing chickens.", - "You can find milk by using a bucket on a cow", - player.talkingNpc, "Cook"); - player.nextChat = 0; - break; - case 63: - sendNpcChat1("I don't have time for your jibber-jabber!", - player.talkingNpc, "Cook"); - player.nextChat = 0; - break; - case 64: - sendNpcChat1("Does it look like I have the time?", - player.talkingNpc, "Cook"); - player.nextChat = 0; - break; - case 65: - sendPlayerChat("You don't look so happy."); - player.nextChat = 54; - break; - case 66: - sendNpcChat1( - "How are you getting on with finding the ingredients?", - player.talkingNpc, "Cook"); - player.nextChat = 67; - break; - case 67: - if (player.getItemAssistant().playerHasItem(1944, 1) - && player.getItemAssistant().playerHasItem(1927, 1) - && player.getItemAssistant().playerHasItem(1933, 1)) { - sendPlayerChat("Here's all the items!"); - player.nextChat = 68; - } else { - sendPlayerChat("I don't have all the items yet."); - player.nextChat = 59; - } - break; - case 68: - player.getItemAssistant().deleteItem(1944, 1); - player.getItemAssistant().deleteItem(1927, 1); - player.getItemAssistant().deleteItem(1933, 1); - player.cookAss = 2; - sendNpcChat2("You brought me everything I need! I'm saved!", - "Thank you!", player.talkingNpc, "Cook"); - player.nextChat = 69; - break; - case 69: - sendPlayerChat("So do I get to go to the Duke's Party?"); - player.nextChat = 70; - break; - case 70: - sendNpcChat2( - "I'm afraid not, only the big cheeses get to dine with the", - "Duke.", player.talkingNpc, "Cook"); - player.nextChat = 72; - break; - case 72: - sendPlayerChat( - "Well, maybe one day I'll be important enough to sit on", - "the Duke's table"); - player.nextChat = 74; - break; - case 74: - sendNpcChat1("Maybe, but I won't be holding my breath.", - player.talkingNpc, "Cook"); - player.nextChat = 75; - break; - case 75: - QuestRewards.cookReward(player); - break; - case 76: - sendNpcChat1("Thanks for helping me out friend!", - player.talkingNpc, "Cook"); - player.nextChat = 0; - break; case 84: sendNpcChat1("How are you getting on finding all my supplies", player.talkingNpc, "Doric"); @@ -467,7 +334,7 @@ public class DialogueHandler { player.getItemAssistant().deleteItem(434, 6); player.getItemAssistant().deleteItem(436, 4); player.getItemAssistant().deleteItem(440, 2); - player.doricQuest = 2; + player.doricQuest = 20; sendNpcChat2("You brought me everything I need.", "Thank You!", player.talkingNpc, "Doric"); player.nextChat = 87; @@ -537,7 +404,7 @@ public class DialogueHandler { break; case 99: sendPlayerChat("Certainly, I'll be right back!"); - player.doricQuest = 1; + player.doricQuest = 10; QuestAssistant.sendStages(player); player.nextChat = 0; break; @@ -1288,7 +1155,7 @@ public class DialogueHandler { "You give the research notes to Sedridor. He gives you an air talisman.", 290, 1); player.getItemAssistant().deleteItem(290, 1); - player.runeMist = 4; + player.runeMist = 6; QuestRewards.runeFinish(player); player.nextChat = 0; break; @@ -1531,7 +1398,7 @@ public class DialogueHandler { sendStatement("You give the lad 100 coins."); player.getItemAssistant().deleteItem(995, 100); player.nextChat = 314; - player.gertCat = 2; + player.gertCat = 1; } else { sendStatement("I don't have 100 coin's I should come back."); player.nextChat = 0; @@ -1996,7 +1863,7 @@ public class DialogueHandler { player.nextChat = 407; break; case 407: - player.romeojuliet++; + player.romeojuliet = 10; QuestAssistant.sendStages(player); sendNpcChat2("Great, Juliet is just in the house west of here", "You will most likely find her upstairs.", @@ -2029,7 +1896,7 @@ public class DialogueHandler { case 413: sendNpcChat1("Take this...and go...", player.talkingNpc, "Juliet"); player.getItemAssistant().addOrDropItem(755, 1); - player.romeojuliet++; + player.romeojuliet = 20; player.nextChat = 0; break; case 414: @@ -2070,8 +1937,7 @@ public class DialogueHandler { sendNpcChat1("This is my goodbyes...Juliet...", player.talkingNpc, "Romeo"); player.nextChat = 0; - player.romeojuliet++; - player.romeojuliet++; + player.romeojuliet = 30; break; case 421: sendNpcChat1("Well have you spoken to her?", player.talkingNpc, @@ -2119,7 +1985,7 @@ public class DialogueHandler { case 430: sendNpcChat1("She'll know what to do.", player.talkingNpc, "Romeo"); player.nextChat = 0; - player.romeojuliet++; + player.romeojuliet = 40; break; case 431: sendNpcChat1("Speak to Winelda. She's south west.", @@ -2169,7 +2035,7 @@ public class DialogueHandler { "that makes anyone tell the truth.", player.talkingNpc, "Winelda"); player.nextChat = 0; - player.romeojuliet++; + player.romeojuliet = 45; break; case 441: sendNpcChat1("You need, 1 rats tail, 1 bone, and a vial of water", @@ -2216,7 +2082,7 @@ public class DialogueHandler { break; case 450: sendNpcChat1("Here take this", player.talkingNpc, "Winelda"); - player.romeojuliet++; + player.romeojuliet = 50; player.getItemAssistant().addOrDropItem(4836, 1); player.nextChat = 451; break; @@ -2292,7 +2158,7 @@ public class DialogueHandler { case 467: sendPlayerChat("I should get going"); player.nextChat = 0; - player.romeojuliet++; + player.romeojuliet = 60; break; case 468: sendNpcChat1("Wait your not going to tell Romeo are you?", @@ -2330,11 +2196,11 @@ public class DialogueHandler { sendNpcChat2("Juliet and I have been great ever", "since you've helped. Thank you adventurer", player.talkingNpc, "Romeo"); - player.romeojuliet = 9; + player.romeojuliet = 100; player.nextChat = 0; break; case 475: - if (player.romeojuliet == 8) { + if (player.romeojuliet == 60) { player.nextChat = 474; } break; @@ -2534,7 +2400,7 @@ public class DialogueHandler { break; case 510: sendNpcChat1("Cheersh, matey.", player.talkingNpc, "Doctor Harlow"); - player.vampSlayer = 2; + player.vampSlayer = 1; player.nextChat = 511; break; case 511: @@ -2581,7 +2447,7 @@ public class DialogueHandler { sendNpcChat1("Hmm, I think i have a spare hammer you can have.", player.talkingNpc, "Doctor Harlow"); player.getItemAssistant().addOrDropItem(2347, 1); - player.vampSlayer = 3; + player.vampSlayer = 2; player.nextChat = 519; break; case 519: @@ -2661,7 +2527,7 @@ public class DialogueHandler { if (player.getItemAssistant().playerHasItem(1549)) { sendPlayerChat("I still need to kill the vampire."); player.nextChat = 0; - } else if (!player.getItemAssistant().playerHasItem(1549) && player.vampSlayer == 3) { + } else if (!player.getItemAssistant().playerHasItem(1549) && player.vampSlayer == 2) { player.getItemAssistant().addOrDropItem(1549, 1); sendPlayerChat("Thank you, I will be more careful next time."); player.nextChat = 0; @@ -2943,7 +2809,7 @@ public class DialogueHandler { break; case 579:// 9157 sendPlayerChat("Ok thanks, I'll go and get it."); - player.pirateTreasure = 3; + player.pirateTreasure = 2; player.nextChat = 0; break; case 580:// 9158 @@ -3298,7 +3164,7 @@ public class DialogueHandler { break; case 653: sendPlayerChat("I'll go ask his squire and see if I can find one."); - player.knightS = 4; + player.knightS = 3; player.nextChat = 0; break; // back to squire @@ -3320,7 +3186,7 @@ public class DialogueHandler { break; case 658: sendNpcChat2("Please don't let him catch you! He MUSTN'T know", "what happened!", player.talkingNpc, "Squire"); - player.knightS = 5; + player.knightS = 4; player.nextChat = 0; break; case 659: @@ -3360,7 +3226,7 @@ public class DialogueHandler { break; case 667: sendNpcChat2("You'll need a little bit of mining experience to be able to", "find it.", player.talkingNpc, "Thurgo"); - player.knightS = 7; + player.knightS = 6; player.nextChat = 668; break; case 668: @@ -3383,13 +3249,13 @@ public class DialogueHandler { } break; case 671: - if (player.knightS == 7 || player.knightS == 8) { + if (player.knightS == 6) { sendStatement("You give the blurite ore and two bars to Thurgo. Thurgo starts", "to make the sword. Thurgo hands you a sword."); player.getItemAssistant().deleteItem(2351, 1); player.getItemAssistant().deleteItem(2351, 1); player.getItemAssistant().deleteItem(668, 1); player.getItemAssistant().addItem(667, 1); - player.knightS = 8; + player.knightS = 6; player.nextChat = 672; } else { sendNpcChat1("You are not on this part of the quest right now.", player.talkingNpc, "Thurgo"); @@ -3467,7 +3333,7 @@ public class DialogueHandler { case 684: sendStatement("You give the sword to the squire."); player.getItemAssistant().deleteItem(667, 1); - player.knightS = 8; + player.knightS = 6; player.nextChat = 685; break; case 685: @@ -3505,7 +3371,7 @@ public class DialogueHandler { case 696: sendPlayerChat("Aha! 'The Shield of Arrav'! Exactly what I was looking", "for"); player.getItemAssistant().addOrDropItem(757, 1); - player.shieldArrav = 2; + player.shieldArrav = 1; player.nextChat = 0; break; //reldo @@ -3519,7 +3385,7 @@ public class DialogueHandler { break; case 699: sendNpcChat3("If i were you I would talk to Baraek, the fur trader in", "the market place. I've heard he has connections with the", "Phoenix Gang.", player.talkingNpc, "Reldo"); - player.shieldArrav = 3; + player.shieldArrav = 2; player.nextChat = 700; break; case 700: @@ -3566,7 +3432,7 @@ public class DialogueHandler { "somewhere along there is an alleyway to the south. The", "door at the end of there is the entrance to the Phoenix", player.talkingNpc, "Baraek"); - player.shieldArrav = 4; + player.shieldArrav = 3; player.nextChat = 709; break; case 709: @@ -3589,9 +3455,9 @@ public class DialogueHandler { sendNpcChat2("Hey! You can't go in there. Only authorised personnel", "of the VTAM Corporation are allowed beyond this point.", player.talkingNpc, "Straven"); - if (player.shieldArrav < 4) + if (player.shieldArrav < 3) player.nextChat = 0; - else if (player.shieldArrav == 4) + else if (player.shieldArrav == 3) player.nextChat = 713; break; case 713: @@ -3668,7 +3534,7 @@ public class DialogueHandler { break; case 729: sendPlayerChat("Ok, I'll get right on it."); - player.shieldArrav = 5; + player.shieldArrav = 4; player.nextChat = 0; break; case 730: @@ -3721,7 +3587,7 @@ public class DialogueHandler { case 740: sendItemChat(759, 150, "", "Straven hands you a key"); player.getItemAssistant().addOrDropItem(759, 1); - player.shieldArrav = 6; + player.shieldArrav = 5; player.nextChat = 0; break; case 741: @@ -3731,7 +3597,7 @@ public class DialogueHandler { //Phoenix gang weapons chest case 742: sendStatement("You search the chest."); - if (player.getItemAssistant().playerHasItem(763) || player.shieldArrav < 6) + if (player.getItemAssistant().playerHasItem(763) || player.shieldArrav < 5) player.nextChat = 743; else player.nextChat = 744; @@ -3747,7 +3613,7 @@ public class DialogueHandler { //Curator Haig Halen case 745: sendNpcChat1("Welcome to the museum of Varrock.", player.talkingNpc, "Curator Haig Halen"); - if (player.shieldArrav == 6 && (player.getItemAssistant().playerHasItem(763) || player.getItemAssistant().playerHasItem(765))) + if (player.shieldArrav == 5 && (player.getItemAssistant().playerHasItem(763) || player.getItemAssistant().playerHasItem(765))) player.nextChat = 746; else player.nextChat = 0; @@ -3806,7 +3672,7 @@ public class DialogueHandler { case 755: sendItemChat(769, 150, "", "The curator writes out a certificate."); player.getItemAssistant().addOrDropItem(769, 1); - player.shieldArrav = 7; + player.shieldArrav = 6; player.nextChat = 0; break; //King Roald @@ -3980,49 +3846,6 @@ public class DialogueHandler { player.nextChat = 0; break; - case 1018: - sendPlayerChat("Can I come through this gate?"); - player.nextChat = 1019; - break; - case 1019: - sendNpcChat1("You must pay a toll of 10 gold coins to pass.", - player.talkingNpc, "Border Guard"); - player.nextChat = 1020; - break; - case 1020: - sendOption("Okay, I'll pay.", "Who does my money go to?", - "No thanks, I'll walk around."); - player.dialogueAction = 502; - break; - case 1022: - sendPlayerChat("Who does my money go to?"); - player.nextChat = 1023; - break; - case 1023: - sendNpcChat2("The money goes to the city of Al-Kharid.", - "Will you pay the toll?", player.talkingNpc > 0 ? player.talkingNpc : 925, "Border Guard"); - player.nextChat = 1024; - break; - case 1024: - sendOption("Okay, I'll pay.", "No thanks, I'll walk around."); - player.dialogueAction = 508; - break; - - case 1028: - sendNpcChat1("Well, you can't come through here then.", player.talkingNpc > 0 ? player.talkingNpc : 925, "Border Guard"); - player.nextChat = 0; - break; - - case 1029: - sendNpcChat1("Ok suit yourself.", player.talkingNpc > 0 ? player.talkingNpc : 925, "Border Guard"); - player.nextChat = 0; - break; - - case 1030: - sendNpcChat1("You may pass, friend of Al-Kharid.", player.talkingNpc > 0 ? player.talkingNpc : 925, "Border Guard"); - player.nextChat = 0; - break; - case 1033: sendOption( "I would like to skip tutorial Island and go to Mainland", @@ -5002,7 +4825,7 @@ public class DialogueHandler { break; case 2999: - if (!player.getItemAssistant().playerHasItem(1549) && player.vampSlayer == 3) { + if (!player.getItemAssistant().playerHasItem(1549) && player.vampSlayer == 2) { player.getItemAssistant().addOrDropItem(1549, 1); sendPlayerChat("Thank you, I will be more careful next time."); player.nextChat = 0; @@ -7432,7 +7255,7 @@ public class DialogueHandler { player.getDialogueHandler().sendNpcChat3("Dramen staves are crafted from branches of the dramen tree, so they are.", "I hear there's a dramen tree in a cave over on the", "island of Entrana...", player.talkingNpc, "Shamus"); player.nextChat = 3861; - if (player.lostCity != 3) + if (player.lostCity < 6) player.lostCity = 2; break; case 3861: diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueOptions.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueOptions.java index d06c547a..19b27dea 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueOptions.java +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/DialogueOptions.java @@ -384,9 +384,6 @@ public class DialogueOptions { } else if (player.dialogueAction == 56) { player.getDialogueHandler().sendDialogues(96, player.npcType); return; - } else if (player.dialogueAction == 57) { - player.getDialogueHandler().sendDialogues(57, player.npcType); - return; } else if (player.dialogueAction == 3222) { player.getBarrows().checkCoffins(); player.getPacketSender().closeAllWindows(); @@ -680,9 +677,6 @@ public class DialogueOptions { } else if (player.dialogueAction == 74) { player.getDialogueHandler().sendDialogues(535, player.npcType); return; - } else if (player.dialogueAction == 57) { - player.getDialogueHandler().sendDialogues(58, player.npcType); - return; } else if (player.dialogueAction == 62) { player.getDialogueHandler().sendDialogues(309, player.npcType); return; @@ -929,9 +923,6 @@ public class DialogueOptions { if (player.dialogueAction == 113) { player.getDialogueHandler().sendDialogues(3540, player.npcType); } - if (player.dialogueAction == 52) { - player.getDialogueHandler().sendDialogues(52, player.npcType); - } if (player.dialogueAction == 1000) { player.getDialogueHandler().sendDialogues(3524,player.npcType); } @@ -1002,9 +993,6 @@ public class DialogueOptions { player.getPlayerAssistant().gloryTeleport(3293, 3174, 0, "modern"); Teles.necklaces(player); } - if (player.dialogueAction == 52) { - player.getDialogueHandler().sendDialogues(64, player.npcType); - } if (player.dialogueAction == 1000) { player.getDialogueHandler().sendDialogues(3523, player.npcType); } @@ -1078,9 +1066,6 @@ public class DialogueOptions { player.getPlayerAssistant().gloryTeleport(2911, 3152, 0, "modern"); Teles.necklaces(player); } - if (player.dialogueAction == 52) { - player.getDialogueHandler().sendDialogues(65, player.npcType); - } if (player.dialogueAction == 1000) { player.getDialogueHandler().sendDialogues(3523,player.npcType); } @@ -1139,9 +1124,6 @@ public class DialogueOptions { player.getPlayerAssistant().gloryTeleport(3103, 3249, 0, "modern"); Teles.necklaces(player); } - if (player.dialogueAction == 52) { - player.getDialogueHandler().sendDialogues(63, player.npcType); - } if (player.dialogueAction == 1000) { player.getDialogueHandler().sendDialogues(3523, player.npcType); } diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Chainable.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Chainable.java new file mode 100644 index 00000000..1641a3db --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Chainable.java @@ -0,0 +1,7 @@ +package com.rs2.game.dialogues.factory; + +import java.util.function.Consumer; + +/** Chainable entry used by {@link DialogueFactory}. */ +public interface Chainable extends Consumer { +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Dialogue.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Dialogue.java new file mode 100644 index 00000000..a570f6bf --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Dialogue.java @@ -0,0 +1,17 @@ +package com.rs2.game.dialogues.factory; + +import java.util.Arrays; +import java.util.List; + +/** Astraeus dialogue base type, retained in its own package to coexist with the packet handler. */ +public abstract class Dialogue { + public static final List DIALOGUE_BUTTONS = Arrays.asList( + 2461, 2471, 2482, 2494, 2462, 2472, 2483, 2495, 2496, 2473, 2484, 2497, 2485, 2498, + 9157, 9158, 9167, 9168, 9169, 9178, 9179, 9180, 9181, 9190, 9191, 9192, 9193, 9194); + + public abstract void sendDialogues(DialogueFactory factory); + + public static boolean isDialogueButton(int button) { + return DIALOGUE_BUTTONS.contains(button); + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/DialogueFactory.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/DialogueFactory.java new file mode 100644 index 00000000..17abe3b3 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/DialogueFactory.java @@ -0,0 +1,269 @@ +package com.rs2.game.dialogues.factory; + +import com.rs2.game.dialogues.ChatEmotes; +import com.rs2.game.npcs.NpcHandler; +import com.rs2.game.players.Player; +import com.rs2.util.Misc; + +import java.util.ArrayDeque; +import java.util.Arrays; +import java.util.Objects; +import java.util.Optional; +import java.util.Queue; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * Port of Astraeus's chain-based dialogue factory, adapted to 2006Scape's + * player and packet APIs. + */ +public final class DialogueFactory { + private static final Logger logger = Logger.getLogger(DialogueFactory.class.getName()); + private static final int MAXIMUM_LENGTH = 100; + + private final Queue chain = new ArrayDeque<>(); + private final Player player; + private boolean active; + private Optional nextAction = Optional.empty(); + + public DialogueFactory(Player player) { + this.player = player; + } + + public Queue getChain() { return chain; } + public Player getPlayer() { return player; } + public boolean isActive() { return active; } + public void setActive(boolean active) { this.active = active; } + public Optional getNextAction() { return nextAction; } + public void setNextAction(Optional nextAction) { this.nextAction = nextAction; } + public boolean getActive() { return active; } + public Optional getDialogue() { return player.getDialogue(); } + public Optional getOptionDialogue() { return player.getOptionDialogue(); } + + public DialogueFactory sendDialogue(Dialogue dialogue) { + player.setDialogue(Optional.of(dialogue)); + dialogue.sendDialogues(this); + return this; + } + + public DialogueFactory onAction(Runnable action) { + setNextAction(Optional.of(action)); + return this; + } + + public DialogueFactory onNext() { + return execute(); + } + + public void executeOption(int type, Optional option) { + if (!option.isPresent() || type < 0 || type >= option.get().getActions().size()) return; + player.setOptionDialogue(Optional.empty()); + option.get().getActions().get(type).run(); + execute(); + } + + /** Routes a server button action to the active factory option, if applicable. */ + public boolean handleButton(int button) { + int option = getOptionIndex(button); + if (!active) return false; + if (player.getOptionDialogue().isPresent()) { + if (option < 0) return false; + executeOption(option, player.getOptionDialogue()); + return true; + } + if (!Dialogue.isDialogueButton(button)) return false; + onNext(); + return true; + } + + public void clear() { + chain.clear(); + nextAction = Optional.empty(); + player.setDialogue(Optional.empty()); + player.setOptionDialogue(Optional.empty()); + active = false; + } + + private DialogueFactory append(Chainable entry) { + chain.add(entry); + return this; + } + + public DialogueFactory execute() { + if (chain.peek() != null) { + Chainable entry = chain.poll(); + if (entry instanceof OptionDialogue) player.setOptionDialogue(Optional.of((OptionDialogue) entry)); + active = true; + entry.accept(this); + } else if (nextAction.isPresent()) { + Runnable action = nextAction.get(); + nextAction = Optional.empty(); + action.run(); + } else { + finish(); + } + return this; + } + + public DialogueFactory executeNoClose() { + if (chain.peek() != null) { + Chainable entry = chain.poll(); + if (entry instanceof OptionDialogue) player.setOptionDialogue(Optional.of((OptionDialogue) entry)); + active = true; + entry.accept(this); + } else if (nextAction.isPresent()) { + Runnable action = nextAction.get(); + nextAction = Optional.empty(); + action.run(); + } else { + active = false; + } + return this; + } + + private void finish() { + player.getPacketSender().closeAllWindows(); + clear(); + } + + private String appendKeywords(String line) { + if (line == null) return null; + line = line.replace("#username", player.playerName == null ? "" : Misc.capitalize(player.playerName)); + if (player.talkingNpc >= 0) { + line = line.replace("#name", NpcHandler.getNpcListName(player.talkingNpc)); + } + return line; + } + + public DialogueFactory sendPlayerChat(String... lines) { + return append(new PlayerDialogue(lines)); + } + + public DialogueFactory sendPlayerChat(Expression expression, String... lines) { + return append(new PlayerDialogue(expression, lines)); + } + + DialogueFactory sendPlayerChat(PlayerDialogue dialogue) { + String[] lines = dialogue.getLines(); + validateLength(lines); + player.getDialogueHandler().sendPlayerChat(toChatEmote(dialogue.getExpression()), + applyKeywords(lines)); + return this; + } + + public DialogueFactory sendNpcChat(String... lines) { + return append(new NpcDialogue(lines)); + } + + public DialogueFactory sendNpcChat(Expression expression, String... lines) { + return append(new NpcDialogue(expression, lines)); + } + + public DialogueFactory sendNpcChat(int id, String... lines) { + return append(new NpcDialogue(id, lines)); + } + + public DialogueFactory sendNpcChat(int id, Expression expression, String... lines) { + return append(new NpcDialogue(id, expression, lines)); + } + + DialogueFactory sendNpcChat(NpcDialogue dialogue) { + int npcId = dialogue.getId() == -1 ? player.talkingNpc : dialogue.getId(); + if (npcId < 0) { + logger.log(Level.WARNING, "Cannot display NPC dialogue without an NPC id."); + return this; + } + player.talkingNpc = npcId; + String[] lines = dialogue.getLines(); + validateLength(lines); + player.getDialogueHandler().sendNpcChat(npcId, + toChatEmote(dialogue.getExpression()), applyKeywords(lines)); + return this; + } + + public DialogueFactory sendOption(String option1, Runnable action1, String option2, + Runnable action2) { + return append(new OptionDialogue(option1, action1, option2, action2)); + } + + public DialogueFactory sendOption(String option1, Runnable action1, String option2, + Runnable action2, String option3, Runnable action3) { + return append(new OptionDialogue(option1, action1, option2, action2, option3, action3)); + } + + public DialogueFactory sendOption(String option1, Runnable action1, String option2, + Runnable action2, String option3, Runnable action3, + String option4, Runnable action4) { + return append(new OptionDialogue(option1, action1, option2, action2, + option3, action3, option4, action4)); + } + + public DialogueFactory sendOption(String option1, Runnable action1, String option2, + Runnable action2, String option3, Runnable action3, + String option4, Runnable action4, String option5, + Runnable action5) { + return append(new OptionDialogue(option1, action1, option2, action2, + option3, action3, option4, action4, option5, action5)); + } + + DialogueFactory sendOption(OptionDialogue dialogue) { + String[] options = dialogue.getLines(); + validateLength(options); + player.getDialogueHandler().sendOption(applyKeywords(options)); + return this; + } + + public DialogueFactory sendStatement(String... lines) { + validateLength(lines); + return append(new StatementDialogue(lines)); + } + + DialogueFactory sendStatement(StatementDialogue dialogue) { + validateLength(dialogue.getLines()); + String[] lines = applyKeywords(dialogue.getLines()); + if (lines.length <= 4) { + player.getDialogueHandler().sendStatement(lines); + } else if (lines.length == 5) { + int[] childIds = {375, 376, 377, 378, 379}; + for (int i = 0; i < lines.length; i++) { + player.getPacketSender().sendString(lines[i], childIds[i]); + } + player.getPacketSender().sendString("Click here to continue", 380); + player.getPacketSender().sendChatInterface(374); + } else { + logger.log(Level.SEVERE, "Invalid statement dialogue line length: " + lines.length); + } + return this; + } + + private ChatEmotes toChatEmote(Expression expression) { + for (ChatEmotes emote : ChatEmotes.values()) { + if (ChatEmotes.getAnimId(emote) == expression.getId()) return emote; + } + return ChatEmotes.DEFAULT; + } + + private String[] applyKeywords(String[] lines) { + return Arrays.stream(lines).map(this::appendKeywords).toArray(String[]::new); + } + + private void validateLength(String... text) { + if (Arrays.stream(text).filter(Objects::nonNull).anyMatch(line -> line.length() > MAXIMUM_LENGTH)) { + throw new IllegalStateException("Dialogue length too long, maximum length is: " + MAXIMUM_LENGTH); + } + } + + private int getOptionIndex(int button) { + switch (button) { + case 9157: case 9167: case 9178: case 9190: + case 2461: case 2471: case 2482: case 2494: return 0; + case 9158: case 9168: case 9179: case 9191: + case 2462: case 2472: case 2483: case 2495: return 1; + case 9169: case 9180: case 9192: + case 2473: case 2484: case 2496: return 2; + case 9181: case 9193: case 2485: case 2497: return 3; + case 9194: case 2498: return 4; + default: return -1; + } + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Expression.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Expression.java new file mode 100644 index 00000000..14507252 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/Expression.java @@ -0,0 +1,21 @@ +package com.rs2.game.dialogues.factory; + +/** Chat-head expressions, ported from Astraeus. */ +public enum Expression { + HAPPY(588), ANXIOUS(589), CALM_TALK(590), DEFAULT(591), EVIL(592), BAD(593), WICKED(594), + ANNOYED(595), DISTRESSED(596), AFFLICTED(597), DRUNK_LEFT(600), DRUNK_RIGHT(601), + NOT_INTERESTED(602), SLEEPY(603), PLAIN_EVIL(604), LAUGH(605), SNIGGER(606), HAVE_FUN(607), + GUFFAW(608), EVIL_LAUGH_SHORT(609), SLIGHTLY_SAD(610), SAD(599), VERY_SAD(611), + ON_ONE_HAND(612), ALMOST_CRYING(598), NEARLY_CRYING(613), ANGRY(614), FURIOUS(615), + ENRAGED(616), MAD(617); + + private final int id; + + Expression(int id) { + this.id = id; + } + + public int getId() { + return id; + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/NpcDialogue.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/NpcDialogue.java new file mode 100644 index 00000000..c1ee649e --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/NpcDialogue.java @@ -0,0 +1,37 @@ +package com.rs2.game.dialogues.factory; + +/** Chainable dialogue spoken by an NPC. */ +public final class NpcDialogue implements Chainable { + private int id = -1; + private final Expression expression; + private final String[] lines; + + public NpcDialogue(String... lines) { + this(Expression.DEFAULT, lines); + } + + public NpcDialogue(Expression expression, String... lines) { + this.expression = expression; + this.lines = lines; + } + + public NpcDialogue(int id, String... lines) { + this(id, Expression.DEFAULT, lines); + } + + public NpcDialogue(int id, Expression expression, String... lines) { + this.id = id; + this.expression = expression; + this.lines = lines; + } + + public int getId() { return id; } + public void setId(int id) { this.id = id; } + public Expression getExpression() { return expression; } + public String[] getLines() { return lines; } + + @Override + public void accept(DialogueFactory factory) { + factory.sendNpcChat(this); + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/OptionDialogue.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/OptionDialogue.java new file mode 100644 index 00000000..f069e808 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/OptionDialogue.java @@ -0,0 +1,44 @@ +package com.rs2.game.dialogues.factory; + +import java.util.ArrayList; +import java.util.List; + +/** Chainable option list and its associated actions. */ +public final class OptionDialogue implements Chainable { + private final String[] lines; + private final List actions = new ArrayList<>(); + + public OptionDialogue(String option1, Runnable action1, String option2, Runnable action2) { + this(new String[]{option1, option2}, action1, action2); + } + + public OptionDialogue(String option1, Runnable action1, String option2, Runnable action2, + String option3, Runnable action3) { + this(new String[]{option1, option2, option3}, action1, action2, action3); + } + + public OptionDialogue(String option1, Runnable action1, String option2, Runnable action2, + String option3, Runnable action3, String option4, Runnable action4) { + this(new String[]{option1, option2, option3, option4}, action1, action2, action3, action4); + } + + public OptionDialogue(String option1, Runnable action1, String option2, Runnable action2, + String option3, Runnable action3, String option4, Runnable action4, + String option5, Runnable action5) { + this(new String[]{option1, option2, option3, option4, option5}, action1, action2, + action3, action4, action5); + } + + private OptionDialogue(String[] lines, Runnable... actions) { + this.lines = lines; + for (Runnable action : actions) this.actions.add(action); + } + + public String[] getLines() { return lines; } + public List getActions() { return actions; } + + @Override + public void accept(DialogueFactory factory) { + factory.sendOption(this); + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/PlayerDialogue.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/PlayerDialogue.java new file mode 100644 index 00000000..547dc8cb --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/PlayerDialogue.java @@ -0,0 +1,24 @@ +package com.rs2.game.dialogues.factory; + +/** Chainable dialogue spoken by the player. */ +public class PlayerDialogue implements Chainable { + private final Expression expression; + private final String[] lines; + + public PlayerDialogue(String... lines) { + this(Expression.DEFAULT, lines); + } + + public PlayerDialogue(Expression expression, String... lines) { + this.expression = expression; + this.lines = lines; + } + + public Expression getExpression() { return expression; } + public String[] getLines() { return lines; } + + @Override + public void accept(DialogueFactory factory) { + factory.sendPlayerChat(this); + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/StatementDialogue.java b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/StatementDialogue.java new file mode 100644 index 00000000..c992c3c5 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/dialogues/factory/StatementDialogue.java @@ -0,0 +1,17 @@ +package com.rs2.game.dialogues.factory; + +/** Chainable statement without character heads. */ +public class StatementDialogue implements Chainable { + private final String[] lines; + + public StatementDialogue(String... lines) { + this.lines = lines; + } + + public String[] getLines() { return lines; } + + @Override + public void accept(DialogueFactory factory) { + factory.sendStatement(this); + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/ClimbOther.java b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/ClimbOther.java index a86a0527..d5b4c49b 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/ClimbOther.java +++ b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/ClimbOther.java @@ -48,8 +48,13 @@ public class ClimbOther { player.stopMovement(); player.startAnimation(827); player.getPacketSender().closeAllWindows(); - player.teleportToX = player.absX; - player.teleportToY = player.absY + 6400; + if (player.objectX == 3097 && player.objectY == 3468) { + player.teleportToX = 3096; + player.teleportToY = 9867; + } else { + player.teleportToX = player.absX; + player.teleportToY = player.absY + 6400; + } player.getPacketSender().sendMessage("You climb down the " + objectName.toLowerCase() + "."); player.climbDelay = System.currentTimeMillis(); } diff --git a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/Doors.java b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/Doors.java index 9aac925f..8bfeca96 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/Doors.java +++ b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/Doors.java @@ -14,6 +14,9 @@ import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import java.util.Scanner; +import com.rs2.world.clip.Region; + +import static com.rs2.game.content.StaticObjectList.*; public class Doors { @@ -48,10 +51,10 @@ public class Doors { this.open = open; } - private Doors getDoor(int id, int x, int y, int z) { + public Doors getDoor(int id, int x, int y, int z) { for (Doors d : doors) { - if (d.doorId == id) { - if (d.doorX == x && d.doorY == y && d.doorZ == z) { + if ((d.doorId == id || d.originalId == id) && d.doorZ == z) { + if ((d.doorX == x && d.doorY == y) || (d.originalX == x && d.originalY == y)) { return d; } } @@ -59,6 +62,15 @@ public class Doors { return null; } + public boolean canReachDoor(Player player, int id, int x, int y, int z) { + Doors d = getDoor(id, x, y, z); + if (d == null) { + return false; + } + return player.distanceToPoint(d.doorX, d.doorY) <= 1 + || player.distanceToPoint(d.originalX, d.originalY) <= 1; + } + public boolean handleDoor(Player player, int id, int x, int y, int z) { Doors d = getDoor(id, x, y, z); @@ -67,14 +79,12 @@ public class Doors { return DoubleDoors.getSingleton().handleDoor(player, id, x, y, z); } - //todo: improvment: if player manage to get to door then open the door. - if (player.distanceToPoint(x, y) > 1) { - //System.out.println("Door (single): " + id + " not in distance debug at x: " + x + " y: " + y + "."); + if (!canReachDoor(player, id, x, y, z)) { return false; } - //Remove clipping for old door (gets added back in placeObject) - //Region.removeClipping(x, y, z); + //Remove clipping for old door + Region.removeObject(d.doorId, d.doorX, d.doorY, d.doorZ, d.type, d.currentFace); int xAdjustment = 0, yAdjustment = 0; if (d.type == 0) { @@ -135,23 +145,41 @@ public class Doors { d.doorX = d.originalX; d.doorY = d.originalY; } - if (d.doorId == d.originalId) { - if (d.open == 0) { - d.doorId += 1; - } else if (d.open == 1) { - d.doorId -= 1; - } - } else if (d.doorId != d.originalId) { - if (d.open == 0) { - d.doorId -= 1; - } else if (d.open == 1) { - d.doorId += 1; - } - } - GameEngine.objectHandler.placeObject(new Objects(d.doorId, d.doorX, d.doorY, d.doorZ, getNextFace(d), d.type, 0)); + d.doorId = getToggledDoorId(d); + int nextFace = getNextFace(d); + GameEngine.objectHandler.placeObject(new Objects(d.doorId, d.doorX, d.doorY, d.doorZ, nextFace, d.type, 0)); + Region.addObject(d.doorId, d.doorX, d.doorY, d.doorZ, d.type, nextFace, false); return true; } + private int getToggledDoorId(Doors d) { + if (d.doorId != d.originalId) { + return d.originalId; + } + switch (d.originalId) { + case DOOR: + return DOOR_1531; + case DOOR_59: + return DOOR_1534; + case DOOR_2556: + return DOOR_1537; + case LARGE_DOOR_1508: + return LARGE_DOOR_1511; + case LARGE_DOOR_1511: + return LARGE_DOOR_1508; + case LARGE_DOOR_1512: + return LARGE_DOOR_1515; + case LARGE_DOOR_1515: + return LARGE_DOOR_1512; + case LARGE_DOOR_1513: + return LARGE_DOOR_1514; + case LARGE_DOOR_1514: + return LARGE_DOOR_1513; + default: + return (d.open == 0) ? (d.doorId + 1) : (d.doorId - 1); + } + } + private int getNextFace(Doors d) { int f = d.originalFace; if (d.type == 0) { diff --git a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleDoors.java b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleDoors.java index 4e1d3ead..993b68c3 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleDoors.java +++ b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleDoors.java @@ -14,6 +14,9 @@ import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import java.util.Scanner; +import com.rs2.world.clip.Region; + +import static com.rs2.game.content.StaticObjectList.*; /** * @author Killamess @@ -37,10 +40,10 @@ public class DoubleDoors { doorFile = new File(file); } - private DoubleDoors getDoor(int id, int x, int y, int z) { + public DoubleDoors getDoor(int id, int x, int y, int z) { for (DoubleDoors d : doors) { - if (d.doorId == id) { - if (d.x == x && d.y == y && d.z == z) { + if ((d.doorId == id || d.originalId == id) && d.z == z) { + if ((d.x == x && d.y == y) || (d.originalX == x && d.originalY == y)) { return d; } } @@ -48,6 +51,15 @@ public class DoubleDoors { return null; } + public boolean canReachDoor(Player player, int id, int x, int y, int z) { + DoubleDoors d = getDoor(id, x, y, z); + if (d == null) { + return false; + } + return player.distanceToPoint(d.x, d.y) <= 1 + || player.distanceToPoint(d.originalX, d.originalY) <= 1; + } + public boolean handleDoor(Player player, int id, int x, int y, int z) { DoubleDoors doorClicked = getDoor(id, x, y, z); @@ -56,6 +68,9 @@ public class DoubleDoors { //GameEngine.objectHandler.placeObject(new Objects(-1, x, y, z, 0, 0, 0)); return true; } + if (!canReachDoor(player, id, x, y, z)) { + return false; + } if (doorClicked.doorId > 15000) { // System.out.println("Door: " + id + " clicking debug x: " + x + " y: " + y + "."); return true; //nearly all of these are not opened @@ -85,8 +100,9 @@ public class DoubleDoors { changeRightDoor(eastDoor); } } else if (doorClicked.originalFace == 2) { - DoubleDoors lowerDoor = getDoor(id - 3, x, y + 1, z); - DoubleDoors upperDoor = getDoor(id + 3, x, y - 1, z); + int step = isAdjacentDoubleDoorId(id) ? ADJACENT_PAIR_STEP : DEFAULT_PAIR_STEP; + DoubleDoors lowerDoor = getDoor(id - step, x, y + 1, z); + DoubleDoors upperDoor = getDoor(id + step, x, y - 1, z); if (lowerDoor != null) { changeLeftDoor(lowerDoor); changeRightDoor(doorClicked); @@ -175,6 +191,7 @@ public class DoubleDoors { xAdjustment = -1; } } + Region.removeObject(d.doorId, d.x, d.y, d.z, 0, d.currentFace); if (xAdjustment != 0 || yAdjustment != 0) { GameEngine.objectHandler.placeObject(new Objects(-1, d.x, d.y, d.z, 0, 0, 0)); } @@ -186,20 +203,10 @@ public class DoubleDoors { d.x = d.originalX; d.y = d.originalY; } - if (d.doorId == d.originalId) { - if (d.open == 0) { - d.doorId += 1; - } else if (d.open == 1) { - d.doorId -= 1; - } - } else if (d.doorId != d.originalId) { - if (d.open == 0) { - d.doorId = d.originalId; - } else if (d.open == 1) { - d.doorId = d.originalId; - } - } - GameEngine.objectHandler.placeObject(new Objects(d.doorId, d.x, d.y, d.z, getNextLeftFace(d), 0, 0)); + updateDoorId(d); + int nextFace = getNextLeftFace(d); + GameEngine.objectHandler.placeObject(new Objects(d.doorId, d.x, d.y, d.z, nextFace, 0, 0)); + Region.addObject(d.doorId, d.x, d.y, d.z, 0, nextFace, false); } private int getNextLeftFace(DoubleDoors d) { @@ -258,6 +265,7 @@ public class DoubleDoors { xAdjustment = -1; } } + Region.removeObject(d.doorId, d.x, d.y, d.z, 0, d.currentFace); if (xAdjustment != 0 || yAdjustment != 0) { GameEngine.objectHandler.placeObject(new Objects(-1, d.x, d.y, d.z, 0, 0, 0)); } @@ -269,20 +277,10 @@ public class DoubleDoors { d.x = d.originalX; d.y = d.originalY; } - if (d.doorId == d.originalId) { - if (d.open == 0) { - d.doorId += 1; - } else if (d.open == 1) { - d.doorId -= 1; - } - } else if (d.doorId != d.originalId) { - if (d.open == 0) { - d.doorId = d.originalId; - } else if (d.open == 1) { - d.doorId = d.originalId; - } - } - GameEngine.objectHandler.placeObject(new Objects(d.doorId, d.x, d.y, d.z, getNextRightFace(d), 0, 0)); + updateDoorId(d); + int nextFace = getNextRightFace(d); + GameEngine.objectHandler.placeObject(new Objects(d.doorId, d.x, d.y, d.z, nextFace, 0, 0)); + Region.addObject(d.doorId, d.x, d.y, d.z, 0, nextFace, false); } private int getNextRightFace(DoubleDoors d) { @@ -350,6 +348,28 @@ public class DoubleDoors { return false; } + private static final int ADJACENT_PAIR_STEP = 1; + private static final int DEFAULT_PAIR_STEP = 3; + private static final int ADJACENT_OPEN_ID_STEP = 2; + private static final int DEFAULT_OPEN_ID_STEP = 1; + + private static boolean isAdjacentDoubleDoorId(int id) { + return id == DOOR_14751 || id == DOOR_14752 || id == DOOR_14753 || id == DOOR_14754; + } + + private static void updateDoorId(DoubleDoors d) { + int idStep = isAdjacentDoubleDoorId(d.originalId) ? ADJACENT_OPEN_ID_STEP : DEFAULT_OPEN_ID_STEP; + if (d.doorId == d.originalId) { + if (d.open == 0) { + d.doorId += idStep; + } else if (d.open == 1) { + d.doorId -= idStep; + } + } else { + d.doorId = d.originalId; + } + } + //Have not found any others yet. Maybe only 1 type of double //doors exist to operate. private static final int[] OPEN_DOORS = { diff --git a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleGates.java b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleGates.java index 4d7d5abe..5d56318f 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleGates.java +++ b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/DoubleGates.java @@ -2,6 +2,8 @@ package com.rs2.game.globalworldobjects; import com.rs2.game.players.Player; +import static com.rs2.game.content.StaticObjectList.*; + /** * Aug 24, 2017 : 4:20:18 AM * DoubleGates.java @@ -11,220 +13,228 @@ public class DoubleGates extends GateHandler { public void useDoubleGate(Player player, int objectId) { switch (objectId) { - case 7049: + case GATE_7049: + case GATE_7051: if ((player.objectX == 3052 || player.objectX == 3053) && player.objectY >= 3283 && player.objectY <= 3285) { - handleWoodenGate(player, 7049, 7050, 3052, 3284, 3052, 3285, 3052, 3283, 3053, 3283, 2); + handleWoodenGate(player, GATE_7049, GATE_7050, 3052, 3284, 3052, 3285, 3052, 3283, 3053, 3283, 2); } else if ((player.objectX == 3052 || player.objectX == 3053) && player.objectY >= 3299 && player.objectY <= 3301) { - handleWoodenGate(player, 7049, 7050, 3052, 3300, 3052, 3301, 3052, 3299, 3053, 3299, 2); + handleWoodenGate(player, GATE_7049, GATE_7050, 3052, 3300, 3052, 3301, 3052, 3299, 3053, 3299, 2); } else if (player.objectX > 3030 && player.objectX < 3033) { - handleWoodenGate(player, 7049, 7050, 3031, 3314, 3031, 3315, 3031, 3313, 3032, 3313, 2); + handleWoodenGate(player, GATE_7049, GATE_7050, 3031, 3314, 3031, 3315, 3031, 3313, 3032, 3313, 2); } else if (player.objectY > 3304 && player.objectY < 3307) { - handleWoodenGate(player, 7049, 7050, 3020, 3305, 3019, 3305, 3021, 3305, 3021, 3306, 1); + handleWoodenGate(player, GATE_7049, GATE_7050, 3020, 3305, 3019, 3305, 3021, 3305, 3021, 3306, 1); } else if (player.objectY > 3299 && player.objectY < 3302) { - handleWoodenGate(player, 7049, 7050, 3020, 3300, 3019, 3300, 3021, 3300, 3021, 3301, 1); + handleWoodenGate(player, GATE_7049, GATE_7050, 3020, 3300, 3019, 3300, 3021, 3300, 3021, 3301, 1); } else { - handleWoodenGate(player, 7049, 7050, 3077, 3259, 3077, 3260, 3077, 3258, 3078, 3258, 2); + handleWoodenGate(player, GATE_7049, GATE_7050, 3077, 3259, 3077, 3260, 3077, 3258, 3078, 3258, 2); } break; - case 7050: + case GATE_7050: + case GATE_7052: if ((player.objectX == 3052 || player.objectX == 3053) && player.objectY >= 3283 && player.objectY <= 3285) { - handleWoodenGate(player, 7050, 7049, 3052, 3285, 3052, 3284, 3053, 3283, 3052, 3283, 2); + handleWoodenGate(player, GATE_7050, GATE_7049, 3052, 3285, 3052, 3284, 3053, 3283, 3052, 3283, 2); } else if (player.objectY > 3299 && player.objectY < 3302) { - handleWoodenGate(player, 7049, 7050, 3019, 3300, 3020, 3300, 3021, 3301, 3021, 3300, 1); + handleWoodenGate(player, GATE_7049, GATE_7050, 3019, 3300, 3020, 3300, 3021, 3301, 3021, 3300, 1); } else if (player.objectY > 3304 && player.objectY < 3307) { - handleWoodenGate(player, 7050, 7049, 3019, 3305, 3020, 3305, 3021, 3306, 3021, 3305, 1); + handleWoodenGate(player, GATE_7050, GATE_7049, 3019, 3305, 3020, 3305, 3021, 3306, 3021, 3305, 1); } else if ((player.objectX == 3052 || player.objectX == 3053) && player.objectY >= 3299 && player.objectY <= 3301) { - handleWoodenGate(player, 7050, 7049, 3052, 3301, 3052, 3300, 3053, 3299, 3052, 3299, 2); + handleWoodenGate(player, GATE_7050, GATE_7049, 3052, 3301, 3052, 3300, 3053, 3299, 3052, 3299, 2); } else if (player.objectX > 3030 && player.objectX < 3033) { - handleWoodenGate(player, 7050, 7049, 3031, 3315, 3031, 3314, 3032, 3313, 3031, 3313, 2); + handleWoodenGate(player, GATE_7050, GATE_7049, 3031, 3315, 3031, 3314, 3032, 3313, 3031, 3313, 2); } else { - handleWoodenGate(player, 7049, 7050, 3077, 3259, 3077, 3260, 3077, 3258, 3078, 3258, 2); + handleWoodenGate(player, GATE_7049, GATE_7050, 3077, 3259, 3077, 3260, 3077, 3258, 3078, 3258, 2); } break; - case 1598: - handleWoodenGate(player, 1598, 1599, 3319, 3467, 3318, 3467, 3320, 3467, 3320, 3468, 1); + case GATE_1598: + handleWoodenGate(player, GATE_1598, GATE_1599, 3319, 3467, 3318, 3467, 3320, 3467, 3320, 3468, 1); break; - case 1599: - handleWoodenGate(player, 1599, 1598, 3318, 3467, 3319, 3467, 3320, 3468, 3320, 3467, 1); + case GATE_1599: + handleWoodenGate(player, GATE_1599, GATE_1598, 3318, 3467, 3319, 3467, 3320, 3468, 3320, 3467, 1); break; - case 3197: - handleWoodenGate(player, 3197, 3198, 3311, 3234, 3310, 3234, 3312, 3234, 3312, 3235, 1); + case GATE_3197: + handleWoodenGate(player, GATE_3197, GATE_3198, 3311, 3234, 3310, 3234, 3312, 3234, 3312, 3235, 1); break; - case 3198: - handleWoodenGate(player, 3198, 3197, 3310, 3234, 3311, 3234, 3312, 3235, 3312, 3234, 1); + case GATE_3198: + handleWoodenGate(player, GATE_3198, GATE_3197, 3310, 3234, 3311, 3234, 3312, 3235, 3312, 3234, 1); break; - case 1551: + case GATE_1551: + case GATE_1552: if (player.objectX > 3179 && player.objectX < 3182) { - handleWoodenGate(player, 1551, 1553, 3181, 3288, 3181, 3287, 3181, 3289, 3180, 3289, 0); + handleWoodenGate(player, GATE_1551, GATE_1553, 3181, 3288, 3181, 3287, 3181, 3289, 3180, 3289, 0); } else if (player.objectX > 2922 && player.objectX < 2925) { - handleWoodenGate(player, 1551, 1553, 2924, 3291, 2924, 3290, 2924, 3292, 2923, 3292, 0); + handleWoodenGate(player, GATE_1551, GATE_1553, 2924, 3291, 2924, 3290, 2924, 3292, 2923, 3292, 0); } else if (player.objectX > 3078 && player.objectX < 3081) { - handleWoodenGate(player, 1551, 1553, 3080, 3500, 3080, 3499, 3080, 3501, 3079, 3501, 0); + handleWoodenGate(player, GATE_1551, GATE_1553, 3080, 3500, 3080, 3499, 3080, 3501, 3079, 3501, 0); } else if (player.objectX > 3161 && player.objectX < 3164) { - handleWoodenGate(player, 1551, 1553, 3163, 3289, 3163, 3288, 3163, 3290, 3162, 3290, 0); + handleWoodenGate(player, GATE_1551, GATE_1553, 3163, 3289, 3163, 3288, 3163, 3290, 3162, 3290, 0); } else if (player.objectY > 3290 && player.objectY < 3294) { - handleWoodenGate(player, 1551, 1553, 3145, 3292, 3145, 3293, 3145, 3291, 3146, 3291, 2); + handleWoodenGate(player, GATE_1551, GATE_1553, 3145, 3292, 3145, 3293, 3145, 3291, 3146, 3291, 2); } else if (player.objectY > 3272 && player.objectY < 3275) { - handleWoodenGate(player, 1551, 1553, 3106, 3273, 3105, 3273, 3107, 3273, 3107, 3274, 1); + handleWoodenGate(player, GATE_1551, GATE_1553, 3106, 3273, 3105, 3273, 3107, 3273, 3107, 3274, 1); } else if (player.objectY > 3265 && player.objectY < 3268) { - handleWoodenGate(player, 1551, 1553, 3252, 3266, 3251, 3266, 3253, 3266, 3253, 3267, 1); + handleWoodenGate(player, GATE_1551, GATE_1553, 3252, 3266, 3251, 3266, 3253, 3266, 3253, 3267, 1); } else if (player.objectY > 3283 && player.objectY < 3286) { - handleWoodenGate(player, 1551, 1553, 3237, 3285, 3238, 3285, 3236, 3285, 3236, 3284, 5); + handleWoodenGate(player, GATE_1551, GATE_1553, 3237, 3285, 3238, 3285, 3236, 3285, 3236, 3284, 5); } else if (player.objectY > 3294 && player.objectY < 3297) { - handleWoodenGate(player, 1551, 1553, 3237, 3296, 3238, 3296, 3236, 3296, 3236, 3295, 5); + handleWoodenGate(player, GATE_1551, GATE_1553, 3237, 3296, 3238, 3296, 3236, 3296, 3236, 3295, 5); } else if (player.objectY > 3300 && player.objectY < 3303) { - handleWoodenGate(player, 1551, 1553, 3240, 3301, 3239, 3301, 3241, 3301, 3241, 3302, 1); + handleWoodenGate(player, GATE_1551, GATE_1553, 3240, 3301, 3239, 3301, 3241, 3301, 3241, 3302, 1); } else if (player.objectX > 3260 & player.objectX < 3263) { - handleWoodenGate(player, 1551, 1553, 3261, 3322, 3261, 3323, 3261, 3321, 3262, 3321, 2); + handleWoodenGate(player, GATE_1551, GATE_1553, 3261, 3322, 3261, 3323, 3261, 3321, 3262, 3321, 2); } else if (player.objectY > 3348 && player.objectY < 3351) { - handleWoodenGate(player, 1551, 1553, 2676, 3350, 2677, 3350, 2675, 3350, 2675, 3349, 5); + handleWoodenGate(player, GATE_1551, GATE_1553, 2676, 3350, 2677, 3350, 2675, 3350, 2675, 3349, 5); } else if (player.objectY > 3313 && player.objectY < 3318) { - handleWoodenGate(player, 1551, 1553, 3174, 3314, 3174, 3315, 3175, 3316, 3174, 3316, 4); + handleWoodenGate(player, GATE_1551, GATE_1553, 3174, 3314, 3174, 3315, 3175, 3316, 3174, 3316, 4); } else if (player.objectY > 3442 && player.objectY < 3445) { - handleWoodenGate(player, 1551, 1553, 2767, 3444, 2768, 3444, 2766, 3444, 2766, 3443, 5); + handleWoodenGate(player, GATE_1551, GATE_1553, 2767, 3444, 2768, 3444, 2766, 3444, 2766, 3443, 5); } else { - handleWoodenGate(player, 1551, 1553, 3198, 3281, 3198, 3280, 3198, 3282, 3197, 3282, 0); + handleWoodenGate(player, GATE_1551, GATE_1553, 3198, 3281, 3198, 3280, 3198, 3282, 3197, 3282, 0); } break; - case 1553: + case GATE_1553: + case GATE_1556: if (player.objectX > 3179 && player.objectX < 3182) { - handleWoodenGate(player, 1553, 1551, 3181, 3287, 3181, 3288, 3180, 3289, 3181, 3289, 0); + handleWoodenGate(player, GATE_1553, GATE_1551, 3181, 3287, 3181, 3288, 3180, 3289, 3181, 3289, 0); } else if (player.objectX > 2922 && player.objectX < 2925) { - handleWoodenGate(player, 1553, 1551, 2924, 3290, 2924, 3291, 2923, 3292, 2924, 3292, 0); + handleWoodenGate(player, GATE_1553, GATE_1551, 2924, 3290, 2924, 3291, 2923, 3292, 2924, 3292, 0); } else if (player.objectY > 3442 && player.objectY < 3445) { - handleWoodenGate(player, 1553, 1551, 2768, 3444, 2767, 3444, 2766, 3443, 2766, 3444, 5); + handleWoodenGate(player, GATE_1553, GATE_1551, 2768, 3444, 2767, 3444, 2766, 3443, 2766, 3444, 5); } else if (player.objectX > 3078 && player.objectX < 3081) { - handleWoodenGate(player, 1553, 1551, 3080, 3499, 3080, 3500, 3079, 3501, 3080, 3501, 0); + handleWoodenGate(player, GATE_1553, GATE_1551, 3080, 3499, 3080, 3500, 3079, 3501, 3080, 3501, 0); } else if (player.objectX > 3161 && player.objectX < 3164) { - handleWoodenGate(player, 1553, 1551, 3163, 3288, 3163, 3289, 3162, 3290, 3163, 3290, 0); + handleWoodenGate(player, GATE_1553, GATE_1551, 3163, 3288, 3163, 3289, 3162, 3290, 3163, 3290, 0); } else if (player.objectY > 3290 && player.objectY < 3294) { - handleWoodenGate(player, 1553, 1551, 3145, 3293, 3145, 3292, 3146, 3291, 3145, 3291, 2); + handleWoodenGate(player, GATE_1553, GATE_1551, 3145, 3293, 3145, 3292, 3146, 3291, 3145, 3291, 2); } else if (player.objectY > 3272 && player.objectY < 3275) { - handleWoodenGate(player, 1553, 1551, 3105, 3273, 3106, 3273, 3107, 3274, 3107, 3273, 1); + handleWoodenGate(player, GATE_1553, GATE_1551, 3105, 3273, 3106, 3273, 3107, 3274, 3107, 3273, 1); } else if (player.objectY > 3265 && player.objectY < 3268) { - handleWoodenGate(player, 1553, 1551, 3251, 3266, 3252, 3266, 3253, 3267, 3253, 3266, 1); + handleWoodenGate(player, GATE_1553, GATE_1551, 3251, 3266, 3252, 3266, 3253, 3267, 3253, 3266, 1); } else if (player.objectY > 3283 && player.objectY < 3286) { - handleWoodenGate(player, 1553, 1551, 3238, 3285, 3237, 3285, 3236, 3284, 3236, 3285, 5); + handleWoodenGate(player, GATE_1553, GATE_1551, 3238, 3285, 3237, 3285, 3236, 3284, 3236, 3285, 5); } else if (player.objectY > 3294 && player.objectY < 3297) { - handleWoodenGate(player, 1553, 1551, 3238, 3296, 3237, 3296, 3236, 3295, 3236, 3296, 5); + handleWoodenGate(player, GATE_1553, GATE_1551, 3238, 3296, 3237, 3296, 3236, 3295, 3236, 3296, 5); } else if (player.objectY > 3300 && player.objectY < 3303) { - handleWoodenGate(player, 1553, 1551, 3239, 3301, 3240, 3301, 3241, 3302, 3241, 3301, 1); + handleWoodenGate(player, GATE_1553, GATE_1551, 3239, 3301, 3240, 3301, 3241, 3302, 3241, 3301, 1); } else if (player.objectX > 3260 & player.objectX < 3263) { - handleWoodenGate(player, 1553, 1551, 3261, 3323, 3261, 3322, 3262, 3321, 3261, 3321, 2); + handleWoodenGate(player, GATE_1553, GATE_1551, 3261, 3323, 3261, 3322, 3262, 3321, 3261, 3321, 2); } else if (player.objectY > 3348 && player.objectY < 3351) { - handleWoodenGate(player, 1553, 1551, 2677, 3350, 2676, 3350, 2675, 3349, 2675, 3350, 5); + handleWoodenGate(player, GATE_1553, GATE_1551, 2677, 3350, 2676, 3350, 2675, 3349, 2675, 3350, 5); } else if (player.objectY > 3313 && player.objectY < 3318) { - handleWoodenGate(player, 1553, 1551, 3174, 3315, 3174, 3314, 3174, 3316, 3175, 3316, 4); + handleWoodenGate(player, GATE_1553, GATE_1551, 3174, 3315, 3174, 3314, 3174, 3316, 3175, 3316, 4); } else { - handleWoodenGate(player, 1553, 1551, 3198, 3280, 3198, 3281, 3197, 3282, 3198, 3282, 0); + handleWoodenGate(player, GATE_1553, GATE_1551, 3198, 3280, 3198, 3281, 3197, 3282, 3198, 3282, 0); } break; - case 12986: + case GATE_12986: + case GATE_12988: if (player.objectX > 3187 && player.objectX < 3190) { - handleWoodenGate(player, 12986, 12987, 3188, 3280, 3188, 3281, 3188, 3279, 3189, 3279, 2); + handleWoodenGate(player, GATE_12986, GATE_12987, 3188, 3280, 3188, 3281, 3188, 3279, 3189, 3279, 2); } else if (player.objectY > 3267 && player.objectY < 3270) { - handleWoodenGate(player, 12986, 12987, 3185, 3268, 3184, 3268, 3186, 3268, 3186, 3269, 1); + handleWoodenGate(player, GATE_12986, GATE_12987, 3185, 3268, 3184, 3268, 3186, 3268, 3186, 3269, 1); } else { - handleWoodenGate(player, 12986, 12987, 3212, 3261, 3211, 3261, 3213, 3261, 3213, 3262, 1); + handleWoodenGate(player, GATE_12986, GATE_12987, 3212, 3261, 3211, 3261, 3213, 3261, 3213, 3262, 1); } break; - case 12987: + case GATE_12987: + case GATE_12989: if (player.objectX > 3187 && player.objectX < 3190) { - handleWoodenGate(player, 12987, 12986, 3188, 3281, 3188, 3280, 3189, 3279, 3188, 3279, 2); + handleWoodenGate(player, GATE_12987, GATE_12986, 3188, 3281, 3188, 3280, 3189, 3279, 3188, 3279, 2); } else if (player.objectY > 3267 && player.objectY < 3270) { - handleWoodenGate(player, 12987, 12986, 3184, 3268, 3185, 3268, 3186, 3269, 3186, 3268, 1); + handleWoodenGate(player, GATE_12987, GATE_12986, 3184, 3268, 3185, 3268, 3186, 3269, 3186, 3268, 1); } else { - handleWoodenGate(player, 12987, 12986, 3211, 3261, 3212, 3261, 3213, 3262, 3213, 3261, 1); + handleWoodenGate(player, GATE_12987, GATE_12986, 3211, 3261, 3212, 3261, 3213, 3262, 3213, 3261, 1); } break; - case 1596: + case GATE_1596: if (player.objectX > 3310 && player.objectX < 3313 && player.absY != 3333) { - handleMetalGate(player, 1596, 1597, 3311, 3331, 3311, 3332, 3312, 3331, 3312, 3332, 3); + handleMetalGate(player, GATE_1596, GATE_1597, 3311, 3331, 3311, 3332, 3312, 3331, 3312, 3332, 3); } else if (player.objectY > 3318 && player.objectY < 3321 && player.absX != 2935 && player.absX != 2932) { - handleMetalGate(player, 1596, 1597, 2934, 3319, 2933, 3319, 2934, 3320, 2933, 3320, 0); + handleMetalGate(player, GATE_1596, GATE_1597, 2934, 3319, 2933, 3319, 2934, 3320, 2933, 3320, 0); } else if (player.objectX > 3130 && player.objectX < 3133) { - handleMetalGate(player, 1596, 1597, 3131, 9918, 3132, 9918, 3131, 9917, 3132, 9917, 6); + handleMetalGate(player, GATE_1596, GATE_1597, 3131, 9918, 3132, 9918, 3131, 9917, 3132, 9917, 6); } else if (player.objectY > 3181 && player.objectY < 3184) { - handleMetalGate(player, 1596, 1597, 2815, 3182, 2815, 3183, 2816, 3182, 2816, 3183, 3); + handleMetalGate(player, GATE_1596, GATE_1597, 2815, 3182, 2815, 3183, 2816, 3182, 2816, 3183, 3); } else if (player.objectY > 3449 && player.objectY < 3452) { - handleMetalGate(player, 1596, 1597, 2936, 3451, 2936, 3450, 2935, 3451, 2935, 3450, 7); + handleMetalGate(player, GATE_1596, GATE_1597, 2936, 3451, 2936, 3450, 2935, 3451, 2935, 3450, 7); } else if (player.objectY > 3848 && player.objectY < 3851) { - handleMetalGate(player, 1596, 1597, 3007, 3849, 3007, 3850, 3008, 3849, 3008, 3850, 3); + handleMetalGate(player, GATE_1596, GATE_1597, 3007, 3849, 3007, 3850, 3008, 3849, 3008, 3850, 3); } else if (player.objectX > 3223 && player.objectX < 3226) { - handleMetalGate(player, 1596, 1597, 3225, 3903, 3224, 3903, 3225, 3904, 3224, 3904, 0); + handleMetalGate(player, GATE_1596, GATE_1597, 3225, 3903, 3224, 3903, 3225, 3904, 3224, 3904, 0); } else if (player.objectX > 2946 && player.objectX < 2949) { - handleMetalGate(player, 1596, 1597, 2948, 3903, 2947, 3903, 2948, 3904, 2947, 3904, 0); + handleMetalGate(player, GATE_1596, GATE_1597, 2948, 3903, 2947, 3903, 2948, 3904, 2947, 3904, 0); } break; - case 1597: + case GATE_1597: if (player.objectX > 3310 && player.objectX < 3313 && player.absY != 3333) { - handleMetalGate(player, 1597, 1596, 3311, 3332, 3311, 3331, 3312, 3332, 3312, 3331, 1); + handleMetalGate(player, GATE_1597, GATE_1596, 3311, 3332, 3311, 3331, 3312, 3332, 3312, 3331, 1); } else if (player.objectY > 3318 && player.objectY < 3321 && player.absX != 2935 && player.absX != 2932) { - handleMetalGate(player, 1597, 1596, 2933, 3319, 2934, 3319, 2933, 3320, 2934, 3320, 2); + handleMetalGate(player, GATE_1597, GATE_1596, 2933, 3319, 2934, 3319, 2933, 3320, 2934, 3320, 2); } else if (player.objectX > 3130 && player.objectX < 3133) { - handleMetalGate(player, 1597, 1596, 3132, 9918, 3131, 9918, 3132, 9917, 3131, 9917, 4); + handleMetalGate(player, GATE_1597, GATE_1596, 3132, 9918, 3131, 9918, 3132, 9917, 3131, 9917, 4); } else if (player.objectY > 3181 && player.objectY < 3184) { - handleMetalGate(player, 1597, 1596, 2815, 3183, 2815, 3182, 2816, 3183, 2816, 3182, 1); + handleMetalGate(player, GATE_1597, GATE_1596, 2815, 3183, 2815, 3182, 2816, 3183, 2816, 3182, 1); } else if (player.objectY > 3449 && player.objectY < 3452) { - handleMetalGate(player, 1597, 1596, 2936, 3450, 2936, 3451, 2935, 3450, 2935, 3451, 5); + handleMetalGate(player, GATE_1597, GATE_1596, 2936, 3450, 2936, 3451, 2935, 3450, 2935, 3451, 5); } else if (player.objectY > 3848 && player.objectY < 3851) { - handleMetalGate(player, 1597, 1596, 3007, 3850, 3007, 3849, 3008, 3850, 3008, 3849, 1); + handleMetalGate(player, GATE_1597, GATE_1596, 3007, 3850, 3007, 3849, 3008, 3850, 3008, 3849, 1); } else if (player.objectX > 3223 && player.objectX < 3226) { - handleMetalGate(player, 1597, 1596, 3224, 3903, 3225, 3903, 3224, 3904, 3225, 3904, 2); + handleMetalGate(player, GATE_1597, GATE_1596, 3224, 3903, 3225, 3903, 3224, 3904, 3225, 3904, 2); } else if (player.objectX > 2946 && player.objectX < 2949) { - handleMetalGate(player, 1597, 1596, 2947, 3903, 2948, 3903, 2947, 3904, 2948, 3904, 2); + handleMetalGate(player, GATE_1597, GATE_1596, 2947, 3903, 2948, 3903, 2947, 3904, 2948, 3904, 2); } break; - case 1557: + case GATE_1557: + case GATE_1560: if (player.objectY > 9830 && player.objectY < 9833 && player.absY != 9830) { - handleMetalGate(player, 1557, 1558, 2897, 9831, 2897, 9832, 2898, 9831, 2898, 9832, 3); + handleMetalGate(player, GATE_1557, GATE_1558, 2897, 9831, 2897, 9832, 2898, 9831, 2898, 9832, 3); } else if (player.objectY > 3866 && player.objectY < 3869) { - handleMetalGate(player, 1557, 1558, 3075, 3868, 3076, 3868, 3075, 3867, 3076, 3867, 4); + handleMetalGate(player, GATE_1557, GATE_1558, 3075, 3868, 3076, 3868, 3075, 3867, 3076, 3867, 4); /*Heroes Guild*/ } else if (player.objectX > 2908 && player.objectX < 2911) { //id1, id2, newx, newy, newx2, newy2, oldx, oldy, oldx2, oldy2 - handleMetalGate(player, 1557, 1558, 2910, 9909, 2909, 9909, 2910, 9910, 2909, 9910, 0); + handleMetalGate(player, GATE_1557, GATE_1558, 2910, 9909, 2909, 9909, 2910, 9910, 2909, 9910, 0); } else if (player.objectY > 9908 && player.objectY < 9911) { - handleMetalGate(player, 1557, 1558, 3104, 9910, 3104, 9909, 3103, 9910, 3103, 9909, 7); + handleMetalGate(player, GATE_1557, GATE_1558, 3104, 9910, 3104, 9909, 3103, 9910, 3103, 9909, 7); } else if (player.objectX > 3110 && player.objectX < 3113 && player.absY != 3513 && player.absY != 3516) { - handleMetalGate(player, 1557, 1558, 3111, 3514, 3111, 3515, 3112, 3514, 3112, 3515, 3); + handleMetalGate(player, GATE_1557, GATE_1558, 3111, 3514, 3111, 3515, 3112, 3514, 3112, 3515, 3); } else if (player.objectX > 3104 && player.objectX < 3107 && player.absX != 3104 && player.absX != 3107) { - handleMetalGate(player, 1557, 1558, 3105, 9945, 3106, 9945, 3105, 9944, 3106, 9944, 6); + handleMetalGate(player, GATE_1557, GATE_1558, 3105, 9945, 3106, 9945, 3105, 9944, 3106, 9944, 6); } else if (player.objectX > 3144 && player.objectX < 3147) {//here - handleMetalGate(player, 1557, 1558, 3146, 9871, 3146, 9870, 3145, 9871, 3145, 9870, 7); + handleMetalGate(player, GATE_1557, GATE_1558, 3146, 9871, 3146, 9870, 3145, 9871, 3145, 9870, 7); } else if (player.objectX > 2756 && player.objectX < 2759) { - handleMetalGate(player, 1557, 1558, 2757, 3483, 2758, 3483, 2757, 3482, 2758, 3482, 6); + handleMetalGate(player, GATE_1557, GATE_1558, 2757, 3483, 2758, 3483, 2757, 3482, 2758, 3482, 6); } break; - case 1558: + case GATE_1558: + case GATE_1561: if (player.objectY > 9830 && player.objectY < 9833 && player.absY != 9830) { - handleMetalGate(player, 1558, 1557, 2897, 9832, 2897, 9831, 2898, 9832, 2898, 9831, 1); + handleMetalGate(player, GATE_1558, GATE_1557, 2897, 9832, 2897, 9831, 2898, 9832, 2898, 9831, 1); } else if (player.objectY > 3866 && player.objectY < 3869) { - handleMetalGate(player, 1558, 1557, 3076, 3868, 3075, 3868, 3076, 3867, 3075, 3867, 4); + handleMetalGate(player, GATE_1558, GATE_1557, 3076, 3868, 3075, 3868, 3076, 3867, 3075, 3867, 4); /* Heroes Guild*/ } else if (player.objectX > 2908 && player.objectX < 2911) { //newx, newy, newx2, newy2, oldx, oldy, oldx2, oldy2 - handleMetalGate(player, 1558, 1557, 2909, 9909, 2910, 9909, 2909, 9910, 2910, 9910, 2); + handleMetalGate(player, GATE_1558, GATE_1557, 2909, 9909, 2910, 9909, 2909, 9910, 2910, 9910, 2); } else if (player.objectY > 9908 && player.objectY < 9911) { - handleMetalGate(player, 1558, 1557, 3104, 9909, 3104, 9910, 3103, 9909, 3103, 9910, 5); + handleMetalGate(player, GATE_1558, GATE_1557, 3104, 9909, 3104, 9910, 3103, 9909, 3103, 9910, 5); } else if (player.objectX > 3110 && player.objectX < 3113 && player.absY != 3513 && player.absY != 3516) { - handleMetalGate(player, 1558, 1557, 3111, 3515, 3111, 3514, 3112, 3515, 3112, 3514, 3); + handleMetalGate(player, GATE_1558, GATE_1557, 3111, 3515, 3111, 3514, 3112, 3515, 3112, 3514, 3); } else if (player.objectX > 3104 && player.objectX < 3107 && player.absX != 3104 && player.absX != 3107) { - handleMetalGate(player, 1558, 1557, 3106, 9945, 3105, 9945, 3106, 9944, 3105, 9944, 4); + handleMetalGate(player, GATE_1558, GATE_1557, 3106, 9945, 3105, 9945, 3106, 9944, 3105, 9944, 4); } else if (player.objectX > 3144 && player.objectX < 3147) {//here - handleMetalGate(player, 1558, 1557, 3146, 9870, 3146, 9871, 3145, 9870, 3145, 9871, 5); + handleMetalGate(player, GATE_1558, GATE_1557, 3146, 9870, 3146, 9871, 3145, 9870, 3145, 9871, 5); } else if (player.objectX > 2756 && player.objectX < 2759) { - handleMetalGate(player, 1558, 1557, 2758, 3483, 2757, 3483, 2758, 3482, 2757, 3482, 4); + handleMetalGate(player, GATE_1558, GATE_1557, 2758, 3483, 2757, 3483, 2758, 3482, 2757, 3482, 4); } break; - case 3506: + case GATE_3506: if (player.absX != 3445 && player.absX != 3442) { - openMetalGateWalk(player, 3506, 3507, 3444, 3457, 3443, 3457, 3444, 3458, 3443, 3458, 0, player.absY == 3457 ? 1 : -1, 2, 0, 3); + openMetalGateWalk(player, GATE_3506, GATE_3507, 3444, 3457, 3443, 3457, 3444, 3458, 3443, 3458, 0, player.absY == 3457 ? 1 : -1, 2, 0, 3); } break; - case 3507: + case GATE_3507: if (player.absX != 3445 && player.absX != 3442) { - openMetalGateWalk(player, 3507, 3506, 3443, 3457, 3444, 3457, 3443, 3458, 3444, 3458, 0, player.absY == 3457 ? 1 : -1, 0, 2, 3); + openMetalGateWalk(player, GATE_3507, GATE_3506, 3443, 3457, 3444, 3457, 3443, 3458, 3444, 3458, 0, player.absY == 3457 ? 1 : -1, 0, 2, 3); } break; } diff --git a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/GateHandler.java b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/GateHandler.java index b9cd56a6..bfd5576d 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/GateHandler.java +++ b/2006Scape Server/src/main/java/com/rs2/game/globalworldobjects/GateHandler.java @@ -1,95 +1,211 @@ package com.rs2.game.globalworldobjects; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + import org.apollo.cache.def.ObjectDefinition; import com.rs2.GameEngine; +import com.rs2.event.CycleEventHandler; import com.rs2.game.content.music.sound.SoundList; import com.rs2.game.objects.Objects; import com.rs2.game.players.Player; import com.rs2.world.ObjectManager; import com.rs2.world.clip.Region; +import static com.rs2.game.content.StaticObjectList.*; + /** * GateHandler * (needs to be re written tbh) * @author Andrew (Mr Extremez) */ public class GateHandler { + + public static final int GATE_TICKS = 50; + private static final Map OPEN_GATES = new ConcurrentHashMap<>(); + + public static String gateKey(int x, int y, int height) { + return x + "," + y + "," + height; + } + + public static boolean isGateOpenAt(int x, int y, int height) { + return OPEN_GATES.containsKey(gateKey(x, y, height)); + } + + public static Object markGateOpen(int x, int y, int height) { + String key = gateKey(x, y, height); + Object previousOwner = OPEN_GATES.remove(key); + if (previousOwner != null) { + CycleEventHandler.getSingleton().stopEvents(previousOwner); + } + Object owner = new Object(); + OPEN_GATES.put(key, owner); + return owner; + } + + public static void markGateClosed(int x, int y, int height) { + Object owner = OPEN_GATES.remove(gateKey(x, y, height)); + if (owner != null) { + CycleEventHandler.getSingleton().stopEvents(owner); + } + } - public int gateStatus = 0, gateTicks = 50, - CLOSED = 0, PARTIAL_OPEN = 1, OPEN = 2; - + public static int getOpenGateId(int closedGateId) { + switch (closedGateId) { + case GATE_1551: + return GATE_1552; + case GATE_1553: + return GATE_1556; + case GATE_1557: + return GATE_1560; + case GATE_1558: + return GATE_1561; + case GATE_7049: + return GATE_7051; + case GATE_7050: + return GATE_7052; + case GATE_12986: + return GATE_12988; + case GATE_12987: + return GATE_12989; + case GATE_3725: + return GATE_3727; + case GATE_3726: + return GATE_3728; + case GATE_8810: + return GATE_8812; + case GATE_8811: + return GATE_8813; + default: + return closedGateId; + } + } + + public static int getClosedGateId(int openGateId) { + switch (openGateId) { + case GATE_1552: + return GATE_1551; + case GATE_1556: + return GATE_1553; + case GATE_1560: + return GATE_1557; + case GATE_1561: + return GATE_1558; + case GATE_7051: + return GATE_7049; + case GATE_7052: + return GATE_7050; + case GATE_12988: + return GATE_12986; + case GATE_12989: + return GATE_12987; + case GATE_3727: + return GATE_3725; + case GATE_3728: + return GATE_3726; + case GATE_8812: + return GATE_8810; + case GATE_8813: + return GATE_8811; + default: + return openGateId; + } + } + + public static boolean isOpenGate(int objectId) { + return getClosedGateId(objectId) != objectId; + } + public boolean isGate(int objectId) { - String objectName = ObjectDefinition.lookup(objectId).getName(); try { - return objectName.equalsIgnoreCase("gate") || objectName.equalsIgnoreCase("Gate"); + ObjectDefinition def = ObjectDefinition.lookup(objectId); + if (def != null && def.getName() != null) { + return def.getName().equalsIgnoreCase("gate"); + } } catch (Exception e) { return false; } + return false; } public void spawnGate(Player player, int objectId, int newObjectX, int newObjectY, int height, int face) { GameEngine.objectHandler.placeObject(new Objects(objectId, newObjectX, newObjectY, height, face, 0, 0)); - player.getPacketSender().sendSound(SoundList.OPEN_GATE, 100, 0); } public void openSingleGate(Player player, int objectId, int newObjectX, int newObjectY, int oldObjectX, int oldObjectY, int walkX, int walkY, int newFace, int oldFace) { - if (isGate(objectId) && player.getGateHandler().gateStatus == CLOSED) { + int openId = getOpenGateId(objectId); + int closedId = getClosedGateId(objectId); + if (isGate(objectId) && !isGateOpenAt(oldObjectX, oldObjectY, player.heightLevel)) { spawnGate(player, -1, oldObjectX, oldObjectY, player.heightLevel, 0); - spawnGate(player, objectId, newObjectX, newObjectY, player.heightLevel, newFace); - player.getGateHandler().gateStatus = PARTIAL_OPEN; + Region.removeObject(closedId, oldObjectX, oldObjectY, player.heightLevel, 0, oldFace); + spawnGate(player, openId, newObjectX, newObjectY, player.heightLevel, newFace); + Region.addObject(openId, newObjectX, newObjectY, player.heightLevel, 0, newFace, false); + Object timerOwner = markGateOpen(oldObjectX, oldObjectY, player.heightLevel); + player.getPacketSender().sendSound(SoundList.OPEN_GATE, 100, 0); player.getPlayerAssistant().walkTo(walkX, walkY); - ObjectManager.singleGateTicks(player, objectId, oldObjectX, oldObjectY, newObjectX, newObjectY, player.heightLevel, oldFace, 2); + ObjectManager.singleGateTicks(timerOwner, closedId, openId, oldObjectX, oldObjectY, newObjectX, newObjectY, player.heightLevel, oldFace, newFace, 2); } } private void openDoubleGate(Player player, int objectId, int objectId2, int newObjectX, int newObjectY, int newObjectX2, int newObjectY2, int oldObjectX, int oldObjectY, int oldObjectX2, int oldObjectY2, int newFace, int oldFace) { - if (isGate(objectId) && isGate(objectId2) && player.getGateHandler().gateStatus == CLOSED) { - spawnGate(player, -1, oldObjectX, oldObjectY, player.heightLevel, 0); - spawnGate(player, -1, oldObjectX2, oldObjectY2, player.heightLevel, 0); - spawnGate(player, objectId, newObjectX, newObjectY, player.heightLevel, newFace); - Region.addObject(objectId, newObjectX, newObjectY, player.heightLevel, 0, newFace, false); - player.getGateHandler().gateStatus = PARTIAL_OPEN; - spawnGate(player, objectId2, newObjectX2, newObjectY2, player.heightLevel, newFace); - Region.addObject(objectId2, newObjectX2, newObjectY2, player.heightLevel, 0, newFace, false); - player.getGateHandler().gateStatus = OPEN; - ObjectManager.doubleGateTicks(player, objectId, oldObjectX, oldObjectY, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, player.getGateHandler().gateTicks); - ObjectManager.doubleGateTicks(player, objectId2, oldObjectX2, oldObjectY2, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, player.getGateHandler().gateTicks); - } else if (isGate(objectId) && isGate(objectId2) && player.getGateHandler().gateStatus == OPEN) { - ObjectManager.doubleGateTicks(player, objectId, oldObjectX, oldObjectY, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, 0); - ObjectManager.doubleGateTicks(player, objectId2, oldObjectX2, oldObjectY2, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, 0); - } + openSpecialGate(player, objectId, objectId2, newObjectX, newObjectY, newObjectX2, newObjectY2, oldObjectX, oldObjectY, oldObjectX2, oldObjectY2, newFace, newFace, oldFace); } private void openSpecialGate(Player player, int objectId, int objectId2, int newObjectX, int newObjectY, int newObjectX2, int newObjectY2, int oldObjectX, int oldObjectY, int oldObjectX2, int oldObjectY2, int newFace, int newFace2, int oldFace) { - if (isGate(objectId) && isGate(objectId2) && player.getGateHandler().gateStatus == CLOSED) { + int openId1 = getOpenGateId(objectId); + int openId2 = getOpenGateId(objectId2); + int closedId1 = getClosedGateId(objectId); + int closedId2 = getClosedGateId(objectId2); + boolean isOpen = isGateOpenAt(oldObjectX, oldObjectY, player.heightLevel) || isOpenGate(player.objectId) || isOpenGate(objectId); + if (isGate(objectId) && isGate(objectId2) && !isOpen) { spawnGate(player, -1, oldObjectX, oldObjectY, player.heightLevel, 0); spawnGate(player, -1, oldObjectX2, oldObjectY2, player.heightLevel, 0); - spawnGate(player, objectId, newObjectX, newObjectY, player.heightLevel, newFace); - Region.addObject(objectId, newObjectX, newObjectY, player.heightLevel, 0, newFace, false); - player.getGateHandler().gateStatus = PARTIAL_OPEN; - spawnGate(player, objectId2, newObjectX2, newObjectY2, player.heightLevel, newFace2); - Region.addObject(objectId2, newObjectX2, newObjectY2, player.heightLevel, 0, newFace2, false); - player.getGateHandler().gateStatus = OPEN; - ObjectManager.doubleGateTicks(player, objectId, oldObjectX, oldObjectY, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, player.getGateHandler().gateTicks); - ObjectManager.doubleGateTicks(player, objectId2, oldObjectX2, oldObjectY2, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, player.getGateHandler().gateTicks); - } else if (isGate(objectId) && isGate(objectId2) && player.getGateHandler().gateStatus == OPEN) { - ObjectManager.doubleGateTicks(player, objectId, oldObjectX, oldObjectY, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, 0); - ObjectManager.doubleGateTicks(player, objectId2, oldObjectX2, oldObjectY2, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, 0); + Region.removeObject(closedId1, oldObjectX, oldObjectY, player.heightLevel, 0, oldFace); + Region.removeObject(closedId2, oldObjectX2, oldObjectY2, player.heightLevel, 0, oldFace); + + spawnGate(player, openId1, newObjectX, newObjectY, player.heightLevel, newFace); + Region.addObject(openId1, newObjectX, newObjectY, player.heightLevel, 0, newFace, false); + spawnGate(player, openId2, newObjectX2, newObjectY2, player.heightLevel, newFace2); + Region.addObject(openId2, newObjectX2, newObjectY2, player.heightLevel, 0, newFace2, false); + Object timerOwner = markGateOpen(oldObjectX, oldObjectY, player.heightLevel); + player.getPacketSender().sendSound(SoundList.OPEN_GATE, 100, 0); + ObjectManager.doubleGateTicks(timerOwner, closedId1, closedId2, openId1, openId2, oldObjectX, oldObjectY, oldObjectX2, oldObjectY2, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, newFace, newFace2, GATE_TICKS); + } else if (isGate(objectId) && isGate(objectId2) && isOpen) { + spawnGate(player, -1, newObjectX, newObjectY, player.heightLevel, 0); + spawnGate(player, -1, newObjectX2, newObjectY2, player.heightLevel, 0); + Region.removeObject(openId1, newObjectX, newObjectY, player.heightLevel, 0, newFace); + Region.removeObject(openId2, newObjectX2, newObjectY2, player.heightLevel, 0, newFace2); + + spawnGate(player, closedId1, oldObjectX, oldObjectY, player.heightLevel, oldFace); + spawnGate(player, closedId2, oldObjectX2, oldObjectY2, player.heightLevel, oldFace); + Region.addObject(closedId1, oldObjectX, oldObjectY, player.heightLevel, 0, oldFace, false); + Region.addObject(closedId2, oldObjectX2, oldObjectY2, player.heightLevel, 0, oldFace, false); + + markGateClosed(oldObjectX, oldObjectY, player.heightLevel); + player.getPacketSender().sendSound(SoundList.OPEN_GATE, 100, 0); } } public void openMetalGateWalk(Player player, int objectId, int objectId2, int newObjectX, int newObjectY, int newObjectX2, int newObjectY2, int oldObjectX, int oldObjectY, int oldObjectX2, int oldObjectY2, int walkX, int walkY, int newFace, int newFace2, int oldFace) { - if (isGate(objectId) && isGate(objectId2) && player.getGateHandler().gateStatus == CLOSED) { + int openId1 = getOpenGateId(objectId); + int openId2 = getOpenGateId(objectId2); + int closedId1 = getClosedGateId(objectId); + int closedId2 = getClosedGateId(objectId2); + if (isGate(objectId) && isGate(objectId2) && !isGateOpenAt(oldObjectX, oldObjectY, player.heightLevel)) { spawnGate(player, -1, oldObjectX, oldObjectY, player.heightLevel, 0); spawnGate(player, -1, oldObjectX2, oldObjectY2, player.heightLevel, 0); - spawnGate(player, objectId, newObjectX, newObjectY, player.heightLevel, newFace); - player.getGateHandler().gateStatus = PARTIAL_OPEN; - spawnGate(player, objectId2, newObjectX2, newObjectY2, player.heightLevel, newFace2); - player.getGateHandler().gateStatus = OPEN; + Region.removeObject(closedId1, oldObjectX, oldObjectY, player.heightLevel, 0, oldFace); + Region.removeObject(closedId2, oldObjectX2, oldObjectY2, player.heightLevel, 0, oldFace); + + spawnGate(player, openId1, newObjectX, newObjectY, player.heightLevel, newFace); + Region.addObject(openId1, newObjectX, newObjectY, player.heightLevel, 0, newFace, false); + spawnGate(player, openId2, newObjectX2, newObjectY2, player.heightLevel, newFace2); + Region.addObject(openId2, newObjectX2, newObjectY2, player.heightLevel, 0, newFace2, false); + Object timerOwner = markGateOpen(oldObjectX, oldObjectY, player.heightLevel); + player.getPacketSender().sendSound(SoundList.OPEN_GATE, 100, 0); player.getPlayerAssistant().walkTo(walkX, walkY); - ObjectManager.doubleGateTicks(player, objectId, oldObjectX, oldObjectY, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, 2); - ObjectManager.doubleGateTicks(player, objectId2, oldObjectX2, oldObjectY2, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, 2); + ObjectManager.doubleGateTicks(timerOwner, closedId1, closedId2, openId1, openId2, oldObjectX, oldObjectY, oldObjectX2, oldObjectY2, newObjectX, newObjectY, newObjectX2, newObjectY2, player.heightLevel, oldFace, newFace, newFace2, 2); } } diff --git a/2006Scape Server/src/main/java/com/rs2/game/items/ItemAssistant.java b/2006Scape Server/src/main/java/com/rs2/game/items/ItemAssistant.java index 0db4deca..50b5cbb1 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/items/ItemAssistant.java +++ b/2006Scape Server/src/main/java/com/rs2/game/items/ItemAssistant.java @@ -1,6 +1,7 @@ package com.rs2.game.items; import com.rs2.Constants; +import com.rs2.game.content.combat.magic.MagicData; import org.apollo.cache.def.ItemDefinition; import com.rs2.GameEngine; @@ -605,6 +606,16 @@ public class ItemAssistant { player.getPacketSender().setSidebarInterface(0, 328); // spike, impale, smash, block player.getPacketSender().sendFrame246(329, 200, weapon); player.getPacketSender().sendString(weaponName, 331); + if (player.autocastId >= 0) { + player.getPacketSender().sendConfig(108, player.autocasting ? 3 : 2); + if (player.autocasting) { + player.getPacketSender().sendConfig(43, -1); + } + player.getPacketSender().sendString(MagicData.getSpellName(player.autocastId), 352, true); + } else { + player.getPacketSender().sendConfig(108, 0); + player.getPacketSender().sendString("(none set)", 352, true); + } } else if (newWeapon.startsWith("dart") || newWeapon.startsWith("knife") || newWeapon.startsWith("javelin") @@ -655,7 +666,7 @@ public class ItemAssistant { player.getPacketSender().sendFrame246(2424, 200, weapon); player.getPacketSender().sendString(weaponName, 2426); } - + player.getPlayerAssistant().handleWeaponStyle(); } /** @@ -1413,7 +1424,7 @@ public class ItemAssistant { case 5680: case 5698: case 1305: - if (player.lostCity != 3 && player.playerRights != 3) { + if (player.lostCity < 6 && player.playerRights != 3) { player.getPacketSender().sendMessage("You must have completed the Lost City quest to equip this weapon."); canWearItem = false; } @@ -1433,7 +1444,7 @@ public class ItemAssistant { if (targetSlot == ItemConstants.WEAPON) { player.autocasting = false; - player.autocastId = 0; + player.autocastId = -1; player.getPacketSender().sendConfig(108, 0); } diff --git a/2006Scape Server/src/main/java/com/rs2/game/items/UseItem.java b/2006Scape Server/src/main/java/com/rs2/game/items/UseItem.java index 66051077..ad38e529 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/items/UseItem.java +++ b/2006Scape Server/src/main/java/com/rs2/game/items/UseItem.java @@ -23,9 +23,7 @@ import com.rs2.game.content.skills.runecrafting.Tiaras; import com.rs2.game.items.impl.Dye; import com.rs2.game.items.impl.GodPages; import com.rs2.game.items.impl.WeaponPoison; -import com.rs2.game.npcs.impl.MilkCow; import com.rs2.game.objects.impl.CrystalChest; -import com.rs2.game.objects.impl.FlourMill; import com.rs2.game.objects.impl.Webs; import com.rs2.game.players.Player; import com.rs2.util.Misc; @@ -69,16 +67,11 @@ public class UseItem { Webs.slashWeb(c, objectID, objectX, objectY); } break; - case 8689: - if (c.milking == false) { - MilkCow.milk(c); - } - break; case 2783: c.getSmithingInt().showSmithInterface(itemId); break; case 2782: - if (c.doricQuest >= 3) { + if (c.doricQuest >= 100) { c.getSmithingInt().showSmithInterface(itemId); } else { c.getPacketSender().sendMessage( @@ -92,9 +85,6 @@ public class UseItem { SoftClay.makeClay(c); } break; - case 2714: - FlourMill.grainOnHopper(c, objectID, itemId); - break; case 172: if (itemId == CrystalChest.KEY) { CrystalChest.searchChest(c, objectID, objectX, objectY); diff --git a/2006Scape Server/src/main/java/com/rs2/game/npcs/Npc.java b/2006Scape Server/src/main/java/com/rs2/game/npcs/Npc.java index 1254189e..6fd20f42 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/npcs/Npc.java +++ b/2006Scape Server/src/main/java/com/rs2/game/npcs/Npc.java @@ -35,6 +35,7 @@ public class Npc { combatLevel; public boolean applyDead, isDead, needRespawn, respawns, aggressive; public boolean walkingHome, underAttack; + public int walkingHomeStuckTicks; public int freezeTimer, attackTimer, killerId, killedBy, oldIndex, underAttackBy; public long lastDamageTaken; @@ -49,6 +50,7 @@ public class Npc { public String forcedText; public boolean transformUpdateRequired = false, isTransformed = false; public int transformId; + public boolean teleported = false; public Npc(int _npcId, int _npcType) { npcId = _npcId; @@ -217,8 +219,13 @@ public class Npc { } public int getNextWalkingDirection2() { - int dir; - dir = Misc.direction(absX, absY, absX + moveX, absY + moveY); + if (moveX == 0 && moveY == 0) { + return -1; + } + int dir = Misc.direction(absX, absY, absX + moveX, absY + moveY); + if (dir == -1) { + return -1; + } dir >>= 1; absX += moveX; absY += moveY; @@ -340,29 +347,41 @@ public class Npc { focusPointX = -1; focusPointY = -1; turnUpdateRequired = false; + teleported = false; } public int getNextWalkingDirection() { + if (moveX == 0 && moveY == 0) { + return -1; + } int nextX = absX + moveX; int nextY = absY + moveY; int dir; dir = Misc.direction(absX, absY, absX + moveX, absY + moveY); + int mySize = getSize(); for (Npc npc : NpcHandler.npcs) { - if (npc == null) { + if (npc == null || npc == this) { continue; } - if (npc.absX == nextX && npc.absY == nextY - && npc.heightLevel == heightLevel) { - return -1; + if (npc.heightLevel == heightLevel) { + int otherSize = npc.getSize(); + if (nextX < npc.absX + otherSize && nextX + mySize > npc.absX + && nextY < npc.absY + otherSize && nextY + mySize > npc.absY) { + return -1; + } } } for (Player p : PlayerHandler.players) { if (p == null) { continue; } - if (p.absX == nextX && p.absY == nextY - && p.heightLevel == heightLevel) { - return -1; + if (p.heightLevel == heightLevel) { + boolean alreadyOverlapping = p.absX >= absX && p.absX < absX + mySize + && p.absY >= absY && p.absY < absY + mySize; + if (!alreadyOverlapping && p.absX >= nextX && p.absX < nextX + mySize + && p.absY >= nextY && p.absY < nextY + mySize) { + return -1; + } } } if (dir == -1) { diff --git a/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcActions.java b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcActions.java index 5dc88da7..ee2eb581 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcActions.java +++ b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcActions.java @@ -89,9 +89,9 @@ public class NpcActions { case SQUIRE: if (player.knightS == 0) { player.getDialogueHandler().sendDialogues(610, 606); - } else if (player.knightS == 4) { + } else if (player.knightS == 3) { player.getDialogueHandler().sendDialogues(654, 606); - } else if (player.knightS == 8) { + } else if (player.knightS == 6) { player.getDialogueHandler().sendDialogues(682, 606); } break; @@ -100,10 +100,10 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(626, 647); } else if (player.shieldArrav == 0) { player.getDialogueHandler().sendDialogues(690, 647); + } else if (player.shieldArrav == 1 && player.getItemAssistant().playerHasItem(757, 1)) { + player.getDialogueHandler().sendDialogues(697, 647); } else if (player.shieldArrav == 1) { player.getDialogueHandler().sendDialogues(694, 647); - } else if (player.shieldArrav == 2) { - player.getDialogueHandler().sendDialogues(697, 647); } break; case StaticNpcList.THURGO: @@ -111,12 +111,14 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(640, 604); } else if (player.knightS == 3) { player.getDialogueHandler().sendDialogues(648, 604); - } else if (player.knightS == 6) { + } else if (player.knightS == 5) { player.getDialogueHandler().sendDialogues(660, 604); - } else if (player.knightS == 7) { - player.getDialogueHandler().sendDialogues(669, 604); - } else if (player.knightS == 8) { - player.getDialogueHandler().sendDialogues(674, 604); + } else if (player.knightS == 6) { + if (player.getItemAssistant().playerHasItem(667, 1)) { + player.getDialogueHandler().sendDialogues(674, 604); + } else { + player.getDialogueHandler().sendDialogues(669, 604); + } } break; case COMPETITION_JUDGE: @@ -156,7 +158,7 @@ public class NpcActions { } break; case BARAEK: - if (player.shieldArrav == 3) { + if (player.shieldArrav == 2) { player.getDialogueHandler().sendDialogues(701, npcType); } break; @@ -179,11 +181,11 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(3848, npcType); break; case STRAVEN: - if (player.shieldArrav <= 4) { + if (player.shieldArrav <= 3) { player.getDialogueHandler().sendDialogues(711, npcType); - } else if (player.shieldArrav == 5) { + } else if (player.shieldArrav == 4) { player.getDialogueHandler().sendDialogues(730, npcType); - } else if (player.shieldArrav > 5) { + } else if (player.shieldArrav > 4) { player.getDialogueHandler().sendDialogues(741, npcType); } break; @@ -191,7 +193,7 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(745, npcType); break; case KING_ROALD: - if (player.shieldArrav == 7 && player.getItemAssistant().playerHasItem(769)) + if (player.shieldArrav == 6 && player.getItemAssistant().playerHasItem(769)) player.getDialogueHandler().sendDialogues(756, npcType); break; case MAN_663: @@ -240,7 +242,7 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(3158, npcType); break; case WIZARD_CROMPERTY: - if (player.runeMist < 4 && player.playerRights <= 1) { + if (player.runeMist < 6 && player.playerRights <= 1) { player.getDialogueHandler().sendStatement("You need to beat rune mysteries first to do this."); player.nextChat = 0; return; @@ -451,10 +453,10 @@ public class NpcActions { } break; case MORGAN: - if (player.vampSlayer == 3) { + if (player.vampSlayer == 2) { player.getDialogueHandler().sendDialogues(531, npcType); - } else if (player.vampSlayer == 4) { - player.getDialogueHandler().sendDialogues(529, npcType); + } else if (player.vampSlayer >= 3) { + player.getPacketSender().sendMessage("Thank you for slaying Count Draynor!"); } else if (player.vampSlayer == 0) { player.getDialogueHandler().sendDialogues(476, npcType); } @@ -472,8 +474,6 @@ public class NpcActions { if (player.vampSlayer == 1) { player.getDialogueHandler().sendDialogues(498, npcType); } else if (player.vampSlayer == 2) { - player.getDialogueHandler().sendDialogues(510, npcType); - } else if (player.vampSlayer == 3) { player.getDialogueHandler().sendDialogues(531, npcType); } else { player.getDialogueHandler().sendStatement("I'm not on this step yet."); @@ -495,26 +495,26 @@ public class NpcActions { } break; case GERTRUDES_CAT: - if (player.getItemAssistant().playerHasItem(1927, 1) && player.gertCat == 2) { + if (player.getItemAssistant().playerHasItem(1927, 1) && player.gertCat == 1) { player.getDialogueHandler().sendDialogues(319, npcType); player.getItemAssistant().deleteItem(1927, 1); player.getItemAssistant().addItem(1925, 1); - player.gertCat = 3; + player.gertCat = 2; } else if (player.getItemAssistant().playerHasItem(1552, 1) - && player.gertCat == 3) { + && player.gertCat == 2) { player.getDialogueHandler().sendDialogues(323, npcType); player.getItemAssistant().deleteItem(1552, 1); - player.gertCat = 4; - } else if (player.gertCat == 4) { + player.gertCat = 3; + } else if (player.gertCat == 3) { player.getDialogueHandler().sendStatement("Hiss!"); player.getDialogueHandler().sendDialogues(325, npcType); - player.gertCat = 5; + player.gertCat = 4; } else if (player.getItemAssistant().playerHasItem(1554, 1) - && player.gertCat == 6) { + && player.gertCat == 5) { player.getItemAssistant().deleteItem(1554, 1); player.getDialogueHandler().sendDialogues(326, npcType); - player.gertCat = 6; - } else if (player.gertCat == 2) { + player.gertCat = 5; + } else if (player.gertCat == 1) { player.getPacketSender().sendMessage("Hiss!"); player.getDialogueHandler().sendStatement("Fluffs hisses but clearly wants something - maybe she is thirsty?"); } @@ -529,7 +529,7 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(269, npcType); } else if (player.gertCat == 1) { player.getDialogueHandler().sendDialogues(276, npcType); - } else if (player.gertCat == 6) { + } else if (player.gertCat == 5) { player.getDialogueHandler().sendDialogues(328, npcType); } else { player.getDialogueHandler() @@ -539,48 +539,46 @@ public class NpcActions { case WILOUGH: if (player.gertCat == 1) { player.getDialogueHandler().sendDialogues(286, npcType); - } else if (player.gertCat == 2) { + } else if (player.gertCat >= 2) { player.getDialogueHandler().sendDialogues(314, npcType); } break; case ROMEO: if (player.romeojuliet == 0) { player.getDialogueHandler().sendDialogues(389, npcType); - } else if (player.romeojuliet == 1) { + } else if (player.romeojuliet == 10) { player.getDialogueHandler().sendDialogues(408, npcType); - } else if (player.romeojuliet == 3) { + } else if (player.romeojuliet == 30) { player.getDialogueHandler().sendDialogues(415, npcType); - } else if (player.romeojuliet == 4) { - player.getDialogueHandler().sendDialogues(424, npcType); - } else if (player.romeojuliet == 5) { + } else if (player.romeojuliet == 40) { player.getDialogueHandler().sendDialogues(431, npcType); - } else if (player.romeojuliet == 6) { + } else if (player.romeojuliet == 45) { player.getDialogueHandler().sendDialogues(443, npcType); - } else if (player.romeojuliet == 8) { + } else if (player.romeojuliet == 60) { player.getDialogueHandler().sendDialogues(469, npcType); - } else if (player.romeojuliet == 9) { + } else if (player.romeojuliet >= 100) { player.getPacketSender().sendMessage("Thanks for helping me!"); } - if (player.romeojuliet == 2 + if (player.romeojuliet == 20 && player.getItemAssistant().playerHasItem(755, 1)) { player.getDialogueHandler().sendDialogues(415, npcType); } - if (player.romeojuliet == 2 + if (player.romeojuliet == 20 && !player.getItemAssistant().playerHasItem(755, 1)) { player.getDialogueHandler().sendDialogues(421, npcType); } break; case WINELDA: - if (player.romeojuliet == 5) { + if (player.romeojuliet == 40) { player.getDialogueHandler().sendDialogues(432, npcType); } - if (player.romeojuliet == 6 + if (player.romeojuliet == 45 && player.getItemAssistant().playerHasItem(300, 1) && player.getItemAssistant().playerHasItem(227, 1) && player.getItemAssistant().playerHasItem(526, 1)) { player.getDialogueHandler().sendDialogues(448, npcType); } else { - if (player.romeojuliet == 6) { + if (player.romeojuliet == 45) { player.getDialogueHandler().sendDialogues(439, npcType); } } @@ -588,13 +586,13 @@ public class NpcActions { case JULIET: if (player.romeojuliet == 0) { player.getDialogueHandler().sendDialogues(409, npcType); - } else if (player.romeojuliet == 1) { + } else if (player.romeojuliet == 10) { player.getDialogueHandler().sendDialogues(410, npcType); - } else if (player.romeojuliet == 2) { + } else if (player.romeojuliet == 20) { player.getDialogueHandler().sendDialogues(414, npcType); - } else if (player.romeojuliet == 7) { + } else if (player.romeojuliet == 50) { player.getDialogueHandler().sendDialogues(457, npcType); - } else if (player.romeojuliet == 8) { + } else if (player.romeojuliet == 60) { player.getDialogueHandler().sendDialogues(468, npcType); } break; @@ -623,11 +621,11 @@ public class NpcActions { case DORIC: if (player.doricQuest == 0) { player.getDialogueHandler().sendDialogues(89, npcType); - } else if (player.doricQuest == 1) { + } else if (player.doricQuest == 10) { player.getDialogueHandler().sendDialogues(84, npcType); - } else if (player.doricQuest == 2) { + } else if (player.doricQuest == 20) { player.getDialogueHandler().sendDialogues(86, npcType); - } else if (player.doricQuest == 3) { + } else if (player.doricQuest >= 100) { player.getDialogueHandler().sendDialogues(100, npcType); } break; @@ -646,17 +644,6 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(157, npcType); } break; - case COOK: - if (player.cookAss == 0) { - player.getDialogueHandler().sendDialogues(50, npcType); - } else if (player.cookAss == 1) { - player.getDialogueHandler().sendDialogues(67, npcType); - } else if (player.cookAss == 2) { - player.getDialogueHandler().sendDialogues(69, npcType); - } else if (player.cookAss == 3) { - player.getDialogueHandler().sendDialogues(76, npcType); - } - break; case SIR_AMIK_VARZE: if (player.blackKnight == 0 && player.questPoints >= 12) { player.getDialogueHandler().sendDialogues(3902, npcType); @@ -664,7 +651,7 @@ public class NpcActions { player.getDialogueHandler().sendDialogues(3510, npcType); } else if (player.blackKnight == 2) { player.getDialogueHandler().sendDialogues(3502, npcType); - } else if (player.blackKnight == 3) { + } else if (player.blackKnight >= 4) { player.getPacketSender().sendMessage( "He has nothing to say to you."); } @@ -672,7 +659,7 @@ public class NpcActions { case FRED_THE_FARMER: if (player.sheepShear == 0) { player.getDialogueHandler().sendDialogues(164, npcType); - } else if (player.sheepShear == 1) { + } else if (player.sheepShear >= 1 && player.sheepShear < 21) { player.getDialogueHandler().sendDialogues(185, 1); } else { player.getPacketSender().sendMessage( @@ -805,20 +792,6 @@ public class NpcActions { case MONK_OF_ENTRANA: Sailing.startTravel(player, 1); break; - case 8689: //TODO Apparently Doesn't Exist But Spawns Banker In-Game - if (System.currentTimeMillis() - player.buryDelay > 1500) { - if (player.getItemAssistant().playerHasItem(1925, 1)) { - player.turnPlayerTo(player.objectX, player.objectY); - player.startAnimation(2292); - player.getItemAssistant().addItem(1927, 1); - player.getItemAssistant().deleteItem(1925, 1); - player.buryDelay = System.currentTimeMillis(); - } else { - player.getPacketSender().sendMessage( - "You need a bucket to milk a cow!"); - } - } - break; case VOID_KNIGHT_3789: player.getPacketSender().sendMessage( "You currently have " + @@ -998,7 +971,7 @@ public class NpcActions { case SEDRIDOR: case WIZARD_DISTENTOR: case WIZARD_CROMPERTY: - if (player.runeMist < 4 && player.playerRights <= 1) { + if (player.runeMist < 6 && player.playerRights <= 1) { player.getDialogueHandler().sendStatement("You need to beat rune mysteries first to do this."); player.nextChat = 0; return; @@ -1114,7 +1087,7 @@ public class NpcActions { } break; case AUBURY: - if (player.runeMist < 4 && player.playerRights <= 1) { + if (player.runeMist < 6 && player.playerRights <= 1) { player.getDialogueHandler().sendStatement("You need to beat rune mysteries first to do this."); return; } diff --git a/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcData.java b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcData.java index 6d728736..d0b984bd 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcData.java +++ b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcData.java @@ -5,6 +5,7 @@ import com.rs2.game.content.minigames.FightCaves; import com.rs2.game.players.PlayerHandler; import com.rs2.util.Misc; import com.rs2.world.Boundary; +import com.rs2.world.clip.PathFinder; import com.rs2.world.clip.Region; import java.util.ArrayList; @@ -109,79 +110,6 @@ public class NpcData { NpcHandler.npcs[i].updateRequired = true; } - public static void handleClipping(int i) { - Npc npc = NpcHandler.npcs[i]; - if (npc.moveX == 1 && npc.moveY == 1) { - if ((Region - .getClipping(npc.absX + 1, npc.absY + 1, npc.heightLevel) & 0x12801e0) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY + 1, npc.heightLevel) & 0x1280120) == 0) { - npc.moveY = 1; - } else { - npc.moveX = 1; - } - } - } else if (npc.moveX == -1 && npc.moveY == -1) { - if ((Region - .getClipping(npc.absX - 1, npc.absY - 1, npc.heightLevel) & 0x128010e) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY - 1, npc.heightLevel) & 0x1280102) == 0) { - npc.moveY = -1; - } else { - npc.moveX = -1; - } - } - } else if (npc.moveX == 1 && npc.moveY == -1) { - if ((Region - .getClipping(npc.absX + 1, npc.absY - 1, npc.heightLevel) & 0x1280183) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY - 1, npc.heightLevel) & 0x1280102) == 0) { - npc.moveY = -1; - } else { - npc.moveX = 1; - } - } - } else if (npc.moveX == -1 && npc.moveY == 1) { - if ((Region - .getClipping(npc.absX - 1, npc.absY + 1, npc.heightLevel) & 0x128013) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY + 1, npc.heightLevel) & 0x1280120) == 0) { - npc.moveY = 1; - } else { - npc.moveX = -1; - } - } - } // Checking Diagonal movement. - - if (npc.moveY == -1) { - if ((Region.getClipping(npc.absX, npc.absY - 1, npc.heightLevel) & 0x1280102) != 0) { - npc.moveY = 0; - } - } else if (npc.moveY == 1) { - if ((Region.getClipping(npc.absX, npc.absY + 1, npc.heightLevel) & 0x1280120) != 0) { - npc.moveY = 0; - } - } // Checking Y movement. - if (npc.moveX == 1) { - if ((Region.getClipping(npc.absX + 1, npc.absY, npc.heightLevel) & 0x1280180) != 0) { - npc.moveX = 0; - } - } else if (npc.moveX == -1) { - if ((Region.getClipping(npc.absX - 1, npc.absY, npc.heightLevel) & 0x1280108) != 0) { - npc.moveX = 0; - } - } // Checking X movement. - } - - /** * Attack delays **/ @@ -339,7 +267,7 @@ public class NpcData { public static boolean checkClip(Npc n) { - int x2 = 0, y2 = 0, x3 = 0, y3 = 0; + int x2 = 0, y2 = 0; if (n.killerId > 0) { if (PlayerHandler.players[n.killerId] == null) { return false; @@ -356,87 +284,21 @@ public class NpcData { return false; } int size = n.getSize(); - int x = Math.max(n.getX(), Math.min(x2, n.getX() + size - 1)); - int y = Math.max(n.getY(), Math.min(y2, n.getY() + size - 1)); - if (x == x2 && y == y2) { + if (inNpc(n.getX(), n.getY(), size, x2, y2)) { return false; } final int dis = distanceRequired(n.npcId); - int dis2 = 0; final boolean melee = dis < 2; - if (melee && size == 1 && x != x2 && y != y2) { - return false; + if (melee) { + return Region.canReachNpcMelee(x2, y2, n.heightLevel, n.getX(), n.getY(), size); } - // Algorithm starts here - int w = x2 - x; - int h = y2 - y; - int dx1 = 0, dy1 = 0, dx2 = 0, dy2 = 0; - if (w < 0) { - dx1 = -1; - } else if (w > 0) { - dx1 = 1; - } - if (h < 0) { - dy1 = -1; - } else if (h > 0) { - dy1 = 1; - } - if (w < 0) { - dx2 = -1; - } else if (w > 0) { - dx2 = 1; - } - int longest = Math.abs(w); - int shortest = Math.abs(h); - if (!(longest > shortest)) { - longest = Math.abs(h); - shortest = Math.abs(w); - if (h < 0) { - dy2 = -1; - } else if (h > 0) { - dy2 = 1; - } - dx2 = 0; - } - int numerator = longest >> 1; - boolean firstCheck = false; - for (int i = 0; i <= longest; i++) { - if (dis2 > dis) { - return false; - } - dis2++; - x3 = x; - y3 = y; - numerator += shortest; - if (!(numerator < longest)) { - numerator -= longest; - x += dx1; - y += dy1; - } else { - x += dx2; - y += dy2; - } - if (!firstCheck) { - if (melee) { - if (!Region.getClipping(x, y, n.heightLevel, x - x3, y - y3)) { - return false; - } - } - if (x == x2 && y == y2) { - break; - } - firstCheck = true; - } - if (melee) { - if (!Region.getClipping(x, y, n.heightLevel, x - x3, y - y3)) { - return false; - } - } - if (x == x2 && y == y2) { - return true; - } - } - return true; + int x = Math.max(n.getX(), Math.min(x2, n.getX() + size - 1)); + int y = Math.max(n.getY(), Math.min(y2, n.getY() + size - 1)); + return PathFinder.isProjectilePathClear(x, y, n.heightLevel, x2, y2); + } + + public static boolean inNpc(int npcX, int npcY, int size, int x2, int y2) { + return x2 >= npcX && x2 < npcX + size && y2 >= npcY && y2 < npcY + size; } public static boolean inNpc(int i, int x2, int y2) { @@ -444,10 +306,7 @@ public class NpcData { if (npc == null) { return false; } - int npcX = npc.getX(); - int npcY = npc.getY(); - int size = npc.getSize(); - return x2 >= npcX && x2 < npcX + size && y2 >= npcY && y2 < npcY + size; + return inNpc(npc.getX(), npc.getY(), npc.getSize(), x2, y2); } diff --git a/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcHandler.java b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcHandler.java index 4992c9ee..bd6da9ba 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcHandler.java +++ b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcHandler.java @@ -28,6 +28,7 @@ import com.rs2.game.players.PlayerHandler; import com.rs2.util.Misc; import com.rs2.util.NpcSpawn; import com.rs2.world.Boundary; +import com.rs2.world.clip.PathFinder; import com.rs2.world.clip.Region; import org.json.JSONArray; import org.json.JSONObject; @@ -151,15 +152,15 @@ public class NpcHandler { for (int i = 0; i < maxListedNPCs; i++) { NpcList[i] = null; } - loadNPCList(); - loadSpawnList(); - NPCDropsHandler.loadItemDropData(); try { NPCDefinition.init(); } catch (Exception e) { System.out.println("npc def error: "); e.printStackTrace(); } + loadNPCList(); + loadSpawnList(); + NPCDropsHandler.loadItemDropData(); } public static boolean isUndead(int index) { @@ -593,17 +594,25 @@ public class NpcHandler { npcs[i].underAttackBy = 0; } + if (Player.postNpcTick(i, npcs[i])) { + continue; + } + if ((npcs[i].killerId > 0 || npcs[i].underAttack) && !npcs[i].walkingHome && retaliates(npcs[i].npcType)) { if (!npcs[i].isDead) { int p = npcs[i].killerId; if (PlayerHandler.players[p] != null) { Player c = (Client) PlayerHandler.players[p]; - followPlayer(i, c); + boolean playerInside = NpcData.inNpc(npcs[i].absX, npcs[i].absY, npcs[i].getSize(), c.getX(), c.getY()); + if (playerInside) { + stepAway(c, i); + } else { + followPlayer(i, c); + } if (npcs[i] == null) { continue; } - stepAway(c, i); - if (npcs[i].attackTimer == 0) { + if (npcs[i].attackTimer == 0 && !NpcData.inNpc(npcs[i].absX, npcs[i].absY, npcs[i].getSize(), c.getX(), c.getY())) { NpcCombat.attackPlayer(c, i); } } else { @@ -653,10 +662,25 @@ public class NpcHandler { if (npcs[i].walkingHome && npcs[i].absX == npcs[i].makeX && npcs[i].absY == npcs[i].makeY) { npcs[i].walkingHome = false; + npcs[i].walkingHomeStuckTicks = 0; } else if (npcs[i].walkingHome) { npcs[i].moveX = GetMove(npcs[i].absX, npcs[i].makeX); npcs[i].moveY = GetMove(npcs[i].absY, npcs[i].makeY); handleClipping(i); + if (npcs[i].moveX == 0 && npcs[i].moveY == 0) { + npcs[i].walkingHomeStuckTicks++; + if (npcs[i].walkingHomeStuckTicks >= 10) { + npcs[i].absX = npcs[i].makeX; + npcs[i].absY = npcs[i].makeY; + npcs[i].walkingHome = false; + npcs[i].walkingHomeStuckTicks = 0; + npcs[i].getNextNPCMovement(i); + npcs[i].updateRequired = true; + continue; + } + } else { + npcs[i].walkingHomeStuckTicks = 0; + } npcs[i].getNextNPCMovement(i); npcs[i].updateRequired = true; } @@ -713,15 +737,13 @@ public class NpcHandler { } if (MoveX == 1) { - if (npcs[i].absX + MoveX < npcs[i].makeX + 1) { + if (npcs[i].absX + MoveX <= npcs[i].makeX + 1) { npcs[i].moveX = MoveX; } else { npcs[i].moveX = 0; } - } - - if (MoveX == -1) { - if (npcs[i].absX - MoveX > npcs[i].makeX - 1) { + } else if (MoveX == -1) { + if (npcs[i].absX + MoveX >= npcs[i].makeX - 1) { npcs[i].moveX = MoveX; } else { npcs[i].moveX = 0; @@ -729,22 +751,19 @@ public class NpcHandler { } if (MoveY == 1) { - if (npcs[i].absY + MoveY < npcs[i].makeY + 1) { + if (npcs[i].absY + MoveY <= npcs[i].makeY + 1) { npcs[i].moveY = MoveY; } else { npcs[i].moveY = 0; } - } - - if (MoveY == -1) { - if (npcs[i].absY - MoveY > npcs[i].makeY - 1) { + } else if (MoveY == -1) { + if (npcs[i].absY + MoveY >= npcs[i].makeY - 1) { npcs[i].moveY = MoveY; } else { npcs[i].moveY = 0; } } handleClipping(i); - // NpcData.handleClipping(i); npcs[i].getNextNPCMovement(i); npcs[i].updateRequired = true; } @@ -830,8 +849,8 @@ public class NpcHandler { if (npcs[i].npcType > BAT && npcs[i].npcType < ZOMBIE_419) { player.golemSpawned = false; } - if (npcs[i].npcType == COUNT_DRAYNOR && player.vampSlayer == 3) { - player.vampSlayer = 4; + if (npcs[i].npcType == COUNT_DRAYNOR && player.vampSlayer == 2) { + com.rs2.game.content.quests.QuestRewards.vampFinish(player); } if (npcs[i].npcType > BIG_FISH && npcs[i].npcType < COW_397) { RiverTroll.hasRiverTroll = false; @@ -952,131 +971,49 @@ public class NpcHandler { } private void stepAway(Player c, int i) { - int otherX = NpcHandler.npcs[i].getX(); - int otherY = NpcHandler.npcs[i].getY(); - if (otherX == c.getX() && otherY == c.getY()) { - if (Region.getClipping(c.getX() - 1, c.getY(), c.heightLevel, -1, 0)) { - npcs[i].moveX = -1; - } else if (Region.getClipping(c.getX() + 1, c.getY(), c.heightLevel, 1, 0)) { - npcs[i].moveX = 1; - } else if (Region.getClipping(c.getX(), c.getY() - 1, c.heightLevel, 0, -1)) { - npcs[i].moveY = -1; - } else if (Region.getClipping(c.getX(), c.getY() + 1, c.heightLevel, 0, 1)) { - npcs[i].moveY = 1; + Npc npc = NpcHandler.npcs[i]; + if (npc == null || c == null) { + return; + } + int size = npc.getSize(); + if (NpcData.inNpc(npc.absX, npc.absY, size, c.getX(), c.getY())) { + int[] deltaX = { -1, 1, 0, 0 }; + int[] deltaY = { 0, 0, -1, 1 }; + for (int d = 0; d < 4; d++) { + int nextX = npc.absX + deltaX[d]; + int nextY = npc.absY + deltaY[d]; + if (!NpcData.inNpc(nextX, nextY, size, c.getX(), c.getY()) + && Region.canMove(npc.absX, npc.absY, nextX, nextY, npc.heightLevel, size, size)) { + npc.moveX = deltaX[d]; + npc.moveY = deltaY[d]; + npc.getNextNPCMovement(i); + npc.updateRequired = true; + return; + } } - npcs[i].getNextNPCMovement(i); - npcs[i].updateRequired = true; } } public static void handleClipping(int i) { Npc npc = npcs[i]; - if (npc == null) { + if (npc == null || (npc.moveX == 0 && npc.moveY == 0)) { return; } int size = npc.getSize(); - if (size == 1) { - if (npc.moveX == 1 && npc.moveY == 1) { - if ((Region - .getClipping(npc.absX + 1, npc.absY + 1, npc.heightLevel) & 0x12801e0) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY + 1, npc.heightLevel) & 0x1280120) == 0) { - npc.moveY = 1; - } else { - npc.moveX = 1; - } - } - } else if (npc.moveX == -1 && npc.moveY == -1) { - if ((Region - .getClipping(npc.absX - 1, npc.absY - 1, npc.heightLevel) & 0x128010e) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY - 1, npc.heightLevel) & 0x1280102) == 0) { - npc.moveY = -1; - } else { - npc.moveX = -1; - } - } - } else if (npc.moveX == 1 && npc.moveY == -1) { - if ((Region - .getClipping(npc.absX + 1, npc.absY - 1, npc.heightLevel) & 0x1280183) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY - 1, npc.heightLevel) & 0x1280102) == 0) { - npc.moveY = -1; - } else { - npc.moveX = 1; - } - } - } else if (npc.moveX == -1 && npc.moveY == 1) { - if ((Region - .getClipping(npc.absX - 1, npc.absY + 1, npc.heightLevel) & 0x1280138) != 0) { - npc.moveX = 0; - npc.moveY = 0; - if ((Region - .getClipping(npc.absX, npc.absY + 1, npc.heightLevel) & 0x1280120) == 0) { - npc.moveY = 1; - } else { - npc.moveX = -1; - } - } - } // Checking Diagonal movement. - - if (npc.moveY == -1) { - if ((Region.getClipping(npc.absX, npc.absY - 1, npc.heightLevel) & 0x1280102) != 0) { - npc.moveY = 0; - } - } else if (npc.moveY == 1) { - if ((Region.getClipping(npc.absX, npc.absY + 1, npc.heightLevel) & 0x1280120) != 0) { - npc.moveY = 0; - } - } // Checking Y movement. - if (npc.moveX == 1) { - if ((Region.getClipping(npc.absX + 1, npc.absY, npc.heightLevel) & 0x1280180) != 0) { - npc.moveX = 0; - } - } else if (npc.moveX == -1) { - if ((Region.getClipping(npc.absX - 1, npc.absY, npc.heightLevel) & 0x1280108) != 0) { - npc.moveX = 0; - } - } // Checking X movement. - } else { - // Multi-tile NPC clipping - if (npc.moveY == -1) { - for (int offset = 0; offset < size; offset++) { - if ((Region.getClipping(npc.absX + offset, npc.absY - 1, npc.heightLevel) & 0x1280102) != 0) { - npc.moveY = 0; - break; - } - } - } else if (npc.moveY == 1) { - for (int offset = 0; offset < size; offset++) { - if ((Region.getClipping(npc.absX + offset, npc.absY + size, npc.heightLevel) & 0x1280120) != 0) { - npc.moveY = 0; - break; - } - } - } // Checking Y movement. - if (npc.moveX == 1) { - for (int offset = 0; offset < size; offset++) { - if ((Region.getClipping(npc.absX + size, npc.absY + offset, npc.heightLevel) & 0x1280180) != 0) { - npc.moveX = 0; - break; - } - } - } else if (npc.moveX == -1) { - for (int offset = 0; offset < size; offset++) { - if ((Region.getClipping(npc.absX - 1, npc.absY + offset, npc.heightLevel) & 0x1280108) != 0) { - npc.moveX = 0; - break; - } - } - } // Checking X movement. + if (Region.canMove(npc.absX, npc.absY, npc.absX + npc.moveX, npc.absY + npc.moveY, npc.heightLevel, size, size)) { + return; } + if (npc.moveX != 0 && npc.moveY != 0) { + if (Region.canMove(npc.absX, npc.absY, npc.absX + npc.moveX, npc.absY, npc.heightLevel, size, size)) { + npc.moveY = 0; + return; + } else if (Region.canMove(npc.absX, npc.absY, npc.absX, npc.absY + npc.moveY, npc.heightLevel, size, size)) { + npc.moveX = 0; + return; + } + } + npc.moveX = 0; + npc.moveY = 0; } /** @@ -1142,12 +1079,12 @@ public class NpcHandler { } break; case RAT: - if (c.witchspot == 1 || c.romeojuliet > 0 && c.romeojuliet < 9) { + if (c.witchspot == 1 || c.romeojuliet > 0 && c.romeojuliet < 100) { GameEngine.itemHandler.createGroundItem(c, StaticItemList.RATS_TAIL, npcs[i].absX, npcs[i].absY, 1, c.playerId); } break; case JONNY_THE_BEARD: - if (c.shieldArrav == 5) { + if (c.shieldArrav == 4) { GameEngine.itemHandler.createGroundItem(c, StaticItemList.SCROLL, npcs[i].absX, npcs[i].absY, 1, c.playerId); } break; @@ -1285,7 +1222,15 @@ public class NpcHandler { npcs[i].randomWalk = false; int reqDist = distanceRequired(i); if (NpcData.goodDistanceNpc(i, playerX, playerY, reqDist)) { - if (reqDist > 1 || npcs[i].getSize() > 1 || playerX == npcs[i].getX() || playerY == npcs[i].getY()) { + boolean inReach; + if (reqDist > 1) { + int targetX = Math.max(npcs[i].getX(), Math.min(playerX, npcs[i].getX() + npcs[i].getSize() - 1)); + int targetY = Math.max(npcs[i].getY(), Math.min(playerY, npcs[i].getY() + npcs[i].getSize() - 1)); + inReach = PathFinder.isProjectilePathClear(targetX, targetY, npcs[i].heightLevel, playerX, playerY); + } else { + inReach = Region.canReachNpcMelee(playerX, playerY, npcs[i].heightLevel, npcs[i].getX(), npcs[i].getY(), npcs[i].getSize()); + } + if (inReach) { return; } } @@ -1302,38 +1247,54 @@ public class NpcHandler { if (player != null && npc != null) { int targetX = Math.max(x, Math.min(playerX, x + npc.getSize() - 1)); int targetY = Math.max(y, Math.min(playerY, y + npc.getSize() - 1)); + int size = npc.getSize(); if (targetX == playerX && targetY == playerY) { - int dxToCenter = playerX * 2 - (2 * x + npc.getSize() - 1); - int dyToCenter = playerY * 2 - (2 * y + npc.getSize() - 1); + int dxToCenter = playerX * 2 - (2 * x + size - 1); + int dyToCenter = playerY * 2 - (2 * y + size - 1); + int stepX = dxToCenter >= 0 ? -1 : 1; + int stepY = dyToCenter >= 0 ? -1 : 1; if (Math.abs(dxToCenter) >= Math.abs(dyToCenter)) { - npc.moveX = dxToCenter >= 0 ? -1 : 1; + if (Region.canMove(x, y, x + stepX, y, npc.heightLevel, size, size)) { + npc.moveX = stepX; + } else if (Region.canMove(x, y, x, y + stepY, npc.heightLevel, size, size)) { + npc.moveY = stepY; + } } else { - npc.moveY = dyToCenter >= 0 ? -1 : 1; + if (Region.canMove(x, y, x, y + stepY, npc.heightLevel, size, size)) { + npc.moveY = stepY; + } else if (Region.canMove(x, y, x + stepX, y, npc.heightLevel, size, size)) { + npc.moveX = stepX; + } } - } else if (playerX > targetX && playerY < targetY) { - npc.moveX = GetMove(targetX, playerX); // Diagonal bottom right - } else if (playerX < targetX && playerY < targetY) { - npc.moveY = GetMove(targetY, playerY); // Diagonal bottom left - } else if (playerX < targetX && playerY > targetY) { - npc.moveX = GetMove(targetX, playerX); // Diagonal top left - } else if (playerX > targetX && playerY > targetY) { - npc.moveY = GetMove(targetY, playerY); // Diagonal top right - } else if (playerY < targetY) { - npc.moveX = GetMove(targetX, playerX); // Move South to player - npc.moveY = GetMove(targetY, playerY); - } else if (playerY > targetY) { - npc.moveX = GetMove(targetX, playerX); // Move North to player - npc.moveY = GetMove(targetY, playerY); - } else if (playerX < targetX) { - npc.moveX = GetMove(targetX, playerX); // Move West to player - npc.moveY = GetMove(targetY, playerY); - } else if (playerX > targetX) { - npc.moveX = GetMove(targetX, playerX); // Move East to player + } else if (Math.abs(playerX - targetX) == 1 && Math.abs(playerY - targetY) == 1) { + int stepX = GetMove(targetX, playerX); + int stepY = GetMove(targetY, playerY); + boolean preferX = (playerX > targetX && playerY < targetY) || (playerX < targetX && playerY > targetY); + if (preferX) { + if (Region.canMove(x, y, x + stepX, y, npc.heightLevel, size, size)) { + npc.moveX = stepX; + } else if (Region.canMove(x, y, x, y + stepY, npc.heightLevel, size, size)) { + npc.moveY = stepY; + } + } else { + if (Region.canMove(x, y, x, y + stepY, npc.heightLevel, size, size)) { + npc.moveY = stepY; + } else if (Region.canMove(x, y, x + stepX, y, npc.heightLevel, size, size)) { + npc.moveX = stepX; + } + } + } else { + npc.moveX = GetMove(targetX, playerX); npc.moveY = GetMove(targetY, playerY); } npc.facePlayer(player); handleClipping(i); - npc.getRandomAndHomeNPCWalking(i); + if (!NpcData.inNpc(x, y, npc.getSize(), playerX, playerY) + && NpcData.inNpc(x + npc.moveX, y + npc.moveY, npc.getSize(), playerX, playerY)) { + npc.moveX = 0; + npc.moveY = 0; + } + npc.getNextNPCMovement(i); npc.updateRequired = true; } } diff --git a/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcInteraction.java b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcInteraction.java new file mode 100644 index 00000000..53f17d14 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/npcs/NpcInteraction.java @@ -0,0 +1,143 @@ +package com.rs2.game.npcs; + +import com.rs2.event.CycleEvent; +import com.rs2.event.CycleEventContainer; +import com.rs2.event.CycleEventHandler; +import com.rs2.game.players.Player; +import com.rs2.world.clip.PathFinder; +import com.rs2.world.clip.Region; + +import java.util.ArrayList; +import java.util.Comparator; +import java.util.List; +import java.util.function.Consumer; + +/** + * Routes player interactions to NPCs and invokes them once they are in reach. + */ +public final class NpcInteraction { + + private NpcInteraction() { + } + + public static void handle(Player player, int clickType, Consumer onReached) { + if (player.npcClickIndex < 0 || player.npcClickIndex >= NpcHandler.npcs.length + || NpcHandler.npcs[player.npcClickIndex] == null) { + return; + } + Npc npc = NpcHandler.npcs[player.npcClickIndex]; + player.npcType = npc.npcType; + boolean startedOnNpcTile = clickType == 1 + && NpcData.inNpc(npc.getX(), npc.getY(), npc.getSize(), player.getX(), player.getY()); + + if (canReach(player, npc, clickType)) { + player.stopMovement(); + player.turnPlayerTo(npc.getX(), npc.getY()); + npc.facePlayer(player); + onReached.accept(npc); + } else { + // The clicked NPC supersedes movement from earlier packets in this batch. + // Clear both the pending client command and its already-built route before + // asking the pathfinder to approach this interaction's reach distance. + player.newWalkCmdSteps = 0; + player.resetWalkingQueue(); + if (clickType == 1) { + boolean routed = findRouteToNpcAdjacentTile(player, npc); + if (!routed && startedOnNpcTile) { + findRouteOffNpcTile(player, npc); + } + } else { + PathFinder.getPathFinder().findRoute(player, npc.getX(), npc.getY(), true, npc.getSize(), npc.getSize()); + } + player.clickNpcType = clickType; + CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { + @Override + public void execute(CycleEventContainer container) { + if (player.clickNpcType == clickType && player.npcClickIndex >= 0 + && player.npcClickIndex < NpcHandler.npcs.length + && NpcHandler.npcs[player.npcClickIndex] != null) { + Npc targetNpc = NpcHandler.npcs[player.npcClickIndex]; + boolean steppedOffOverlappingNpc = startedOnNpcTile + && !NpcData.inNpc(targetNpc.getX(), targetNpc.getY(), targetNpc.getSize(), player.getX(), player.getY()) + && isGeometricallyAdjacent(player, targetNpc); + if (canReach(player, targetNpc, clickType) || steppedOffOverlappingNpc) { + player.stopMovement(); + player.turnPlayerTo(targetNpc.getX(), targetNpc.getY()); + targetNpc.facePlayer(player); + onReached.accept(targetNpc); + container.stop(); + return; + } + } + if (player.clickNpcType != clickType) { + container.stop(); + return; + } + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + container.stop(); + } + } + + @Override + public void stop() { + player.clickNpcType = 0; + } + }, 1); + } + } + + /** + * Talk-to interactions require an adjacent tile. Other NPC actions retain + * their existing line-of-sight reach behavior. + */ + private static boolean canReach(Player player, Npc npc, int clickType) { + if (clickType == 1) { + return Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, + npc.getX(), npc.getY(), npc.getSize()); + } + return Region.canReachNpc(player.getX(), player.getY(), player.heightLevel, + npc.getX(), npc.getY(), npc.getSize()); + } + + private static boolean findRouteToNpcAdjacentTile(Player player, Npc npc) { + return findRouteToNpcTile(player, npc, true); + } + + private static boolean findRouteOffNpcTile(Player player, Npc npc) { + return findRouteToNpcTile(player, npc, false); + } + + private static boolean findRouteToNpcTile(Player player, Npc npc, boolean requireNpcReach) { + int npcX = npc.getX(); + int npcY = npc.getY(); + int size = npc.getSize(); + List candidates = new ArrayList<>(); + for (int offset = -1; offset <= size; offset++) { + candidates.add(new int[]{npcX + offset, npcY - 1}); + candidates.add(new int[]{npcX + offset, npcY + size}); + if (offset >= 0 && offset < size) { + candidates.add(new int[]{npcX - 1, npcY + offset}); + candidates.add(new int[]{npcX + size, npcY + offset}); + } + } + candidates.sort(Comparator.comparingInt(tile -> + Math.abs(player.getX() - tile[0]) + Math.abs(player.getY() - tile[1]))); + + for (int[] tile : candidates) { + if ((!requireNpcReach || Region.canReachNpcMelee(tile[0], tile[1], player.heightLevel, npcX, npcY, size)) + && PathFinder.getPathFinder().findRoute(player, tile[0], tile[1], false, 1, 1)) { + return true; + } + } + return false; + } + + private static boolean isGeometricallyAdjacent(Player player, Npc npc) { + int deltaX = player.getX() < npc.getX() ? npc.getX() - player.getX() + : Math.max(0, player.getX() - (npc.getX() + npc.getSize() - 1)); + int deltaY = player.getY() < npc.getY() ? npc.getY() - player.getY() + : Math.max(0, player.getY() - (npc.getY() + npc.getSize() - 1)); + return deltaX + deltaY == 1; + } +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/npcs/impl/MilkCow.java b/2006Scape Server/src/main/java/com/rs2/game/npcs/impl/MilkCow.java deleted file mode 100644 index 7096e70d..00000000 --- a/2006Scape Server/src/main/java/com/rs2/game/npcs/impl/MilkCow.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.rs2.game.npcs.impl; - -import com.rs2.event.CycleEvent; -import com.rs2.event.CycleEventContainer; -import com.rs2.event.CycleEventHandler; -import com.rs2.game.players.Player; - -/** - * @author Tom - */ - -public class MilkCow { - - /** - * The empty bucket Id - */ - private static int BUCKET = 1925; - - /** - * The bucket of milk Id - */ - private static int BUCKET_OF_MILK = 1927; - - public static void milk(final Player player) { - if (!player.getItemAssistant().playerHasItem(BUCKET)) { - player.getPacketSender().sendMessage("You need a bucket in order to milk this cow."); - return; - } else { - player.startAnimation(2305); - player.milking = true; - CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { - - @Override - public void execute(CycleEventContainer container) { - player.getItemAssistant().deleteItem(BUCKET, 1); - player.getPacketSender().sendMessage("You milk the cow."); - player.getItemAssistant().addItem(BUCKET_OF_MILK, 1); - container.stop(); - } - - @Override - public void stop() { - player.milking = false; - } - }, 7); - return; - } - } - -} diff --git a/2006Scape Server/src/main/java/com/rs2/game/objects/Objects.java b/2006Scape Server/src/main/java/com/rs2/game/objects/Objects.java index 6029fbff..dd4abe65 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/objects/Objects.java +++ b/2006Scape Server/src/main/java/com/rs2/game/objects/Objects.java @@ -39,6 +39,9 @@ public class Objects { } public int[] getObjectSize() { + if (objectId < 0 || objectId >= ObjectDefinition.count()) { + return new int[] {1, 1}; + } ObjectDefinition def = ObjectDefinition.lookup(objectId); if (def == null) { return new int[] {1, 1}; @@ -59,6 +62,14 @@ public class Objects { return new int[] {xLength, yLength}; } + public int getWalkToMask() { + if (objectId < 0 || objectId >= ObjectDefinition.count()) { + return 0; + } + ObjectDefinition def = ObjectDefinition.lookup(objectId); + return def != null ? def.getWalkToMask() : 0; + } + @Override public String toString() { return "Objects{" + diff --git a/2006Scape Server/src/main/java/com/rs2/game/objects/ObjectsActions.java b/2006Scape Server/src/main/java/com/rs2/game/objects/ObjectsActions.java index 6a42b478..04b65a59 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/objects/ObjectsActions.java +++ b/2006Scape Server/src/main/java/com/rs2/game/objects/ObjectsActions.java @@ -33,7 +33,6 @@ import com.rs2.game.globalworldobjects.PassDoor; import com.rs2.game.items.DeprecatedItems; import com.rs2.game.items.impl.LightSources; import com.rs2.game.npcs.NpcHandler; -import com.rs2.game.npcs.impl.MilkCow; import com.rs2.game.objects.impl.*; import com.rs2.game.players.Player; import com.rs2.game.players.Position; @@ -94,6 +93,7 @@ public class ObjectsActions { for (ClimbData t : ClimbData.values()) { if (objectType == t.getOpen()) { ClimbOther.useOther(player, objectType); + break; } } OtherObjects.interactCurtain(player, objectType, objectX, objectY); @@ -244,10 +244,10 @@ public class ObjectsActions { break; case 2272: - if (player.knightS == 5) { + if (player.knightS == 4) { player.getPacketSender().sendMessage("You search the cupboard..."); player.getDialogueHandler().sendDialogues(659, -1); - player.knightS = 6; + player.knightS = 5; } else { player.getPacketSender().sendMessage("You search the cupboard..."); player.getPacketSender().sendMessage("and don't find anything interesting."); @@ -407,18 +407,6 @@ public class ObjectsActions { player.getPacketSender().sendMessage("This chest is empty."); break; - case 1506: - case 1508: - if (player.absX == 3291 || player.absX == 3294) { - return; - } - if (player.absY == 3167) { - player.getPlayerAssistant().movePlayer(player.absX, 3166, 0); - } else if (player.absY == 3166) { - player.getPlayerAssistant().movePlayer(player.absX, 3167, 0); - } - break; - case 3832: player.getPlayerAssistant().movePlayer(3509, 9496, 2); break; @@ -629,15 +617,15 @@ public class ObjectsActions { break; case 2620: - if (player.gertCat == 6) { + if (player.gertCat >= 5) { player.getPacketSender().sendMessage("You have already found fluffs kitten."); return; } - if (player.gertCat == 5) { + if (player.gertCat == 4) { player.getPacketSender().sendMessage("You search the crate..."); if (Misc.random(25) == 1) { player.getItemAssistant().addItem(1554, 1); - player.gertCat = 6; + player.gertCat = 5; player.getPacketSender().sendMessage("You find the kitten you should go back to fluffs."); } else { player.getPacketSender().sendMessage("and find nothing..."); @@ -885,12 +873,6 @@ public class ObjectsActions { "Will be added later with the quest!"); break; - case 8689: - if (player.milking == false) { - MilkCow.milk(player); - } - break; - case 24: if (player.absX == 2764) { player.getPlayerAssistant().movePlayer(player.absX + 1, @@ -1410,11 +1392,9 @@ public class ObjectsActions { "You need 51 agility to use this shortcut."); return; } else if (player.absX == 3155) { - player.turnPlayerTo(player.objectX, player.objectY); player.getPlayerAssistant().movePlayer(3149, 9906, 0); player.startAnimation(844); } else if (player.absX == 3149) { - player.turnPlayerTo(player.objectX, player.objectY); player.getPlayerAssistant().movePlayer(3155, 9906, 0); player.startAnimation(844); } @@ -1816,7 +1796,7 @@ public class ObjectsActions { player.getItemAssistant().addItem(433, 1); player.getPacketSender().sendMessage( "All that's in the chest is a message..."); - player.pirateTreasure = 4; + player.pirateTreasure = 3; } else { player.getPacketSender().sendMessage( "You need a key to open this chest."); @@ -1855,16 +1835,16 @@ public class ObjectsActions { break; case 2614: - if (player.vampSlayer == 3 && player.clickedVamp == false) { + if (player.vampSlayer == 2 && player.clickedVamp == false) { NpcHandler.spawnNpc(player, 757, player.getX(), player.getY(), 0, 0, 50, 10, 30, 30, true, true); player.getPacketSender().sendMessage("You will need a stake and hammer to attack count draynor."); player.clickedVamp = true; - } else if (player.vampSlayer == 3 && player.clickedVamp) { + } else if (player.vampSlayer == 2 && player.clickedVamp) { player.getPacketSender().sendMessage("You have already spawned the vampyre."); return; - } else if (player.vampSlayer > 3) { + } else if (player.vampSlayer >= 3) { player.getPacketSender().sendMessage("You have already killed the vampire."); - } else if (player.vampSlayer < 3) { + } else if (player.vampSlayer < 2) { player.getPacketSender().sendMessage("You still need to progress into vampire slayer to fight this monster."); } break; @@ -1884,7 +1864,6 @@ public class ObjectsActions { case 10093: case 10094: if (player.getItemAssistant().playerHasItem(1927, 1)) { - player.turnPlayerTo(player.objectX, player.objectY); player.startAnimation(883); player.getItemAssistant().addItem(2130, 1); player.getItemAssistant().deleteItem(1927, 1); @@ -2176,7 +2155,7 @@ public class ObjectsActions { break; case 2403:// should be 2418 but not working - if (player.shieldArrav >= 6 && player.getItemAssistant().playerHasItem(759)) { + if (player.shieldArrav >= 5 && player.getItemAssistant().playerHasItem(759)) { GameEngine.objectHandler.createAnObject(player, 2604, objectX, objectY, player.heightLevel, 0); Region.addObject(2604, objectX, objectY, 0, 0, 0, false); } else { @@ -2185,7 +2164,7 @@ public class ObjectsActions { break; case 2604: - if (player.objectX == 3235 && player.objectY == 9761 && player.shieldArrav >= 6) { + if (player.objectX == 3235 && player.objectY == 9761 && player.shieldArrav >= 5) { player.getDialogueHandler().sendDialogues(742, -1); } else { player.getPacketSender().openUpBank(); @@ -2266,14 +2245,6 @@ public class ObjectsActions { player.getDialogueHandler().sendStatement("You arrive safely."); break; - case 1782:// full flour bin - FlourMill.emptyFlourBin(player); - break; - - case 2718: // Hopper - FlourMill.hopperControl(player); - break; - case 8972: if (!player.canLeaveArea) { player.getDialogueHandler().sendDialogues(3, 2458); diff --git a/2006Scape Server/src/main/java/com/rs2/game/objects/impl/Climbing.java b/2006Scape Server/src/main/java/com/rs2/game/objects/impl/Climbing.java index 97b7e639..290a7143 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/objects/impl/Climbing.java +++ b/2006Scape Server/src/main/java/com/rs2/game/objects/impl/Climbing.java @@ -22,6 +22,7 @@ public class Climbing { if (System.currentTimeMillis() - client.climbDelay < 1200) { return; } + client.climbDelay = System.currentTimeMillis(); client.stopPlayer = true; CycleEventHandler.getSingleton().addEvent(client, new CycleEvent() { @Override @@ -231,7 +232,7 @@ public class Climbing { client.resetWalkingQueue(); } else if (client.objectX == 3058 && client.objectY == 3376) { client.resetWalkingQueue(); - } else if (client.absX != 3186) { + } else if (client.absX != 3186 && client.absY < 6400) { client.getPlayerAssistant().movePlayer(client.absX, client.absY + 6393, 0); client.resetWalkingQueue(); @@ -249,7 +250,7 @@ public class Climbing { client.getPlayerAssistant().movePlayer(3061, client.absY - 6400, 0); client.resetWalkingQueue(); - } else if (client.absX != 3190) { + } else if (client.absX != 3190 && client.absY >= 6400) { client.getPlayerAssistant().movePlayer(client.absX, client.absY - 6396, 0); client.resetWalkingQueue(); @@ -457,6 +458,10 @@ public class Climbing { } else if (client.objectX == 3501 && client.objectY == 3475) { client.getPlayerAssistant().movePlayer(3500, 3476, 1); client.resetWalkingQueue(); + } else if (client.objectX == 2898 && client.objectY == 3428 + && client.heightLevel == 0) { + client.getPlayerAssistant().movePlayer(2897, 3428, 1); + client.resetWalkingQueue(); } break; case 3443: diff --git a/2006Scape Server/src/main/java/com/rs2/game/objects/impl/FlourMill.java b/2006Scape Server/src/main/java/com/rs2/game/objects/impl/FlourMill.java deleted file mode 100644 index ce4e92dd..00000000 --- a/2006Scape Server/src/main/java/com/rs2/game/objects/impl/FlourMill.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.rs2.game.objects.impl; - -import com.rs2.event.CycleEvent; -import com.rs2.event.CycleEventContainer; -import com.rs2.event.CycleEventHandler; -import com.rs2.game.players.Player; -import com.rs2.world.clip.Region; - -/** - * @author darkside1222 - */ - -public class FlourMill { - - public final static int EMPTY_POT = 1931, POT_OF_FLOUR = 1933, - GRAIN = 1947, EMPTY_FLOUR_BIN = 1781, FULL_FLOUR_BIN = 1782; - /** - * Limits the amount of flour. (RS-Limit = 30) - */ - public static int LIMIT = 30; - - /** - * Item on object.(Use grain on hopper) - * - * @param c - */ - public static void grainOnHopper(Player c, int objectID, int itemId) { - if (itemId == GRAIN) { - // Grain amount - flour amount. Prevents putting more than 30 - if (c.grain == LIMIT - c.flourAmount || c.flourAmount == LIMIT) { - c.getPacketSender().sendMessage( - "You can't put anymore grain into the hopper."); - return; - } - c.startAnimation(832); - c.getItemAssistant().deleteItem(GRAIN, 1); - c.grain++;// + 1 - c.getPacketSender().sendMessage( - "You put the grain in the hopper."); - } else { - c.getPacketSender().sendMessage("Nothing interesting happens."); - } - } - - /** - * When player operates the lever. - * - * @param c - */ - public static void hopperControl(final Player c) { - if (c.grain > 0) { - if (c.flourAmount == LIMIT) { - c.getPacketSender().sendMessage( - "There is currently too much grain in the hopper."); - return; - } - c.getPacketSender().sendMessage( - "You operate the hopper. The grain slides down the chute."); - c.startAnimation(832); - CycleEventHandler.getSingleton().addEvent(c, new CycleEvent() { - @Override - public void execute(CycleEventContainer container) { - if (c.heightLevel == 2) { - return; - } - if (c.heightLevel == 0) { - c.getPacketSender().object(FULL_FLOUR_BIN, 3166, 3306, 0, 10); - Region.addObject(FULL_FLOUR_BIN, 3166, 3306, 0, 10, 0, false); - container.stop(); - } - } - @Override - public void stop() { - - } - }, 1); - c.flourAmount += c.grain; - if (c.flourAmount > LIMIT) { - c.flourAmount = LIMIT;// Flour amount returns to limit. - } - c.grain = 0; - } else { - c.startAnimation(832); - c.getPacketSender().sendMessage( - "You operate the hopper. Nothing interesting happens."); - } - } - - /** - * Emptys the flour bin... - * - * @param player - */ - public static void emptyFlourBin(Player player) { - if (player.getItemAssistant().playerHasItem(EMPTY_POT, 1) - && player.flourAmount > 0) { - player.getItemAssistant().deleteItem(EMPTY_POT, 1); - player.getItemAssistant().addItem(POT_OF_FLOUR, 1); - player.getPacketSender().sendMessage( - "You fill a pot with flour from the bin."); - player.flourAmount--; - if (player.flourAmount < 0) { - player.flourAmount = 0; - } - if (player.flourAmount == 0) { - player.getPacketSender().object(EMPTY_FLOUR_BIN, 3166, 3306, 0, 10); - Region.addObject(EMPTY_FLOUR_BIN, 3166, 3306, 0, 10, 0, false); - player.getPacketSender().sendMessage( - "The flour bin is now empty."); - } - } else { - player.getPacketSender().sendMessage( - "You don't have an empty pot to fill flour with."); - } - } -} diff --git a/2006Scape Server/src/main/java/com/rs2/game/objects/impl/UseOther.java b/2006Scape Server/src/main/java/com/rs2/game/objects/impl/UseOther.java index bf1d652a..11c14bc6 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/objects/impl/UseOther.java +++ b/2006Scape Server/src/main/java/com/rs2/game/objects/impl/UseOther.java @@ -6,6 +6,10 @@ public class UseOther { public static void useUp(final Player player, final int objectId) { + if (System.currentTimeMillis() - player.climbDelay < 1200 || player.absY < 6400) { + return; + } + player.climbDelay = System.currentTimeMillis(); player.stopPlayerPacket = true; player.startAnimation(828); player.getPacketSender().closeAllWindows(); @@ -20,6 +24,10 @@ public class UseOther { player.getPacketSender().sendMessage("This trapdoor is currently disabled."); return; } + if (System.currentTimeMillis() - player.climbDelay < 1200 || player.absY >= 6400) { + return; + } + player.climbDelay = System.currentTimeMillis(); player.stopMovement(); player.startAnimation(827); player.getPacketSender().closeAllWindows(); diff --git a/2006Scape Server/src/main/java/com/rs2/game/players/Player.java b/2006Scape Server/src/main/java/com/rs2/game/players/Player.java index d95058d9..42dac7cb 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/players/Player.java +++ b/2006Scape Server/src/main/java/com/rs2/game/players/Player.java @@ -9,6 +9,7 @@ import com.rs2.game.content.combat.CombatAssistant; import com.rs2.game.content.combat.CombatConstants; import com.rs2.game.content.combat.Specials; import com.rs2.game.content.combat.magic.Enchanting; +import com.rs2.game.content.combat.magic.MagicData; import com.rs2.game.content.combat.prayer.PrayerData; import com.rs2.game.content.combat.prayer.PrayerDrain; import com.rs2.game.content.combat.range.DwarfCannon; @@ -37,6 +38,9 @@ import com.rs2.game.content.skills.smithing.SmithingInterface; import com.rs2.game.content.traveling.DesertCactus; import com.rs2.game.content.traveling.DesertHeat; import com.rs2.game.dialogues.DialogueHandler; +import com.rs2.game.dialogues.factory.DialogueFactory; +import com.rs2.game.dialogues.factory.Dialogue; +import com.rs2.game.dialogues.factory.OptionDialogue; import com.rs2.game.globalworldobjects.DoubleGates; import com.rs2.game.globalworldobjects.GateHandler; import com.rs2.game.globalworldobjects.SingleGates; @@ -46,7 +50,9 @@ import com.rs2.game.items.impl.Greegree.MonkeyData; import com.rs2.game.items.impl.PotionMixing; import com.rs2.game.items.impl.Teles; import com.rs2.game.npcs.Npc; +import com.rs2.world.clip.PathFinder; import com.rs2.game.npcs.NpcActions; +import com.rs2.game.npcs.NpcData; import com.rs2.game.npcs.NpcHandler; import com.rs2.game.npcs.impl.Pets; import com.rs2.game.objects.ObjectsActions; @@ -61,6 +67,7 @@ import com.rs2.util.Misc; import com.rs2.util.Stream; import com.rs2.world.Boundary; import com.rs2.world.ObjectManager; +import com.rs2.world.clip.Region; import io.netty.buffer.Unpooled; @@ -122,6 +129,10 @@ public abstract class Player { private final Slayer slayer = new Slayer(this); private final PacketSender packetSender = new PacketSender(this); private final DialogueHandler dialogues = new DialogueHandler(this); + private final DialogueFactory dialogueFactory = new DialogueFactory(this); + private final PlayerPluginData pluginData = new PlayerPluginData(); + private Optional dialogue = Optional.empty(); + private Optional optionDialogue = Optional.empty(); private final GnomeAgility gnomeStrongHold = new GnomeAgility(this); private final WildernessAgility wildernessAgility = new WildernessAgility(this); private final BarbarianAgility barbarianAgility = new BarbarianAgility(this); @@ -319,6 +330,30 @@ public abstract class Player { return dialogues; } + public DialogueFactory getDialogueFactory() { + return dialogueFactory; + } + + public PlayerPluginData getPluginData() { + return pluginData; + } + + public Optional getDialogue() { + return dialogue; + } + + public void setDialogue(Optional dialogue) { + this.dialogue = dialogue; + } + + public Optional getOptionDialogue() { + return optionDialogue; + } + + public void setOptionDialogue(Optional optionDialogue) { + this.optionDialogue = optionDialogue; + } + public PacketSender getPacketSender() { return packetSender; } @@ -754,6 +789,10 @@ public abstract class Player { eventProvider.post(null, event); } + public static boolean postNpcTick(int index, Npc npc) { + return eventProvider.postNpcTick(index, npc); + } + /** * Provides an event subscriber to this worlds event provider. * @@ -1389,7 +1428,7 @@ public abstract class Player { canSpeak = true, ignoreFrog, ratdied2, fishingWhirlPool, lostDuel, diedOnTut, storing, rope, rope2, canWalkTutorial, closeTutorialInterface, isCrafting, showedUnfire, - showedFire, isPotCrafting, isFiremaking, playerIsFletching, milking, + showedFire, isPotCrafting, isFiremaking, playerIsFletching, stopPlayerPacket, spiritTree, isSmelting, isSmithing, hasPaid, canTeleport, magicCharge, clickedVamp, allowFading, otherBank, @@ -1400,14 +1439,14 @@ public abstract class Player { randomEventsEnabled, debugMode, clickToTele = false; public int votePoints, saveDelay, playerKilled, gertCat, restGhost, - romeojuliet, runeMist, lostCity, vampSlayer, cookAss, doricQuest, blackKnight, shieldArrav, - sheepShear, impsC, princeAli, randomActions, + romeojuliet, runeMist, lostCity, vampSlayer, doricQuest, blackKnight, shieldArrav, + sheepShear, impsC, princeAli, randomActions, questVarpVersion = 0, totalPlayerDamageDealt, killedBy, lastChatId = 1, privateChat, dialogueId, randomCoffin, newLocation, specEffect, specBarId, attackLevelReq, defenceLevelReq, strengthLevelReq, rangeLevelReq, magicLevelReq, slayerLevelReq, agilityLevelReq, followPlayerId, skullTimer, nextChat = 0, talkingNpc = -1, - dialogueAction = 0, autocastId, followDistance, followNpcId, + dialogueAction = 0, autocastId = -1, followDistance, followNpcId, barrageCount = 0, delayedDamage = 0, delayedDamage2 = 0, pcPoints = 0, magePoints = 0, desertTreasure = 0, skillAmount, lastArrowUsed = -1, autoRet = 1, pcDamage = 0, xInterfaceId = 0, @@ -1423,7 +1462,7 @@ public abstract class Player { newItem, newXp, doingHerb, herbAmount, treeX, treeY, lastH, easterEvent, ectoTokens, cookingItem, smeltingItem, cookingObject, summonId, npcId2 = 0, leatherType = -1, weightCarried, teleotherType, rockX, rockY, itemUsing, tzKekTimer, - bananas, flourAmount, grain, questPoints, questStages, + bananas, questPoints, questStages, teleGrabItem, teleGrabX, teleGrabY, duelCount, underAttackBy, underAttackBy2, wildLevel, teleTimer, respawnTimer, saveTimer = 0, teleBlockLength, poisonDelay, slayerPoints, blackMarks, @@ -1539,6 +1578,7 @@ public abstract class Player { public String properName; public int lastX, lastY; + public int prevX, prevY; public int[] voidStatus = new int[5]; public int[] itemKeptId = new int[4]; public int[] pouches = new int[4]; @@ -1576,38 +1616,6 @@ public abstract class Player { } } - public boolean isAutoButton(int button) { - for (int j = 0; j < autocastIds.length; j += 2) { - if (autocastIds[j] == button) { - return true; - } - } - return false; - } - - public int[] autocastIds = { 51133, 32, 51185, 33, 51091, 34, 24018, 35, - 51159, 36, 51211, 37, 51111, 38, 51069, 39, 51146, 40, 51198, 41, - 51102, 42, 51058, 43, 51172, 44, 51224, 45, 51122, 46, 51080, 47, - 7038, 0, 7039, 1, 7040, 2, 7041, 3, 7042, 4, 7043, 5, 7044, 6, - 7045, 7, 7046, 8, 7047, 9, 7048, 10, 7049, 11, 7050, 12, 7051, 13, - 7052, 14, 7053, 15, 47019, 27, 47020, 25, 47021, 12, 47022, 13, - 47023, 14, 47024, 15 }; - - // public String spellName = "Select Spell"; - public void assignAutocast(int button) { - for (int j = 0; j < autocastIds.length; j++) { - if (autocastIds[j] == button) { - Client c = (Client) PlayerHandler.players[playerId]; - autocasting = true; - autocastId = autocastIds[j + 1]; - c.getPacketSender().sendConfig(108, 1); - c.getPacketSender().setSidebarInterface(0, 328); - c = null; - break; - } - } - } - public boolean inCwGame() { return isInAreaxxyy(2368, 2431, 9479, 9535) || isInAreaxxyy(2368, 2431, 3072, 3135) && !Boundary.isIn(this, Boundary.SARA_WAIT) && !Boundary.isIn(this, Boundary.ZAMMY_WAIT); } @@ -2095,26 +2103,84 @@ public abstract class Player { wQueueWritePtr = next; } + public boolean isUsingMagic() { + return usingMagic || castingMagic || autocasting || autocastId >= 0 || spellId > 0; + } + + public boolean isUsingBow() { + if (usingBow || RangeData.usingCrystalBow(this)) { + return true; + } + int weapon = playerEquipment[playerWeapon]; + for (int bowId : RangeData.BOWS) { + if (weapon == bowId) { + return true; + } + } + return false; + } + + public boolean isUsingOtherRange() { + if (usingRangeWeapon) { + return true; + } + int weapon = playerEquipment[playerWeapon]; + for (int otherRangeId : RangeData.OTHER_RANGE_WEAPONS) { + if (weapon == otherRangeId) { + return true; + } + } + return false; + } + + public boolean isUsingHally() { + return RangeData.usingHally(this); + } + + public boolean isUsingProjectileCombat() { + return isUsingMagic() || isUsingBow() || isUsingOtherRange(); + } + + public boolean isMeleeCombat() { + return !isUsingProjectileCombat(); + } + + public int getAttackDistance() { + if (isUsingMagic()) { + return CombatConstants.MAGIC_ATTACK_DISTANCE; + } + if (isUsingBow()) { + return gatherRangeDistance(CombatConstants.BOW_DEFAULT_DISTANCE); + } + if (isUsingOtherRange()) { + return gatherRangeDistance(CombatConstants.OTHER_RANGE_DEFAULT_DISTANCE); + } + if (isUsingHally()) { + return CombatConstants.HALBERD_ATTACK_DISTANCE; + } + return CombatConstants.MELEE_ATTACK_DISTANCE; + } + public boolean checkRangeDistance() { - return (usingRangeWeapon || usingBow); + return isUsingOtherRange() || isUsingBow(); } public int gatherRangeDistance(int distance) { //dart (non long range) - if (usingRangeWeapon && RangeData.usingDart(this) && fightMode != 3) { - distance = 3; + if (isUsingOtherRange() && RangeData.usingDart(this) && fightMode != 3) { + distance = CombatConstants.DART_DEFAULT_DISTANCE; //longbow (long range) - } else if (usingBow && fightMode == 3 && RangeData.usingLongbow(this)) { - distance = 10; + } else if (isUsingBow() && fightMode == 3 && RangeData.usingLongbow(this)) { + distance = CombatConstants.LONGBOW_LONGRANGE_DISTANCE; //longbow (non long range) - } else if (usingBow && fightMode != 3 && RangeData.usingLongbow(this)) { - distance = RangeData.usingCrystalBow(this) ? 10 : 8; + } else if (isUsingBow() && fightMode != 3 && RangeData.usingLongbow(this)) { + distance = RangeData.usingCrystalBow(this) ? CombatConstants.CRYSTAL_BOW_DISTANCE : CombatConstants.LONGBOW_DEFAULT_DISTANCE; //dart, knife, throwing axe (long range) - } else if (usingRangeWeapon && fightMode == 3) { - distance = RangeData.usingDart(this) ? 5 : 6; + } else if (isUsingOtherRange() && fightMode == 3) { + distance = RangeData.usingDart(this) ? CombatConstants.DART_LONGRANGE_DISTANCE : CombatConstants.THROWN_LONGRANGE_DISTANCE; //short bow - } else if (usingBow && !RangeData.usingLongbow(this)) { - distance = fightMode == 3 ? 7 : 9; + } else if (isUsingBow() && !RangeData.usingLongbow(this)) { + distance = fightMode == 3 ? CombatConstants.SHORTBOW_LONGRANGE_DISTANCE : CombatConstants.SHORTBOW_DEFAULT_DISTANCE; } return distance; } @@ -2150,10 +2216,39 @@ public abstract class Player { return -1; } dir >>= 1; + + int targetNpc = npcIndex > 0 ? npcIndex : (followNpcId > 0 ? followNpcId : (clickNpcType > 0 ? npcClickIndex : 0)); + if (targetNpc > 0 && targetNpc < NpcHandler.npcs.length && NpcHandler.npcs[targetNpc] != null) { + if (isMeleeCombat()) { + int nextX = absX + Misc.directionDeltaX[dir]; + int nextY = absY + Misc.directionDeltaY[dir]; + if (!NpcData.inNpc(targetNpc, absX, absY) && NpcData.inNpc(targetNpc, nextX, nextY)) { + resetWalkingQueue(); + return -1; + } + } else if (npcIndex > 0 && targetNpc == npcIndex) { + Npc npc = NpcHandler.npcs[targetNpc]; + int targetX = Math.max(npc.getX(), Math.min(absX, npc.getX() + npc.getSize() - 1)); + int targetY = Math.max(npc.getY(), Math.min(absY, npc.getY() + npc.getSize() - 1)); + if (NpcData.goodDistanceNpc(targetNpc, absX, absY, getAttackDistance()) + && PathFinder.isProjectilePathClear(absX, absY, heightLevel, targetX, targetY)) { + resetWalkingQueue(); + return -1; + } + } + } + + int nextStepX = absX + Misc.directionDeltaX[dir]; + int nextStepY = absY + Misc.directionDeltaY[dir]; + if (!Region.canMove(absX, absY, nextStepX, nextStepY, heightLevel, 1, 1)) { + resetWalkingQueue(); + return -1; + } + + prevX = absX; + prevY = absY; currentX += Misc.directionDeltaX[dir]; currentY += Misc.directionDeltaY[dir]; - /*if (!Region.canMove(absX, absY, (absX + Misc.directionDeltaX[dir]), (absY + Misc.directionDeltaY[dir]), heightLevel, 1, 1)) - return -1;*/ absX += Misc.directionDeltaX[dir]; absY += Misc.directionDeltaY[dir]; updateWalkEntities(); @@ -2205,6 +2300,8 @@ public abstract class Player { if (heightLevel != newHeight) GameEngine.itemHandler.reloadItems(this); heightLevel = newHeight; + prevX = absX; + prevY = Region.canMove(absX, absY, absX, absY - 1, heightLevel, 1, 1) ? absY - 1 : absY; resetWalkingQueue(); teleportToX = teleportToY = teleHeight = -1; @@ -3172,4 +3269,4 @@ public abstract class Player { updateRequired = true; } -} \ No newline at end of file +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/players/PlayerAssistant.java b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerAssistant.java index c1d4cc30..c33d8406 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/players/PlayerAssistant.java +++ b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerAssistant.java @@ -67,9 +67,12 @@ public class PlayerAssistant { } public void resetAutocast() { - player.autocastId = 0; + player.autocastId = -1; player.autocasting = false; player.getPacketSender().sendConfig(108, 0); + player.getPacketSender().sendString("(none set)", 352, true); + player.getPacketSender().setSidebarInterface(0, 328); + player.getPacketSender().sendFrame36(43, player.fightMode); } public void setAnimationBack() { @@ -99,13 +102,6 @@ public class PlayerAssistant { player.getPacketSender().showInterface(15244); player.getPacketSender().sendString("Welcome to " + Constants.SERVER_NAME + " World: " + Constants.WORLD + "\\n", 15257); int currentDay = player.getLastLogin() - player.lastLoginDate; - - if (player.playerLevel[Constants.HERBLORE] < 3) { - - player.playerLevel[Constants.HERBLORE] = 3; - player.playerXP[Constants.HERBLORE] = 175; - player.getPlayerAssistant().refreshSkill(Constants.HERBLORE); - } if (player.lastLoginDate <= 0) { player.getPacketSender().sendString("This is your first time logging in!", 15258); } else if (player.lastLoginDate == 1) { @@ -1407,7 +1403,7 @@ public class PlayerAssistant { GameLogger.writeLog(player.playerName, "duelingkilled", player.playerName + " was killed by " + duelOpponent.playerName + " in the duel arena."); } } - if (player.vampSlayer == 3 && player.clickedVamp) { + if (player.vampSlayer == 2 && player.clickedVamp) { player.clickedVamp = false; } else if (player.isWoodcutting) { player.isWoodcutting = false; @@ -1601,16 +1597,32 @@ public class PlayerAssistant { int bestY = 0; double bestDist = 99999; - boolean projectile = player.usingMagic || player.usingBow || player.usingRangeWeapon; + boolean projectile = player.isUsingProjectileCombat(); for (int i = 0; i < nodes.length; i++) { - double dist = Misc.distance(player.absX, player.absY, nodes[i][0], nodes[i][1]); + int nx = nodes[i][0]; + int ny = nodes[i][1]; + if ((Region.getClipping(nx, ny, player.heightLevel) & 0x1280100) != 0) { + continue; + } + double dist = Misc.distance(player.absX, player.absY, nx, ny); if (dist < bestDist) { - if (PathFinder.getPathFinder().accessible(player.absX, player.absY, player.heightLevel, nodes[i][0], nodes[i][1])) { - if (!projectile || PathFinder.isProjectilePathClear(nodes[i][0], nodes[i][1], player.heightLevel, x, y)) { - bestDist = dist; - bestX = nodes[i][0]; - bestY = nodes[i][1]; + if (PathFinder.getPathFinder().accessible(player.absX, player.absY, player.heightLevel, nx, ny)) { + if (player.playerIndex == 0 || projectile) { + if (!projectile || PathFinder.isProjectilePathClear(nx, ny, player.heightLevel, x, y)) { + bestDist = dist; + bestX = nx; + bestY = ny; + } + } else { + boolean canReach = player.isUsingHally() + ? Region.canReachHalberd(nx, ny, player.heightLevel, x, y, 1) + : Region.canReachNpcMelee(nx, ny, player.heightLevel, x, y, 1); + if (canReach) { + bestDist = dist; + bestX = nx; + bestY = ny; + } } } } @@ -1625,8 +1637,8 @@ public class PlayerAssistant { } public void followPlayer() { - if (PlayerHandler.players[player.followPlayerId] == null - || PlayerHandler.players[player.followPlayerId].isDead) { + Player other = PlayerHandler.players[player.followPlayerId]; + if (other == null || other.isDead) { resetFollow(); return; } @@ -1637,22 +1649,114 @@ public class PlayerAssistant { return; } - int otherX = PlayerHandler.players[player.followPlayerId].getX(); - int otherY = PlayerHandler.players[player.followPlayerId].getY(); + int otherX = other.getX(); + int otherY = other.getY(); - if (!player.goodDistance(otherX, otherY, player.getX(), player.getY(), - 25)) { + if (other.heightLevel != player.heightLevel + || !player.goodDistance(otherX, otherY, player.getX(), player.getY(), 25)) { player.followPlayerId = 0; resetFollow(); return; } - int[] follow = getFollowLocation(otherX, otherY); player.faceUpdate(player.followPlayerId + 32768); - PathFinder.getPathFinder().findRoute(player, follow[0], follow[1], false, 1, 1); + + if (player.playerIndex > 0) { + if (player.isUsingProjectileCombat()) { + int attackDist = player.getAttackDistance(); + if (player.goodDistance(otherX, otherY, player.getX(), player.getY(), attackDist) + && PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, otherX, otherY)) { + player.stopMovement(); + return; + } + } else { + int reachDist = player.isUsingHally() ? player.getAttackDistance() : 1; + if (player.goodDistance(otherX, otherY, player.getX(), player.getY(), reachDist)) { + boolean canReach = player.isUsingHally() + ? Region.canReachHalberd(player.getX(), player.getY(), player.heightLevel, otherX, otherY, 1) + : (player.getX() == otherX || player.getY() == otherY) + && Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, otherX, otherY, 1); + if (canReach) { + player.stopMovement(); + return; + } + } + } + int[] follow = getFollowLocation(otherX, otherY); + PathFinder.getPathFinder().findRoute(player, follow[0], follow[1], true, 1, 1); + return; + } + + int targetX = other.prevX; + int targetY = other.prevY; + boolean invalidPrev = (targetX == otherX && targetY == otherY) + || (Region.getClipping(targetX, targetY, player.heightLevel) & 0x1280100) != 0 + || !PathFinder.getPathFinder().accessible(player.absX, player.absY, player.heightLevel, targetX, targetY); + if (invalidPrev) { + int[] follow = getFollowLocation(otherX, otherY); + targetX = follow[0]; + targetY = follow[1]; + } + + if (player.absX == targetX && player.absY == targetY) { + player.stopMovement(); + return; + } + + PathFinder.getPathFinder().findRoute(player, targetX, targetY, true, 1, 1); } + public int[] getFollowNpcLocation(Npc npc) { + int npcX = npc.getX(); + int npcY = npc.getY(); + int size = npc.getSize(); + int bestX = npcX; + int bestY = npcY; + double bestDist = 99999; + boolean hally = player.isUsingHally(); + int reach = hally ? 2 : 1; + + int minX = npcX - reach; + int maxX = npcX + size + reach - 1; + int minY = npcY - reach; + int maxY = npcY + size + reach - 1; + + for (int x = minX; x <= maxX; x++) { + for (int y = minY; y <= maxY; y++) { + if (x >= npcX && x < npcX + size && y >= npcY && y < npcY + size) { + continue; + } + if (!hally && (x < npcX || x >= npcX + size) && (y < npcY || y >= npcY + size)) { + continue; + } + if ((Region.getClipping(x, y, player.heightLevel) & 0x1280100) != 0) { + continue; + } + boolean canReach = hally + ? Region.canReachHalberd(x, y, player.heightLevel, npcX, npcY, size) + : Region.canReachNpcMelee(x, y, player.heightLevel, npcX, npcY, size); + if (!canReach) { + continue; + } + double dist = Misc.distance(player.absX, player.absY, x, y); + if (dist >= bestDist) { + continue; + } + if (!PathFinder.getPathFinder().accessible(player.absX, player.absY, player.heightLevel, x, y)) { + continue; + } + bestDist = dist; + bestX = x; + bestY = y; + } + } + if (bestDist == 99999) { + return null; + } + return new int[] { bestX, bestY }; + } + public void followNpc() { Npc npc = NpcHandler.npcs[player.followNpcId]; if (npc == null || npc.isDead) { @@ -1668,13 +1772,54 @@ public class PlayerAssistant { } player.faceUpdate(player.followNpcId); - int followDist = RangeData.usingHally(player) ? 2 : 1; - if (NpcData.goodDistanceNpc(player.followNpcId, player.getX(), player.getY(), followDist)) { - if (followDist > 1 || npc.getSize() > 1 || player.getX() == npc.getX() || player.getY() == npc.getY()) { + int targetX = Math.max(npc.getX(), Math.min(player.getX(), npc.getX() + npc.getSize() - 1)); + int targetY = Math.max(npc.getY(), Math.min(player.getY(), npc.getY() + npc.getSize() - 1)); + + if (player.isUsingProjectileCombat()) { + int attackDist = player.getAttackDistance(); + if (NpcData.goodDistanceNpc(player.followNpcId, player.getX(), player.getY(), attackDist) + && PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, targetX, targetY)) { + player.stopMovement(); return; } + } else { + int reachDist = player.isUsingHally() ? player.getAttackDistance() : 1; + if (NpcData.goodDistanceNpc(player.followNpcId, player.getX(), player.getY(), reachDist)) { + boolean canReach = player.isUsingHally() + ? Region.canReachHalberd(player.getX(), player.getY(), player.heightLevel, npc.getX(), npc.getY(), npc.getSize()) + : Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, npc.getX(), npc.getY(), npc.getSize()); + if (canReach) { + player.stopMovement(); + return; + } + } + } + + boolean isMelee = player.isMeleeCombat(); + boolean routeFound; + if (isMelee) { + int[] loc = getFollowNpcLocation(npc); + if (loc == null) { + player.getPacketSender().sendMessage("I can't reach that."); + player.stopMovement(); + resetFollow(); + player.getCombatAssistant().resetPlayerAttack(); + return; + } + if (loc[0] == player.getX() && loc[1] == player.getY()) { + player.stopMovement(); + return; + } + routeFound = PathFinder.getPathFinder().findRoute(player, loc[0], loc[1], true, 1, 1); + } else { + routeFound = PathFinder.getPathFinder().findRoute(player, x, y, true, npc.getSize(), npc.getSize()); + } + if (!routeFound && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + player.stopMovement(); + resetFollow(); + player.getCombatAssistant().resetPlayerAttack(); } - PathFinder.getPathFinder().findRoute(player, x, y, true, npc.getSize(), npc.getSize()); } public int getRunningMove(int i, int j) { @@ -2270,14 +2415,32 @@ public class PlayerAssistant { } public void handleWeaponStyle() { - if (player.fightMode == 0) { - player.getPacketSender().sendConfig(43, player.fightMode); - } else if (player.fightMode == 1) { - player.getPacketSender().sendConfig(43, 3); - } else if (player.fightMode == 2) { - player.getPacketSender().sendConfig(43, 1); - } else if (player.fightMode == 3) { - player.getPacketSender().sendConfig(43, 2); + String weaponName = DeprecatedItems.getItemName(player.playerEquipment[player.playerWeapon]); + boolean isStaff = weaponName.startsWith("Staff") || weaponName.endsWith("staff") || weaponName.endsWith("wand"); + if (isStaff && player.autocasting && player.autocastId >= 0) { + player.getPacketSender().sendConfig(43, -1); + return; + } + if (isStaff) { + if (player.fightMode == 0) { + player.getPacketSender().sendConfig(43, 0); // Bash (accurate) + } else if (player.fightMode == 1) { + player.getPacketSender().sendConfig(43, 2); // Focus - Block (defensive) + } else if (player.fightMode == 2) { + player.getPacketSender().sendConfig(43, 1); // Pound (aggressive) + } else { + player.getPacketSender().sendConfig(43, 0); + } + } else { + if (player.fightMode == 0) { + player.getPacketSender().sendConfig(43, 0); + } else if (player.fightMode == 1) { + player.getPacketSender().sendConfig(43, 3); + } else if (player.fightMode == 2) { + player.getPacketSender().sendConfig(43, 1); + } else if (player.fightMode == 3) { + player.getPacketSender().sendConfig(43, 2); + } } } diff --git a/2006Scape Server/src/main/java/com/rs2/game/players/PlayerHandler.java b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerHandler.java index 60ba61e4..5a02520c 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/players/PlayerHandler.java +++ b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerHandler.java @@ -292,7 +292,7 @@ public class PlayerHandler { int size = plr.npcListSize; plr.npcListSize = 0; for (int i = 0; i < size; i++) { - if (plr.rebuildNPCList == false && plr.withinDistance(plr.npcList[i])) { + if (plr.rebuildNPCList == false && !plr.npcList[i].teleported && plr.withinDistance(plr.npcList[i])) { plr.npcList[i].updateNPCMovement(str); plr.npcList[i].appendNPCUpdateBlock(updateBlock); plr.npcList[plr.npcListSize++] = plr.npcList[i]; diff --git a/2006Scape Server/src/main/java/com/rs2/game/players/PlayerPluginData.java b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerPluginData.java new file mode 100644 index 00000000..5e2ab0c5 --- /dev/null +++ b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerPluginData.java @@ -0,0 +1,90 @@ +package com.rs2.game.players; + +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.regex.Pattern; + +/** Namespaced, per-player storage for plugin-owned values. */ +public final class PlayerPluginData { + public static final String KEY_PREFIX = "plugin-data."; + private static final Pattern NAME_PATTERN = Pattern.compile("[A-Za-z0-9_.-]+"); + + private final Map values = new LinkedHashMap<>(); + + public void putString(String plugin, String key, String value) { + if (value == null) { + throw new IllegalArgumentException("Plugin data values cannot be null."); + } + values.put(key(plugin, key), value); + } + + public void putInt(String plugin, String key, int value) { + putString(plugin, key, Integer.toString(value)); + } + + public void putLong(String plugin, String key, long value) { + putString(plugin, key, Long.toString(value)); + } + + public void putBoolean(String plugin, String key, boolean value) { + putString(plugin, key, Boolean.toString(value)); + } + + public String getString(String plugin, String key, String defaultValue) { + String value = values.get(key(plugin, key)); + return value == null ? defaultValue : value; + } + + public int getInt(String plugin, String key, int defaultValue) { + try { + return Integer.parseInt(getString(plugin, key, null)); + } catch (NumberFormatException | NullPointerException ignored) { + return defaultValue; + } + } + + public long getLong(String plugin, String key, long defaultValue) { + try { + return Long.parseLong(getString(plugin, key, null)); + } catch (NumberFormatException | NullPointerException ignored) { + return defaultValue; + } + } + + public boolean getBoolean(String plugin, String key, boolean defaultValue) { + String value = getString(plugin, key, null); + return value == null ? defaultValue : Boolean.parseBoolean(value); + } + + public void remove(String plugin, String key) { + values.remove(key(plugin, key)); + } + + public Map getValues() { + return Collections.unmodifiableMap(values); + } + + public Map getSaveValues() { + return new LinkedHashMap<>(values); + } + + public void loadSerializedValues(Map serialized) { + values.clear(); + if (serialized == null) return; + for (Map.Entry entry : serialized.entrySet()) { + if (entry.getKey().startsWith(KEY_PREFIX)) { + values.put(entry.getKey(), entry.getValue()); + } + } + } + + public static String key(String plugin, String key) { + if (plugin == null || !NAME_PATTERN.matcher(plugin).matches() + || key == null || !NAME_PATTERN.matcher(key).matches()) { + throw new IllegalArgumentException("Plugin and data keys must contain only letters, digits, '.', '_' or '-'."); + } + return KEY_PREFIX + plugin + "." + key; + } + +} diff --git a/2006Scape Server/src/main/java/com/rs2/game/players/PlayerSave.java b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerSave.java index af938f3b..5c73c917 100644 --- a/2006Scape Server/src/main/java/com/rs2/game/players/PlayerSave.java +++ b/2006Scape Server/src/main/java/com/rs2/game/players/PlayerSave.java @@ -5,8 +5,11 @@ import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Base64; +import java.util.LinkedHashMap; import java.util.Map; +import com.rs2.event.impl.PlayerLoadDataEvent; +import com.rs2.event.impl.PlayerSaveDataEvent; import com.rs2.util.Misc; public class PlayerSave { @@ -25,6 +28,8 @@ public class PlayerSave { String[] token3 = new String[3]; boolean EndOfFile = false; int ReadMode = 0; + Map pluginData = new LinkedHashMap<>(); + Map legacyData = new LinkedHashMap<>(); BufferedReader characterfile = null; boolean File1 = false; @@ -255,9 +260,6 @@ public class PlayerSave { case "questStages": player.questStages = Integer.parseInt(token2); break; - case "cookAss": - player.cookAss = Integer.parseInt(token2); - break; case "princeAli": player.princeAli = Integer.parseInt(token2); break; @@ -312,6 +314,9 @@ public class PlayerSave { case "knightS": player.knightS = Integer.parseInt(token2); break; + case "questVarpVersion": + player.questVarpVersion = Integer.parseInt(token2); + break; case "lastX": player.lastX = Integer.parseInt(token2); break; @@ -452,6 +457,13 @@ public class PlayerSave { case "display-regular-kc-messages": player.displayRegularKcMessages = Boolean.parseBoolean(token2); break; + default: + if (token.startsWith(PlayerPluginData.KEY_PREFIX)) { + pluginData.put(token, token2); + } else { + legacyData.put(token, token2); + } + break; } break; case 3: @@ -542,6 +554,7 @@ public class PlayerSave { characterfile.close(); } catch (IOException ignored) { } + loadPluginData(player, pluginData, legacyData); return 1; } } @@ -555,6 +568,7 @@ public class PlayerSave { characterfile.close(); } catch (IOException ignored) { } + loadPluginData(player, pluginData, legacyData); if (doRealLogin) return 13; else @@ -579,6 +593,93 @@ public class PlayerSave { return hashed; } + private static void loadPluginData(Client player, Map pluginData, Map legacyData) { + player.getPluginData().loadSerializedValues(pluginData); + player.post(new PlayerLoadDataEvent(pluginData, legacyData)); + migrateQuestStagesToVarp(player); + } + + private static void migrateQuestStagesToVarp(Client player) { + if (player.questVarpVersion >= 1) { + return; + } + int cookStage = player.getPluginData().getInt("quests.cooksassistant", "stage", 0); + if (cookStage >= 3) { + player.getPluginData().putInt("quests.cooksassistant", "stage", 2); + } else if (cookStage == 2) { + player.getPluginData().putInt("quests.cooksassistant", "stage", 1); + player.getPluginData().putInt("quests.cooksassistant", "itemsGiven", 1); + } + if (player.doricQuest >= 3) { + player.doricQuest = 100; + } else if (player.doricQuest >= 1) { + player.doricQuest = 10; + } + if (player.sheepShear >= 2) { + player.sheepShear = 21; + } + if (player.lostCity >= 3) { + player.lostCity = 6; + } + if (player.blackKnight >= 3) { + player.blackKnight = 4; + } + if (player.runeMist >= 4) { + player.runeMist = 6; + } + if (player.pirateTreasure >= 6) { + player.pirateTreasure = 4; + } else if (player.pirateTreasure >= 4) { + player.pirateTreasure = 3; + } else if (player.pirateTreasure >= 2) { + player.pirateTreasure = 2; + } + if (player.vampSlayer >= 5) { + player.vampSlayer = 3; + } else if (player.vampSlayer >= 3) { + player.vampSlayer = 2; + } else if (player.vampSlayer >= 1) { + player.vampSlayer = 1; + } + if (player.romeojuliet >= 9) { + player.romeojuliet = 100; + } else if (player.romeojuliet == 8) { + player.romeojuliet = 60; + } else if (player.romeojuliet == 7) { + player.romeojuliet = 50; + } else if (player.romeojuliet == 6) { + player.romeojuliet = 40; + } else if (player.romeojuliet == 5) { + player.romeojuliet = 30; + } else if (player.romeojuliet >= 2) { + player.romeojuliet = 20; + } else if (player.romeojuliet == 1) { + player.romeojuliet = 10; + } + if (player.knightS >= 9) { + player.knightS = 7; + } else if (player.knightS >= 7) { + player.knightS = 6; + } else if (player.knightS == 6) { + player.knightS = 5; + } else if (player.knightS == 5) { + player.knightS = 4; + } else if (player.knightS >= 3) { + player.knightS = 3; + } + if (player.gertCat >= 7) { + player.gertCat = 6; + } else if (player.gertCat >= 2) { + player.gertCat = player.gertCat - 1; + } + if (player.shieldArrav >= 8) { + player.shieldArrav = 7; + } else if (player.shieldArrav >= 2) { + player.shieldArrav = player.shieldArrav - 1; + } + player.questVarpVersion = 1; + } + /** * Saving **/ @@ -593,6 +694,10 @@ public class PlayerSave { return false; } player.playerName = player.playerName2; + PlayerSaveDataEvent pluginSaveData = new PlayerSaveDataEvent(); + player.post(pluginSaveData); + Map pluginData = player.getPluginData().getSaveValues(); + pluginData.putAll(pluginSaveData.getValues()); int tbTime = (int) (player.teleBlockDelay - System.currentTimeMillis() + player.teleBlockLength); if (tbTime > 300000 || tbTime < 0) { tbTime = 0; @@ -771,8 +876,6 @@ public class PlayerSave { characterfile.newLine(); characterfile.write("shieldArrav = " + player.shieldArrav); characterfile.newLine(); - characterfile.write("cookAss = " + player.cookAss); - characterfile.newLine(); characterfile.write("princeAli = " + player.princeAli); characterfile.newLine(); characterfile.write("pirateTreasure = " + player.pirateTreasure); @@ -805,6 +908,8 @@ public class PlayerSave { characterfile.newLine(); characterfile.write("vampSlayer = " + player.vampSlayer); characterfile.newLine(); + characterfile.write("questVarpVersion = " + player.questVarpVersion); + characterfile.newLine(); characterfile.write("RatDied2 = " + player.ratdied2); characterfile.newLine(); characterfile.write("debugMode = " + player.debugMode); @@ -867,6 +972,10 @@ public class PlayerSave { characterfile.newLine(); characterfile.write("display-regular-kc-messages = " + player.displayRegularKcMessages); characterfile.newLine(); + for (Map.Entry entry : pluginData.entrySet()) { + characterfile.write(entry.getKey() + " = " + entry.getValue()); + characterfile.newLine(); + } characterfile.newLine(); /* EQUIPMENT */ diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/AttackPlayer.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/AttackPlayer.java index 3ca53500..77b31f09 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/AttackPlayer.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/AttackPlayer.java @@ -27,7 +27,7 @@ public class AttackPlayer implements PacketType { **/ case ATTACK_PLAYER: player.playerIndex = packet.readSignedWordBigEndian(); - if (PlayerHandler.players[player.playerIndex] == null) { + if (player.playerIndex < 0 || player.playerIndex >= PlayerHandler.players.length || PlayerHandler.players[player.playerIndex] == null) { break; } @@ -40,7 +40,7 @@ public class AttackPlayer implements PacketType { break; } - if (player.autocastId > 0) { + if (player.autocastId >= 0) { player.autocasting = true; } @@ -97,13 +97,12 @@ public class AttackPlayer implements PacketType { } } - if ((usingBow || player.autocasting) && player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[player.playerIndex].getX(), PlayerHandler.players[player.playerIndex].getY(), 6)) { - player.usingBow = true; - player.stopMovement(); - } - - if (usingOtherRangeWeapons && player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[player.playerIndex].getX(), PlayerHandler.players[player.playerIndex].getY(), 3)) { - player.usingRangeWeapon = true; + if (player.isUsingProjectileCombat() && player.goodDistance(player.getX(), player.getY(), PlayerHandler.players[player.playerIndex].getX(), PlayerHandler.players[player.playerIndex].getY(), player.getAttackDistance())) { + if (usingBow) { + player.usingBow = true; + } else if (usingOtherRangeWeapons) { + player.usingRangeWeapon = true; + } player.stopMovement(); } if (!usingBow) { @@ -113,11 +112,11 @@ public class AttackPlayer implements PacketType { player.usingRangeWeapon = false; } - if (!usingCross && !usingArrows && usingBow && player.playerEquipment[player.playerWeapon] < 4212 && player.playerEquipment[player.playerWeapon] > 4223) { + if (!usingCross && !usingArrows && usingBow && !RangeData.usingCrystalBow(player)) { player.getPacketSender().sendMessage("You have run out of arrows!"); return; } - if (RangeData.correctBowAndArrows(player) < player.playerEquipment[player.playerArrows] + if (RangeData.correctBowAndArrows(player) < RangeData.getBaseArrowId(player.playerEquipment[player.playerArrows]) && CombatConstants.CORRECT_ARROWS && usingBow && !RangeData.usingCrystalBow(player) @@ -135,10 +134,8 @@ public class AttackPlayer implements PacketType { } if (player.getCombatAssistant().checkReqs()) { player.followPlayerId = player.playerIndex; - if (!player.usingMagic && !usingBow && !usingOtherRangeWeapons) { - player.followDistance = 1; - player.getPlayerAssistant().followPlayer(); - } + player.followDistance = player.getAttackDistance(); + player.getPlayerAssistant().followPlayer(); } break; @@ -158,7 +155,7 @@ public class AttackPlayer implements PacketType { boolean teleother = CastOnOther.castOnOtherSpells(castingSpellId); - if (PlayerHandler.players[player.playerIndex] == null) { + if (player.playerIndex < 0 || player.playerIndex >= PlayerHandler.players.length || PlayerHandler.players[player.playerIndex] == null) { break; } diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ChangeRegions.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ChangeRegions.java index f2c86587..5f6cce59 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ChangeRegions.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ChangeRegions.java @@ -3,7 +3,6 @@ package com.rs2.net.packets.impl; import com.rs2.Constants; import com.rs2.GameEngine; import com.rs2.game.content.music.Music; -import com.rs2.game.globalworldobjects.Doors; import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; @@ -22,7 +21,6 @@ public class ChangeRegions implements PacketType { GameEngine.objectHandler.updateObjects(player);//testing GameEngine.itemHandler.reloadItems(player); GameEngine.objectManager.loadObjects(player); - Doors.getSingleton().load(); GlobalDropsHandler.reset(player); player.getPlayerAssistant().removeObjects();// testing player.saveFile = true; diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickItem.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickItem.java index c18b193d..9418ae84 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickItem.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickItem.java @@ -285,7 +285,7 @@ public class ClickItem implements PacketType { player.getItemAssistant().addItem(995, 450); player.getItemAssistant().addItem(1639, 1); player.getItemAssistant().addItem(1635, 1); - player.pirateTreasure = 6; + player.pirateTreasure = 4; break; } diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickNPC.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickNPC.java index 718668a0..265cc4e2 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickNPC.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickNPC.java @@ -1,8 +1,5 @@ package com.rs2.net.packets.impl; -import com.rs2.event.CycleEvent; -import com.rs2.event.CycleEventContainer; -import com.rs2.event.CycleEventHandler; import com.rs2.event.impl.NpcFirstClickEvent; import com.rs2.event.impl.NpcSecondClickEvent; import com.rs2.event.impl.NpcThirdClickEvent; @@ -14,9 +11,12 @@ import com.rs2.game.items.DeprecatedItems; import com.rs2.game.npcs.Npc; import com.rs2.game.npcs.NpcData; import com.rs2.game.npcs.NpcHandler; +import com.rs2.game.npcs.NpcInteraction; import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; +import com.rs2.world.clip.PathFinder; +import com.rs2.world.clip.Region; /** * Click NPC @@ -66,7 +66,7 @@ public class ClickNPC implements PacketType { break; } player.npcIndex = packet.readUnsignedWordA(); - if (NpcHandler.npcs[player.npcIndex] == null) { + if (player.npcIndex < 0 || player.npcIndex >= NpcHandler.npcs.length || NpcHandler.npcs[player.npcIndex] == null) { player.npcIndex = 0; break; } @@ -74,10 +74,7 @@ public class ClickNPC implements PacketType { player.npcIndex = 0; break; } - if (NpcHandler.npcs[player.npcIndex] == null) { - break; - } - if (player.autocastId > 0) { + if (player.autocastId >= 0) { player.autocasting = true; } if (!player.autocasting && player.spellId > 0) { @@ -89,8 +86,7 @@ public class ClickNPC implements PacketType { boolean usingOtherRangeWeapons = false; boolean usingArrows = false; boolean usingCross = player.playerEquipment[player.playerWeapon] == 9185; - if (player.playerEquipment[player.playerWeapon] >= 4214 - && player.playerEquipment[player.playerWeapon] <= 4223) { + if (RangeData.usingCrystalBow(player)) { usingBow = true; } for (int bowId : RangeData.BOWS) { @@ -108,23 +104,15 @@ public class ClickNPC implements PacketType { usingOtherRangeWeapons = true; } } - if ((usingBow || player.autocasting) - && NpcData.goodDistanceNpc(player.npcIndex, player.getX(), player.getY(), 7)) { + if (player.isUsingProjectileCombat() && isInProjectileRangeWithLos(player)) { player.stopMovement(); } - - if (usingOtherRangeWeapons - && NpcData.goodDistanceNpc(player.npcIndex, player.getX(), player.getY(), 4)) { - player.stopMovement(); - } - if (!usingCross && !usingArrows && usingBow - && player.playerEquipment[player.playerWeapon] < 4212 - && player.playerEquipment[player.playerWeapon] > 4223 && !usingCross) { + if (!usingCross && !usingArrows && usingBow && !RangeData.usingCrystalBow(player)) { player.getPacketSender().sendMessage( "You have run out of arrows!"); break; } - if (RangeData.correctBowAndArrows(player) < player.playerEquipment[player.playerArrows] + if (RangeData.correctBowAndArrows(player) < RangeData.getBaseArrowId(player.playerEquipment[player.playerArrows]) && CombatConstants.CORRECT_ARROWS && usingBow && !RangeData.usingCrystalBow(player) @@ -154,14 +142,20 @@ public class ClickNPC implements PacketType { if (player.followPlayerId > 0) { player.getPlayerAssistant().resetFollow(); } + player.followNpcId = player.npcIndex; if (RangeData.usingHally(player) && NpcData.goodDistanceNpc(player.npcIndex, player.getX(), player.getY(), 2)) { - player.stopMovement(); - } else if (!player.usingRangeWeapon && !player.usingBow && !player.usingMagic + int npcX = NpcHandler.npcs[player.npcIndex].getX(); + int npcY = NpcHandler.npcs[player.npcIndex].getY(); + int npcSize = NpcHandler.npcs[player.npcIndex].getSize(); + if (Region.canReachHalberd(player.getX(), player.getY(), player.heightLevel, npcX, npcY, npcSize)) { + player.stopMovement(); + } + } else if (player.isMeleeCombat() && NpcData.goodDistanceNpc(player.npcIndex, player.getX(), player.getY(), 1)) { int npcX = NpcHandler.npcs[player.npcIndex].getX(); int npcY = NpcHandler.npcs[player.npcIndex].getY(); int npcSize = NpcHandler.npcs[player.npcIndex].getSize(); - if (npcSize > 1 || player.getX() == npcX || player.getY() == npcY) { + if (Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, npcX, npcY, npcSize)) { player.stopMovement(); } } @@ -203,7 +197,7 @@ public class ClickNPC implements PacketType { int castingSpellId = packet.readSignedWordA(); player.usingMagic = false; - if (NpcHandler.npcs[player.npcIndex] == null) { + if (player.npcIndex < 0 || player.npcIndex >= NpcHandler.npcs.length || NpcHandler.npcs[player.npcIndex] == null) { break; } @@ -227,9 +221,13 @@ public class ClickNPC implements PacketType { } if (player.usingMagic) { - if (NpcData.goodDistanceNpc(player.npcIndex, player.getX(), player.getY(), 6)) { + if (isInProjectileRangeWithLos(player)) { player.stopMovement(); } + if (player.followPlayerId > 0) { + player.getPlayerAssistant().resetFollow(); + } + player.followNpcId = player.npcIndex; if (player.attackTimer <= 0) { player.getCombatAssistant().attackNpc(player.npcIndex); player.attackTimer++; @@ -240,134 +238,40 @@ public class ClickNPC implements PacketType { case FIRST_CLICK: player.npcClickIndex = packet.readSignedWordBigEndian(); - if (player.npcClickIndex < 0 || player.npcClickIndex >= NpcHandler.npcs.length || NpcHandler.npcs[player.npcClickIndex] == null) { - break; - } - Npc firstClickNpc = NpcHandler.npcs[player.npcClickIndex]; - player.npcType = firstClickNpc.npcType; - - if (NpcData.goodDistanceNpc(player.npcClickIndex, player.getX(), - player.getY(), 2)) { - player.turnPlayerTo(NpcHandler.npcs[player.npcClickIndex].getX(), - NpcHandler.npcs[player.npcClickIndex].getY()); - NpcHandler.npcs[player.npcClickIndex].facePlayer(player); + NpcInteraction.handle(player, 1, npc -> { player.getNpcs().firstClickNpc(player.npcType); player.post(new NpcFirstClickEvent(player.npcType, player.npcClickIndex)); - } else { - player.clickNpcType = 1; - CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { - @Override - public void execute(CycleEventContainer container) { - if (player.clickNpcType == 1 - && NpcHandler.npcs[player.npcClickIndex] != null) { - if (NpcData.goodDistanceNpc(player.npcClickIndex, player.getX(), - player.getY(), 1)) { - player.turnPlayerTo( - NpcHandler.npcs[player.npcClickIndex].getX(), - NpcHandler.npcs[player.npcClickIndex].getY()); - NpcHandler.npcs[player.npcClickIndex] - .facePlayer(player); - player.getNpcs().firstClickNpc(player.npcType); - player.post(new NpcFirstClickEvent(player.npcType, player.npcClickIndex)); - container.stop(); - } - } - if (player.clickNpcType == 0 || player.clickNpcType > 1) { - container.stop(); - } - } - - @Override - public void stop() { - player.clickNpcType = 0; - } - }, 1); - } + }); break; + case SECOND_CLICK: player.npcClickIndex = packet.readUnsignedWordBigEndianA(); - player.npcType = NpcHandler.npcs[player.npcClickIndex].npcType; - if (NpcData.goodDistanceNpc(player.npcClickIndex, player.getX(), - player.getY(), 2)) { - player.turnPlayerTo(NpcHandler.npcs[player.npcClickIndex].getX(), - NpcHandler.npcs[player.npcClickIndex].getY()); - NpcHandler.npcs[player.npcClickIndex].facePlayer(player); + NpcInteraction.handle(player, 2, npc -> { player.getNpcs().secondClickNpc(player.npcType); player.post(new NpcSecondClickEvent(player.npcType)); - } else { - player.clickNpcType = 2; - CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { - @Override - public void execute(CycleEventContainer container) { - if (player.clickNpcType == 2 - && NpcHandler.npcs[player.npcClickIndex] != null) { - if (NpcData.goodDistanceNpc(player.npcClickIndex, player.getX(), - player.getY(), 1)) { - player.turnPlayerTo( - NpcHandler.npcs[player.npcClickIndex].getX(), - NpcHandler.npcs[player.npcClickIndex].getY()); - NpcHandler.npcs[player.npcClickIndex] - .facePlayer(player); - player.getNpcs().secondClickNpc(player.npcType); - player.post(new NpcSecondClickEvent(player.npcType)); - container.stop(); - } - } - if (player.clickNpcType < 2 || player.clickNpcType > 2) { - container.stop(); - } - } - - @Override - public void stop() { - player.clickNpcType = 0; - } - }, 1); - } + }); break; case THIRD_CLICK: player.npcClickIndex = packet.readSignedWord(); - player.npcType = NpcHandler.npcs[player.npcClickIndex].npcType; - if (NpcData.goodDistanceNpc(player.npcClickIndex, player.getX(), - player.getY(), 2)) { - player.turnPlayerTo(NpcHandler.npcs[player.npcClickIndex].getX(), - NpcHandler.npcs[player.npcClickIndex].getY()); - NpcHandler.npcs[player.npcClickIndex].facePlayer(player); + NpcInteraction.handle(player, 3, npc -> { player.getNpcs().thirdClickNpc(player.npcType); player.post(new NpcThirdClickEvent(player.npcType)); - } else { - player.clickNpcType = 3; - CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { - @Override - public void execute(CycleEventContainer container) { - if (player.clickNpcType == 3 - && NpcHandler.npcs[player.npcClickIndex] != null) { - if (NpcData.goodDistanceNpc(player.npcClickIndex, player.getX(), - player.getY(), 1)) { - player.turnPlayerTo( - NpcHandler.npcs[player.npcClickIndex].getX(), - NpcHandler.npcs[player.npcClickIndex].getY()); - NpcHandler.npcs[player.npcClickIndex] - .facePlayer(player); - player.getNpcs().thirdClickNpc(player.npcType); - player.post(new NpcThirdClickEvent(player.npcType)); - container.stop(); - } - } - if (player.clickNpcType < 3) { - container.stop(); - } - } - - @Override - public void stop() { - player.clickNpcType = 0; - } - }, 1); - } + }); break; } } + + private static boolean isInProjectileRangeWithLos(Player player) { + Npc npc = NpcHandler.npcs[player.npcIndex]; + if (npc == null) { + return false; + } + int targetX = Math.max(npc.getX(), Math.min(player.getX(), npc.getX() + npc.getSize() - 1)); + int targetY = Math.max(npc.getY(), Math.min(player.getY(), npc.getY() + npc.getSize() - 1)); + return NpcData.goodDistanceNpc(player.npcIndex, player.getX(), player.getY(), player.getAttackDistance()) + && PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, targetX, targetY); + } + } diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickObject.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickObject.java index 797d240d..74d95a9f 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickObject.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickObject.java @@ -13,19 +13,69 @@ import com.rs2.game.content.minigames.castlewars.CastleWarObjects; import com.rs2.game.content.minigames.castlewars.CastleWars; import com.rs2.game.content.skills.woodcutting.Woodcutting; import com.rs2.game.globalworldobjects.Doors; +import com.rs2.game.globalworldobjects.DoubleDoors; import com.rs2.game.npcs.NpcHandler; import com.rs2.game.objects.Objects; import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; +import com.rs2.world.clip.PathFinder; import com.rs2.world.clip.Region; +import org.apollo.cache.def.ObjectDefinition; + +import static com.rs2.game.content.StaticObjectList.*; +import static com.rs2.game.content.StaticNpcList.SHAMUS; +import static com.rs2.game.content.StaticNpcList.TREE_SPIRIT_655; public class ClickObject implements PacketType { public static final int FIRST_CLICK = 132, SECOND_CLICK = 252, THIRD_CLICK = 70, FOURTH_CLICK = 234, FIFTH_CLICK = 228; - public void onObjectReached(Player player, Consumer consumer) { + public static boolean isDoorOrGate(int objectId) { + ObjectDefinition def = ObjectDefinition.lookup(objectId); + if (def == null || def.getName() == null) { + return false; + } + String name = def.getName().toLowerCase(); + if (name.contains("door") || name.contains("gate")) { + return true; + } + String[] actions = def.getMenuActions(); + if (actions != null) { + for (String action : actions) { + if (action != null && (action.equalsIgnoreCase("open") || action.equalsIgnoreCase("close"))) { + return true; + } + } + } + return false; + } + + public static boolean isObjectReached(Player player, int objectId, int objectX, int objectY, + int[] size, int objectType, int objectFace, int walkToMask) { + if (player.getRangersGuild().isInTargetArea() && player.objectId == TARGET_2513) { + return true; + } + if (Region.canReach(player.absX, player.absY, player.heightLevel, + objectX, objectY, size[0], size[1], objectType, objectFace, walkToMask)) { + return true; + } + if (Doors.getSingleton().canReachDoor(player, objectId, objectX, objectY, player.heightLevel) + || DoubleDoors.getSingleton().canReachDoor(player, objectId, objectX, objectY, player.heightLevel)) { + return true; + } + if (isDoorOrGate(objectId)) { + int dx = Math.abs(player.absX - objectX); + int dy = Math.abs(player.absY - objectY); + if (dx <= 1 && dy <= 1) { + return true; + } + } + return false; + } + + public static void onObjectReached(Player player, Consumer consumer) { if (System.currentTimeMillis() - player.clickDelay < 300) return; player.clickDelay = System.currentTimeMillis(); @@ -35,6 +85,9 @@ public class ClickObject implements PacketType { final int objectId = player.objectId; Objects object = Region.getObject(objectId, objectX, objectY, player.heightLevel); + if (object == null) { + object = GameEngine.objectHandler.objectExists(objectX, objectY, player.heightLevel); + } if (object == null) { // Since most content is coded poorly we will have to assume the object is valid // but we won't know the face direction, so some objects will behave incorrectly @@ -45,7 +98,15 @@ public class ClickObject implements PacketType { object = new Objects(objectId, objectX, objectY, player.heightLevel, 0, 10, 0); } - int[] size = object.getObjectSize(); + final int[] size = object.getObjectSize(); + final int objectType = object.getObjectType(); + final int objectFace = object.getObjectFace(); + final int walkToMask = object.getWalkToMask(); + + boolean initialReached = isObjectReached(player, objectId, objectX, objectY, size, objectType, objectFace, walkToMask); + if (!initialReached && !player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + PathFinder.getPathFinder().findRoute(player, objectX, objectY, true, size[0], size[1]); + } CycleEvent objectWalkToEvent = new CycleEvent() { @Override @@ -55,16 +116,20 @@ public class ClickObject implements PacketType { return; } - int x = player.absX; - int y = player.absY; - int xMin = objectX - 1; - int xMax = xMin + size[0] + 1; - int yMin = objectY - 1; - int yMax = yMin + size[1] + 1; + boolean reached = isObjectReached(player, objectId, objectX, objectY, size, objectType, objectFace, walkToMask); - if ((x >= xMin && y >= yMin && x <= xMax && y <= yMax) || (player.getRangersGuild().isInTargetArea() && player.objectId == 2513)) { + if (reached) { + player.stopMovement(); + player.resetWalkingQueue(); consumer.accept(player); container.stop(); + return; + } + + boolean walkFinished = player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0; + if (walkFinished && !player.isMoving) { + player.getPacketSender().sendMessage("I can't reach that."); + container.stop(); } } @@ -140,15 +205,11 @@ public class ClickObject implements PacketType { player.getPacketSender().sendMessage("You cannot use objects while teleporting."); return; } - if (Math.abs(player.getX() - player.objectX) > 25 || Math.abs(player.getY() - player.objectY) > 25) { - player.resetWalkingQueue(); - break; - } - if (Woodcutting.playerTrees(player, player.objectId) && player.objectId != 1292) { + if (Woodcutting.playerTrees(player, player.objectId) && player.objectId != DRAMEN_TREE) { Woodcutting.startWoodcutting(player, player.objectId, player.objectX, player.objectY, player.clickObjectType); } switch (player.objectId) { - case 1292: //lostCity 1 + case DRAMEN_TREE: //lostCity 1 if (player.spiritTree == false && player.clickedTree && player.lostCity < 2) { player.getPacketSender().sendMessage("Nothing interesting happens."); @@ -161,13 +222,13 @@ public class ClickObject implements PacketType { if (player.spiritTree == false && player.clickedTree == false) { player.getPacketSender().sendMessage("You attempt to chop the tree, and a tree spirit appears !"); player.getPacketSender().sendSound(300, 100, 1); - NpcHandler.spawnNpc(player, 655, player.getX(), player.getY(), 0, 0, 85, 10, 80, 80, true, true); + NpcHandler.spawnNpc(player, TREE_SPIRIT_655, player.getX(), player.getY(), 0, 0, 85, 10, 80, 80, true, true); player.clickedTree = true; } else if (player.spiritTree && player.lostCity >= 2) { Woodcutting.startWoodcutting(player, player.objectId, player.objectX, player.objectY, player.clickObjectType); } break; - case 2409://lostCity 2 + case TREE_2409://lostCity 2 if (player.lostCity != 1) { player.getPacketSender().sendMessage("Nothing interesting happens."); @@ -176,7 +237,7 @@ public class ClickObject implements PacketType { else if (player.lostCity == 1 && player.leprechaunSpawned == false) { player.getPacketSender().sendMessage("A leprechaun falls out of the tree!"); player.getPacketSender().sendSound(300, 100, 1); - NpcHandler.spawnNpc(player, 654, player.getX(), player.getY(), 0, 1, 1, 0, 0, 0, false, true); + NpcHandler.spawnNpc(player, SHAMUS, player.getX(), player.getY(), 0, 1, 1, 0, 0, 0, false, true); player.leprechaunSpawned = true; return; } @@ -215,7 +276,7 @@ public class ClickObject implements PacketType { CastleWarObjects.handleObject(player, player.objectId, player.objectX, player.objectY); break; - case 2513: + case TARGET_2513: player.getRangersGuild().fireAtTarget(); break; @@ -368,8 +429,6 @@ public class ClickObject implements PacketType { case 9472: if (player.objectX == 2399 && player.objectY == 3099) { player.startAnimation(828); - player.stopMovement(); - player.resetWalkingQueue(); player.getPlayerAssistant().requestUpdates(); player.getPacketSender().closeAllWindows(); CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { @@ -389,8 +448,6 @@ public class ClickObject implements PacketType { } if (player.objectX == 2400 && player.objectY == 3108) { player.startAnimation(828); - player.stopMovement(); - player.resetWalkingQueue(); player.getPlayerAssistant().requestUpdates(); player.getPacketSender().closeAllWindows(); CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickingButtons.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickingButtons.java index 2a58605a..81d1d97f 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickingButtons.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ClickingButtons.java @@ -23,6 +23,7 @@ import com.rs2.game.content.skills.herblore.Herblore; import com.rs2.game.content.skills.smithing.SilverCrafting; import com.rs2.game.content.skills.smithing.Smelting; import com.rs2.game.content.traveling.GnomeGlider; +import org.apollo.cache.def.ItemDefinition; import com.rs2.game.dialogues.DialogueOptions; import com.rs2.game.items.DeprecatedItems; import com.rs2.game.items.GameItem; @@ -48,6 +49,9 @@ public class ClickingButtons implements PacketType { if (player.playerRights == 3) { player.getPacketSender().sendMessage(player.playerName + " - actionbutton: " + actionButtonId); } + if (player.getDialogueFactory().handleButton(actionButtonId)) { + return; + } int prevDialogue = player.dialogueAction; player.post(new ButtonActionEvent(actionButtonId)); @@ -87,9 +91,6 @@ public class ClickingButtons implements PacketType { if (player.isDead) { return; } - if (player.isAutoButton(actionButtonId)) { - player.assignAutocast(actionButtonId); - } switch (actionButtonId) { case 23132: @@ -917,34 +918,6 @@ public class ClickingButtons implements PacketType { player.getPacketSender().closeAllWindows(); break; - case 1093: - case 1094: - case 1097: - if (player.autocastId > 0) { - player.getPlayerAssistant().resetAutocast(); - } else { - if (player.playerMagicBook == 1) { - if (player.playerEquipment[player.playerWeapon] == 4675) { - player.getPacketSender().setSidebarInterface(0, - 1689); - } else { - player.getPacketSender() - .sendMessage( - "You can't autocast ancients without an ancient staff."); - } - } else if (player.playerMagicBook == 0) { - if (player.playerEquipment[player.playerWeapon] == 4170) { - player.getPacketSender().setSidebarInterface(0, - 12050); - } else { - player.getPacketSender().setSidebarInterface(0, - 1829); - } - } - - } - break; - /** Dueling **/ case 26065: // no forfeit case 26040: @@ -1190,76 +1163,6 @@ public class ClickingButtons implements PacketType { } break; - case 9125: // Accurate - case 6221: // range accurate - case 22228: // punch (unarmed) - case 48010: // flick (whip) - case 21200: // spike (pickaxe) - case 1080: // bash (staff) - case 6168: // chop (axe) - case 6236: // accurate (long bow) - case 17102: // accurate (darts) - case 8234: // stab (dagger) - case 14218: // mace - case 14221: // mace - player.fightMode = 0;// attack - if (player.autocasting) { - player.getPlayerAssistant().resetAutocast(); - } - break; - - case 9126: // Defensive - case 48008: // deflect (whip) - case 22229: // block (unarmed) - case 21201: // block (pickaxe) - case 1078: // focus - block (staff) - case 6169: // block (axe) - case 33019: // fend (hally) - case 18078: // block (spear) - case 8235: // block (dagger) - case 14219: // mace - player.fightMode = 1;// def - if (player.autocasting) { - player.getPlayerAssistant().resetAutocast(); - } - break; - - case 9128: // Aggressive - case 6220: // range rapid - case 22230: // kick (unarmed) - case 21203: // impale (pickaxe) - case 21202: // smash (pickaxe) - case 1079: // pound (staff) - case 6171: // hack (axe) - case 6170: // smash (axe) - case 33020: // swipe (hally) - case 6235: // rapid (long bow) - case 17101: // repid (darts) - case 8237: // lunge (dagger) - case 8236: // slash (dagger) - case 14220: // mace - player.fightMode = 2;// shared - if (player.autocasting) { - player.getPlayerAssistant().resetAutocast(); - } - break; - - case 9127: // Controlled - case 48009: // lash (whip) - case 33018: // jab (hally) - case 6234: // longrange (long bow) - case 6219: // longrange - case 18077: // lunge (spear) - case 18080: // swipe (spear) - case 18079: // pound (spear) - case 17100: // longrange (darts) - player.fightMode = 3;// block - if (player.autocasting) { - player.getPlayerAssistant().resetAutocast(); - } - break; - - /** Prayers **/ case 21233: // thick skin ActivatePrayers.activatePrayer(player, 0); @@ -1369,45 +1272,37 @@ public class ClickingButtons implements PacketType { player.goodTrade = true; ot.goodTrade = true; + int requiredSlots = 0; + boolean stackOverflow = false; for (GameItem item : player.getTrading().offeredItems) { if (item.id > 0) { - if (ot.getItemAssistant().freeSlots() < player.getTrading().offeredItems - .size()) { - player.getPacketSender().sendMessage( - ot.playerName - + " only has " - + ot.getItemAssistant().freeSlots() - + " free slots, please remove " - + (player.getTrading().offeredItems - .size() - ot.getItemAssistant() - .freeSlots()) + " items."); - ot.getPacketSender().sendMessage( - player.playerName - + " has to remove " - + (player.getTrading().offeredItems - .size() - ot.getItemAssistant() - .freeSlots()) - + " items or you could offer them " - + (player.getTrading().offeredItems - .size() - ot.getItemAssistant() - .freeSlots()) + " items."); - player.goodTrade = false; - ot.goodTrade = false; - player.getPacketSender().sendString( - "Not enough inventory spaces.", 3431); - ot.getPacketSender().sendString( - "Not enough inventory spaces.", 3431); - break; + boolean stackable = ItemDefinition.lookup(item.id).isStackable(); + if (stackable && ot.getItemAssistant().playerHasItem(item.id)) { + long combined = (long) ot.getItemAssistant().getItemAmount(item.id) + item.amount; + if (combined > Integer.MAX_VALUE) { + stackOverflow = true; + } } else { - player.getPacketSender().sendString( - "Waiting for other player...", 3431); - ot.getPacketSender().sendString( - "Other player has accepted.", 3431); - player.goodTrade = true; - ot.goodTrade = true; + requiredSlots++; } } } + int otherFreeSlots = ot.getItemAssistant().freeSlots(); + if (stackOverflow || otherFreeSlots < requiredSlots) { + player.goodTrade = false; + ot.goodTrade = false; + player.getPacketSender().sendString( + "Other player doesn't have enough inventory space.", 3431); + ot.getPacketSender().sendString( + "You don't have enough inventory space.", 3431); + } else { + player.getPacketSender().sendString( + "Waiting for other player...", 3431); + ot.getPacketSender().sendString( + "Other player has accepted.", 3431); + player.goodTrade = true; + ot.goodTrade = true; + } if (player.inTrade && !player.tradeConfirmed && ot.goodTrade && player.goodTrade) { player.tradeConfirmed = true; @@ -1537,11 +1432,6 @@ public class ClickingButtons implements PacketType { player.getPacketSender().sendConfig(512, 1); break; - case 24017: - player.getPlayerAssistant().resetAutocast(); - player.getItemAssistant().sendWeapon(player.playerEquipment[player.playerWeapon], DeprecatedItems.getItemName(player.playerEquipment[player.playerWeapon])); - break; - } } diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Commands.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Commands.java index efde0c04..23cd0d91 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Commands.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Commands.java @@ -806,7 +806,7 @@ public class Commands implements PacketType { } else { player.getPacketSender().sendMessage("You must specify an id: ::pnpc id"); } - break; + break; case "mypos": player.getPacketSender().sendMessage("X: " + player.absX); player.getPacketSender().sendMessage("Y: " + player.absY); @@ -886,28 +886,6 @@ public class Commands implements PacketType { player.getPacketSender().sendMessage("You attributed yourself 999,999 prayer points."); player.playerLevel[Constants.PRAYER] = 999999; break; - case "setlevel": - case "level": - case "skill": - try { - if (arguments.length < 2) { - player.getPacketSender().sendMessage("Must specify a skill and level - ::setlevel 1 99"); - return; - } - int skill = Integer.parseInt(arguments[0]); - int level = Integer.parseInt(arguments[1]); - if (level > 99) { - level = 99; - } else if (level < 0) { - level = 1; - } - player.playerXP[skill] = player.getPlayerAssistant().getXPForLevel(level) + 5; - player.playerLevel[skill] = player.getPlayerAssistant().getLevelForXP(player.playerXP[skill]); - player.getPlayerAssistant().refreshSkill(skill); - player.getPlayerAssistant().levelUp(skill); - } catch (Exception e) { - } - break; case "master": for (int i = 0; i < 25; i++) { player.playerLevel[i] = 99; diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/DropItem.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/DropItem.java index f3538aa3..6546969e 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/DropItem.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/DropItem.java @@ -27,17 +27,14 @@ public class DropItem implements PacketType { if (!player.getItemAssistant().playerHasItem(itemId) || !RareProtection.removeItemOtherActions(player, itemId) || System.currentTimeMillis() - player.alchDelay < 1800 || player.stopPlayerPacket || System.currentTimeMillis() - player.buryDelay < 1800 || !CastleWars.deleteCastleWarsItems(player, itemId)) { return; } - for (LogData logData : LogData.values()) { - if (itemId == logData.getLogId()) { - player.pickedUpFiremakingLog = false; - } - } for (LogData logData : LogData.values()) { if (itemId == logData.getLogId()) { if (GameEngine.objectManager.objectExists(player.absX, player.absY)) { player.getPacketSender().sendMessage("You cannot drop a log here."); return; } + player.pickedUpFiremakingLog = false; + break; } } if (player.duelingArena()) { diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/FollowPlayer.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/FollowPlayer.java index 2e80e96b..baa9a65e 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/FollowPlayer.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/FollowPlayer.java @@ -10,7 +10,7 @@ public class FollowPlayer implements PacketType { @Override public void processPacket(Player player, Packet packet) { int followPlayer = packet.readUnsignedWordBigEndian(); - if (PlayerHandler.players[followPlayer] == null) { + if (followPlayer < 0 || followPlayer >= PlayerHandler.players.length || PlayerHandler.players[followPlayer] == null) { return; } player.playerIndex = 0; diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemClick2OnGroundItem.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemClick2OnGroundItem.java index 19643cf8..c5739c33 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemClick2OnGroundItem.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemClick2OnGroundItem.java @@ -1,5 +1,6 @@ package com.rs2.net.packets.impl; +import com.rs2.game.content.StaticItemList; import com.rs2.game.content.skills.firemaking.Firemaking; import com.rs2.game.content.skills.firemaking.LogData; import com.rs2.game.players.Player; @@ -13,7 +14,6 @@ public class ItemClick2OnGroundItem implements PacketType { final int itemX = packet.readSignedWordBigEndian(); final int itemY = packet.readSignedWordBigEndianA(); final int itemId = packet.readUnsignedWordA(); - System.out.println("ItemClick2OnGroundItem - " + player.playerName + " - " + itemId + " - " + itemX + " - " + itemY); // Reset position for the telekinetic guardian statue if (itemId == 6888) { player.getMageTrainingArena().telekinetic.resetStatue(itemX, itemY); @@ -26,7 +26,7 @@ public class ItemClick2OnGroundItem implements PacketType { player.endCurrentTask(); for (LogData l : LogData.values()) { if (itemId == l.getLogId()) { - Firemaking.attemptFire(player, 590, itemId, itemX, itemY, true); + Firemaking.attemptFire(player, StaticItemList.TINDERBOX, itemId, itemX, itemY, true); return; } } diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnGroundItem.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnGroundItem.java index eeb86103..791af92e 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnGroundItem.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnGroundItem.java @@ -1,22 +1,28 @@ package com.rs2.net.packets.impl; import com.rs2.GameEngine; +import com.rs2.event.CycleEvent; +import com.rs2.event.CycleEventContainer; +import com.rs2.event.CycleEventHandler; import com.rs2.game.content.skills.firemaking.Firemaking; import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; -import com.rs2.util.Misc; +import com.rs2.world.clip.PathFinder; +import com.rs2.world.clip.Region; + +import static com.rs2.game.content.StaticItemList.*; public class ItemOnGroundItem implements PacketType { @Override - public void processPacket(Player player, Packet packet) { + public void processPacket(final Player player, Packet packet) { packet.readSignedWordBigEndian(); - int itemUsed = packet.readSignedWordA(); - int groundItem = packet.readUnsignedWord(); - int gItemY = packet.readSignedWordA(); - int itemUsedSlot = packet.readSignedWordBigEndianA(); - int gItemX = packet.readUnsignedWord(); + final int itemUsed = packet.readSignedWordA(); + final int groundItem = packet.readUnsignedWord(); + final int gItemY = packet.readSignedWordA(); + final int itemUsedSlot = packet.readSignedWordBigEndianA(); + final int gItemX = packet.readUnsignedWord(); if (!player.getItemAssistant().playerHasItem(itemUsed, 1, itemUsedSlot)) { return; } @@ -26,11 +32,50 @@ public class ItemOnGroundItem implements PacketType { player.endCurrentTask(); + boolean reached = player.goodDistance(player.getX(), player.getY(), gItemX, gItemY, 1) + && (player.getX() == gItemX && player.getY() == gItemY || Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, gItemX, gItemY, 1)); + if (reached) { + handleItemOnGround(player, itemUsed, groundItem, gItemX, gItemY); + return; + } + + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + PathFinder.getPathFinder().findRoute(player, gItemX, gItemY, true, 1, 1); + } + + CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { + @Override + public void execute(CycleEventContainer container) { + if (!GameEngine.itemHandler.itemExists(groundItem, gItemX, gItemY) || player.isDead || player.disconnected) { + container.stop(); + return; + } + boolean inRange = player.goodDistance(player.getX(), player.getY(), gItemX, gItemY, 1) + && (player.getX() == gItemX && player.getY() == gItemY || Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, gItemX, gItemY, 1)); + if (inRange) { + player.stopMovement(); + handleItemOnGround(player, itemUsed, groundItem, gItemX, gItemY); + container.stop(); + return; + } + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + container.stop(); + } + } + + @Override + public void stop() { + } + }, 1); + } + + private void handleItemOnGround(Player player, int itemUsed, int groundItem, int gItemX, int gItemY) { switch (itemUsed) { - case 590: - case 7331: - case 7330: - case 7329: + case TINDERBOX: + case BLUE_FIRELIGHTER: + case GREEN_FIRELIGHTER: + case RED_FIRELIGHTER: Firemaking.attemptFire(player, itemUsed, groundItem, gItemX, gItemY, true); break; diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnItem.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnItem.java index 5ad1a921..4308e683 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnItem.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnItem.java @@ -11,6 +11,10 @@ public class ItemOnItem implements PacketType { public void processPacket(Player player, Packet packet) { int usedWithSlot = packet.readUnsignedWord(); int itemUsedSlot = packet.readUnsignedWordA(); + if (usedWithSlot < 0 || usedWithSlot >= player.playerItems.length + || itemUsedSlot < 0 || itemUsedSlot >= player.playerItems.length) { + return; + } int useWith = player.playerItems[usedWithSlot] - 1; int itemUsed = player.playerItems[itemUsedSlot] - 1; if (!player.getItemAssistant().playerHasItem(useWith, 1, usedWithSlot)|| !player.getItemAssistant().playerHasItem(itemUsed, 1, itemUsedSlot)) { diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnNpc.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnNpc.java index 93b8c5ed..d76c5b90 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnNpc.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnNpc.java @@ -4,9 +4,14 @@ import com.rs2.event.impl.ItemOnNpcEvent; import com.rs2.game.content.skills.SkillHandler; import com.rs2.game.items.UseItem; import com.rs2.game.npcs.NpcHandler; +import com.rs2.game.npcs.NpcInteraction; import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; +import com.rs2.world.clip.Region; + +import static com.rs2.game.content.StaticItemList.*; +import static com.rs2.game.content.StaticNpcList.*; public class ItemOnNpc implements PacketType { @@ -15,6 +20,9 @@ public class ItemOnNpc implements PacketType { final int itemId = packet.readSignedWordA(); final int i = packet.readSignedWordA(); final int slot = packet.readSignedWordBigEndian(); + if (i < 0 || i >= NpcHandler.npcs.length || NpcHandler.npcs[i] == null) { + return; + } final int npcId = NpcHandler.npcs[i].npcType; SkillHandler.resetItemOnNpc(player); player.endCurrentTask(); @@ -25,36 +33,44 @@ public class ItemOnNpc implements PacketType { player.getPacketSender().sendMessage("Your inventory is full."); return; } - if (player == null || player.disconnected || !player.getItemAssistant().playerHasItem(itemId, 1, slot) || NpcHandler.npcs[i] == null || NpcHandler.npcs[i].isDead || player.isDead || player.isTeleporting) { - return; - } - player.faceNpc(i); - player.post(new ItemOnNpcEvent(itemId,npcId, i)); + player.npcClickIndex = i; + NpcInteraction.handle(player, 4, npc -> { + if (player.disconnected || !player.getItemAssistant().playerHasItem(itemId, 1, slot) || npc.isDead || player.isDead || player.isTeleporting) { + return; + } + player.stopMovement(); + player.faceNpc(i); + player.post(new ItemOnNpcEvent(itemId, npcId, i)); + handleItemOnNpc(player, itemId, npcId, i, slot); + }); + } + + private void handleItemOnNpc(Player player, int itemId, int npcId, int i, int slot) { switch(npcId) { - case 3021: + case TOOL_LEPRECHAUN: if (player.getFarmingTools().noteItem(itemId)) { return; } break; - case 43: - NpcHandler.npcs[i].shearSheep(player, 1735, 1737, 893, 43, 42, 50); + case SHEEP_43: + NpcHandler.npcs[i].shearSheep(player, SHEARS, WOOL, 893, SHEEP_43, SHEEP, 50); break; } - if (player.getItemAssistant().playerHasItem(995, 1) && npcId == 736) { - player.getItemAssistant().deleteItem(995, 1); + if (player.getItemAssistant().playerHasItem(COINS_995, 1) && npcId == EMILY) { + player.getItemAssistant().deleteItem(COINS_995, 1); player.getDialogueHandler().sendNpcChat1("Thanks!", player.npcType, "Emily"); } - if (player.getItemAssistant().playerHasItem(1927, 1) && player.gertCat == 2 && npcId == 2997) { + if (player.getItemAssistant().playerHasItem(BUCKET_OF_MILK, 1) && player.gertCat == 1 && npcId == GERTRUDES_CAT_2997) { player.getDialogueHandler().sendDialogues(319, npcId); - player.getItemAssistant().deleteItem(1927, 1); - player.getItemAssistant().addItem(1925, 1); - player.gertCat = 3; - } else if (player.getItemAssistant().playerHasItem(1552, 1) && player.gertCat == 3 && npcId == 2997) { + player.getItemAssistant().deleteItem(BUCKET_OF_MILK, 1); + player.getItemAssistant().addItem(BUCKET, 1); + player.gertCat = 2; + } else if (player.getItemAssistant().playerHasItem(SEASONED_SARDINE, 1) && player.gertCat == 2 && npcId == GERTRUDES_CAT_2997) { player.getDialogueHandler().sendDialogues(323, npcId); - player.getItemAssistant().deleteItem(1552, 1); - player.gertCat = 4; - } else if (player.getItemAssistant().playerHasItem(1554, 1) && player.gertCat == 5 && npcId == 2997) { - player.getItemAssistant().deleteItem(1554, 1); + player.getItemAssistant().deleteItem(SEASONED_SARDINE, 1); + player.gertCat = 3; + } else if (player.getItemAssistant().playerHasItem(FLUFFS_KITTEN, 1) && player.gertCat == 4 && npcId == GERTRUDES_CAT_2997) { + player.getItemAssistant().deleteItem(FLUFFS_KITTEN, 1); player.getDialogueHandler().sendDialogues(326, npcId); } UseItem.itemOnNpc(player, itemId, slot, i); diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnObject.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnObject.java index 6fe91371..5e22138a 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnObject.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnObject.java @@ -1,5 +1,6 @@ package com.rs2.net.packets.impl; +import com.rs2.GameEngine; import com.rs2.event.impl.ItemOnObjectEvent; import com.rs2.Constants; import com.rs2.game.content.combat.range.DwarfCannon; @@ -10,6 +11,7 @@ import com.rs2.game.content.skills.crafting.Pottery; import com.rs2.game.content.skills.crafting.Spinning; import com.rs2.game.content.skills.prayer.Ectofuntus; import com.rs2.game.items.UseItem; +import com.rs2.game.objects.Objects; import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; @@ -29,22 +31,23 @@ public class ItemOnObject implements PacketType { player.turnPlayerTo(objectX, objectY); player.objectX = objectX; player.objectY = objectY; + player.objectId = objectId; player.endCurrentTask(); - int distance = 3; - switch (objectId) { - case Ectofuntus.ECTOFUNTUS: - distance = 5; - break; - default: - distance = 3; - break; - } if (!player.getItemAssistant().playerHasItem(itemId, 1)) { return; } - if (!player.goodDistance(player.objectX, player.objectY, player.absX, player.absY, distance)) { - return; + if (objectId == Ectofuntus.ECTOFUNTUS) { + if (!player.goodDistance(player.objectX, player.objectY, player.absX, player.absY, 5)) { + player.getPacketSender().sendMessage("I can't reach that."); + return; + } + handleItemOnObject(player, itemId, objectId, objectX, objectY); + } else { + ClickObject.onObjectReached(player, p -> handleItemOnObject(p, itemId, objectId, objectX, objectY)); } + } + + private void handleItemOnObject(Player player, int itemId, int objectId, int objectX, int objectY) { if (player.playerRights == 3) { player.getPacketSender().sendMessage( "Object Id:" + objectId + " ObjectX: " + objectX @@ -86,7 +89,6 @@ public class ItemOnObject implements PacketType { break; case 12269: case 2732: - case 114: case 2727: case 385: case 14919: diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnPlayer.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnPlayer.java index 5af0ef47..8b3ca724 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnPlayer.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/ItemOnPlayer.java @@ -1,11 +1,18 @@ package com.rs2.net.packets.impl; +import com.rs2.event.CycleEvent; +import com.rs2.event.CycleEventContainer; +import com.rs2.event.CycleEventHandler; import com.rs2.game.items.impl.RareProtection; import com.rs2.game.players.Player; import com.rs2.game.players.PlayerHandler; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; import com.rs2.util.Misc; +import com.rs2.world.clip.PathFinder; +import com.rs2.world.clip.Region; + +import static com.rs2.game.content.StaticItemList.*; /** * @author JaydenD12/Jaydennn @@ -15,16 +22,63 @@ public class ItemOnPlayer implements PacketType { @Override public void processPacket(Player player, Packet packet) { - int playerId = packet.readUnsignedWord(); - int itemId = player.playerItems[packet.readSignedWordBigEndian()] - 1; + final int playerId = packet.readUnsignedWord(); + final int slot = packet.readSignedWordBigEndian(); + if (playerId < 0 || playerId >= PlayerHandler.players.length || PlayerHandler.players[playerId] == null) { + return; + } + if (slot < 0 || slot >= player.playerItems.length) { + return; + } + final int itemId = player.playerItems[slot] - 1; player.endCurrentTask(); + Player o = PlayerHandler.players[playerId]; + + boolean reached = player.goodDistance(player.getX(), player.getY(), o.getX(), o.getY(), 1) + && Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, o.getX(), o.getY(), 1); + if (reached) { + handleItemOnPlayer(player, o, itemId); + return; + } + + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + PathFinder.getPathFinder().findRoute(player, o.getX(), o.getY(), true, 1, 1); + } + + CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { + @Override + public void execute(CycleEventContainer container) { + Player target = PlayerHandler.players[playerId]; + if (target == null || target.isDead || player.isDead || player.disconnected) { + container.stop(); + return; + } + if (player.goodDistance(player.getX(), player.getY(), target.getX(), target.getY(), 1) + && Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, target.getX(), target.getY(), 1)) { + player.stopMovement(); + handleItemOnPlayer(player, target, itemId); + container.stop(); + return; + } + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + container.stop(); + } + } + + @Override + public void stop() { + } + }, 1); + } + + private void handleItemOnPlayer(Player player, Player o, int itemId) { switch (itemId) { - case 962: - Player o = (Player) PlayerHandler.players[playerId]; + case CHRISTMAS_CRACKER: if (RareProtection.CRACKERS) { - int delete = player.getItemAssistant().getItemAmount(962); - player.getItemAssistant().deleteItem(962, delete); + int delete = player.getItemAssistant().getItemAmount(CHRISTMAS_CRACKER); + player.getItemAssistant().deleteItem(CHRISTMAS_CRACKER, delete); player.getPacketSender().sendMessage("You can't do that!"); return; } @@ -38,7 +92,7 @@ public class ItemOnPlayer implements PacketType { "You pull the Christmas Cracker..."); o.getPacketSender().sendMessage( player.playerName.toUpperCase() + " need your help... You pull the Christmas Cracker..."); - player.getItemAssistant().deleteItem(962, 1); + player.getItemAssistant().deleteItem(CHRISTMAS_CRACKER, 1); if (Misc.random(3) == 1) { o.forcedText = "Yay! I got the Cracker!"; o.forcedChatUpdateRequired = true; diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnFloorItems.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnFloorItems.java index 927a34bc..8087afc6 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnFloorItems.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnFloorItems.java @@ -72,7 +72,6 @@ public class MagicOnFloorItems implements PacketType { MagicData.MAGIC_SPELLS[51][4], 50, 10, 0, 50); player.getPlayerAssistant().addSkillXP(MagicData.MAGIC_SPELLS[51][7], 6); player.getPlayerAssistant().refreshSkill(Constants.MAGIC); - player.stopMovement(); CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { @Override public void execute(CycleEventContainer container) { diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnObject.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnObject.java index 4f3b7a06..ca49f29c 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnObject.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/MagicOnObject.java @@ -1,25 +1,75 @@ package com.rs2.net.packets.impl; +import com.rs2.event.CycleEvent; +import com.rs2.event.CycleEventContainer; +import com.rs2.event.CycleEventHandler; import com.rs2.game.content.skills.crafting.OrbCharging; import com.rs2.game.players.Player; import com.rs2.net.Packet; import com.rs2.net.packets.PacketType; +import com.rs2.world.clip.PathFinder; +import com.rs2.world.clip.Region; + +import static com.rs2.game.content.StaticObjectList.*; public class MagicOnObject implements PacketType { @Override - public void processPacket(Player player, Packet packet) { - int x = packet.readSignedWordBigEndian(); - int magicId = packet.readUnsignedWord(); - int y = packet.readUnsignedWordA(); - int objectId = packet.readSignedWordBigEndian(); - + public void processPacket(final Player player, Packet packet) { + final int x = packet.readSignedWordBigEndian(); + final int magicId = packet.readUnsignedWord(); + final int y = packet.readUnsignedWordA(); + final int objectId = packet.readSignedWordBigEndian(); + + player.endCurrentTask(); + if (!Region.objectExists(objectId, x, y, player.heightLevel)) { + return; + } + + boolean reached = player.goodDistance(player.getX(), player.getY(), x, y, 4) + && PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, x, y); + if (reached) { + chargeOrb(player, magicId, objectId, x, y); + return; + } + + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + PathFinder.getPathFinder().findRoute(player, x, y, true, 2, 2); + } + + CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { + @Override + public void execute(CycleEventContainer container) { + if (player.isDead || player.disconnected) { + container.stop(); + return; + } + if (player.goodDistance(player.getX(), player.getY(), x, y, 4) + && PathFinder.isProjectilePathClear(player.getX(), player.getY(), player.heightLevel, x, y)) { + player.stopMovement(); + chargeOrb(player, magicId, objectId, x, y); + container.stop(); + return; + } + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + container.stop(); + } + } + + @Override + public void stop() { + } + }, 1); + } + + private void chargeOrb(Player player, int magicId, int objectId, int x, int y) { player.turnPlayerTo(x, y); switch (objectId) { - case 2153: - case 2152: - case 2151: - case 2150: + case OBELISK_OF_FIRE: + case OBELISK_OF_AIR: + case OBELISK_OF_WATER: + case OBELISK_OF_EARTH: OrbCharging.chargeOrbs(player, magicId, objectId); break; } diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/PickupItem.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/PickupItem.java index 6b04231e..99c31b2f 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/PickupItem.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/PickupItem.java @@ -17,6 +17,7 @@ import com.rs2.util.GameLogger; import com.rs2.world.Boundary; import com.rs2.world.GlobalDropsHandler; import com.rs2.world.clip.PathFinder; +import com.rs2.world.clip.Region; /** * Pickup Item @@ -67,20 +68,18 @@ public class PickupItem implements PacketType { player.getPacketSender().sendMessage("You can't pick up these items!"); return; } - for (LogData logData : LogData.values()) { - if (player.isFiremaking && player.pItemId == logData.getLogId()) { - player.getPacketSender().sendMessage("You can't do that!"); - player.stopFiremaking = true; - return; - } - } for (LogData logData : LogData.values()) { if (player.pItemId == logData.getLogId()) { + if (player.isFiremaking) { + player.getPacketSender().sendMessage("You can't do that!"); + player.stopFiremaking = true; + return; + } player.pickedUpFiremakingLog = true; + break; } } SkillHandler.resetSkills(player); - player.getCombatAssistant().resetPlayerAttack(); player.walkingToItem = true; player.soundDone = false; CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { @@ -88,8 +87,33 @@ public class PickupItem implements PacketType { public void execute(CycleEventContainer container) { if (!player.walkingToItem) { container.stop(); + return; } - if (player.goodDistance(player.getX(), player.getY(), player.pItemX, player.pItemY, 1) && player.walkingToItem) { + boolean isWalkable = (Region.getClipping(player.pItemX, player.pItemY, player.heightLevel) & 0x1280100) == 0; + boolean canPickup; + if (isWalkable) { + canPickup = player.getX() == player.pItemX && player.getY() == player.pItemY; + } else { + canPickup = player.goodDistance(player.getX(), player.getY(), player.pItemX, player.pItemY, 1) + && (player.getX() == player.pItemX || player.getY() == player.pItemY) + && Region.canReachNpcMelee(player.getX(), player.getY(), player.heightLevel, player.pItemX, player.pItemY, 1); + } + if (canPickup) { + player.walkingToItem = false; + if (GameEngine.itemHandler.itemExists(player.pItemId, player.pItemX, player.pItemY)) { + GameEngine.itemHandler.removeGroundItem(player, player.pItemId, player.pItemX, player.pItemY, true); + GlobalDropsHandler.pickup(player, player.pItemId, player.pItemX, player.pItemY); + if (!player.soundDone) { + player.soundDone = true; + player.getPacketSender().sendSound(SoundList.ITEM_PICKUP, 100, 0); + } + } + container.stop(); + return; + } + if (!player.isMoving && player.wQueueReadPtr == player.wQueueWritePtr && player.newWalkCmdSteps == 0) { + player.getPacketSender().sendMessage("I can't reach that."); + player.walkingToItem = false; container.stop(); } } @@ -97,13 +121,6 @@ public class PickupItem implements PacketType { @Override public void stop() { player.walkingToItem = false; - GameEngine.itemHandler.removeGroundItem(player, player.pItemId, player.pItemX, player.pItemY, true); - GlobalDropsHandler.pickup(player, player.pItemId, player.pItemX, player.pItemY); - if (!player.soundDone) - { - player.soundDone = true; - player.getPacketSender().sendSound(SoundList.ITEM_PICKUP, 100, 0); - } } }, 1); } diff --git a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Walking.java b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Walking.java index 7a7beb44..2810b6dc 100644 --- a/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Walking.java +++ b/2006Scape Server/src/main/java/com/rs2/net/packets/impl/Walking.java @@ -94,6 +94,7 @@ public class Walking implements PacketType { player.faceUpdate(0); player.npcIndex = 0; player.playerIndex = 0; + player.walkingToItem = false; if (player.clickObjectType > 0) { player.clickObjectType = 0; } else if (player.clickNpcType > 0) { @@ -177,53 +178,7 @@ public class Walking implements PacketType { if (packet.getOpcode() == 248) { packetSize -= 14; } -// -// if (player.clickToTele) { -// player.newWalkCmdSteps = (packetSize - 5) / 2; -// if (++player.newWalkCmdSteps > player.walkingQueueSize) { -// player.newWalkCmdSteps = 0; -// return; -// } -// player.getNewWalkCmdX()[0] = player.getNewWalkCmdY()[0] = 0; -// int firstStepX, firstStepY; -// firstStepX = player.getInStream().readSignedWordBigEndianA(); -// for (int i = 1; i < player.newWalkCmdSteps; i++) { -// player.getNewWalkCmdX()[i] = player.getInStream().readSignedByte(); -// player.getNewWalkCmdY()[i] = player.getInStream().readSignedByte(); -// } -// firstStepY = player.getInStream().readSignedWordBigEndian(); -// player.setNewWalkCmdIsRunning(player.getInStream().readSignedByteC() == 1 && player.playerEnergy > 0); -// for (int i1 = 0; i1 < player.newWalkCmdSteps; i1++) { -// player.getPlayerAssistant().movePlayer(player.getNewWalkCmdX()[i1] + firstStepX, player.getNewWalkCmdY()[i1] + firstStepY, player.heightLevel); -// player.getNewWalkCmdX()[i1] += firstStepX; -// player.getNewWalkCmdY()[i1] += firstStepY; -// } -// } -// else { -// player.getNewWalkCmdX()[0] = player.getNewWalkCmdY()[0] = 0; -// int steps = (packetSize - 5) / 2; -// -// int[][] path = new int[steps][2]; -// int firstStepX = player.getInStream().readSignedWordBigEndianA(); -// for (int i = 0; i < steps; i++) { -// path[i][0] = player.getInStream().readSignedByte(); -// path[i][1] = player.getInStream().readSignedByte(); -// } -// int firstStepY = player.getInStream().readSignedWordBigEndian(); -// int x = firstStepX; -// int y = firstStepY; -// player.setNewWalkCmdIsRunning(player.isRunning2 && player.playerEnergy > 0); -// for (int i = 0; i < steps; i++) { -// path[i][0] += firstStepX; -// path[i][1] += firstStepY; -// x = path[i][0]; -// y = path[i][1]; -// } -// //System.out.println("Player has requested to walk to: "+x+","+y); -// player.getPlayerAssistant().playerWalk(x, y); -// } -// } -//} + player.newWalkCmdSteps = (packetSize - 5) / 2; if (++player.newWalkCmdSteps > player.walkingQueueSize) { player.newWalkCmdSteps = 0; diff --git a/2006Scape Server/src/main/java/com/rs2/plugin/PluginService.java b/2006Scape Server/src/main/java/com/rs2/plugin/PluginService.java index 98900250..e17dffb0 100644 --- a/2006Scape Server/src/main/java/com/rs2/plugin/PluginService.java +++ b/2006Scape Server/src/main/java/com/rs2/plugin/PluginService.java @@ -70,6 +70,12 @@ public final class PluginService { base = base.replace("..plugins.", ""); + // Plugin sources live directly under ./plugins, while their Java and + // Kotlin packages all begin with "plugin.". + if (!base.startsWith("plugin.")) { + base = "plugin." + base; + } + base = base.replace(".kt", ""); base = base.replace(".java", ""); diff --git a/2006Scape Server/src/main/java/com/rs2/world/ObjectHandler.java b/2006Scape Server/src/main/java/com/rs2/world/ObjectHandler.java index 6b5d3fe7..6fe1b504 100644 --- a/2006Scape Server/src/main/java/com/rs2/world/ObjectHandler.java +++ b/2006Scape Server/src/main/java/com/rs2/world/ObjectHandler.java @@ -136,16 +136,22 @@ public class ObjectHandler { * Update objects when entering a new region or logging in **/ public void updateObjects(Player c) { + if (c == null) { + return; + } for (Objects o : globalObjects) { - if (c != null) { - if (c.heightLevel == 0 && o.objectTicks == 0 && c.distanceToPoint(o.getObjectX(), o.getObjectY()) <= 60) { - if (Woodcutting.playerTrees(c, o.getObjectId()) || Mining.rockExists(o.getObjectId())) { - c.getPacketSender().object(o.getObjectId(), o.getObjectX(), o.getObjectY(), 0, o.getObjectFace(), o.getObjectType()); - } - } - if (c.heightLevel == o.getObjectHeight() && !Woodcutting.playerTrees(c, o.getObjectId()) && !Mining.rockExists(o.getObjectId()) && o.objectTicks == 0 && c.distanceToPoint(o.getObjectX(), o.getObjectY()) <= 60) { - c.getPacketSender().object(o.getObjectId(), o.getObjectX(), o.getObjectY(), c.heightLevel, o.getObjectFace(), o.getObjectType()); - } + if (o.objectTicks != 0) { + continue; + } + int localX = o.getObjectX() - c.getMapRegionX() * 8; + int localY = o.getObjectY() - c.getMapRegionY() * 8; + if (localX < 0 || localX >= 104 || localY < 0 || localY >= 104) { + continue; + } + if (c.heightLevel == 0 && (Woodcutting.playerTrees(c, o.getObjectId()) || Mining.rockExists(o.getObjectId()))) { + c.getPacketSender().object(o.getObjectId(), o.getObjectX(), o.getObjectY(), o.getObjectFace(), o.getObjectType()); + } else if (c.heightLevel == o.getObjectHeight() && !Woodcutting.playerTrees(c, o.getObjectId()) && !Mining.rockExists(o.getObjectId())) { + c.getPacketSender().object(o.getObjectId(), o.getObjectX(), o.getObjectY(), o.getObjectFace(), o.getObjectType()); } } } @@ -155,6 +161,10 @@ public class ObjectHandler { **/ public void placeObject(Objects o) { Region.addClipping(o.getObjectX(), o.getObjectY(), o.getObjectHeight(), 0); + if (o.objectTicks == 0) { + removeAllObjects(o); + globalObjects.add(o); + } for (Player p : PlayerHandler.players) { if (p != null) { Client person = (Client) p; @@ -162,13 +172,10 @@ public class ObjectHandler { && o.objectTicks == 0) { if (person.distanceToPoint(o.getObjectX(), o.getObjectY()) <= 60) { - removeAllObjects(o); - globalObjects.add(o); person.getPacketSender().object( o.getObjectId(), o.getObjectX(), o.getObjectY(), o.getObjectFace(), o.getObjectType()); - //Region.addObject(o.getObjectId(), o.getObjectX(), o.getObjectY(), o.getObjectHeight(), o.getObjectType(), o.getObjectFace(), true); } } } diff --git a/2006Scape Server/src/main/java/com/rs2/world/ObjectManager.java b/2006Scape Server/src/main/java/com/rs2/world/ObjectManager.java index 983b8f3c..10043063 100644 --- a/2006Scape Server/src/main/java/com/rs2/world/ObjectManager.java +++ b/2006Scape Server/src/main/java/com/rs2/world/ObjectManager.java @@ -8,7 +8,7 @@ import com.rs2.event.CycleEventHandler; import com.rs2.game.content.quests.QuestAssistant; import com.rs2.game.objects.Object; import com.rs2.game.objects.Objects; -import com.rs2.game.objects.impl.FlourMill; +import com.rs2.event.impl.PlayerObjectsLoadedEvent; import com.rs2.game.players.Client; import com.rs2.game.players.Player; import com.rs2.game.players.PlayerHandler; @@ -39,49 +39,54 @@ public class ObjectManager { }, ticks); } - public static void singleGateTicks(final Player player, final int objectId, final int newObjectX, final int newObjectY, final int oldObjectX, final int oldObjectY, final int objectH, final int face, int ticks) { - CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { + public static void singleGateTicks(final java.lang.Object timerOwner, final int closedId, final int openId, final int closedX, final int closedY, final int openX, final int openY, final int objectH, final int closedFace, final int openFace, int ticks) { + CycleEventHandler.getSingleton().addEvent(timerOwner, new CycleEvent() { @Override public void execute(CycleEventContainer container) { - if (player.getGateHandler().gateStatus == player.getGateHandler().CLOSED || player.disconnected) { + if (!com.rs2.game.globalworldobjects.GateHandler.isGateOpenAt(closedX, closedY, objectH)) { container.stop(); return; } - GameEngine.objectHandler.placeObject(new Objects(-1, oldObjectX, oldObjectY, objectH, face, 0, 0)); - GameEngine.objectHandler.placeObject(new Objects(objectId, newObjectX, newObjectY, objectH, face, 0, 0)); + GameEngine.objectHandler.placeObject(new Objects(-1, openX, openY, objectH, openFace, 0, 0)); + Region.removeObject(openId, openX, openY, objectH, 0, openFace); + + GameEngine.objectHandler.placeObject(new Objects(closedId, closedX, closedY, objectH, closedFace, 0, 0)); + Region.addObject(closedId, closedX, closedY, objectH, 0, closedFace, false); + + com.rs2.game.globalworldobjects.GateHandler.markGateClosed(closedX, closedY, objectH); container.stop(); } @Override public void stop() { - if (player.getGateHandler().gateStatus == player.getGateHandler().PARTIAL_OPEN) { - player.getGateHandler().gateStatus = player.getGateHandler().CLOSED; - } } }, ticks); } - - public static void doubleGateTicks(final Player player, final int objectId, final int newObjectX, final int newObjectY, final int oldObjectX, final int oldObjectY, final int oldObjectX2, final int oldObjectY2, final int objectH, final int face, int ticks) { - CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() { + + public static void doubleGateTicks(final java.lang.Object timerOwner, final int closedId1, final int closedId2, final int openId1, final int openId2, final int closedX1, final int closedY1, final int closedX2, final int closedY2, final int openX1, final int openY1, final int openX2, final int openY2, final int objectH, final int closedFace, final int openFace1, final int openFace2, int ticks) { + CycleEventHandler.getSingleton().addEvent(timerOwner, new CycleEvent() { @Override public void execute(CycleEventContainer container) { - if (player.getGateHandler().gateStatus == player.getGateHandler().CLOSED || player.disconnected) { + if (!com.rs2.game.globalworldobjects.GateHandler.isGateOpenAt(closedX1, closedY1, objectH)) { container.stop(); return; } - GameEngine.objectHandler.placeObject(new Objects(-1, oldObjectX, oldObjectY, objectH, face, 0, 0)); - GameEngine.objectHandler.placeObject(new Objects(-1, oldObjectX2, oldObjectY2, objectH, face, 0, 0)); - GameEngine.objectHandler.placeObject(new Objects(objectId, newObjectX, newObjectY, objectH, face, 0, 0)); + GameEngine.objectHandler.placeObject(new Objects(-1, openX1, openY1, objectH, openFace1, 0, 0)); + GameEngine.objectHandler.placeObject(new Objects(-1, openX2, openY2, objectH, openFace2, 0, 0)); + Region.removeObject(openId1, openX1, openY1, objectH, 0, openFace1); + Region.removeObject(openId2, openX2, openY2, objectH, 0, openFace2); + + GameEngine.objectHandler.placeObject(new Objects(closedId1, closedX1, closedY1, objectH, closedFace, 0, 0)); + GameEngine.objectHandler.placeObject(new Objects(closedId2, closedX2, closedY2, objectH, closedFace, 0, 0)); + Region.addObject(closedId1, closedX1, closedY1, objectH, 0, closedFace, false); + Region.addObject(closedId2, closedX2, closedY2, objectH, 0, closedFace, false); + + com.rs2.game.globalworldobjects.GateHandler.markGateClosed(closedX1, closedY1, objectH); container.stop(); } @Override public void stop() { - if (player.getGateHandler().gateStatus == player.getGateHandler().OPEN) { - player.getGateHandler().gateStatus = player.getGateHandler().PARTIAL_OPEN; - } else if (player.getGateHandler().gateStatus == player.getGateHandler().PARTIAL_OPEN) { - player.getGateHandler().gateStatus = player.getGateHandler().CLOSED; - } } }, ticks); } @@ -195,10 +200,7 @@ public class ObjectManager { } else { c.getPacketSender().checkObjectSpawn(-1, 3219, 9623, 3, 10);// RFD } - // CHEST - if (c.flourAmount > 0 && c.heightLevel == 0) { - c.getPacketSender().checkObjectSpawn(FlourMill.FULL_FLOUR_BIN, 3166, 3306, 0, 10); - } + c.post(new PlayerObjectsLoadedEvent()); } public final int IN_USE_ID = 14825; diff --git a/2006Scape Server/src/main/java/com/rs2/world/clip/PathFinder.java b/2006Scape Server/src/main/java/com/rs2/world/clip/PathFinder.java index 55b5a3b2..7e06379f 100644 --- a/2006Scape Server/src/main/java/com/rs2/world/clip/PathFinder.java +++ b/2006Scape Server/src/main/java/com/rs2/world/clip/PathFinder.java @@ -1,6 +1,5 @@ package com.rs2.world.clip; -import java.util.LinkedList; import com.rs2.game.players.Player; import com.rs2.util.Misc; @@ -12,18 +11,17 @@ public class PathFinder { return pathFinder; } - public void findRoute(Player player, int destX, int destY, boolean moveNear, + public boolean findRoute(Player player, int destX, int destY, boolean moveNear, int xLength, int yLength) { - if (destX == player.getLocalX() && destY == player.getLocalY() && !moveNear) { - player.getPacketSender().sendMessage("ERROR!"); - return; - } destX = destX - 8 * player.getMapRegionX(); destY = destY - 8 * player.getMapRegionY(); + if (destX == player.getLocalX() && destY == player.getLocalY() && !moveNear) { + return false; + } int[][] via = new int[104][104]; int[][] cost = new int[104][104]; - LinkedList tileQueueX = new LinkedList(); - LinkedList tileQueueY = new LinkedList(); + int[] tileQueueX = new int[4096]; + int[] tileQueueY = new int[4096]; for (int xx = 0; xx < 104; xx++) { for (int yy = 0; yy < 104; yy++) { cost[xx][yy] = 99999999; @@ -33,51 +31,56 @@ public class PathFinder { int curY = player.getLocalY(); via[curX][curY] = 99; cost[curX][curY] = 0; - int tail = 0; - tileQueueX.add(curX); - tileQueueY.add(curY); + int readPath = 0; + int writePath = 0; + tileQueueX[writePath] = curX; + tileQueueY[writePath] = curY; + writePath = (writePath + 1) & 4095; boolean foundPath = false; - int pathLength = 4000; - while (tail != tileQueueX.size() && tileQueueX.size() < pathLength) { - curX = tileQueueX.get(tail); - curY = tileQueueY.get(tail); + while (readPath != writePath) { + curX = tileQueueX[readPath]; + curY = tileQueueY[readPath]; + readPath = (readPath + 1) & 4095; int curAbsX = player.getMapRegionX() * 8 + curX; int curAbsY = player.getMapRegionY() * 8 + curY; if (curX == destX && curY == destY) { foundPath = true; break; } - tail = (tail + 1) % pathLength; int thisCost = cost[curX][curY] + 1; if (curY > 0 && via[curX][curY - 1] == 0 && (Region.getClipping(curAbsX, curAbsY - 1, player.heightLevel) & 0x1280102) == 0) { - tileQueueX.add(curX); - tileQueueY.add(curY - 1); + tileQueueX[writePath] = curX; + tileQueueY[writePath] = curY - 1; + writePath = (writePath + 1) & 4095; via[curX][curY - 1] = 1; cost[curX][curY - 1] = thisCost; } if (curX > 0 && via[curX - 1][curY] == 0 && (Region.getClipping(curAbsX - 1, curAbsY, player.heightLevel) & 0x1280108) == 0) { - tileQueueX.add(curX - 1); - tileQueueY.add(curY); + tileQueueX[writePath] = curX - 1; + tileQueueY[writePath] = curY; + writePath = (writePath + 1) & 4095; via[curX - 1][curY] = 2; cost[curX - 1][curY] = thisCost; } if (curY < 104 - 1 && via[curX][curY + 1] == 0 && (Region.getClipping(curAbsX, curAbsY + 1, player.heightLevel) & 0x1280120) == 0) { - tileQueueX.add(curX); - tileQueueY.add(curY + 1); + tileQueueX[writePath] = curX; + tileQueueY[writePath] = curY + 1; + writePath = (writePath + 1) & 4095; via[curX][curY + 1] = 4; cost[curX][curY + 1] = thisCost; } if (curX < 104 - 1 && via[curX + 1][curY] == 0 && (Region.getClipping(curAbsX + 1, curAbsY, player.heightLevel) & 0x1280180) == 0) { - tileQueueX.add(curX + 1); - tileQueueY.add(curY); + tileQueueX[writePath] = curX + 1; + tileQueueY[writePath] = curY; + writePath = (writePath + 1) & 4095; via[curX + 1][curY] = 8; cost[curX + 1][curY] = thisCost; } @@ -88,8 +91,9 @@ public class PathFinder { player.heightLevel) & 0x128010e) == 0 && (Region.getClipping(curAbsX - 1, curAbsY, player.heightLevel) & 0x1280108) == 0 && (Region.getClipping(curAbsX, curAbsY - 1, player.heightLevel) & 0x1280102) == 0) { - tileQueueX.add(curX - 1); - tileQueueY.add(curY - 1); + tileQueueX[writePath] = curX - 1; + tileQueueY[writePath] = curY - 1; + writePath = (writePath + 1) & 4095; via[curX - 1][curY - 1] = 3; cost[curX - 1][curY - 1] = thisCost; } @@ -100,8 +104,9 @@ public class PathFinder { player.heightLevel) & 0x1280138) == 0 && (Region.getClipping(curAbsX - 1, curAbsY, player.heightLevel) & 0x1280108) == 0 && (Region.getClipping(curAbsX, curAbsY + 1, player.heightLevel) & 0x1280120) == 0) { - tileQueueX.add(curX - 1); - tileQueueY.add(curY + 1); + tileQueueX[writePath] = curX - 1; + tileQueueY[writePath] = curY + 1; + writePath = (writePath + 1) & 4095; via[curX - 1][curY + 1] = 6; cost[curX - 1][curY + 1] = thisCost; } @@ -112,8 +117,9 @@ public class PathFinder { player.heightLevel) & 0x1280183) == 0 && (Region.getClipping(curAbsX + 1, curAbsY, player.heightLevel) & 0x1280180) == 0 && (Region.getClipping(curAbsX, curAbsY - 1, player.heightLevel) & 0x1280102) == 0) { - tileQueueX.add(curX + 1); - tileQueueY.add(curY - 1); + tileQueueX[writePath] = curX + 1; + tileQueueY[writePath] = curY - 1; + writePath = (writePath + 1) & 4095; via[curX + 1][curY - 1] = 9; cost[curX + 1][curY - 1] = thisCost; } @@ -124,8 +130,9 @@ public class PathFinder { player.heightLevel) & 0x12801e0) == 0 && (Region.getClipping(curAbsX + 1, curAbsY, player.heightLevel) & 0x1280180) == 0 && (Region.getClipping(curAbsX, curAbsY + 1, player.heightLevel) & 0x1280120) == 0) { - tileQueueX.add(curX + 1); - tileQueueY.add(curY + 1); + tileQueueX[writePath] = curX + 1; + tileQueueY[writePath] = curY + 1; + writePath = (writePath + 1) & 4095; via[curX + 1][curY + 1] = 12; cost[curX + 1][curY + 1] = thisCost; } @@ -163,22 +170,26 @@ public class PathFinder { } } if (i_223_ == 1000) { - return; + return false; } } else { - return; + return false; } } - tail = 0; - tileQueueX.set(tail, curX); - tileQueueY.set(tail++, curY); + if (curX == player.getLocalX() && curY == player.getLocalY()) { + player.resetWalkingQueue(); + return false; + } + int tail = 0; + tileQueueX[tail] = curX; + tileQueueY[tail++] = curY; int l5; for (int j5 = l5 = via[curX][curY]; curX != player.getLocalX() || curY != player.getLocalY(); j5 = via[curX][curY]) { if (j5 != l5) { l5 = j5; - tileQueueX.set(tail, curX); - tileQueueY.set(tail++, curY); + tileQueueX[tail] = curX; + tileQueueY[tail++] = curY; } if ((j5 & 2) != 0) { curX++; @@ -193,17 +204,18 @@ public class PathFinder { } player.resetWalkingQueue(); int size = tail--; - int pathX = player.getMapRegionX() * 8 + tileQueueX.get(tail); - int pathY = player.getMapRegionY() * 8 + tileQueueY.get(tail); + int pathX = player.getMapRegionX() * 8 + tileQueueX[tail]; + int pathY = player.getMapRegionY() * 8 + tileQueueY[tail]; player.addToWalkingQueue(localize(pathX, player.getMapRegionX()), localize(pathY, player.getMapRegionY())); for (int i = 1; i < size; i++) { tail--; - pathX = player.getMapRegionX() * 8 + tileQueueX.get(tail); - pathY = player.getMapRegionY() * 8 + tileQueueY.get(tail); + pathX = player.getMapRegionX() * 8 + tileQueueX[tail]; + pathY = player.getMapRegionY() * 8 + tileQueueY[tail]; player.addToWalkingQueue(localize(pathX, player.getMapRegionX()), localize(pathY, player.getMapRegionY())); } + return true; } public int getRegionCoordinate(int x) { @@ -217,10 +229,13 @@ public class PathFinder { public boolean accessible(int x, int y, int heightLevel, int destX, int destY) { destX = destX - 8 * getRegionCoordinate(x); destY = destY - 8 * getRegionCoordinate(y); + if (destX < 0 || destX >= 104 || destY < 0 || destY >= 104) { + return false; + } int[][] via = new int[104][104]; int[][] cost = new int[104][104]; - LinkedList tileQueueX = new LinkedList(); - LinkedList tileQueueY = new LinkedList(); + int[] tileQueueX = new int[4096]; + int[] tileQueueY = new int[4096]; for (int xx = 0; xx < 104; xx++) { for (int yy = 0; yy < 104; yy++) { cost[xx][yy] = 99999999; @@ -230,51 +245,56 @@ public class PathFinder { int curY = getLocalCoordinate(y); via[curX][curY] = 99; cost[curX][curY] = 0; - int tail = 0; - tileQueueX.add(curX); - tileQueueY.add(curY); + int readPath = 0; + int writePath = 0; + tileQueueX[writePath] = curX; + tileQueueY[writePath] = curY; + writePath = (writePath + 1) & 4095; boolean foundPath = false; - int pathLength = 4000; - while (tail != tileQueueX.size() && tileQueueX.size() < pathLength) { - curX = tileQueueX.get(tail); - curY = tileQueueY.get(tail); + while (readPath != writePath) { + curX = tileQueueX[readPath]; + curY = tileQueueY[readPath]; + readPath = (readPath + 1) & 4095; int curAbsX = getRegionCoordinate(x) * 8 + curX; int curAbsY = getRegionCoordinate(y) * 8 + curY; if (curX == destX && curY == destY) { foundPath = true; break; } - tail = (tail + 1) % pathLength; int thisCost = cost[curX][curY] + 1; if (curY > 0 && via[curX][curY - 1] == 0 && (Region.getClipping(curAbsX, curAbsY - 1, heightLevel) & 0x1280102) == 0) { - tileQueueX.add(curX); - tileQueueY.add(curY - 1); + tileQueueX[writePath] = curX; + tileQueueY[writePath] = curY - 1; + writePath = (writePath + 1) & 4095; via[curX][curY - 1] = 1; cost[curX][curY - 1] = thisCost; } if (curX > 0 && via[curX - 1][curY] == 0 && (Region.getClipping(curAbsX - 1, curAbsY, heightLevel) & 0x1280108) == 0) { - tileQueueX.add(curX - 1); - tileQueueY.add(curY); + tileQueueX[writePath] = curX - 1; + tileQueueY[writePath] = curY; + writePath = (writePath + 1) & 4095; via[curX - 1][curY] = 2; cost[curX - 1][curY] = thisCost; } if (curY < 104 - 1 && via[curX][curY + 1] == 0 && (Region.getClipping(curAbsX, curAbsY + 1, heightLevel) & 0x1280120) == 0) { - tileQueueX.add(curX); - tileQueueY.add(curY + 1); + tileQueueX[writePath] = curX; + tileQueueY[writePath] = curY + 1; + writePath = (writePath + 1) & 4095; via[curX][curY + 1] = 4; cost[curX][curY + 1] = thisCost; } if (curX < 104 - 1 && via[curX + 1][curY] == 0 && (Region.getClipping(curAbsX + 1, curAbsY, heightLevel) & 0x1280180) == 0) { - tileQueueX.add(curX + 1); - tileQueueY.add(curY); + tileQueueX[writePath] = curX + 1; + tileQueueY[writePath] = curY; + writePath = (writePath + 1) & 4095; via[curX + 1][curY] = 8; cost[curX + 1][curY] = thisCost; } @@ -285,8 +305,9 @@ public class PathFinder { heightLevel) & 0x128010e) == 0 && (Region.getClipping(curAbsX - 1, curAbsY, heightLevel) & 0x1280108) == 0 && (Region.getClipping(curAbsX, curAbsY - 1, heightLevel) & 0x1280102) == 0) { - tileQueueX.add(curX - 1); - tileQueueY.add(curY - 1); + tileQueueX[writePath] = curX - 1; + tileQueueY[writePath] = curY - 1; + writePath = (writePath + 1) & 4095; via[curX - 1][curY - 1] = 3; cost[curX - 1][curY - 1] = thisCost; } @@ -297,8 +318,9 @@ public class PathFinder { heightLevel) & 0x1280138) == 0 && (Region.getClipping(curAbsX - 1, curAbsY, heightLevel) & 0x1280108) == 0 && (Region.getClipping(curAbsX, curAbsY + 1, heightLevel) & 0x1280120) == 0) { - tileQueueX.add(curX - 1); - tileQueueY.add(curY + 1); + tileQueueX[writePath] = curX - 1; + tileQueueY[writePath] = curY + 1; + writePath = (writePath + 1) & 4095; via[curX - 1][curY + 1] = 6; cost[curX - 1][curY + 1] = thisCost; } @@ -309,8 +331,9 @@ public class PathFinder { heightLevel) & 0x1280183) == 0 && (Region.getClipping(curAbsX + 1, curAbsY, heightLevel) & 0x1280180) == 0 && (Region.getClipping(curAbsX, curAbsY - 1, heightLevel) & 0x1280102) == 0) { - tileQueueX.add(curX + 1); - tileQueueY.add(curY - 1); + tileQueueX[writePath] = curX + 1; + tileQueueY[writePath] = curY - 1; + writePath = (writePath + 1) & 4095; via[curX + 1][curY - 1] = 9; cost[curX + 1][curY - 1] = thisCost; } @@ -321,8 +344,9 @@ public class PathFinder { heightLevel) & 0x12801e0) == 0 && (Region.getClipping(curAbsX + 1, curAbsY, heightLevel) & 0x1280180) == 0 && (Region.getClipping(curAbsX, curAbsY + 1, heightLevel) & 0x1280120) == 0) { - tileQueueX.add(curX + 1); - tileQueueY.add(curY + 1); + tileQueueX[writePath] = curX + 1; + tileQueueY[writePath] = curY + 1; + writePath = (writePath + 1) & 4095; via[curX + 1][curY + 1] = 12; cost[curX + 1][curY + 1] = thisCost; } @@ -331,58 +355,52 @@ public class PathFinder { } public static boolean isProjectilePathClear(int x0, int y0, int z, int x1, int y1) { + if (x0 == x1 && y0 == y1) { + return true; + } int deltaX = x1 - x0; int deltaY = y1 - y0; - - double error = 0; - final double deltaError = Math.abs( - (deltaY) / (deltaX == 0 - ? ((double) deltaY) - : ((double) deltaX))); + int absDx = Math.abs(deltaX); + int absDy = Math.abs(deltaY); + int stepX = Integer.signum(deltaX); + int stepY = Integer.signum(deltaY); int x = x0; int y = y0; - int pX = x; int pY = y; + double error = 0; - boolean incrX = x0 < x1; - boolean incrY = y0 < y1; - - while (true) { - if (x != x1) { - x += (incrX ? 1 : -1); - } - - if (y != y1) { + if (absDx >= absDy) { + double deltaError = absDy / (double) absDx; + for (int step = 0; step < absDx; step++) { + x += stepX; error += deltaError; - if (error >= 0.5) { - y += (incrY ? 1 : -1); - error -= 1; + y += stepY; + error -= 1.0; } + if (!shootable(x, y, z, pX, pY)) { + return false; + } + pX = x; + pY = y; } - - if (!shootable(x, y, z, pX, pY)) { - return false; + } else { + double deltaError = absDx / (double) absDy; + for (int step = 0; step < absDy; step++) { + y += stepY; + error += deltaError; + if (error >= 0.5) { + x += stepX; + error -= 1.0; + } + if (!shootable(x, y, z, pX, pY)) { + return false; + } + pX = x; + pY = y; } - - if (incrX && incrY - && x >= x1 && y >= y1) { - break; - } else if (!incrX && !incrY - && x <= x1 && y <= y1) { - break; - } else if (!incrX && incrY - && x <= x1 && y >= y1) { - break; - } else if (incrX && !incrY - && x >= x1 && y <= y1) { - break; - } - - pX = x; - pY = y; } return true; diff --git a/2006Scape Server/src/main/java/com/rs2/world/clip/Region.java b/2006Scape Server/src/main/java/com/rs2/world/clip/Region.java index 4c1d7662..bbfe7494 100644 --- a/2006Scape Server/src/main/java/com/rs2/world/clip/Region.java +++ b/2006Scape Server/src/main/java/com/rs2/world/clip/Region.java @@ -2,6 +2,7 @@ package com.rs2.world.clip; import java.util.ArrayList; +import com.rs2.util.Misc; import org.apollo.cache.def.ObjectDefinition; import com.rs2.game.objects.Objects; @@ -114,13 +115,6 @@ public class Region { clips[height][x - regionAbsX][y - regionAbsY] = 0; } - /** - * Nothing calls this... - * - * @param x - * @param y - * @param height - */ public void removeClipping(int x, int y, int height) { for (Region r : RegionFactory.getRegions()) { if (r.id() == getRegionId(x,y)) { @@ -130,6 +124,42 @@ public class Region { } } + public static void removeClipping(int x, int y, int height, int shift) { + for (Region r : RegionFactory.getRegions()) { + if (r.id() == getRegionId(x, y)) { + r.removeClip(x, y, height, shift); + break; + } + } + } + + private void removeClip(int x, int y, int height, int shift) { + int regionAbsX = (id >> 8) * 64; + int regionAbsY = (id & 0xff) * 64; + if (clips[height] == null) { + return; + } + clips[height][x - regionAbsX][y - regionAbsY] &= ~shift; + } + + public static void removeProjectileClipping(int x, int y, int height, int shift) { + for (Region r : RegionFactory.getRegions()) { + if (r.id() == getRegionId(x, y)) { + r.removeProjectileClip(x, y, height, shift); + break; + } + } + } + + private void removeProjectileClip(int x, int y, int height, int shift) { + int regionAbsX = (id >> 8) * 64; + int regionAbsY = (id & 0xff) * 64; + if (projectileClips[height] == null) { + return; + } + projectileClips[height][x - regionAbsX][y - regionAbsY] &= ~shift; + } + private void addProjectileClip(int x, int y, int height, int shift) { int regionAbsX = (id >> 8) * 64; int regionAbsY = (id & 0xff) * 64; @@ -603,40 +633,38 @@ public class Region { * @param startUp */ public static void addObject(int objectId, int x, int y, int height, int type, int direction, boolean startUp) { - if (ObjectDefinition.lookup(objectId) == null) { + ObjectDefinition def = ObjectDefinition.lookup(objectId); + if (def == null) { + return; } int xLength; int yLength; if (direction != 1 && direction != 3) { - xLength = ObjectDefinition.lookup(objectId).getWidth(); - yLength = ObjectDefinition.lookup(objectId).getLength(); + xLength = def.getWidth(); + yLength = def.getLength(); } else { - xLength = ObjectDefinition.lookup(objectId).getLength(); - yLength = ObjectDefinition.lookup(objectId).getWidth(); + xLength = def.getLength(); + yLength = def.getWidth(); } if (type == 22) { - if (ObjectDefinition.lookup(objectId).isInteractive() - && ObjectDefinition.lookup(objectId).isSolid()) { + if (def.isInteractive() && def.isSolid()) { addClipping(x, y, height, 0x200000); - if (ObjectDefinition.lookup(objectId).isImpenetrable()) { + if (def.isImpenetrable()) { addProjectileClipping(x, y, height, 0x200000); } } } else if (type >= 9) { - if (ObjectDefinition.lookup(objectId).isSolid()) { - addClippingForSolidObject(x, y, height, xLength, yLength, - ObjectDefinition.lookup(objectId).isClipped()); - if (ObjectDefinition.lookup(objectId).isImpenetrable()) { - addProjectileClippingForSolidObject(x, y, height, xLength, yLength, - ObjectDefinition.lookup(objectId).isClipped()); + if (def.isSolid()) { + addClippingForSolidObject(x, y, height, xLength, yLength, def.isClipped()); + if (def.isImpenetrable()) { + addProjectileClippingForSolidObject(x, y, height, xLength, yLength, def.isClipped()); } } } else if (type >= 0 && type <= 3) { - if (ObjectDefinition.lookup(objectId).isSolid()) { - addClippingForVariableObject(x, y, height, type, direction, - ObjectDefinition.lookup(objectId).isClipped()); - if (ObjectDefinition.lookup(objectId).isImpenetrable()) { - addProjectileClippingForVariableObject(x, y, height, type, direction, ObjectDefinition.lookup(objectId).isClipped()); + if (def.isSolid()) { + addClippingForVariableObject(x, y, height, type, direction, def.isClipped()); + if (def.isImpenetrable()) { + addProjectileClippingForVariableObject(x, y, height, type, direction, def.isClipped()); } } } @@ -649,6 +677,289 @@ public class Region { } } + private static void removeClippingForSolidObject(int x, int y, int height, + int xLength, int yLength, boolean flag) { + int clipping = 256; + if (flag) { + clipping += 0x20000; + } + for (int i = x; i < x + xLength; i++) { + for (int i2 = y; i2 < y + yLength; i2++) { + removeClipping(i, i2, height, clipping); + } + } + } + + private static void removeProjectileClippingForSolidObject(int x, int y, int height, + int xLength, int yLength, boolean flag) { + int clipping = 256; + if (flag) { + clipping += 0x20000; + } + for (int i = x; i < x + xLength; i++) { + for (int i2 = y; i2 < y + yLength; i2++) { + removeProjectileClipping(i, i2, height, clipping); + } + } + } + + private static void removeClippingForVariableObject(int x, int y, int height, + int type, int direction, boolean flag) { + if (type == 0) { + if (direction == 0) { + removeClipping(x, y, height, 128); + removeClipping(x - 1, y, height, 8); + } else if (direction == 1) { + removeClipping(x, y, height, 2); + removeClipping(x, y + 1, height, 32); + } else if (direction == 2) { + removeClipping(x, y, height, 8); + removeClipping(x + 1, y, height, 128); + } else if (direction == 3) { + removeClipping(x, y, height, 32); + removeClipping(x, y - 1, height, 2); + } + } else if (type == 1 || type == 3) { + if (direction == 0) { + removeClipping(x, y, height, 1); + removeClipping(x - 1, y, height, 16); + } else if (direction == 1) { + removeClipping(x, y, height, 4); + removeClipping(x + 1, y + 1, height, 64); + } else if (direction == 2) { + removeClipping(x, y, height, 16); + removeClipping(x + 1, y - 1, height, 1); + } else if (direction == 3) { + removeClipping(x, y, height, 64); + removeClipping(x - 1, y - 1, height, 4); + } + } else if (type == 2) { + if (direction == 0) { + removeClipping(x, y, height, 130); + removeClipping(x - 1, y, height, 8); + removeClipping(x, y + 1, height, 32); + } else if (direction == 1) { + removeClipping(x, y, height, 10); + removeClipping(x, y + 1, height, 32); + removeClipping(x + 1, y, height, 128); + } else if (direction == 2) { + removeClipping(x, y, height, 40); + removeClipping(x + 1, y, height, 128); + removeClipping(x, y - 1, height, 2); + } else if (direction == 3) { + removeClipping(x, y, height, 160); + removeClipping(x, y - 1, height, 2); + removeClipping(x - 1, y, height, 8); + } + } + if (flag) { + if (type == 0) { + if (direction == 0) { + removeClipping(x, y, height, 65536); + removeClipping(x - 1, y, height, 4096); + } else if (direction == 1) { + removeClipping(x, y, height, 1024); + removeClipping(x, y + 1, height, 16384); + } else if (direction == 2) { + removeClipping(x, y, height, 4096); + removeClipping(x + 1, y, height, 65536); + } else if (direction == 3) { + removeClipping(x, y, height, 16384); + removeClipping(x, y - 1, height, 1024); + } + } + if (type == 1 || type == 3) { + if (direction == 0) { + removeClipping(x, y, height, 512); + removeClipping(x - 1, y + 1, height, 8192); + } else if (direction == 1) { + removeClipping(x, y, height, 2048); + removeClipping(x + 1, y + 1, height, 32768); + } else if (direction == 2) { + removeClipping(x, y, height, 8192); + removeClipping(x + 1, y + 1, height, 512); + } else if (direction == 3) { + removeClipping(x, y, height, 32768); + removeClipping(x - 1, y - 1, height, 2048); + } + } else if (type == 2) { + if (direction == 0) { + removeClipping(x, y, height, 66560); + removeClipping(x - 1, y, height, 4096); + removeClipping(x, y + 1, height, 16384); + } else if (direction == 1) { + removeClipping(x, y, height, 5120); + removeClipping(x, y + 1, height, 16384); + removeClipping(x + 1, y, height, 65536); + } else if (direction == 2) { + removeClipping(x, y, height, 20480); + removeClipping(x + 1, y, height, 65536); + removeClipping(x, y - 1, height, 1024); + } else if (direction == 3) { + removeClipping(x, y, height, 81920); + removeClipping(x, y - 1, height, 1024); + removeClipping(x - 1, y, height, 4096); + } + } + } + } + + private static void removeProjectileClippingForVariableObject(int x, int y, int height, + int type, int direction, boolean flag) { + if (type == 0) { + if (direction == 0) { + removeProjectileClipping(x, y, height, 128); + removeProjectileClipping(x - 1, y, height, 8); + } else if (direction == 1) { + removeProjectileClipping(x, y, height, 2); + removeProjectileClipping(x, y + 1, height, 32); + } else if (direction == 2) { + removeProjectileClipping(x, y, height, 8); + removeProjectileClipping(x + 1, y, height, 128); + } else if (direction == 3) { + removeProjectileClipping(x, y, height, 32); + removeProjectileClipping(x, y - 1, height, 2); + } + } else if (type == 1 || type == 3) { + if (direction == 0) { + removeProjectileClipping(x, y, height, 1); + removeProjectileClipping(x - 1, y, height, 16); + } else if (direction == 1) { + removeProjectileClipping(x, y, height, 4); + removeProjectileClipping(x + 1, y + 1, height, 64); + } else if (direction == 2) { + removeProjectileClipping(x, y, height, 16); + removeProjectileClipping(x + 1, y - 1, height, 1); + } else if (direction == 3) { + removeProjectileClipping(x, y, height, 64); + removeProjectileClipping(x - 1, y - 1, height, 4); + } + } else if (type == 2) { + if (direction == 0) { + removeProjectileClipping(x, y, height, 130); + removeProjectileClipping(x - 1, y, height, 8); + removeProjectileClipping(x, y + 1, height, 32); + } else if (direction == 1) { + removeProjectileClipping(x, y, height, 10); + removeProjectileClipping(x, y + 1, height, 32); + removeProjectileClipping(x + 1, y, height, 128); + } else if (direction == 2) { + removeProjectileClipping(x, y, height, 40); + removeProjectileClipping(x + 1, y, height, 128); + removeProjectileClipping(x, y - 1, height, 2); + } else if (direction == 3) { + removeProjectileClipping(x, y, height, 160); + removeProjectileClipping(x, y - 1, height, 2); + removeProjectileClipping(x - 1, y, height, 8); + } + } + if (flag) { + if (type == 0) { + if (direction == 0) { + removeProjectileClipping(x, y, height, 65536); + removeProjectileClipping(x - 1, y, height, 4096); + } else if (direction == 1) { + removeProjectileClipping(x, y, height, 1024); + removeProjectileClipping(x, y + 1, height, 16384); + } else if (direction == 2) { + removeProjectileClipping(x, y, height, 4096); + removeProjectileClipping(x + 1, y, height, 65536); + } else if (direction == 3) { + removeProjectileClipping(x, y, height, 16384); + removeProjectileClipping(x, y - 1, height, 1024); + } + } + if (type == 1 || type == 3) { + if (direction == 0) { + removeProjectileClipping(x, y, height, 512); + removeProjectileClipping(x - 1, y + 1, height, 8192); + } else if (direction == 1) { + removeProjectileClipping(x, y, height, 2048); + removeProjectileClipping(x + 1, y + 1, height, 32768); + } else if (direction == 2) { + removeProjectileClipping(x, y, height, 8192); + removeProjectileClipping(x + 1, y + 1, height, 512); + } else if (direction == 3) { + removeProjectileClipping(x, y, height, 32768); + removeProjectileClipping(x - 1, y - 1, height, 2048); + } + } else if (type == 2) { + if (direction == 0) { + removeProjectileClipping(x, y, height, 66560); + removeProjectileClipping(x - 1, y, height, 4096); + removeProjectileClipping(x, y + 1, height, 16384); + } else if (direction == 1) { + removeProjectileClipping(x, y, height, 5120); + removeProjectileClipping(x, y + 1, height, 16384); + removeProjectileClipping(x + 1, y, height, 65536); + } else if (direction == 2) { + removeProjectileClipping(x, y, height, 20480); + removeProjectileClipping(x + 1, y, height, 65536); + removeProjectileClipping(x, y - 1, height, 1024); + } else if (direction == 3) { + removeProjectileClipping(x, y, height, 81920); + removeProjectileClipping(x, y - 1, height, 1024); + removeProjectileClipping(x - 1, y, height, 4096); + } + } + } + } + + public static void removeObject(int objectId, int x, int y, int height, int type, int direction) { + ObjectDefinition def = ObjectDefinition.lookup(objectId); + if (def == null) { + return; + } + int xLength; + int yLength; + if (direction != 1 && direction != 3) { + xLength = def.getWidth(); + yLength = def.getLength(); + } else { + xLength = def.getLength(); + yLength = def.getWidth(); + } + if (type == 22) { + if (def.isInteractive() && def.isSolid()) { + removeClipping(x, y, height, 0x200000); + if (def.isImpenetrable()) { + removeProjectileClipping(x, y, height, 0x200000); + } + } + } else if (type >= 9) { + if (def.isSolid()) { + removeClippingForSolidObject(x, y, height, xLength, yLength, def.isClipped()); + if (def.isImpenetrable()) { + removeProjectileClippingForSolidObject(x, y, height, xLength, yLength, def.isClipped()); + } + } + } else if (type >= 0 && type <= 3) { + if (def.isSolid()) { + removeClippingForVariableObject(x, y, height, type, direction, def.isClipped()); + if (def.isImpenetrable()) { + removeProjectileClippingForVariableObject(x, y, height, type, direction, def.isClipped()); + } + } + } + Region r = getRegion(x, y); + if (r != null) { + r.realObjects.removeIf(o -> o.objectId == objectId && o.objectX == x && o.objectY == y && o.objectHeight == height); + } + } + + public static void removeObject(Objects o) { + if (o != null) { + removeObject(o.objectId, o.objectX, o.objectY, o.objectHeight, o.objectType, o.objectFace); + } + } + + public static void removeObject(int id, int x, int y, int height) { + Objects o = getObject(id, x, y, height); + if (o != null) { + removeObject(o); + } + } + public static int getClipping(int x, int y, int height) { if (height > 3) { height = 0; //this doesn't seem good @@ -679,41 +990,340 @@ public class Region { if (height > 3) { height = 0; } - int checkX = x + moveTypeX; - int checkY = y + moveTypeY; - if (moveTypeX == -1 && moveTypeY == 0) { - return (getClipping(x, y, height) & 0x1280108) == 0; - } else if (moveTypeX == 1 && moveTypeY == 0) { - return (getClipping(x, y, height) & 0x1280180) == 0; - } else if (moveTypeX == 0 && moveTypeY == -1) { - return (getClipping(x, y, height) & 0x1280102) == 0; - } else if (moveTypeX == 0 && moveTypeY == 1) { - return (getClipping(x, y, height) & 0x1280120) == 0; - } else if (moveTypeX == -1 && moveTypeY == -1) { - return (getClipping(x, y, height) & 0x128010e) == 0 - && (getClipping(checkX - 1, checkY, height) & 0x1280108) == 0 - && (getClipping(checkX - 1, checkY, height) & 0x1280102) == 0; - } else if (moveTypeX == 1 && moveTypeY == -1) { - return (getClipping(x, y, height) & 0x1280183) == 0 - && (getClipping(checkX + 1, checkY, height) & 0x1280180) == 0 - && (getClipping(checkX, checkY - 1, height) & 0x1280102) == 0; - } else if (moveTypeX == -1 && moveTypeY == 1) { - return (getClipping(x, y, height) & 0x1280138) == 0 - && (getClipping(checkX - 1, checkY, height) & 0x1280108) == 0 - && (getClipping(checkX, checkY + 1, height) & 0x1280120) == 0; - } else if (moveTypeX == 1 && moveTypeY == 1) { - return (getClipping(x, y, height) & 0x12801e0) == 0 - && (getClipping(checkX + 1, checkY, height) & 0x1280180) == 0 - && (getClipping(checkX, checkY + 1, height) & 0x1280120) == 0; - } else { - System.out.println("[FATAL ERROR]: At getClipping: " + x + ", " - + y + ", " + height + ", " + moveTypeX + ", " - + moveTypeY); - return false; + if (moveTypeX == 0 && moveTypeY == 0) { + return true; } + int dir = Misc.directionFromDelta(moveTypeX, moveTypeY); + return canMove(x, y, height, dir); } catch (Exception e) { - return true; + return false; } } + public static boolean canReach(int playerX, int playerY, int height, + int objX, int objY, int sizeX, int sizeY, + int type, int face, int walkToMask) { + if (type == 22) { + return playerX >= objX && playerX <= objX + sizeX - 1 + && playerY >= objY && playerY <= objY + sizeY - 1; + } + if ((type >= 0 && type <= 3) || type == 9) { + return canReachWall(playerX, playerY, height, objX, objY, type, face); + } + if (type >= 6 && type <= 8) { + return canReachWallDecoration(playerX, playerY, height, objX, objY, type, face); + } + if (type == 10 || type == 11) { + int rotatedMask = (face != 0) ? ((walkToMask << face & 0xf) | (walkToMask >> (4 - face))) : walkToMask; + return canReachObject(playerX, playerY, height, objX, objY, sizeX, sizeY, rotatedMask); + } + return canReachObject(playerX, playerY, height, objX, objY, sizeX, sizeY, walkToMask); + } + + public static boolean canReachWall(int playerX, int playerY, int height, + int objX, int objY, int type, int face) { + if (playerX == objX && playerY == objY) { + return true; + } + if (type == 0) { + if (face == 0) { + if (playerX == objX - 1 && playerY == objY) { + return true; + } + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280180) == 0) { + return true; + } + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x1280120) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 0x1280102) == 0) { + return true; + } + } else if (face == 1) { + if (playerX == objX && playerY == objY + 1) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 0x1280102) == 0) { + return true; + } + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280108) == 0) { + return true; + } + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280180) == 0) { + return true; + } + } else if (face == 2) { + if (playerX == objX + 1 && playerY == objY) { + return true; + } + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280108) == 0) { + return true; + } + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x1280120) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 0x1280102) == 0) { + return true; + } + } else if (face == 3) { + if (playerX == objX && playerY == objY - 1) { + return true; + } + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x1280120) == 0) { + return true; + } + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280108) == 0) { + return true; + } + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280180) == 0) { + return true; + } + } + } + if (type == 2) { + if (face == 0) { + if (playerX == objX - 1 && playerY == objY) { + return true; + } + if (playerX == objX && playerY == objY + 1) { + return true; + } + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280180) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 0x1280102) == 0) { + return true; + } + } else if (face == 1) { + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280108) == 0) { + return true; + } + if (playerX == objX && playerY == objY + 1) { + return true; + } + if (playerX == objX + 1 && playerY == objY) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 0x1280102) == 0) { + return true; + } + } else if (face == 2) { + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280108) == 0) { + return true; + } + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x1280120) == 0) { + return true; + } + if (playerX == objX + 1 && playerY == objY) { + return true; + } + if (playerX == objX && playerY == objY - 1) { + return true; + } + } else if (face == 3) { + if (playerX == objX - 1 && playerY == objY) { + return true; + } + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x1280120) == 0) { + return true; + } + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x1280180) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1) { + return true; + } + } + } + if (type == 9) { + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x20) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 2) == 0) { + return true; + } + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 8) == 0) { + return true; + } + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x80) == 0) { + return true; + } + } + return false; + } + + public static boolean canReachWallDecoration(int playerX, int playerY, int height, + int objX, int objY, int type, int face) { + if (playerX == objX && playerY == objY) { + return true; + } + if (type == 6 || type == 7) { + if (type == 7) { + face = (face + 2) & 3; + } + if (face == 0) { + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x80) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 2) == 0) { + return true; + } + } else if (face == 1) { + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 8) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 2) == 0) { + return true; + } + } else if (face == 2) { + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 8) == 0) { + return true; + } + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x20) == 0) { + return true; + } + } else if (face == 3) { + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x80) == 0) { + return true; + } + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x20) == 0) { + return true; + } + } + } + if (type == 8) { + if (playerX == objX && playerY == objY + 1 && (getClipping(playerX, playerY, height) & 0x20) == 0) { + return true; + } + if (playerX == objX && playerY == objY - 1 && (getClipping(playerX, playerY, height) & 2) == 0) { + return true; + } + if (playerX == objX - 1 && playerY == objY && (getClipping(playerX, playerY, height) & 8) == 0) { + return true; + } + if (playerX == objX + 1 && playerY == objY && (getClipping(playerX, playerY, height) & 0x80) == 0) { + return true; + } + } + return false; + } + + public static boolean canReachObject(int playerX, int playerY, int height, + int objX, int objY, int sizeX, int sizeY, int walkToMask) { + int objMaxX = objX + sizeX - 1; + int objMaxY = objY + sizeY - 1; + + if (playerX >= objX && playerX <= objMaxX && playerY >= objY && playerY <= objMaxY) { + return true; + } + + if (playerX == objX - 1 && playerY >= objY && playerY <= objMaxY + && (getClipping(playerX, playerY, height) & 8) == 0 && (walkToMask & 8) == 0) { + return true; + } + if (playerX == objMaxX + 1 && playerY >= objY && playerY <= objMaxY + && (getClipping(playerX, playerY, height) & 0x80) == 0 && (walkToMask & 2) == 0) { + return true; + } + if (playerY == objY - 1 && playerX >= objX && playerX <= objMaxX + && (getClipping(playerX, playerY, height) & 2) == 0 && (walkToMask & 4) == 0) { + return true; + } + if (playerY == objMaxY + 1 && playerX >= objX && playerX <= objMaxX + && (getClipping(playerX, playerY, height) & 0x20) == 0 && (walkToMask & 1) == 0) { + return true; + } + return false; + } + + public static boolean canReachNpcMelee(int playerX, int playerY, int height, + int npcX, int npcY, int npcSize) { + int npcMaxX = npcX + npcSize - 1; + int npcMaxY = npcY + npcSize - 1; + + if (playerX >= npcX && playerX <= npcMaxX && playerY >= npcY && playerY <= npcMaxY) { + return false; + } + + if (playerX == npcX - 1 && playerY >= npcY && playerY <= npcMaxY + && (getClipping(playerX, playerY, height) & 8) == 0 + && (getClipping(npcX, playerY, height) & 0x80) == 0) { + return true; + } + if (playerX == npcMaxX + 1 && playerY >= npcY && playerY <= npcMaxY + && (getClipping(playerX, playerY, height) & 0x80) == 0 + && (getClipping(npcMaxX, playerY, height) & 8) == 0) { + return true; + } + if (playerY == npcY - 1 && playerX >= npcX && playerX <= npcMaxX + && (getClipping(playerX, playerY, height) & 2) == 0 + && (getClipping(playerX, npcY, height) & 0x20) == 0) { + return true; + } + if (playerY == npcMaxY + 1 && playerX >= npcX && playerX <= npcMaxX + && (getClipping(playerX, playerY, height) & 0x20) == 0 + && (getClipping(playerX, npcMaxY, height) & 2) == 0) { + return true; + } + + return false; + } + + public static boolean canReachNpc(int playerX, int playerY, int height, + int npcX, int npcY, int npcSize) { + if (canReachNpcMelee(playerX, playerY, height, npcX, npcY, npcSize)) { + return true; + } + + int npcMaxX = npcX + npcSize - 1; + int npcMaxY = npcY + npcSize - 1; + + if (playerX == npcX - 2 && playerY >= npcY && playerY <= npcMaxY) { + if ((getClipping(playerX, playerY, height) & 8) == 0 + && PathFinder.isProjectilePathClear(playerX, playerY, height, npcX, playerY)) { + return true; + } + } + if (playerX == npcMaxX + 2 && playerY >= npcY && playerY <= npcMaxY) { + if ((getClipping(playerX, playerY, height) & 0x80) == 0 + && PathFinder.isProjectilePathClear(playerX, playerY, height, npcMaxX, playerY)) { + return true; + } + } + if (playerY == npcY - 2 && playerX >= npcX && playerX <= npcMaxX) { + if ((getClipping(playerX, playerY, height) & 2) == 0 + && PathFinder.isProjectilePathClear(playerX, playerY, height, playerX, npcY)) { + return true; + } + } + if (playerY == npcMaxY + 2 && playerX >= npcX && playerX <= npcMaxX) { + if ((getClipping(playerX, playerY, height) & 0x20) == 0 + && PathFinder.isProjectilePathClear(playerX, playerY, height, playerX, npcMaxY)) { + return true; + } + } + + return false; + } + + public static boolean canReachHalberd(int playerX, int playerY, int height, + int npcX, int npcY, int npcSize) { + if (canReachNpcMelee(playerX, playerY, height, npcX, npcY, npcSize)) { + return true; + } + int npcMaxX = npcX + npcSize - 1; + int npcMaxY = npcY + npcSize - 1; + if (playerX >= npcX && playerX <= npcMaxX && playerY >= npcY && playerY <= npcMaxY) { + return false; + } + int closestX = Math.max(npcX, Math.min(playerX, npcMaxX)); + int closestY = Math.max(npcY, Math.min(playerY, npcMaxY)); + int dx = Math.abs(playerX - closestX); + int dy = Math.abs(playerY - closestY); + if (Math.max(dx, dy) <= 2) { + return PathFinder.isProjectilePathClear(playerX, playerY, height, closestX, closestY); + } + return false; + } + } diff --git a/2006Scape Server/src/main/java/org/apollo/cache/decoder/ObjectDefinitionDecoder.java b/2006Scape Server/src/main/java/org/apollo/cache/decoder/ObjectDefinitionDecoder.java index 341948c8..db319c3d 100644 --- a/2006Scape Server/src/main/java/org/apollo/cache/decoder/ObjectDefinitionDecoder.java +++ b/2006Scape Server/src/main/java/org/apollo/cache/decoder/ObjectDefinitionDecoder.java @@ -152,7 +152,7 @@ public final class ObjectDefinitionDecoder implements Runnable { } else if (opcode == 60 || opcode >= 65 && opcode <= 68) { data.getShort(); } else if (opcode == 69) { - data.get(); + definition.setWalkToMask(data.get() & 0xFF); } else if (opcode >= 70 && opcode <= 72) { data.getShort(); } else if (opcode == 73) { diff --git a/2006Scape Server/src/main/java/org/apollo/cache/def/ObjectDefinition.java b/2006Scape Server/src/main/java/org/apollo/cache/def/ObjectDefinition.java index 8737f1ed..f2c66eb1 100644 --- a/2006Scape Server/src/main/java/org/apollo/cache/def/ObjectDefinition.java +++ b/2006Scape Server/src/main/java/org/apollo/cache/def/ObjectDefinition.java @@ -65,6 +65,11 @@ public final class ObjectDefinition { * Represents whether or not this object is clipped. By default, they are. */ private boolean clipped = true; + + /** + * The surrounding interaction mask (opcode 69). + */ + private int walkToMask = 0; /** * The object's description. @@ -224,6 +229,24 @@ public final class ObjectDefinition { return solid; } + /** + * Gets the surrounding interaction mask. + * + * @return The walk-to mask. + */ + public int getWalkToMask() { + return walkToMask; + } + + /** + * Sets the surrounding interaction mask. + * + * @param walkToMask The walk-to mask. + */ + public void setWalkToMask(int walkToMask) { + this.walkToMask = walkToMask; + } + /** * Sets whether or not this this object is clipped. * diff --git a/2006Scape Server/src/main/java/org/apollo/game/session/ApolloHandler.java b/2006Scape Server/src/main/java/org/apollo/game/session/ApolloHandler.java index 3f5af95d..3b2e6e71 100644 --- a/2006Scape Server/src/main/java/org/apollo/game/session/ApolloHandler.java +++ b/2006Scape Server/src/main/java/org/apollo/game/session/ApolloHandler.java @@ -56,7 +56,8 @@ public final class ApolloHandler extends ChannelInboundHandlerAdapter { @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable e) { - if (!e.getMessage().contains("An existing connection was forcibly closed by the remote host") && !e.getMessage().contains("Connection reset by peer")) { + String msg = e.getMessage(); + if (msg == null || (!msg.contains("An existing connection was forcibly closed by the remote host") && !msg.contains("Connection reset"))) { logger.log(Level.WARNING, "Exception occured for channel: " + ctx.channel() + ", closing...", e); } ctx.channel().close(); diff --git a/2006Scape Server/src/main/java/org/apollo/jagcached/FileServer.java b/2006Scape Server/src/main/java/org/apollo/jagcached/FileServer.java index 2f58df63..e58f1647 100644 --- a/2006Scape Server/src/main/java/org/apollo/jagcached/FileServer.java +++ b/2006Scape Server/src/main/java/org/apollo/jagcached/FileServer.java @@ -13,6 +13,8 @@ import org.apollo.game.session.ApolloHandler; import org.apollo.net.HttpChannelInitializer; import org.apollo.net.JagGrabChannelInitializer; import org.apollo.net.ServiceChannelInitializer; +import org.apollo.net.WebSocketJagGrabChannelInitializer; +import org.apollo.net.WebSocketServiceChannelInitializer; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelInitializer; @@ -46,6 +48,16 @@ public final class FileServer { * The {@link ServerBootstrap} for the service listener. */ private final ServerBootstrap serviceBootstrap = new ServerBootstrap(); + + /** + * The {@link ServerBootstrap} for the WebSocket service listener. + */ + private final ServerBootstrap websocketBootstrap = new ServerBootstrap(); + + /** + * The {@link ServerBootstrap} for the WebSocket JAGGRAB listener. + */ + private ServerBootstrap wsJaggrabBootstrap; /** @@ -85,6 +97,7 @@ public final class FileServer { if(Constants.FILE_SERVER) { httpBootstrap = new ServerBootstrap(); jaggrabBootstrap = new ServerBootstrap(); + wsJaggrabBootstrap = new ServerBootstrap(); pool = new RequestWorkerPool(); logger.info("Starting workers..."); pool.start(); @@ -108,9 +121,11 @@ public final class FileServer { public void init() throws Exception { serviceBootstrap.group(loopGroup); + websocketBootstrap.group(loopGroup); if(Constants.FILE_SERVER) { httpBootstrap.group(loopGroup); - jaggrabBootstrap.group(loopGroup); + jaggrabBootstrap.group(loopGroup); + wsJaggrabBootstrap.group(loopGroup); } ApolloHandler handler = new ApolloHandler(); @@ -118,6 +133,10 @@ public final class FileServer { serviceBootstrap.channel(NioServerSocketChannel.class); serviceBootstrap.childHandler(service); + ChannelInitializer wsService = new WebSocketServiceChannelInitializer(handler); + websocketBootstrap.channel(NioServerSocketChannel.class); + websocketBootstrap.childHandler(wsService); + if(!Constants.FILE_SERVER) return; ChannelInitializer http = new HttpChannelInitializer(handler); @@ -127,6 +146,10 @@ public final class FileServer { ChannelInitializer jaggrab = new JagGrabChannelInitializer(handler); jaggrabBootstrap.channel(NioServerSocketChannel.class); jaggrabBootstrap.childHandler(jaggrab); + + ChannelInitializer wsJaggrab = new WebSocketJagGrabChannelInitializer(handler); + wsJaggrabBootstrap.channel(NioServerSocketChannel.class); + wsJaggrabBootstrap.childHandler(wsJaggrab); } /** @@ -140,6 +163,9 @@ public final class FileServer { public void bind(SocketAddress service, SocketAddress http, SocketAddress jaggrab) throws IOException { logger.fine("Binding service listener to address: " + service + "..."); bind(serviceBootstrap, service); + SocketAddress wsAddress = new InetSocketAddress(Constants.getWebSocketPort()); + logger.fine("Binding WebSocket service listener to address: " + wsAddress + "..."); + bind(websocketBootstrap, wsAddress); if (Constants.FILE_SERVER) { try { logger.fine("Binding HTTP listener to address: " + http + "..."); @@ -150,6 +176,10 @@ public final class FileServer { logger.fine("Binding JAGGRAB listener to address: " + jaggrab + "..."); bind(jaggrabBootstrap, jaggrab); + + SocketAddress wsJaggrab = new InetSocketAddress(Constants.JAGGRAB_PORT + 1000); + logger.fine("Binding WebSocket JAGGRAB listener to address: " + wsJaggrab + "..."); + bind(wsJaggrabBootstrap, wsJaggrab); } logger.info("Ready for connections."); } diff --git a/2006Scape Server/src/main/java/org/apollo/net/WebSocketFrameCodec.java b/2006Scape Server/src/main/java/org/apollo/net/WebSocketFrameCodec.java new file mode 100644 index 00000000..02bf2f4b --- /dev/null +++ b/2006Scape Server/src/main/java/org/apollo/net/WebSocketFrameCodec.java @@ -0,0 +1,26 @@ +package org.apollo.net; + +import io.netty.buffer.ByteBuf; +import io.netty.channel.ChannelHandlerContext; +import io.netty.handler.codec.MessageToMessageCodec; +import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; + +import java.util.List; + +/** + * Translates between Netty {@link BinaryWebSocketFrame}s and raw {@link ByteBuf}s + * so browser WebSocket clients can share the standard Apollo game pipeline. + */ +public final class WebSocketFrameCodec extends MessageToMessageCodec { + + @Override + protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List out) { + out.add(new BinaryWebSocketFrame(msg.retain())); + } + + @Override + protected void decode(ChannelHandlerContext ctx, BinaryWebSocketFrame msg, List out) { + out.add(msg.content().retain()); + } + +} diff --git a/2006Scape Server/src/main/java/org/apollo/net/WebSocketJagGrabChannelInitializer.java b/2006Scape Server/src/main/java/org/apollo/net/WebSocketJagGrabChannelInitializer.java new file mode 100644 index 00000000..fb9de414 --- /dev/null +++ b/2006Scape Server/src/main/java/org/apollo/net/WebSocketJagGrabChannelInitializer.java @@ -0,0 +1,57 @@ +package org.apollo.net; + +import io.netty.buffer.ByteBuf; +import io.netty.buffer.Unpooled; +import io.netty.channel.ChannelInboundHandlerAdapter; +import io.netty.channel.ChannelInitializer; +import io.netty.channel.ChannelPipeline; +import io.netty.channel.socket.SocketChannel; +import io.netty.handler.codec.DelimiterBasedFrameDecoder; +import io.netty.handler.codec.http.HttpObjectAggregator; +import io.netty.handler.codec.http.HttpServerCodec; +import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler; +import io.netty.handler.codec.string.StringDecoder; +import io.netty.handler.timeout.IdleStateHandler; + +import java.nio.charset.Charset; + +import org.apollo.net.codec.jaggrab.JagGrabRequestDecoder; +import org.apollo.net.codec.jaggrab.JagGrabResponseEncoder; + +import com.google.common.base.Charsets; + +/** + * WebSocket-wrapped JAGGRAB {@link ChannelInitializer} for browser clients (port 44595). + */ +public final class WebSocketJagGrabChannelInitializer extends ChannelInitializer { + + private static final ByteBuf DOUBLE_LINE_FEED_DELIMITER = Unpooled.buffer(2); + private static final Charset JAGGRAB_CHARSET = Charsets.US_ASCII; + private static final int MAX_REQUEST_LENGTH = 8192; + + static { + DOUBLE_LINE_FEED_DELIMITER.writeByte(10).writeByte(10); + } + + private final ChannelInboundHandlerAdapter handler; + + public WebSocketJagGrabChannelInitializer(ChannelInboundHandlerAdapter handler) { + this.handler = handler; + } + + @Override + protected void initChannel(SocketChannel ch) throws Exception { + ChannelPipeline pipeline = ch.pipeline(); + pipeline.addLast("httpCodec", new HttpServerCodec()); + pipeline.addLast("httpAggregator", new HttpObjectAggregator(65536)); + pipeline.addLast("wsProtocol", new WebSocketServerProtocolHandler("/", null, true)); + pipeline.addLast("wsFrameCodec", new WebSocketFrameCodec()); + pipeline.addLast("framer", new DelimiterBasedFrameDecoder(MAX_REQUEST_LENGTH, DOUBLE_LINE_FEED_DELIMITER)); + pipeline.addLast("string-decoder", new StringDecoder(JAGGRAB_CHARSET)); + pipeline.addLast("jaggrab-decoder", new JagGrabRequestDecoder()); + pipeline.addLast("jaggrab-encoder", new JagGrabResponseEncoder()); + pipeline.addLast("timeout", new IdleStateHandler(NetworkConstants.IDLE_TIME, 0, 0)); + pipeline.addLast("handler", handler); + } + +} diff --git a/2006Scape Server/src/main/java/org/apollo/net/WebSocketServiceChannelInitializer.java b/2006Scape Server/src/main/java/org/apollo/net/WebSocketServiceChannelInitializer.java new file mode 100644 index 00000000..d3ea2078 --- /dev/null +++ b/2006Scape Server/src/main/java/org/apollo/net/WebSocketServiceChannelInitializer.java @@ -0,0 +1,46 @@ +package org.apollo.net; + +import io.netty.channel.ChannelInboundHandlerAdapter; +import io.netty.channel.ChannelInitializer; +import io.netty.channel.ChannelPipeline; +import io.netty.channel.socket.SocketChannel; +import io.netty.handler.codec.http.HttpObjectAggregator; +import io.netty.handler.codec.http.HttpServerCodec; +import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler; +import io.netty.handler.timeout.IdleStateHandler; + +import org.apollo.net.codec.handshake.HandshakeDecoder; + +/** + * A {@link ChannelInitializer} for browser WebSocket connections, bridging + * binary WebSocket frames into the standard Apollo {@link HandshakeDecoder} pipeline. + */ +public final class WebSocketServiceChannelInitializer extends ChannelInitializer { + + /** + * The network event handler. + */ + private final ChannelInboundHandlerAdapter handler; + + /** + * Creates the WebSocket service pipeline factory. + * + * @param handler The networking event handler. + */ + public WebSocketServiceChannelInitializer(ChannelInboundHandlerAdapter handler) { + this.handler = handler; + } + + @Override + protected void initChannel(SocketChannel ch) throws Exception { + ChannelPipeline pipeline = ch.pipeline(); + pipeline.addLast("httpCodec", new HttpServerCodec()); + pipeline.addLast("httpAggregator", new HttpObjectAggregator(65536)); + pipeline.addLast("wsProtocol", new WebSocketServerProtocolHandler("/", null, true)); + pipeline.addLast("wsFrameCodec", new WebSocketFrameCodec()); + pipeline.addLast("handshakeDecoder", new HandshakeDecoder()); + pipeline.addLast("timeout", new IdleStateHandler(NetworkConstants.IDLE_TIME, 0, 0)); + pipeline.addLast("handler", handler); + } + +} diff --git a/2006Scape-Android b/2006Scape-Android index d3b5f608..97e816df 160000 --- a/2006Scape-Android +++ b/2006Scape-Android @@ -1 +1 @@ -Subproject commit d3b5f6084b8a218ac24835390b338bf12bb40928 +Subproject commit 97e816dffe58e09f6bfa94623af35a64fc75bf61 diff --git a/docker-compose.yml b/docker-compose.yml index a86545be..af45fe10 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,5 +19,7 @@ services: working_dir: /usr/src/server ports: # You will need to open other ports if your world ID is not 1 (43598 for world 2) - 43594:43594 # Server + - 44594:44594 # WebSocket Server + - 44595:44595 # WebSocket JAGGRAB - 43595-43596:43595-43596 # File Server restart: unless-stopped