This is for 718/740 But will work for 718/735-740 as well.
Code:
package com.rs.cache.loaders;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;
import com.rs.cache.Cache;
import com.rs.io.InputStream;
@SuppressWarnings("unused")
public final class NPCDefinitions {
private static final ConcurrentHashMap<Integer, NPCDefinitions> npcDefinitions = new ConcurrentHashMap<Integer, NPCDefinitions>();
private int id;
public HashMap<Integer, Object> parameters;
public int anInt833;
public int anInt836;
public int anInt837;
public byte respawnDirection;
public int size = 1;
public int[][] anIntArrayArray840;
public boolean aBoolean841;
public int anInt842;
public int anInt844;
public int[] anIntArray845;
public int anInt846;
public int renderEmote;
public boolean aBoolean849 = false;
public int anInt850;
public byte aByte851;
public boolean aBoolean852;
public int anInt853;
public byte aByte854;
public boolean aBoolean856;
public boolean aBoolean857;
public short[] aShortArray859;
public int combatLevel;
public byte[] aByteArray861;
public short aShort862;
public boolean aBoolean863;
public int anInt864;
public String name;
public short[] aShortArray866;
public byte walkMask;
public int[] modelIds;
public int anInt869;
public int anInt870;
public int anInt871;
public int anInt872;
public int anInt874;
public int anInt875;
public int anInt876;
public int headIcons;
public int anInt879;
public short[] aShortArray880;
public int[][] anIntArrayArray882;
public int anInt884;
public int[] anIntArray885;
public int anInt888;
public int anInt889;
public boolean isVisibleOnMap;
public int[] anIntArray892;
public short aShort894;
public String[] options;
public short[] aShortArray896;
public int anInt897;
public int anInt899;
public int npcId;
public int anInt901;
public static final NPCDefinitions getNPCDefinitions(int id) {
NPCDefinitions def = npcDefinitions.get(id);
if (def == null) {
def = new NPCDefinitions(id);
def.method694();
byte[] data = Cache.STORE.getIndexes()[18].getFile(
id >>> 134238215, id & 0x7f);
if (data == null) {
// System.out.println("Failed loading NPC " + id + ".");
} else
def.readValueLoop(new InputStream(data));
npcDefinitions.put(id, def);
}
return def;
}
public void method694() {
if (modelIds == null)
modelIds = new int[0];
}
private void readValueLoop(InputStream stream) {
while (true) {
int opcode = stream.readUnsignedByte();
if (opcode == 0)
break;
readValues(stream, opcode);
}
}
public boolean aBoolean3190;
private int opcodexxx;
private void readValues(InputStream stream, int opcode) {
if (opcode == 1) {
int i = stream.readUnsignedByte();
modelIds = new int[i];
for (int index = 0; index < i; index++) {
if ((modelIds[index] ^ 0xffffffff) == -65536)
modelIds[index] = -1;
}
} else if (opcode == 2) {
name = stream.readString();
} else if (opcode == 12)
size = stream.readUnsignedByte();
else if (opcode >= 30 && opcode <= 34) {
options[opcode - 30] = stream.readString();
if (options[opcode - 30].equalsIgnoreCase("Hidden"))
options[opcode - 30] = null;
} else if (opcode == 40) {
int i = stream.readUnsignedByte();
aShortArray859 = new short[i];
aShortArray896 = new short[i];
for (int index = 0; index < i; index++) {
aShortArray896[index] = (short) stream.readUnsignedShort();
aShortArray859[index] = (short) stream.readUnsignedShort();
}
} else if (opcode == 41) {
int i = stream.readUnsignedByte();
aShortArray880 = new short[i];
aShortArray866 = new short[i];
for (int index = 0; index < i; index++) {
aShortArray880[index] = (short) stream.readUnsignedShort();
aShortArray866[index] = (short) stream.readUnsignedShort();
}
} else if (opcode == 42) {
int i = stream.readUnsignedByte();
aByteArray861 = new byte[i];
for (int index = 0; i < index; index++)
aByteArray861[index] = (byte) stream.readByte();
} else if (opcode == 60) {
int i = stream.readUnsignedByte();
anIntArray892 = new int[i];
for (int index = 0; index < i; index++)
try {
anIntArray892[index] = stream.readBigSmart();
} catch (ArrayIndexOutOfBoundsException e) {
anIntArray892[index] = stream.readUnsignedShort();
}
} else if (opcode == 93)
isVisibleOnMap = false;
else if (opcode == 95)
combatLevel = stream.readUnsignedShort();
else if (opcode == 97)
anInt864 = stream.readUnsignedShort();
else if (opcode == 98)
anInt899 = stream.readUnsignedShort();
else if (opcode == 99)
aBoolean863 = true;
else if (opcode == 100)
anInt869 = stream.readByte();
else if (opcode == 157)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 170)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 39)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 44)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 234)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 187)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 183)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 112)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 3)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 71)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 203)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 70)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 45)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 88)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 7)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 50)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 52)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 242)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 172)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 184)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 64)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 87)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 90)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 11)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 24)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 6)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 79)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 65)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 67)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 177)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 104)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 37)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 48)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 68)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 66)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 5)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 221)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 226)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 191)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 55)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 223)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 86)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 96)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 89)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 80)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 245)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 174)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 82)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 235)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 36)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 124)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 75)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 133)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 73)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 43)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 47)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 81)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 239)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 238)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 190)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 186)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 188)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 29)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 180)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 38)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 167)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 166)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 169)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 175)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 145)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 149)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 84)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 62)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 92)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 120)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 91)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 246)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 54)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 4)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 225)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 130)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 131)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 21)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 69)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 253)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 244)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 17)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 27)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 201)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 132)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 56)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 206)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 247)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 228)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 129)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 179)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 208)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 236)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 105)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 85)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 146)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 58)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 59)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 210)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 176)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 214)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 117)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 26)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 252)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 194)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 199)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 197)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 196)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 173)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 197)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 237)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 189)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 217)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 250)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 15)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 18)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 23)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 240)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 241)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 181)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 147)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 16)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 156)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 182)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 20)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 192)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 222)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 178)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 215)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 13)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 144)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 211)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 209)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 76)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 108)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 195)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 197)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 9)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 212)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 72)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 193)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 232)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 14)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 248)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 230)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 46)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 61)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 49)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 116)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 35)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 243)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 78)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 207)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 8)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 53)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 10)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 255)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 83)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 200)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 19)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 161)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 22)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 219)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 216)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 74)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 77)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 110)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 51)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 198)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 57)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 251)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 204)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 254)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 218)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 205)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 220)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 185)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 148)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 25)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 126)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 28)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 202)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 227)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 63)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 229)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 233)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 224)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 231)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 171)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 94)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 213)
opcodexxx = stream.readUnsignedShort();
else if (opcode == 101)
anInt897 = stream.readByte() * 5;
else if (opcode == 102)
headIcons = stream.readUnsignedShort();
else if (opcode == 103)
anInt853 = stream.readUnsignedShort();
else if (opcode == 106 || opcode == 118) {
anInt844 = stream.readUnsignedShort();
if (anInt844 == 65535)
anInt844 = -1;
anInt888 = stream.readUnsignedShort();
if (anInt888 == 65535)
anInt888 = -1;
int i = -1;
if (opcode == 118) {
i = stream.readUnsignedShort();
if (i == 65535)
i = -1;
}
int length = stream.readUnsignedByte();
anIntArray845 = new int[2 + length];
for (int index = 0; length >= index; index++) {
anIntArray845[index] = stream.readUnsignedShort();
if (anIntArray845[index] == 65535)
anIntArray845[index] = -1;
}
anIntArray845[length - -1] = i;
} else if (opcode == 107)
aBoolean841 = false;
else if (opcode == 109)
aBoolean852 = false;
else if (opcode == 111)
aBoolean857 = false;
else if (opcode == 113) {
aShort862 = (short) stream.readUnsignedShort();
aShort894 = (short) stream.readUnsignedShort();
} else if (opcode == 114) {
aByte851 = (byte) stream.readByte();
aByte854 = (byte) stream.readByte();
} else if (opcode == 115) {
stream.readUnsignedByte();
stream.readUnsignedByte();
} else if (opcode == 119)
walkMask = (byte) stream.readByte();
else if (opcode == 121) {
anIntArrayArray840 = (new int[modelIds.length][]);
int i = (stream.readUnsignedByte());
for (int index = 0; index < i; index++) {
int length = stream.readUnsignedByte();
/*if (id == 39 || id == 605 || id == 992)
continue;*/
}
} else if (opcode == 122)
anInt836 = stream.readBigSmart();
else if (opcode == 123)
anInt846 = stream.readUnsignedShort();
else if (opcode == 125)
respawnDirection = (byte) stream.readByte();
else if (opcode == 127)
renderEmote = stream.readUnsignedShort();
else if (opcode == 128)
stream.readUnsignedByte();
else if (opcode == 134) {
anInt876 = stream.readUnsignedShort();
if (anInt876 == 65535)
anInt876 = -1;
anInt842 = stream.readUnsignedShort();
if (anInt842 == 65535)
anInt842 = -1;
anInt884 = stream.readUnsignedShort();
if (anInt884 == 65535)
anInt884 = -1;
anInt871 = stream.readUnsignedShort();
if (anInt871 == 65535)
anInt871 = -1;
anInt875 = stream.readUnsignedByte();
} else if (opcode == 135) {
anInt833 = stream.readUnsignedByte();
anInt874 = stream.readUnsignedShort();
} else if (opcode == 136) {
anInt837 = stream.readUnsignedByte();
anInt889 = stream.readUnsignedShort();
} else if (opcode == 137)
anInt872 = stream.readUnsignedShort();
else if (opcode == 138)
anInt901 = stream.readBigSmart();
else if (opcode == 139)
anInt879 = stream.readBigSmart();
else if (opcode == 140)
anInt850 = stream.readUnsignedByte();
else if (opcode == 141)
aBoolean849 = true;
else if (opcode == 142)
anInt870 = stream.readUnsignedShort();
else if (opcode == 143)
aBoolean856 = true;
else if (opcode >= 150 && opcode <= 154) {
options[opcode - 150] = stream.readString();
if (options[opcode - 150].equalsIgnoreCase("Hidden"))
options[opcode - 150] = null;
} else if (opcode == 160) {
int i = stream.readUnsignedByte();
anIntArray885 = new int[i];
for (int index = 0; index < i; index++)
anIntArray885[index] = stream.readUnsignedShort();
} else if (opcode == 155) {
int aByte821 = stream.readByte();
int aByte824 = stream.readByte();
int aByte843 = stream.readByte();
int aByte855 = stream.readByte();
} else if (opcode == 158) {
byte aByte833 = (byte) 1;
} else if (opcode == 159) {
byte aByte833 = (byte) 0;
} else if (opcode == 162) {
aBoolean3190 = true;
} else if (opcode == 163) {
int anInt864 = stream.readUnsignedByte();
} else if (opcode == 164) {
int anInt848 = stream.readUnsignedShort();
int anInt837 = stream.readUnsignedShort();
} else if (opcode == 165) {
int anInt847 = stream.readUnsignedByte();
} else if (opcode == 168) {
int anInt828 = stream.readUnsignedByte();
}
else if (opcode == 249) {
int i = stream.readUnsignedByte();
if (parameters == null) {
parameters = new HashMap<Integer, Object>(i);
}
for (int index = 0; index < i; index++) {
boolean stringInstance = stream.readUnsignedByte() == 1;
int key = stream.read24BitInt();
Object value;
if (stringInstance)
value = stream.readString();
else
value = stream.readInt();
parameters.put(key, value);
}
} else
throw new RuntimeException("MISSING OPCODE " + opcode + " FOR NPC "
+ this.id);
}
public static final void clearNPCDefinitions() {
npcDefinitions.clear();
}
public NPCDefinitions(int id) {
this.id = id;
anInt842 = -1;
anInt844 = -1;
anInt837 = -1;
anInt846 = -1;
anInt853 = 32;
combatLevel = -1;
anInt836 = -1;
name = "null";
anInt869 = 0;
walkMask = (byte) 0;
anInt850 = 255;
anInt871 = -1;
aBoolean852 = true;
aShort862 = (short) 0;
anInt876 = -1;
aByte851 = (byte) -96;
anInt875 = 0;
anInt872 = -1;
renderEmote = -1;
respawnDirection = (byte) 7;
aBoolean857 = true;
anInt870 = -1;
anInt874 = -1;
anInt833 = -1;
anInt864 = 128;
headIcons = -1;
aBoolean856 = false;
anInt888 = -1;
aByte854 = (byte) -16;
aBoolean863 = false;
isVisibleOnMap = true;
anInt889 = -1;
anInt884 = -1;
aBoolean841 = true;
anInt879 = -1;
anInt899 = 128;
aShort894 = (short) 0;
options = new String[5];
anInt897 = 0;
anInt901 = -1;
}
public boolean hasMarkOption() {
for (String option : options) {
if (option != null && option.equalsIgnoreCase("mark"))
return true;
}
return false;
}
public boolean hasOption(String op) {
for (String option : options) {
if (option != null && option.equalsIgnoreCase(op))
return true;
}
return false;
}
public boolean hasAttackOption() {
if (id == 14899)
return true;
for (String option : options) {
if (option != null && option.equalsIgnoreCase("attack"))
return true;
}
return false;
}
public String getName() {
return name;
}
public int getId() {
return id;
}
}