world_version = "4.3.1" check_table = { 0xEB0000: [0x11, 3], 0xEB0001: [0x6C, 4], 0xEB0002: [0x6B, 7], 0xEB0003: [0x11, 6], 0xEB0004: [0x84, 3], 0xEB0005: [0x82, 1], 0xEB0006: [0x47, 6], 0xEB0007: [0x13, 0], 0xEB0008: [0x6C, 0], 0xEB0009: [0x11, 4], 0xEB000A: [0x6C, 1], 0xEB000B: [0x6C, 2], 0xEB000C: [0x6C, 3], 0xEB000D: [0x11, 7], 0xEB000E: [0x11, 5], 0xEB000F: [0x6C, 6], 0xEB0010: [0x6C, 7], 0xEB0011: [0x6C, 5], 0xEB0012: [0x12, 0], 0xEB0013: [0x5B, 5], 0xEB0014: [0x6D, 1], 0xEB0015: [0x6D, 2], 0xEB0016: [0x6D, 0], 0xEB0017: [0x4C, 5], 0xEB0018: [0x12, 2], 0xEB0019: [0x12, 1], 0xEB001A: [0x12, 3], 0xEB001B: [0x12, 4], 0xEB001C: [0x85, 2], 0xEB001D: [0x6E, 0], 0xEB001E: [0x6D, 5], 0xEB001F: [0x6D, 7], 0xEB0020: [0x6E, 1], 0xEB0021: [0x6E, 2], 0xEB0022: [0x6D, 6], 0xEB0023: [0x83, 7], 0xEB0024: [0x6D, 4], 0xEB0025: [0x6D, 3], 0xEB0026: [0x12, 5], 0xEB0027: [0x85, 4], 0xEB0028: [0x17, 1], 0xEB0029: [0x6E, 4], 0xEB002A: [0x6E, 5], 0xEB002B: [0x6E, 3], 0xEB002C: [0x12, 6], 0xEB002D: [0x6E, 6], 0xEB002E: [0x6F, 0], 0xEB002F: [0x6F, 1], 0xEB0030: [0x6E, 7], 0xEB0031: [0x66, 2], 0xEB0032: [0x0D, 6], 0xEB0033: [0x6F, 2], 0xEB0034: [0x6F, 3], 0xEB0035: [0x73, 4], 0xEB0036: [0x73, 3], 0xEB0037: [0x73, 5], 0xEB0038: [0x73, 6], 0xEB0039: [0x73, 7], 0xEB003A: [0x74, 0], 0xEB003B: [0x74, 1], 0xEB003C: [0x84, 5], 0xEB003D: [0x1D, 2], 0xEB003E: [0x1D, 3], 0xEB003F: [0x1D, 4], 0xEB0040: [0x73, 2], 0xEB0041: [0x72, 5], 0xEB0042: [0x73, 1], 0xEB0043: [0x72, 4], 0xEB0044: [0x73, 0], 0xEB0045: [0x72, 7], 0xEB0046: [0x72, 6], 0xEB0047: [0x76, 2], 0xEB0048: [0x76, 7], 0xEB0049: [0x76, 1], 0xEB004A: [0x76, 4], 0xEB004B: [0x76, 5], 0xEB004C: [0x76, 6], 0xEB004D: [0x76, 3], 0xEB004E: [0x38, 0], 0xEB004F: [0x77, 0], 0xEB0050: [0x13, 1], 0xEB0051: [0x70, 0], 0xEB0052: [0x6F, 5], 0xEB0053: [0x6F, 7], 0xEB0054: [0x70, 2], 0xEB0055: [0x70, 1], 0xEB0056: [0x6F, 6], 0xEB0057: [0x6F, 4], 0xEB0058: [0x85, 1], 0xEB0059: [0x12, 7], 0xEB005A: [0x86, 3], 0xEB005B: [0x0A, 6], 0xEB005C: [0x31, 5], 0xEB005D: [0x53, 4], 0xEB005E: [0x17, 7], 0xEB005F: [0x30, 2], 0xEB0060: [0x71, 0], 0xEB0061: [0x70, 6], 0xEB0062: [0x70, 4], 0xEB0063: [0x70, 7], 0xEB0064: [0x70, 5], 0xEB0065: [0x71, 3], 0xEB0066: [0x71, 1], 0xEB0067: [0x71, 2], 0xEB0068: [0x70, 3], 0xEB0069: [0x55, 1], 0xEB006A: [0x72, 3], 0xEB006B: [0x71, 5], 0xEB006C: [0x72, 1], 0xEB006D: [0x71, 6], 0xEB006E: [0x71, 7], 0xEB006F: [0x71, 4], 0xEB0070: [0x72, 0], 0xEB0071: [0x72, 2], 0xEB0072: [0x58, 3], 0xEB0073: [0x83, 4], 0xEB0074: [0x78, 5], 0xEB0075: [0x78, 3], 0xEB0076: [0x77, 3], 0xEB0077: [0x78, 6], 0xEB0078: [0x78, 2], 0xEB0079: [0x77, 5], 0xEB007A: [0x77, 2], 0xEB007B: [0x77, 7], 0xEB007C: [0x77, 4], 0xEB007D: [0x77, 1], 0xEB007E: [0x78, 1], 0xEB007F: [0x78, 0], 0xEB0080: [0x78, 4], 0xEB0081: [0x77, 6], 0xEB0082: [0x74, 2], 0xEB0083: [0x74, 3], 0xEB0084: [0x74, 4], 0xEB0085: [0x74, 5], 0xEB0086: [0x41, 7], 0xEB0087: [0x74, 6], 0xEB0088: [0x74, 7], 0xEB0089: [0x4D, 1], 0xEB008A: [0x54, 4], 0xEB00F1: [0x75, 1], 0xEB00F2: [0x75, 0], 0xEB00F3: [0x75, 2], 0xEB00F4: [0x75, 4], 0xEB00F5: [0x75, 3], 0xEB00F6: [0x75, 5], 0xEB00F7: [0x75, 6], 0xEB00F8: [0x76, 0], 0xEB00F9: [0x75, 7], 0xEB008B: [0x19, 3], 0xEB008C: [0x83, 6], 0xEB008D: [0x63, 7], 0xEB008E: [0x79, 2], 0xEB008F: [0x79, 3], 0xEB0090: [0x79, 6], 0xEB0091: [0x79, 5], 0xEB0092: [0x79, 4], 0xEB0093: [0x19, 2], 0xEB0094: [0x7A, 2], 0xEB0095: [0x7A, 3], 0xEB0096: [0x7A, 1], 0xEB0097: [0x79, 7], 0xEB0098: [0x7A, 0], 0xEB0099: [0x78, 7], 0xEB009A: [0x79, 0], 0xEB009B: [0x79, 1], 0xEB009C: [0x19, 4], 0xEB009D: [0x64, 4], 0xEB009E: [0x5A, 7], 0xEB009F: [0x32, 6], 0xEB00A0: [0x0F, 4], 0xEB00A1: [0x7C, 6], 0xEB00A2: [0x7C, 7], 0xEB00A3: [0x7D, 0], 0xEB00A4: [0x2A, 0], 0xEB00A5: [0x7D, 2], 0xEB00A6: [0x7D, 4], 0xEB00A7: [0x7D, 3], 0xEB00A8: [0x7D, 1], 0xEB00A9: [0x57, 4], 0xEB00AA: [0x09, 7], 0xEB00AB: [0x7D, 6], 0xEB00AC: [0x7D, 5], 0xEB00AD: [0x7D, 7], 0xEB00AE: [0x7A, 6], 0xEB00AF: [0x7A, 4], 0xEB00B0: [0x7A, 5], 0xEB00B1: [0x7B, 0], 0xEB00B2: [0x7B, 1], 0xEB00B3: [0x33, 3], 0xEB00B4: [0x7A, 7], 0xEB00B5: [0x83, 0], 0xEB00B6: [0x31, 7], 0xEB00B7: [0x7B, 6], 0xEB00B8: [0x7B, 2], 0xEB00B9: [0x7C, 5], 0xEB00BA: [0x7C, 0], 0xEB00BB: [0x7C, 1], 0xEB00BC: [0x7C, 2], 0xEB00BD: [0x7B, 4], 0xEB00BE: [0x7B, 7], 0xEB00BF: [0x7B, 5], 0xEB00C0: [0x7C, 4], 0xEB00C1: [0x7C, 3], 0xEB00C2: [0x7B, 3], 0xEB00C3: [0x59, 1], 0xEB00C4: [0x7E, 4], 0xEB00C5: [0x7E, 3], 0xEB00C6: [0x7E, 2], 0xEB00C7: [0x7E, 5], 0xEB00C8: [0x7E, 0], 0xEB00C9: [0x7E, 1], 0xEB00CA: [0x3E, 7], 0xEB00CB: [0x3F, 1], 0xEB00CC: [0x3F, 0], 0xEB00CD: [0x3F, 2], 0xEB00CE: [0x3E, 6], 0xEB00CF: [0x84, 7], 0xEB00D0: [0x7F, 7], 0xEB00D1: [0x83, 1], 0xEB00D2: [0x82, 6], 0xEB00D3: [0x13, 3], 0xEB00D4: [0x7F, 6], 0xEB00D5: [0x7F, 2], 0xEB00D6: [0x7F, 0], 0xEB00D7: [0x7F, 5], 0xEB00D8: [0x7E, 7], 0xEB00D9: [0x7F, 3], 0xEB00DA: [0x7E, 6], 0xEB00DB: [0x7F, 1], 0xEB00DC: [0x7F, 4], 0xEB00DD: [0x3C, 6], 0xEB00DE: [0x80, 1], 0xEB00DF: [0x80, 2], 0xEB00E0: [0x80, 3], 0xEB00E1: [0x80, 4], 0xEB00E2: [0x80, 0], 0xEB00E3: [0x81, 1], 0xEB00E4: [0x80, 7], 0xEB00E5: [0x81, 0], 0xEB00E6: [0x80, 6], 0xEB00E7: [0x80, 5], 0xEB00E8: [0x13, 4], 0xEB00E9: [0x81, 2], 0xEB00EA: [0x81, 4], 0xEB00EB: [0x81, 5], 0xEB00EC: [0x81, 6], 0xEB00ED: [0x86, 1], 0xEB00EE: [0x84, 4], 0xEB00EF: [0x86, 4], 0xEB00F0: [0x81, 7], 0xEB00FA: [0x81, 3], # Shop checks 0xeb1000: [0x00, 0], 0xeb1001: [0x00, 1], 0xeb1002: [0x00, 2], 0xeb1003: [0x00, 3], 0xeb1004: [0x00, 4], 0xeb1007: [0x01, 0], 0xeb100e: [0x02, 0], 0xeb1015: [0x03, 0], 0xeb1016: [0x03, 1], 0xeb1017: [0x03, 2], 0xeb1018: [0x03, 3], 0xeb101c: [0x04, 0], 0xeb101d: [0x04, 1], 0xeb101e: [0x04, 2], 0xeb101f: [0x04, 3], 0xeb1023: [0x05, 0], 0xeb1024: [0x05, 1], 0xeb1025: [0x05, 2], 0xeb1026: [0x05, 3], 0xeb102a: [0x06, 0], 0xeb102b: [0x06, 1], 0xeb102c: [0x06, 2], 0xeb102d: [0x06, 3], 0xeb1031: [0x07, 0], 0xeb1032: [0x07, 1], 0xeb1033: [0x07, 2], 0xeb1034: [0x07, 3], 0xeb1035: [0x07, 4], 0xeb1036: [0x07, 5], 0xeb1038: [0x08, 0], 0xeb1039: [0x08, 1], 0xeb103f: [0x09, 0], 0xeb1046: [0x0a, 0], 0xeb1047: [0x0a, 1], 0xeb1048: [0x0a, 2], 0xeb1049: [0x0a, 3], 0xeb104a: [0x0a, 4], 0xeb104b: [0x0a, 5], 0xeb105b: [0x0d, 0], 0xeb105c: [0x0d, 1], 0xeb105d: [0x0d, 2], 0xeb105e: [0x0d, 3], 0xeb105f: [0x0d, 4], 0xeb1060: [0x0d, 5], 0xeb1062: [0x0e, 0], 0xeb1069: [0x0f, 0], 0xeb106a: [0x0f, 1], 0xeb106b: [0x0f, 2], 0xeb106c: [0x0f, 3], 0xeb106d: [0x0f, 4], 0xeb1070: [0x10, 0], 0xeb1071: [0x10, 1], 0xeb1072: [0x10, 2], 0xeb1073: [0x10, 3], 0xeb1074: [0x10, 4], 0xeb1077: [0x11, 0], 0xeb1078: [0x11, 1], 0xeb1079: [0x11, 2], 0xeb107a: [0x11, 3], 0xeb107b: [0x11, 4], 0xeb107e: [0x12, 0], 0xeb107f: [0x12, 1], 0xeb1080: [0x12, 2], 0xeb1081: [0x12, 3], 0xeb1085: [0x13, 0], 0xeb1086: [0x13, 1], 0xeb1087: [0x13, 2], 0xeb1088: [0x13, 3], 0xeb1089: [0x13, 4], 0xeb108a: [0x13, 5], 0xeb108b: [0x13, 6], 0xeb108c: [0x14, 0], 0xeb1093: [0x15, 0], 0xeb1094: [0x15, 1], 0xeb1095: [0x15, 2], 0xeb1096: [0x15, 3], 0xeb1097: [0x15, 4], 0xeb1098: [0x15, 5], 0xeb1099: [0x15, 6], 0xeb109a: [0x16, 0], 0xeb109b: [0x16, 1], 0xeb109c: [0x16, 2], 0xeb109d: [0x16, 3], 0xeb109e: [0x16, 4], 0xeb10a1: [0x17, 0], 0xeb10a2: [0x17, 1], 0xeb10a3: [0x17, 2], 0xeb10a4: [0x17, 3], 0xeb10a5: [0x17, 4], 0xeb10a8: [0x18, 0], 0xeb10a9: [0x18, 1], 0xeb10aa: [0x18, 2], 0xeb10ab: [0x18, 3], 0xeb10af: [0x19, 0], 0xeb10b0: [0x19, 1], 0xeb10b1: [0x19, 2], 0xeb10b2: [0x19, 3], 0xeb10b3: [0x19, 4], 0xeb10b4: [0x19, 5], 0xeb10b6: [0x1a, 0], 0xeb10b7: [0x1a, 1], 0xeb10b8: [0x1a, 2], 0xeb10b9: [0x1a, 3], 0xeb10ba: [0x1a, 4], 0xeb10bb: [0x1a, 5], 0xeb10bc: [0x1a, 6], 0xeb10bd: [0x1b, 0], 0xeb10be: [0x1b, 1], 0xeb10bf: [0x1b, 2], 0xeb10c0: [0x1b, 3], 0xeb10c4: [0x1c, 0], 0xeb10c5: [0x1c, 1], 0xeb10c6: [0x1c, 2], 0xeb10c7: [0x1c, 3], 0xeb10c8: [0x1c, 4], 0xeb10cb: [0x1d, 0], 0xeb10cc: [0x1d, 1], 0xeb10cd: [0x1d, 2], 0xeb10ce: [0x1d, 3], 0xeb10cf: [0x1d, 4], 0xeb10d0: [0x1d, 5], 0xeb10d1: [0x1d, 6], 0xeb10d2: [0x1e, 0], 0xeb10d3: [0x1e, 1], 0xeb10d4: [0x1e, 2], 0xeb10d5: [0x1e, 3], 0xeb10d6: [0x1e, 4], 0xeb10d7: [0x1e, 5], 0xeb10d9: [0x1f, 0], 0xeb10da: [0x1f, 1], 0xeb10db: [0x1f, 2], 0xeb10dc: [0x1f, 3], 0xeb10e0: [0x20, 0], 0xeb10e1: [0x20, 1], 0xeb10e2: [0x20, 2], 0xeb10e3: [0x20, 3], 0xeb10e4: [0x20, 4], 0xeb10e7: [0x21, 0], 0xeb10e8: [0x21, 1], 0xeb10e9: [0x21, 2], 0xeb10ea: [0x21, 3], 0xeb10eb: [0x21, 4], 0xeb10ee: [0x22, 0], 0xeb10ef: [0x22, 1], 0xeb10f0: [0x22, 2], 0xeb10f1: [0x22, 3], 0xeb10f5: [0x23, 0], 0xeb10f6: [0x23, 1], 0xeb1103: [0x25, 0], 0xeb1104: [0x25, 1], 0xeb1105: [0x25, 2], 0xeb1106: [0x25, 3], 0xeb1107: [0x25, 4], 0xeb1108: [0x25, 5], 0xeb1109: [0x25, 6], 0xeb110a: [0x26, 0], 0xeb110b: [0x26, 1], 0xeb110c: [0x26, 2], 0xeb110d: [0x26, 3], 0xeb110e: [0x26, 4], 0xeb110f: [0x26, 5], 0xeb1110: [0x26, 6], 0xeb1111: [0x27, 0], 0xeb1112: [0x27, 1], 0xeb1113: [0x27, 2], 0xeb1114: [0x27, 3], 0xeb1115: [0x27, 4], 0xeb1116: [0x27, 5], 0xeb1118: [0x28, 0], 0xeb1119: [0x28, 1], 0xeb111a: [0x28, 2], 0xeb111b: [0x28, 3], 0xeb111c: [0x28, 4], 0xeb111d: [0x28, 5], 0xeb1126: [0x2a, 0], 0xeb1127: [0x2a, 1], 0xeb1128: [0x2a, 2], 0xeb112d: [0x2b, 0], 0xeb112e: [0x2b, 1], 0xeb112f: [0x2b, 2], 0xeb1130: [0x2b, 3], 0xeb1131: [0x2b, 4], 0xeb1132: [0x2b, 5], 0xeb1134: [0x2c, 0], 0xeb1135: [0x2c, 1], 0xeb1136: [0x2c, 2], 0xeb1137: [0x2c, 3], 0xeb113b: [0x2d, 0], 0xeb113c: [0x2d, 1], 0xeb113d: [0x2d, 2], 0xeb113e: [0x2d, 3], 0xeb113f: [0x2d, 4], 0xeb1140: [0x2d, 5], 0xeb1141: [0x2d, 6], 0xeb1157: [0x31, 0], 0xeb1158: [0x31, 1], 0xeb1159: [0x31, 2], 0xeb115a: [0x31, 3], 0xeb115e: [0x32, 0], 0xeb115f: [0x32, 1], 0xeb1160: [0x32, 2], 0xeb1161: [0x32, 3], 0xeb1162: [0x32, 4], 0xeb1163: [0x32, 5], 0xeb1164: [0x32, 6], 0xeb1165: [0x33, 0], 0xeb1166: [0x33, 1], 0xeb1167: [0x33, 2], 0xeb1168: [0x33, 3], 0xeb116c: [0x34, 0], 0xeb116d: [0x34, 1], 0xeb116e: [0x34, 2], 0xeb116f: [0x34, 3], 0xeb1170: [0x34, 4], 0xeb1171: [0x34, 5], 0xeb1172: [0x34, 6], 0xeb117a: [0x36, 0], 0xeb117b: [0x36, 1], 0xeb117c: [0x36, 2], 0xeb117d: [0x36, 3], 0xeb117e: [0x36, 4], 0xeb117f: [0x36, 5], 0xeb1180: [0x36, 6], 0xeb1181: [0x37, 0], 0xeb1182: [0x37, 1], 0xeb1183: [0x37, 2], 0xeb1188: [0x38, 0], 0xeb1189: [0x38, 1], 0xeb118a: [0x38, 2], 0xeb118b: [0x38, 3], 0xeb118c: [0x38, 4], 0xeb118d: [0x38, 5], 0xeb118e: [0x38, 6], 0xeb118f: [0x39, 0], 0xeb1190: [0x39, 1], 0xeb1191: [0x39, 2], 0xeb1192: [0x39, 3], 0xeb1193: [0x39, 4], 0xeb1194: [0x39, 5], 0xeb1195: [0x39, 6], 0xeb1196: [0x3a, 0], 0xeb1197: [0x3a, 1], 0xeb1198: [0x3a, 2], 0xeb1199: [0x3a, 3], 0xeb119a: [0x3a, 4], 0xeb119b: [0x3a, 5], 0xeb119c: [0x3a, 6], 0xeb119d: [0x3b, 0], 0xeb119e: [0x3b, 1], 0xeb119f: [0x3b, 2], 0xeb11a0: [0x3b, 3], 0xeb11a1: [0x3b, 4], 0xeb11a4: [0x3c, 0], 0xeb11a5: [0x3c, 1], 0xeb11a6: [0x3c, 2], 0xeb11a7: [0x3c, 3], 0xeb11ab: [0x3d, 0], 0xeb11ac: [0x3d, 1], 0xeb11ad: [0x3d, 2], 0xeb11ae: [0x3d, 3], 0xeb11af: [0x3d, 4], 0xeb11b0: [0x3d, 5], 0xeb11b1: [0x3d, 6], 0xeb11b2: [0x3e, 0], 0xeb11b3: [0x3e, 1], 0xeb11b4: [0x3e, 2], 0xeb11b5: [0x3e, 3], 0xeb11b6: [0x3e, 4], 0xeb11b7: [0x3e, 5], 0xeb11b8: [0x3e, 6], 0xeb11c0: [0x40, 0], 0xeb11c1: [0x40, 1], 0xeb11c2: [0x40, 2], 0xeb11c3: [0x40, 3], 0xeb11c4: [0x40, 4] } location_dialogue = { # Locations which just need to print the name of the item "Onett - Tracy Gift": [0x07616B, 0x330478], "Onett - Meteor Item": [0x0862C3], "Onett - Library Counter": [0x05EC0C], "Onett - Library Bookshelf": [0x2EBA66], "Onett - Treehouse Guy": [0x073F34], "Onett - Mayor Pirkle": [0x0661D6, 0x072D4B, 0x072BE9], "Onett - Traveling Entertainer": [0x07476C], "Twoson - Bike Shop Rental": [0x080046, 0x08008F], "Twoson - Orange Kid Donation": [0x08134A, 0x0813B9, 0x3303E3], "Twoson - Apple Kid Invention": [0x081F89, 0x081FF3], "Twoson - Apple Kid's Mouse": [0x2EBA86], "Twoson - Antique Shop": [0x093E5F, 0x093F0A], "Twoson - Paula's Mother": [0x08061B, 0x0807F7], "Twoson - Everdred Meeting": [0x095FA2], "Twoson - Insignificant Location": [0x094EB1], "Happy-Happy Village - Donation Lady": [0x2EC578, 0x2EC580], "Happy-Happy Village - Prisoner Item": [0x2F95FE, 0x33001E, 0x079646], "Happy-Happy Village - Defeat Carpainter": [0x098215], "Threed - Hospital Drawer": [0x08686C], "Saturn Valley - Post Belch Gift #1": [0x07EAAA], "Saturn Valley - Post Belch Gift #2": [0x07EACE], "Saturn Valley - Post Belch Gift #3": [0x07EAF2], "Dusty Dunes - Shining Spot": [0x060D8D], "Dusty Dunes - Mine Reward": [0x06038A, 0x06123A, 0x06053F], "Snow Wood - Maxwell Item": [0x06AB89], "Scaraba - Snake Bag Salesman": [0x2EA713, 0x057116], "Winters - Drugstore Saleswoman": [0x07A223, 0x06AEB8], "Andonuts Lab - Mouse": [0x06C840], "Stonehenge - Tony Item": [0x2FFA0C], "Stonehenge - Kidnapped Mr. Saturn": [0x06C061], "Monkey Caves - Bow Monkey Gift": [0x0625E7], "Monkey Caves - Talah Rama Gift": [0x060E77], "Fourside - Venus Gift": [0x06D643], "Fourside - Post-Moonside Delivery": [0x07AA04, 0x3310E6], "Fourside - Bakery 2F Gift": [0x06DDAC], "Monotoli Building - Monotoli Gift": [0x06EAA9], "Monotoli Building - Electra Gift": [0x06E9A9], "Summers - Museum Item": [0x08ABB8], "Pyramid - Pedestal Item": [0x2EBA92], "Scaraba - Key Holder": [0x2EBA9E], "Deep Darkness - Teleporting Monkey": [0x2EBEE2], "Deep Darkness - North Alcove Truffle": [0x3315CE], "Deep Darkness - Near Land Truffle": [0x33162A], "Deep Darkness - Present Truffle": [0x3315FC], "Deep Darkness - Village Truffle": [0x331658], "Deep Darkness - Entrance Truffle": [0x3315A0], "Tenda Village - Tenda Gift": [0x09DA6C, 0x09DA79], "Tenda Village - Tenda Gift #2": [0x09D7FD], "Magicant - Ness's Gift": [0x077614], "Cave of the Present - Broken Phase Distorter": [0x2F58FC], "Onett - Buzz Buzz": [0x2EAA43], "Onett - Mani Mani Statue": [0x2EA99E], "Deep Darkness - Barf Character": [0x2EB664], "Dalaam - Throne Character": [0x2EB4E2], "Monotoli Building - Monotoli Character": [0x2EB2C3], "Snow Wood - Bedroom": [0x2EB10D], "Threed - Zombie Prisoner": [0x2EAFB1, 0x2EC9E1], "Happy-Happy Village - Prisoner": [0x2EBABA], "Saturn Valley - Saturn Coffee": [0x2EB008], "Monkey Caves - Monkey Power": [0x2EB1A1], "Fourside - Department Store Blackout": [0x2EBFE8, 0x2ED155], "Summers - Magic Cake": [0x2EBFB4], "Scaraba - Star Master": [0x2EBFA7], "Dalaam - Trial of Mu": [0x2EBF95, 0x2EBF88], "Tenda Village - Tenda Tea": [0x2EB6CC], "Lost Underworld - Talking Rock": [0x2EB751], "Cave of the Present - Star Master": [0x2EB8DF], "Magicant - Ness's Nightmare": [0x2EB803, 0x2EB87C], "Dungeon Man - 1F Exit Ledge Present": [0x057A55], "Snow Wood - Upper Right Locker": [0x2EFB11], "Snow Wood - Upper Left Locker": [0x2EFB50], "Snow Wood - Bottom Right Locker": [0x2EFB8F], "Snow Wood - Bottom Left Locker": [0x2EFBCE] } npc_locations = { # Locations given to you by an NPC "Onett - Tracy Gift": [0x07617B], "Onett - Meteor Item": [0x086304], "Onett - Library Counter": [0x07339C], "Onett - Library Bookshelf": [0x087E7B], "Onett - Treehouse Guy": [0x073F78], "Onett - Mayor Pirkle": [0x072D61], "Onett - Traveling Entertainer": [0x07477C], "Twoson - Bike Shop Rental": [0x0801A5], "Twoson - Orange Kid Donation": [0x081362], "Twoson - Apple Kid's Mouse": [0x0819DF], "Twoson - Apple Kid Invention": [0x082015], "Twoson - Antique Shop": [0x2EAEFD], "Twoson - Paula's Mother": [0x08062F, 0x08081F], "Twoson - Everdred Meeting": [0x096052], "Twoson - Insignificant Location": [0x094ED1], "Happy-Happy Village - Donation Lady": [0x098A97, 0x0893B6], "Happy-Happy Village - Prisoner Item": [0x2F9664, 0x2EAF41, 0x2F9707], "Happy-Happy Village - Defeat Carpainter": [0x09826F], "Threed - Hospital Drawer": [0x086883], "Saturn Valley - Post Belch Gift #1": [0x07EAB2], "Saturn Valley - Post Belch Gift #2": [0x07EAD6], "Saturn Valley - Post Belch Gift #3": [0x07EAFA], "Dusty Dunes - Shining Spot": [0x060DAD], "Dusty Dunes - Mine Reward": [0x06058F], "Snow Wood - Maxwell Item": [0x06AC73], "Scaraba - Snake Bag Salesman": [0x0570AC], "Winters - Drugstore Saleswoman": [0x06AEC7], "Andonuts Lab - Mouse": [0x06C898], "Stonehenge - Kidnapped Mr. Saturn": [0x06C076], "Stonehenge - Tony Item": [0x2FFA78], "Monkey Caves - Bow Monkey Gift": [0x062636], "Monkey Caves - Talah Rama Gift": [0x060FEB], "Fourside - Venus Gift": [0x2EB1CE], "Fourside - Post-Moonside Delivery": [0x07AAC4, 0x07B598, 0x331101], "Fourside - Bakery 2F Gift": [0x06DE56], "Monotoli Building - Electra Gift": [0x2EB29B], "Monotoli Building - Monotoli Gift": [0x06EB3C], "Summers - Museum Item": [0x08ABF2], "Pyramid - Pedestal Item": [0x0931DF], "Scaraba - Key Holder": [0x0576C1], "Deep Darkness - Teleporting Monkey": [0x09E50F, 0x09E55F], "Deep Darkness - North Alcove Truffle": [0x3315E5], "Deep Darkness - Near Land Truffle": [0x331641], "Deep Darkness - Present Truffle": [0x331613], "Deep Darkness - Village Truffle": [0x33166F], "Deep Darkness - Entrance Truffle": [0x3315B7], "Tenda Village - Tenda Gift": [0x09DAF0], "Tenda Village - Tenda Gift #2": [0x09D814], "Magicant - Ness's Gift": [0x077629], "Cave of the Present - Broken Phase Distorter": [0x2F590C], "Dungeon Man - 1F Exit Ledge Present": [0x057A6B], "Snow Wood - Upper Right Locker": [0x2EFB2A], "Snow Wood - Upper Left Locker": [0x2EFB69], "Snow Wood - Bottom Right Locker": [0x2EFBA8], "Snow Wood - Bottom Left Locker": [0x2EFBE7] } present_locations = { # Field presents "Onett - Tracy's Room Present": 0x0FE756, "Onett - Hilltop Present": 0x0FE701, "Onett - Burger Shop Trashcan": 0x0FE712, "Onett - South Road Present": 0x0FE723, "Onett - Hotel Trashcan": 0x0FE734, "Onett - Arcade Trashcan": 0x0FE745, "Giant Step - First Cave Present": 0x0FE778, "Giant Step - Floor 2 Cave Present": 0x0FE789, "Giant Step - Floor 3 Present": 0x0FE767, "Twoson - Paula's Room Present": 0x0FE7AB, "Twoson - Apple Kid Trashcan": 0x0FE7BC, "Twoson - South of Town Present": 0x0FE79A, "Peaceful Rest Valley - Split Hill Present": 0x0FE822, "Peaceful Rest Valley - Hill Nook Present": 0x0FE7EF, "Peaceful Rest Valley - South of Bridge Present": 0x0FE811, "Peaceful Rest Valley - Dead End Present": 0x0FE833, "Peaceful Rest Valley - River Overlook Present": 0x0FE844, "Peaceful Rest Valley - North Side Present": 0x0FE800, "Happy-Happy Village - Right HQ Present": 0x0FE7DE, "Happy-Happy Village - Left HQ Present": 0x0FE7CD, "Lilliput Steps - Southwest Pool Present": 0x0FE866, "Lilliput Steps - East Cliff Present": 0x0FE877, "Lilliput Steps - North Stream Present": 0x0FE855, "Threed - Boogey Tent Trashcan": 0x0FB038, "Threed - Cemetery Trashcan": 0x0FE888, "Threed - Downtown Trashcan": 0x0FE8AA, "Threed - East Side Trashcan": 0x0FE8BB, "Threed - Northeast Shack Trashcan": 0x0FE899, "Threed Underground - Left Coffin": 0x0FE8CC, "Threed Underground - Right Coffin": 0x0FE8DD, "Grapefruit Falls - South Present": 0x0FEB0E, "Grapefruit Falls - North Present": 0x0FEAFD, "Grapefruit Falls - Saturn Cave Present": 0x0FEB1F, "Saturn Valley - Ladder Present": 0x0FEB30, "Saturn Valley - Trashcan #1": 0x0FEB41, "Saturn Valley - Trashcan #2": 0x0FEB52, "Saturn Valley - Trashcan #3": 0x0FEB63, "Milky Well - Cavern Present": 0x0FEAEC, "Belch's Factory - Top Right Room Trashcan": 0x0FEA97, "Belch's Factory - Pit Room Trashcan #1": 0x0FEADB, "Belch's Factory - Pit Room Trashcan #2": 0x0FEA86, "Belch's Factory - Balcony Room Trashcan #1": 0x0FEACA, "Belch's Factory - Balcony Room Trashcan #2": 0x0FEAB9, "Belch's Factory - Balcony Room Trashcan #3": 0x0FEAA8, "Dusty Dunes - Northwest Corner Present": 0x0FEC84, "Dusty Dunes - South Side Present": 0x0FECD9, "Dusty Dunes - Surrounding Rocks Present": 0x0FEC73, "Dusty Dunes - Black Sesame Present": 0x0FECA6, "Dusty Dunes - Oasis Present": 0x0FECB7, "Dusty Dunes - Northeast Corner Present": 0x0FECC8, "Dusty Dunes - North Central Present": 0x0FEC95, "Dusty Dunes - East Peninsula Present": 0x0FECEA, "Snow Wood - Many Present Room Present #1": 0x0FE932, "Snow Wood - Many Present Room Present #2": 0x0FE8FF, "Snow Wood - Many Present Room Present #3": 0x0FE921, "Snow Wood - Many Present Room Present #4": 0x0FE954, "Snow Wood - Many Present Room Present #5": 0x0FE943, "Snow Wood - Many Present Room Present #6": 0x0FE910, "Snow Wood - Many Present Room Present #7": 0x0FE8EE, "Brick Road Maze - Top Path Present": 0x0FE9BA, "Brick Road Maze - Guarded Present": 0x0FE998, "Brick Road Maze - Out of the Way Present": 0x0FE976, "Brick Road Maze - Alcove Present": 0x0FE9A9, "Brick Road Maze - Near Exit Present": 0x0FE987, "Rainy Circle - Isolated Present": 0x0FE9ED, "Rainy Circle - East Cliff Present": 0x0FE9CB, "Rainy Circle - Near Ropes Present": 0x0FE9DC, "Andonuts Lab - Present": 0x0FE965, "Stonehenge - Purple Maze Present": 0x0FEA75, "Stonehenge - Dead End Present": 0x0FEA0F, "Stonehenge - Near End of the Maze Present": 0x0FEA53, "Stonehenge - Bridge Room East Balcony Present": 0x0FEA20, "Stonehenge - Bridge Room Lower Present": 0x0FEA31, "Stonehenge - Flashing Room Right Path Present": 0x0FE9FE, "Stonehenge - Flashing Room Center Present": 0x0FEA42, "Stonehenge - Flashing Room Upper Present": 0x0FEA64, "Gold Mine - Mouse Crossroad Present #1": 0x0FEDC7, "Gold Mine - Mouse Crossroad Present #2": 0x0FEDA5, "Gold Mine - B1F Lonely Mole Present": 0x0FED1D, "Gold Mine - South Hall Present": 0x0FEDD8, "Gold Mine - South Corner Present": 0x0FED94, "Gold Mine - South Mole Present #1": 0x0FED3F, "Gold Mine - South Mole Present #2": 0x0FED0C, "Gold Mine - North Crossroad Detour Present": 0x0FED61, "Gold Mine - North Mole Present": 0x0FED2E, "Gold Mine - West Mole Present": 0x0FECFB, "Gold Mine - B1F Isolated Present": 0x0FED83, "Gold Mine - West Crossroad Detour Present": 0x0FED72, "Gold Mine - B1F Junction Present": 0x0FEDB6, "Gold Mine - B1F Junction Mole Present": 0x0FED50, "Monkey Caves - 1F Right Chest": 0x0FEBEB, "Monkey Caves - 1F Left Chest": 0x0FEBDA, "Monkey Caves - West 2F Left Chest": 0x0FEBFC, "Monkey Caves - West 2F Right Chest #1": 0x0FEC1E, "Monkey Caves - West 2F Right Chest #2": 0x0FEC0D, "Monkey Caves - East 2F Left Chest": 0x0FEC2F, "Monkey Caves - East 2F Right Chest": 0x0FEC40, "Monkey Caves - East West 3F Right Chest #1": 0x0FEC62, "Monkey Caves - East West 3F Right Chest #2": 0x0FEC51, "Monkey Caves - West End Chest": 0x0FEB74, "Monkey Caves - West End Trashcan": 0x0FEB85, "Monkey Caves - East End Chest": 0x0FEB96, "Monkey Caves - East End Trashcan": 0x0FEBA7, "Monkey Caves - Talah Rama Chest #1": 0x0FEBB8, "Monkey Caves - Talah Rama Chest #2": 0x0FEBC9, "Moonside - Two Trees Present": 0x0FEE1C, "Moonside - East Island Present": 0x0FEE2D, "Moonside - Businessman Present": 0x0FEE60, "Moonside - West Island Present": 0x0FEE4F, "Moonside - Hospital Present": 0x0FEE3E, "Magnet Hill - West Entrance Trashcan": 0x0FEEA4, "Magnet Hill - First Room Free Door Trashcan": 0x0FEEB5, "Magnet Hill - First Room Barrel Door Trashcan": 0x0FEE93, "Magnet Hill - Second Room Dead End Trashcan": 0x0FEE71, "Magnet Hill - Final Room Door Trashcan": 0x0FEE82, "Fourside - Magnet Hill Chest": 0x0FEDE9, "Monotoli Building - One Table Present": 0x0FEDFA, "Monotoli Building - Two Table Present": 0x0FEE0B, "Dalaam - Throne Room Chest #1": 0x0FEFF8, "Dalaam - Throne Room Chest #2": 0x0FF009, "Dalaam - Throne Room Chest #3": 0x0FF01A, "Dalaam - Restaurant Chest #1": 0x0FF03C, "Dalaam - Restaurant Chest #2": 0x0FF05E, "Dalaam - Do Do Guy's House Chest": 0x0FF04D, "Dalaam - Upper House Chest": 0x0FF02B, "Pink Cloud - Three Holes Present": 0x0FF080, "Pink Cloud - Left Hole Present": 0x0FF06F, "Pink Cloud - Ground Floor Present": 0x0FF091, "Pyramid - Anteroom Sarcophagus": 0x0FEEE8, "Pyramid - Northwest Door Sarcophagus": 0x0FEEC6, "Pyramid - Hallway Sarcophagus #1": 0x0FEED7, "Pyramid - Hallway Sarcophagus #2": 0x0FEF0A, "Pyramid - Switch Room Sarcophagus": 0x0FEF1B, "Pyramid - Way Out Sarcophagus": 0x0FEEF9, "Dungeon Man - 1F Dead End Present": 0x0FEF70, "Dungeon Man - 1F Long Walk Present": 0x0FEF2C, "Dungeon Man - 1F Disappointing Present": 0x0FEFE7, "Dungeon Man - 1F Opinion Present": 0x0FEF92, "Dungeon Man - 1F No Sign Present": 0x0FEFA3, "Dungeon Man - 2F Unnecessary Billboard Present": 0x0FEFB4, "Dungeon Man - 2F Dungeon Exploration Present": 0x0FEF4E, "Dungeon Man - 2F South Ledge Present": 0x0FEF81, "Dungeon Man - 2F North Alcove Present": 0x0FEF5F, "Dungeon Man - 3F Present": 0x0FEFD6, "Dungeon Man - 2F Hole Present": 0x0FEFC5, "Dungeon Man - 1F Exit Ledge Present": 0x0FEF3D, "Deep Darkness - Crest of Darkness Present": 0x0FF0E6, "Deep Darkness - Helicopter Present": 0x0FF0D5, "Deep Darkness - Yellow Bird Present": 0x0FF0C4, "Deep Darkness - Swamp Present": 0x0FF0F7, "Deep Darkness - Corner Present": 0x0FF0A2, "Deep Darkness - Alcove Present": 0x0FF0B3, "Tenda Village - Trashcan": 0x0FF1A1, "Lumine Hall - B1F Non-Talkative Rock Present": 0x0FF190, "Lumine Hall - 1F North Path Present": 0x0FF14C, "Lumine Hall - B1F Thankful Rock Corner Present": 0x0FF12A, "Lumine Hall - B1F Thankful Rock Junction Present": 0x0FF17F, "Lumine Hall - 1F Above Belly Button Present": 0x0FF119, "Lumine Hall - B1F Belly Button Present": 0x0FF15D, "Lumine Hall - 1F Near Exit Present": 0x0FF108, "Lumine Hall - 1F Dead End Present": 0x0FF13B, "Lumine Hall - B1F West Alcove Present": 0x0FF16E, "Lost Underworld - East Present": 0x0FF1C3, "Lost Underworld - Northeast Present": 0x0FF1D4, "Lost Underworld - Northeast of Tenda Tribe Present": 0x0FF1E5, "Lost Underworld - Southwest of Tenda Tribe Present": 0x0FF1F6, "Lost Underworld - Evacuation Present": 0x0FF1B2, "Fire Spring - 1st Cave Present": 0x0FF24B, "Fire Spring - East Corner Present": 0x0FF229, "Fire Spring - Volcano Present": 0x0FF23A, "Fire Spring - Lone Cave Present": 0x0FF218, "Fire Spring - Upper Volcano Present": 0x0FF207, "Magicant - Present Near Ness": 0x0FF25C, "Magicant - Lonely Present": 0x0FF27E, "Magicant - North Present": 0x0FF28F, "Magicant - Hills Present": 0x0FF2A0, "Magicant - Town Present": 0x0FF26D, "Cave of the Past - Present": 0x0FF2B1 } psi_locations = { "Onett - Mani Mani Statue": [0x2EA976, 0x90, 0xA9, 0xEE, 0x2EA9B9], "Onett - Buzz Buzz": [0x2EAA04, 0x12, 0xAA, 0xEE, 0x2EAA49], "Saturn Valley - Saturn Coffee": [0x2EAFE3, 0xF1, 0xAF, 0xEE, 0x2EB030], "Monkey Caves - Monkey Power": [0x2EB12E, 0x68, 0xB1, 0xEE, 0x2EB1B1], "Fourside - Department Store Blackout": [0x2EB22F, 0x66, 0xB2, 0xEE, 0x2EBFEF], "Summers - Magic Cake": [0x2EB311, 0x1F, 0xB3, 0xEE, 0x2EB3A1], "Dalaam - Trial of Mu": [0x2EB3FA, 0x08, 0xB4, 0xEE, 0x2EB443], "Scaraba - Star Master": [0x2EB521, 0x32, 0xB5, 0xEE, 0x2EBFAD], "Tenda Village - Tenda Tea": [0x2EB6A9, 0xB7, 0xB6, 0xEE, 0x2EB6E7], "Lost Underworld - Talking Rock": [0x2EB72D, 0x3B, 0xB7, 0xEE, 0x2EB770], "Magicant - Ness's Nightmare": [0x2EB7B4, 0xC7, 0xB7, 0xEE, 0x2EB812], "Cave of the Present - Star Master": [0x2EB8C8, 0xD6, 0xB8, 0xEE, 0x2EB8EE] } character_locations = { "Happy-Happy Village - Prisoner": [0x2EBAA9, 0x0FA68B, 0x2EBAA4, 0x2EBAC9, 0xB8, 0xBA, 0xEE], "Threed - Zombie Prisoner": [0x2EAF7F, 0x0FA977, 0x2EAF7A, 0x2EAFC5, 0xAF, 0xAF, 0xEE], "Snow Wood - Bedroom": [0x2EB0DA, 0x0FB0D6, 0x2EB0D5, 0x2EB11C, 0x0B, 0xB1, 0xEE], "Monotoli Building - Monotoli Character": [0x2EB2B2, 0x0FC37F, 0x2EB2AD, 0x2EB2D2, 0xC1, 0xB2, 0xEE], "Dalaam - Throne Character": [0x2EB4D1, 0x0FD20A, 0x2EB4CC, 0x2EB4F1, 0xE0, 0xB4, 0xEE], "Deep Darkness - Barf Character": [0x2EB654, 0x0FE0C8, 0x2EB64F, 0x2EB673, 0x62, 0xB6, 0xEE] } item_id_table = { "Franklin Badge": 0x01, "Teddy Bear": 0x02, "Super Plush Bear": 0x03, "Broken Machine": 0x04, "Broken Gadget": 0x05, "Broken Air Gun": 0x06, "Broken Spray Can": 0x07, "Broken Laser": 0x08, "Broken Iron": 0x09, "Broken Pipe": 0x0A, "Broken Cannon": 0x0B, "Broken Tube": 0x0C, "Broken Bazooka": 0x0D, "Broken Trumpet": 0x0E, "Broken Harmonica": 0x0F, "Broken Antenna": 0x10, "Cracked Bat": 0x11, "Tee Ball Bat": 0x12, "Sand Lot Bat": 0x13, "Minor League Bat": 0x14, "Mr. Baseball Bat": 0x15, "Big League Bat": 0xD5, "Hall of Fame Bat": 0x17, "Magicant Bat": 0x18, "Legendary Bat": 0x19, "Gutsy Bat": 0x1A, "Casey Bat": 0x1B, "Fry Pan": 0x1C, "Thick Fry Pan": 0x1D, "Deluxe Fry Pan": 0x1E, "Chef's Fry Pan": 0x1F, "French Fry Pan": 0x20, "Magic Fry Pan": 0x21, "Holy Fry Pan": 0x22, "Sword of Kings": 0x23, "Pop Gun": 0x24, "Stun Gun": 0x25, "Toy Air Gun": 0x26, "Magnum Air Gun": 0x27, "Zip Gun": 0x28, "Laser Gun": 0x29, "Hyper Beam": 0x2A, "Crusher Beam": 0x2B, "Spectrum Beam": 0x2C, "Death Ray": 0x2D, "Baddest Beam": 0x2E, "Moon Beam Gun": 0x2F, "Gaia Beam": 0x30, "Yo-yo": 0x31, "Slingshot": 0x32, "Bionic Slingshot": 0x33, "Trick Yo-yo": 0x34, "Combat Yo-yo": 0x35, "Travel Charm": 0x36, "Great Charm": 0x37, "Crystal Charm": 0x38, "Rabbit's Foot": 0x39, "Flame Pendant": 0x3A, "Rain Pendant": 0x3B, "Night Pendant": 0x3C, "Sea Pendant": 0x3D, "Star Pendant": 0x3E, "Cloak of Kings": 0x3F, "Cheap Bracelet": 0x40, "Copper Bracelet": 0x41, "Silver Bracelet": 0x42, "Gold Bracelet": 0x43, "Platinum Band": 0xD8, "Diamond Band": 0xD9, "Pixie's Bracelet": 0x46, "Cherub's Band": 0x47, "Goddess Band": 0x48, "Bracer of Kings": 0x49, "Baseball Cap": 0x4A, "Holmes Hat": 0x4B, "Mr. Baseball Cap": 0x4C, "Hard Hat": 0x4D, "Ribbon": 0x4E, "Red Ribbon": 0x4F, "Goddess Ribbon": 0x50, "Coin of Slumber": 0x51, "Coin of Defense": 0x52, "Lucky Coin": 0x53, "Talisman Coin": 0x54, "Shiny Coin": 0x55, "Souvenir Coin": 0x56, "Diadem of Kings": 0x57, "Cookie": 0x58, "Bag of Fries": 0x59, "Hamburger": 0x5A, "Boiled Egg": 0x5B, "Fresh Egg": 0x5C, "Picnic Lunch": 0x5D, "Pasta di Summers": 0x5E, "Pizza": 0x5F, "Chef's Special": 0x60, "Large Pizza": 0x61, "PSI Caramel": 0x62, "Magic Truffle": 0x63, "Brain Food Lunch": 0x64, "Rock Candy": 0x65, "Croissant": 0x66, "Bread Roll": 0x67, "Pak of Bubble Gum": 0x68, "Jar of Fly Honey": 0x69, "Can of Fruit Juice": 0x6A, "Royal Iced Tea": 0x6B, "Protein Drink": 0x6C, "Kraken Soup": 0x6D, "Bottle of Water": 0x6E, "Cold Remedy": 0x6F, "Vial of Serum": 0x70, "IQ Capsule": 0x71, "Guts Capsule": 0x72, "Speed Capsule": 0x73, "Vital Capsule": 0x74, "Luck Capsule": 0x75, "Ketchup Packet": 0x76, "Sugar Packet": 0x77, "Tin of Cocoa": 0x78, "Carton of Cream": 0x79, "Sprig of Parsley": 0x7A, "Jar of Hot Sauce": 0x7B, "Salt Packet": 0x7C, "Tiny Key": 0x7D, "Jar of Delisauce": 0x7E, "Wet Towel": 0x7F, "Refreshing Herb": 0x80, "Secret Herb": 0x81, "Horn of Life": 0x82, "Counter-PSI Unit": 0x83, "Shield Killer": 0x84, "Bazooka": 0x85, "Heavy Bazooka": 0x86, "HP-Sucker": 0x87, "Hungry HP-Sucker": 0x88, "Xterminator Spray": 0x89, "Slime Generator": 0x8A, "Yogurt Dispenser": 0x8B, "Ruler": 0x8C, "Snake Bag": 0x8D, "Mummy Wrap": 0x8E, "Protractor": 0x8F, "Bottle Rocket": 0x90, "Big Bottle Rocket": 0x91, "Multi Bottle Rocket": 0x92, "Bomb": 0x93, "Super Bomb": 0x94, "Insecticide Spray": 0x95, "Rust Promoter": 0x96, "Rust Promoter DX": 0x97, "Pair of Dirty Socks": 0x98, "Stag Beetle": 0x99, "Toothbrush": 0x9A, "Handbag Strap": 0x9B, "Pharaoh's Curse": 0x9C, "Defense Shower": 0x9D, "UFO Engine": 0x9E, "Sudden Guts Pill": 0x9F, "Bag of Dragonite": 0xA0, "Defense Spray": 0xA1, "Piggy Nose": 0xA2, "For Sale Sign": 0xA3, "Shyness Book": 0xA4, "Picture Postcard": 0xA5, "King Banana": 0xA6, "Letter For Tony": 0xA7, "Chick": 0xA8, "Chicken": 0xA9, "Key to the Shack": 0xAA, "Key to the Cabin": 0xAB, "Bad Key Machine": 0xAC, "Zombie Paper": 0xAE, "Hawk Eye": 0xAF, "Bicycle": 0xB0, "ATM Card": 0xB1, "Show Ticket": 0xB2, "Tenda Lavapants": 0xB3, "Wad of Bills": 0xB4, "Receiver Phone": 0xB5, "Diamond": 0xB6, "Signed Banana": 0xB7, "Pencil Eraser": 0xB8, "Hieroglyph Copy": 0xB9, "Meteotite": 0xBA, "Contact Lens": 0xBB, "Hand-Aid": 0xBC, "Trout Yogurt": 0xBD, "Banana": 0xBE, "Calorie Stick": 0xBF, "Key to the Tower": 0xC0, "Meteorite Piece": 0xC1, "Earth Pendant": 0xC2, "Neutralizer": 0xC3, "Sound Stone": 0xC4, "Exit Mouse": 0xC5, "Gelato de Resort": 0xC6, "Snake": 0xC7, "Viper": 0xC8, "Brain Stone": 0xC9, "Police Badge": 0xCA, "Mining Permit": 0xCB, "Suporma": 0xCC, "Key to the Locker": 0xCD, "Insignificant Item": 0xCE, "Magic Tart": 0xCF, "Tiny Ruby": 0xD0, "Monkey's Love": 0xD1, "Eraser Eraser": 0xD2, "Tendakraut": 0xD3, "T-Rex's Bat": 0xD4, "Ultimate Bat": 0xD6, "Double Beam": 0xD7, "Defense Ribbon": 0xDA, "Talisman Ribbon": 0xDB, "Saturn Ribbon": 0xDC, "Coin of Silence": 0xDD, "Charm Coin": 0xDE, "Cup of Noodles": 0xDF, "Repel Sandwich": 0xE0, "Repel Superwich": 0xE1, "Lucky Sandwich": 0xE2, "Progressive Bat": 0xE3, "Progressive Fry Pan": 0xE4, "Progressive Gun": 0xE5, "Progressive Bracelet": 0xE6, "Progressive Other": 0xE7, "Cup of Coffee": 0xE8, "Double Burger": 0xE9, "Peanut Cheese Bar": 0xEA, "Piggy Jelly": 0xEB, "Bowl of Rice Gruel": 0xEC, "Bean Croquette": 0xED, "Molokheiya Soup": 0xEE, "Plain Roll": 0xEF, "Kabob": 0xF0, "Plain Yogurt": 0xF1, "Beef Jerky": 0xF2, "Mammoth Burger": 0xF3, "Spicy Jerky": 0xF4, "Luxury Jerky": 0xF5, "Bottle of DXwater": 0xF6, "Magic Pudding": 0xF7, "Non-Stick Frypan": 0xF8, "Mr. Saturn Coin": 0xF9, "Meteornium": 0xFA, "Popsicle": 0xFB, "Cup of Lifenoodles": 0xFC, "Carrot Key": 0xFD } psi_item_table = { "Onett Teleport": 0x01, "Twoson Teleport": 0x02, "Happy-Happy Village Teleport": 0x03, "Threed Teleport": 0x04, "Saturn Valley Teleport": 0x05, "Dusty Dunes Teleport": 0x06, "Fourside Teleport": 0x07, "Winters Teleport": 0x08, "Summers Teleport": 0x09, "Scaraba Teleport": 0x0A, "Dalaam Teleport": 0x0B, "Deep Darkness Teleport": 0x0C, "Tenda Village Teleport": 0x0D, "Lost Underworld Teleport": 0x0E, "Magicant Teleport": 0x0F, "Progressive Poo PSI": 0x10 } character_item_table = { "Paula": [0x01, 0x02, 0x0189, 0x06], "Jeff": [0x02, 0x03, 0x018A, 0x06], "Poo": [0x03, 0x04, 0x018B, 0x06], "Flying Man": [0x04, 0x27, 0x0027, 0x04], "Ness": [0x05, 0x00, 0x0010, 0x01, 0x06], # the last 2 might not be needed anymore "Photograph": [0x06, 0x0153, 0x01C1] } party_id_nums = { "Paula": 0x02, "Jeff": 0x03, "Poo": 0x04, "Flying Man": 0x0B, "Ness": 0x01 } special_name_table = { "Onett Teleport": [0x00, 0xEE9210], "Twoson Teleport": [0x01, 0xEE9240], "Happy-Happy Village Teleport": [0x02, 0xEE9271], "Threed Teleport": [0x03, 0xEE92AF], "Saturn Valley Teleport": [0x04, 0xEE92E0], "Dusty Dunes Teleport": [0x05, 0xEE9318], "Fourside Teleport": [0x06, 0xEE9355], "Winters Teleport": [0x07, 0xEE9388], "Summers Teleport": [0x08, 0xEE93BA], "Scaraba Teleport": [0x09, 0xEE93EC], "Dalaam Teleport": [0x0A, 0xEE941E], "Deep Darkness Teleport": [0x0B, 0xEE944F], "Tenda Village Teleport": [0x0C, 0xEE948B], "Lost Underworld Teleport": [0x0D, 0xEE94C3], "Progressive Poo PSI": [0x0E, 0xEE9554], "Paula": [0x0F, 0xD5F830], "Jeff": [0x10, 0xD5F837], "Poo": [0x11, 0xD5F83E], "Flying Man": [0x12, 0xD5F845], "Magicant Teleport": [0x13, 0xEE9501], "Ness": [0x14, 0xD5F849], "Photograph": [0x15, 0xF3FFE0] } client_specials = { 0x00FE: 0x01, 0x00FF: 0x02, 0x0100: 0x0D, 0x0101: 0x03, 0x0102: 0x05, 0x0103: 0x0E, 0x0104: 0x06, 0x0105: 0x04, 0x0106: 0x07, 0x0107: 0x09, 0x0108: 0x08, 0x0109: 0x0A, 0x010A: 0x0B, 0x010B: 0x0C, 0x010C: 0x14, 0x010D: 0x0F, 0x010E: 0x10, 0x010F: 0x11, 0x0110: 0x12, 0x0111: 0x13, 0x0112: 0x15, 0x0113: 0x16 } starting_psi_table = { "Onett Teleport": 0x01, "Twoson Teleport": 0x02, "Threed Teleport": 0x03, "Winters Teleport": 0x04, "Saturn Valley Teleport": 0x05, "Fourside Teleport": 0x06, "Summers Teleport": 0x07, "Dalaam Teleport": 0x08, "Scaraba Teleport": 0x09, "Deep Darkness Teleport": 0x0A, "Tenda Village Teleport": 0x0B, "Lost Underworld Teleport": 0x0C, "Happy-Happy Village Teleport": 0x0D, "Dusty Dunes Teleport": 0x0E, "Magicant Teleport": 0x0F, "Progressive Poo PSI": 0x10 } # Todo; convert the list shit to a Struct.pack! item_space_checks = { "Onett - Tracy Gift": [0x076174, 0x78, 0x61, 0xC7], "Onett - Meteor Item": [0x0862FD, 0x01, 0x63, 0xC8], "Onett - Library Counter": [0x05ECA7, 0xAB, 0xEC, 0xC5], "Onett - Library Bookshelf": [0x087E74, 0x78, 0x7E, 0xC3], "Onett - Treehouse Guy": [0x073F71, 0x75, 0x3F, 0xC7], "Onett - Mayor Pirkle": [0x072D5A, 0x5E, 0x2D, 0xC7], "Onett - Traveling Entertainer": [0x074775, 0x79, 0x74, 0xC7], "Twoson - Bike Shop Rental": [0x08019E, 0xA2, 0x01, 0xC8], "Twoson - Orange Kid Donation": [0x08135B, 0x5F, 0x13, 0xC8], "Twoson - Apple Kid's Mouse": [0x0819D8, 0xDC, 0x19, 0xC8], "Twoson - Apple Kid Invention": [0x08200E, 0x11, 0x20, 0xC8], "Twoson - Antique Shop": [0x093EE3, 0xE7, 0x3E, 0xC9], "Twoson - Paula's Mother": [0x080628, 0x2C, 0x0C, 0xC8], "Twoson - Everdred Meeting": [0x09604B, 0x4F, 0x60, 0xC9], "Happy-Happy Village - Donation Lady": [0x098A90, 0x94, 0x8A, 0xC9, 0x0893AF, 0xB3, 0x93, 0xC8], "Happy-Happy Village - Prisoner Item": [0x2F965D, 0x61, 0x96, 0xEF, 0x2EAF3A, 0x3E, 0xAF, 0xEE], "Happy-Happy Village - Defeat Carpainter": [0x098268, 0x6C, 0x82, 0xC9], "Threed - Hospital Drawer": [0x08687C, 0x80, 0x68, 0xC8], "Threed - Boogey Tent Trashcan": [0x2EF640, 0x44, 0xF6, 0xEE], "Saturn Valley - Post Belch Gift #1": [0x2EC049, 0x4D, 0xC0, 0xEE], "Saturn Valley - Post Belch Gift #2": [0x2EC063, 0x67, 0xC0, 0xEE], "Saturn Valley - Post Belch Gift #3": [0x2EC056, 0x5A, 0xC0, 0xEE], "Dusty Dunes - Shining Spot": [0x060DA1, 0xA5, 0x0D, 0xC6], "Dusty Dunes - Mine Reward": [0x060588, 0x8C, 0x05, 0xC6], "Snow Wood - Maxwell Item": [0x06AC6C, 0x70, 0xAC, 0xC6], "Scaraba - Snake Bag Salesman": [0x057024, 0x28, 0x70, 0xC5], "Winters - Drugstore Saleswoman": [0x2EF625, 0x29, 0xF6, 0xEE], "Andonuts Lab - Mouse": [0x06C891, 0x95, 0xC8, 0xC6], "Stonehenge - Kidnapped Mr. Saturn": [0x06C06F, 0x73, 0xC0, 0xC6], "Stonehenge - Tony Item": [0x2FFA71, 0x7F, 0xFA, 0xEF], "Monkey Caves - Bow Monkey Gift": [0x0625F1, 0xF5, 0x25, 0xC6], "Monkey Caves - Talah Rama Gift": [0x060FE1, 0xE5, 0x0F, 0xC6], "Fourside - Venus Gift": [0x2EB1C7, 0xCB, 0xB1, 0xEE], "Fourside - Post-Moonside Delivery": [0x07AABD, 0xC1, 0xAA, 0xC7, 0x07B57C, 0x80, 0xB5, 0xC7], "Monotoli Building - Electra Gift": [0x06E99C, 0xA0, 0xE9, 0xC6], "Monotoli Building - Monotoli Gift": [0x06EB35, 0x39, 0xEB, 0xC6], "Summers - Museum Item": [0x08ABEB, 0xEF, 0xAB, 0xC8], "Pyramid - Pedestal Item": [0x0931D8, 0xDC, 0x31, 0xC9], "Scaraba - Key Holder": [0x0576B9, 0xBD, 0x76, 0xC5], # Extra break? "Deep Darkness - Teleporting Monkey": [0x09E508, 0x0C, 0xE5, 0xC9], "Deep Darkness - North Alcove Truffle": [0x3315DE, 0xE2, 0x15, 0xF3], "Deep Darkness - Near Land Truffle": [0x33163A, 0x3E, 0x16, 0xF3], "Deep Darkness - Present Truffle": [0x33160C, 0x10, 0x16, 0xF3], "Deep Darkness - Village Truffle": [0x331668, 0x6C, 0x16, 0xF3], "Deep Darkness - Entrance Truffle": [0x3315B0, 0xB4, 0x15, 0xF3], "Tenda Village - Tenda Gift #2": [0x09D80D, 0x11, 0xD8, 0xC9], "Magicant - Ness's Gift": [0x077622, 0x26, 0x76, 0xC7], "Cave of the Present - Broken Phase Distorter": [0x2F5905, 0x09, 0x59, 0xEF], "Onett - Mani Mani Statue": [0x2EBEA6, 0xAA, 0xBE, 0xEE], "Onett - Buzz Buzz": [0x2EAA4C, 0x50, 0xAA, 0xEE], "Saturn Valley - Saturn Coffee": [0x2EB029, 0x2D, 0xB0, 0xEE], "Monkey Caves - Monkey Power": [0x2EB1AA, 0xAE, 0xB1, 0xEE], "Fourside - Department Store Blackout": [0x2EB26B, 0x6F, 0xB2, 0xEE], "Summers - Magic Cake": [0x2EB39A, 0x9E, 0xB3, 0xEE], "Dalaam - Trial of Mu": [0x2EB43C, 0x40, 0xB4, 0xEE], "Scaraba - Star Master": [0x2EB537, 0x3B, 0xB5, 0xEE], "Tenda Village - Tenda Tea": [0x2EB6E0, 0xE4, 0xB6, 0xEE], "Lost Underworld - Talking Rock": [0x2EB769, 0x6D, 0xB7, 0xEE], "Magicant - Ness's Nightmare": [0x2EB80B, 0x0F, 0xB8, 0xEE], "Cave of the Present - Star Master": [0x2EB8E7, 0xEB, 0xB8, 0xEE], "Happy-Happy Village - Prisoner": [0x2EBAC2, 0xC6, 0xBA, 0xEE], "Threed - Zombie Prisoner": [0x2EAF85, 0x89, 0xAF, 0xEE], "Dalaam - Throne Character": [0x2EB4EA, 0xEE, 0xB4, 0xEE], "Snow Wood - Upper Right Locker": [0x2EFB23, 0x27, 0xFB, 0xEE], "Snow Wood - Upper Left Locker": [0x2EFB62, 0x66, 0xFB, 0xEE], "Snow Wood - Bottom Right Locker": [0x2EFBA1, 0xA5, 0xFB, 0xEE], "Snow Wood - Bottom Left Locker": [0x2EFBE0, 0xE4, 0xFB, 0xEE], "Snow Wood - Bedroom": [0x2EB0E0, 0xE4, 0xB0, 0xEE], "Monotoli Building - Monotoli Character": [0x2EB2B8, 0xBC, 0xB2, 0xEE], "Deep Darkness - Barf Character": [0x2EB65A, 0x5E, 0xB6, 0xEE] } protection_checks = { "thunder": [0x0297D2], "fire": [0x2FFC35, 0x2FFC77], "freeze": [0x2FFC56], "flash": [0x2FFC9B], "starstorm": [0x2FFCCD], "special": [0x2FFC1E], "explosive": [0x2FFCED] } badge_names = { "thunder": "Franklin badge", "fire": "Bunsen badge", "freeze": "Thilorier badge", "flash": "Cowen badge", "starstorm": "Leavitt badge", "special": "Mesmer badge", "explosive": "Nobel badge" } protection_text = { "thunder": [0xEEC911, 0xEEC95F], "fire": [0xEEC91C, 0xEEC969], "freeze": [0xEEC922, 0xEEC96E], "flash": [0xEEC928, 0xEEC972], "starstorm": [0xEEC92F, 0xEEC978], "special": [0xEEC93A, 0xEEC982], "explosive": [0xEEC94A, 0xEEC989] } local_present_types = { "filler": [0xd6, 0x00], "progression": [0xE9, 0x00], "useful": [0xC3, 0x00], "trap": [0xE9, 0x00], "progression_skip_balancing": [0xE9, 0x00] } nonlocal_present_types = { "filler": [0x98, 0x01], "progression": [0x90, 0x01], "useful": [0x98, 0x01], "trap": [0x90, 0x01], "progression_skip_balancing": [0x90, 0x01] } present_text_pointers = { "filler": [0x5b, 0xd8, 0xc7], "progression": [0x67, 0xd8, 0xc7], "useful": [0x4F, 0xD8, 0xC7], "progression_skip_balancing": [0x67, 0xd8, 0xc7], "trap": [0x67, 0xd8, 0xc7] } ap_text_pntrs = [ 0xEECDCD, # ce 0xEECDD9, # cf 0xEECDE5, # d0 0xEECDF1, # e7 0xEECDFD, # e8 0xEECE09, # e9 0xEECE15, # ea 0xEECE21, # eb 0xEECE2D, # ec 0xEECE39, # ed 0xEECE45, # ee 0xEECE51, # ef 0xEECE5D, # f0 0xEECE69, # f1 0xEECE75, # f2 0xEECE81, # f3 # [0x8D, 0xCE, 0xEE] #trap text ] hint_bits = [ 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 ] money_item_table = { "$10": 10, "$100": 100, "$1000": 1000 } money_id_table = { 0x114: 10, 0x115: 100, 0x116: 1000 } # 0: Action pointer, call the actual item being given # 1: Sprite ID # 2: Secondary routine pointer, used for items and psi # 3: Inventory item give # 4: Standard item routine address # For characters