Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScriptInfo = {"KATAM Luascript by Mugg1991",
- "v0.4",
- "25th Dec 2018",}
- local AddressTableGeneral= {
- [1] = {1,"Camera X",0xFFFFE0A0,"EWRAM",0x23660,2,true},
- [2] = {1,"Camera Y",0xFFFFE0A0,"EWRAM",0x23662,2,true}
- }
- local AddressTableFlags= {
- [1] = {0,"Mirror Shards",0xFFB0B0B0},
- [2] = {7,"Kracko",0xFFFFE0A0,"EWRAM",0x38970,0,true},
- [3] = {7,"King Golem",0xFFFFE0A0,"EWRAM",0x38970,1,true},
- [4] = {7,"Master Hand",0xFFFFE0A0,"EWRAM",0x38970,2,true},
- [5] = {7,"Gobbler",0xFFFFE0A0,"EWRAM",0x38970,3,true},
- [6] = {7,"Wiz",0xFFFFE0A0,"EWRAM",0x38970,4,true},
- [7] = {7,"Moley",0xFFFFE0A0,"EWRAM",0x38970,5,true},
- [8] = {7,"Mega Titan",0xFFFFE0A0,"EWRAM",0x38970,6,true},
- [9] = {7,"D. Metaknight",0xFFFFE0A0,"EWRAM",0x38970,7,true},
- [10] = {0,"Misc Unlockables",0xFFB0B0B0},
- [11] = {7,"Ability Room",0xFFFFE0A0,"EWRAM",0x28C58,0,true},
- [12] = {7,"Spray: Pink",0xFFFFE0A0,"EWRAM",0x38974,0,true},
- [13] = {7,"Spray: Yellow",0xFFFFE0A0,"EWRAM",0x38974,1,true},
- [14] = {7,"Spray: Red",0xFFFFE0A0,"EWRAM",0x38974,2,true},
- [15] = {7,"Spray: Green",0xFFFFE0A0,"EWRAM",0x38974,3,true},
- [16] = {7,"Spray: Snow",0xFFFFE0A0,"EWRAM",0x38974,4,true},
- [17] = {7,"Spray: Carbon",0xFFFFE0A0,"EWRAM",0x38974,5,true},
- [18] = {7,"Spray: Ocean",0xFFFFE0A0,"EWRAM",0x38974,6,true},
- [19] = {7,"Spray: Sapphire",0xFFFFE0A0,"EWRAM",0x38974,7,true},
- [20] = {7,"Spray: Grape",0xFFFFE0A0,"EWRAM",0x38975,0,true},
- [21] = {7,"Spray: Emerald",0xFFFFE0A0,"EWRAM",0x38975,1,true},
- [22] = {7,"Spray: Orange",0xFFFFE0A0,"EWRAM",0x38975,2,true},
- [23] = {7,"Spray: Chocolate",0xFFFFE0A0,"EWRAM",0x38975,3,true},
- [24] = {7,"Spray: Cherry",0xFFFFE0A0,"EWRAM",0x38975,4,true},
- [25] = {7,"Spray: Chalk",0xFFFFE0A0,"EWRAM",0x38975,5,true},
- [26] = {7,"Sound Player",0xFFFFE0A0,"EWRAM",0x38978,0,true},
- [27] = {7,"Music: Beginning Notes",0xFFFFE0A0,"EWRAM",0x38978,1,true},
- [28] = {7,"Music: Happy Notes",0xFFFFE0A0,"EWRAM",0x38978,2,true},
- [29] = {7,"Music: Spunky Notes",0xFFFFE0A0,"EWRAM",0x38978,3,true},
- [30] = {7,"Music: Battle Notes",0xFFFFE0A0,"EWRAM",0x38978,4,true},
- [31] = {7,"Music: Dream Notes",0xFFFFE0A0,"EWRAM",0x38978,5,true},
- [32] = {7,"Music: Secret Notes",0xFFFFE0A0,"EWRAM",0x38978,6,true},
- [33] = {7,"Music: Kirby's Sounds",0xFFFFE0A0,"EWRAM",0x38978,7,true},
- [34] = {7,"Music: Enemy Sounds",0xFFFFE0A0,"EWRAM",0x38979,0,true},
- [35] = {7,"Music: Secret Sounds",0xFFFFE0A0,"EWRAM",0x38979,1,true},
- [36] = {7,"Music: Sound Effects",0xFFFFE0A0,"EWRAM",0x38979,2,true},
- [37] = {7,"World Map",0xFFFFE0A0,"EWRAM",0x3897C,0,true},
- [38] = {7,"Map: Rainbow Route",0xFFFFE0A0,"EWRAM",0x3897C,1,true},
- [39] = {7,"Map: Moonlight Mansion",0xFFFFE0A0,"EWRAM",0x3897C,2,true},
- [40] = {7,"Map: Cabbage Cavern",0xFFFFE0A0,"EWRAM",0x3897C,3,true},
- [41] = {7,"Map: Mustard Mountain",0xFFFFE0A0,"EWRAM",0x3897C,4,true},
- [42] = {7,"Map: Carrot Castle",0xFFFFE0A0,"EWRAM",0x3897C,5,true},
- [43] = {7,"Map: Olive Ocean",0xFFFFE0A0,"EWRAM",0x3897C,6,true},
- [44] = {7,"Map: Peppermint Palace",0xFFFFE0A0,"EWRAM",0x3897C,7,true},
- [45] = {7,"Map: Radish Ruins",0xFFFFE0A0,"EWRAM",0x3897D,0,true},
- [46] = {7,"Map: Candy Constellation",0xFFFFE0A0,"EWRAM",0x3897D,1,true},
- [47] = {1,"Extra Health",0xFFFFE0A0,"EWRAM",0x38980,1,true},
- [48] = {7,"Master Sword req. 1",0xFFFFE0A0,"EWRAM",0x3AD2D,0,true},
- [49] = {7,"Master Sword req. 2",0xFFFFE0A0,"EWRAM",0x3AD2D,1,true},
- [50] = {7,"Master Sword req. 3",0xFFFFE0A0,"EWRAM",0x3AD2D,2,true},
- [51] = {7,"Master Sword req. 4",0xFFFFE0A0,"EWRAM",0x3AD2D,5,true},
- [52] = {0,"Tutorial",0xFFB0B0B0},
- [53] = {7,"R805 B.Chest",0xFFFFE0A0,"EWRAM",0x38960,0,true}, -- World Map
- [54] = {7,"Room 803",0xFFFFE0A0,"EWRAM",0x28CA3,7,true},
- [55] = {7,"Room 804",0xFFFFE0A0,"EWRAM",0x28CA5,7,true},
- [56] = {7,"Room 805",0xFFFFE0A0,"EWRAM",0x28CA7,7,true},
- [57] = {0,"Area 1",0xFFB0B0B0},
- [58] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C18,0,true},
- [59] = {7,"R106 Chest",0xFFFFE0A0,"EWRAM",0x38960,3,true}, -- 1up
- [60] = {7,"R108 Chest",0xFFFFE0A0,"EWRAM",0x38960,4,true}, -- 1up
- [61] = {7,"R138 Chest",0xFFFFE0A0,"EWRAM",0x38960,7,true}, -- Spray: Green
- [62] = {7,"R173 Chest",0xFFFFE0A0,"EWRAM",0x38961,0,true}, -- candy
- [63] = {7,"R176 Chest",0xFFFFE0A0,"EWRAM",0x38961,1,true}, -- energy drink
- [64] = {7,"R177 Chest",0xFFFFE0A0,"EWRAM",0x38961,2,true}, -- 1up
- [65] = {7,"R190 B.Chest",0xFFFFE0A0,"EWRAM",0x38960,5,true}, -- Map: Rainbow Route
- [66] = {7,"R537 Chest",0xFFFFE0A0,"EWRAM",0x38960,1,true}, -- Music: Beginning Notes
- [67] = {7,"R557 Chest",0xFFFFE0A0,"EWRAM",0x38960,6,true}, -- maxim tomato
- [68] = {7,"R570 Chest",0xFFFFE0A0,"EWRAM",0x38960,2,true}, -- meat
- [69] = {7,"Room 101",0xFFFFE0A0,"EWRAM",0x28CCB,7,true},
- [70] = {7,"Room 103",0xFFFFE0A0,"EWRAM",0x28CCD,7,true},
- [71] = {7,"Room 104",0xFFFFE0A0,"EWRAM",0x28CCF,7,true},
- [72] = {7,"Room 106",0xFFFFE0A0,"EWRAM",0x28CD1,7,true},
- [73] = {7,"Room 107",0xFFFFE0A0,"EWRAM",0x28CD3,7,true},
- [74] = {7,"Room 108",0xFFFFE0A0,"EWRAM",0x28CD5,7,true},
- [75] = {7,"Room 110",0xFFFFE0A0,"EWRAM",0x28CD7,7,true},
- [76] = {7,"Room 115",0xFFFFE0A0,"EWRAM",0x28CFB,7,true},
- [77] = {7,"Room 117",0xFFFFE0A0,"EWRAM",0x28CFD,7,true},
- [78] = {7,"Room 118",0xFFFFE0A0,"EWRAM",0x28CFF,7,true},
- [79] = {7,"Room 119",0xFFFFE0A0,"EWRAM",0x28D01,7,true},
- [80] = {7,"Room 126",0xFFFFE0A0,"EWRAM",0x28CF9,7,true},
- [81] = {7,"Room 127",0xFFFFE0A0,"EWRAM",0x28CE3,7,true},
- [82] = {7,"Room 136",0xFFFFE0A0,"EWRAM",0x28CE5,7,true},
- [83] = {7,"Room 137",0xFFFFE0A0,"EWRAM",0x28CE7,7,true},
- [84] = {7,"Room 138",0xFFFFE0A0,"EWRAM",0x28D03,7,true},
- [85] = {7,"Room 139",0xFFFFE0A0,"EWRAM",0x28D05,7,true},
- [86] = {7,"Room 140",0xFFFFE0A0,"EWRAM",0x28CD9,7,true},
- [87] = {7,"Room 141",0xFFFFE0A0,"EWRAM",0x28CDB,7,true},
- [88] = {7,"Room 142",0xFFFFE0A0,"EWRAM",0x28CDD,7,true},
- [89] = {7,"Room 143",0xFFFFE0A0,"EWRAM",0x28CDF,7,true},
- [90] = {7,"Room 171",0xFFFFE0A0,"EWRAM",0x28D07,7,true},
- [91] = {7,"Room 172",0xFFFFE0A0,"EWRAM",0x28D09,7,true},
- [92] = {7,"Room 173",0xFFFFE0A0,"EWRAM",0x28D0B,7,true},
- [93] = {7,"Room 174",0xFFFFE0A0,"EWRAM",0x28D0D,7,true},
- [94] = {7,"Room 175",0xFFFFE0A0,"EWRAM",0x28D0F,7,true},
- [95] = {7,"Room 176",0xFFFFE0A0,"EWRAM",0x28D11,7,true},
- [96] = {7,"Room 177",0xFFFFE0A0,"EWRAM",0x28D13,7,true},
- [97] = {7,"Room 178",0xFFFFE0A0,"EWRAM",0x28D15,7,true},
- [98] = {7,"Room 190",0xFFFFE0A0,"EWRAM",0x28CE1,7,true},
- [99] = {7,"Room 192",0xFFFFE0A0,"EWRAM",0x28D17,7,true},
- [100] = {7,"Room 194",0xFFFFE0A0,"EWRAM",0x28CE9,7,true},
- [101] = {7,"Room 503",0xFFFFE0A0,"EWRAM",0x28CF3,7,true},
- [102] = {7,"Room 504",0xFFFFE0A0,"EWRAM",0x28CEB,7,true},
- [103] = {7,"Room 507",0xFFFFE0A0,"EWRAM",0x28CED,7,true},
- [104] = {7,"Room 532",0xFFFFE0A0,"EWRAM",0x28CB5,7,true},
- [105] = {7,"Room 534",0xFFFFE0A0,"EWRAM",0x28CB7,7,true},
- [106] = {7,"Room 535",0xFFFFE0A0,"EWRAM",0x28CB9,7,true},
- [107] = {7,"Room 536",0xFFFFE0A0,"EWRAM",0x28CBB,7,true},
- [108] = {7,"Room 537",0xFFFFE0A0,"EWRAM",0x28CBD,7,true},
- [109] = {7,"Room 538",0xFFFFE0A0,"EWRAM",0x28CBF,7,true},
- [110] = {7,"Room 542",0xFFFFE0A0,"EWRAM",0x28CC1,7,true},
- [111] = {7,"Room 543",0xFFFFE0A0,"EWRAM",0x28CC3,7,true},
- [112] = {7,"Room 554",0xFFFFE0A0,"EWRAM",0x28CEF,7,true},
- [113] = {7,"Room 555",0xFFFFE0A0,"EWRAM",0x28CF1,7,true},
- [114] = {7,"Room 556",0xFFFFE0A0,"EWRAM",0x28CF5,7,true},
- [115] = {7,"Room 557",0xFFFFE0A0,"EWRAM",0x28CF7,7,true},
- [116] = {7,"Room 570",0xFFFFE0A0,"EWRAM",0x28CC5,7,true},
- [117] = {7,"Room 571",0xFFFFE0A0,"EWRAM",0x28CC7,7,true},
- [118] = {7,"Room 590",0xFFFFE0A0,"EWRAM",0x28CC9,7,true},
- [119] = {7,"Room 801",0xFFFFE0A0,"EWRAM",0x28CA1,7,true},
- [120] = {0,"Area 2",0xFFB0B0B0},
- [121] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C14,0,true},
- [122] = {7,"Lever",0xFFFFE0A0,"EWRAM",0x38962,2,true},
- [123] = {7,"R145 Chest",0xFFFFE0A0,"EWRAM",0x38961,3,true}, -- Music: Enemy Sounds
- [124] = {7,"R148 Chest",0xFFFFE0A0,"EWRAM",0x38961,5,true}, -- Spray: Chalk
- [125] = {7,"R148 Chest",0xFFFFE0A0,"EWRAM",0x38961,4,true}, -- maxim tomato
- [126] = {7,"R149 Chest",0xFFFFE0A0,"EWRAM",0x38961,6,true}, -- 1up
- [127] = {7,"R195 B.Chest",0xFFFFE0A0,"EWRAM",0x38961,7,true}, -- Map: Moonlight Mansion
- [128] = {7,"R709 Chest",0xFFFFE0A0,"EWRAM",0x38962,0,true}, -- Spray: Orange
- [129] = {7,"R742 Chest",0xFFFFE0A0,"EWRAM",0x38962,1,true}, -- meat
- [130] = {7,"Room 144",0xFFFFE0A0,"EWRAM",0x28D19,7,true},
- [131] = {7,"Room 145",0xFFFFE0A0,"EWRAM",0x28D1B,7,true},
- [132] = {7,"Room 146",0xFFFFE0A0,"EWRAM",0x28D1D,7,true},
- [133] = {7,"Room 147",0xFFFFE0A0,"EWRAM",0x28D1F,7,true},
- [134] = {7,"Room 148",0xFFFFE0A0,"EWRAM",0x28D21,7,true},
- [135] = {7,"Room 149",0xFFFFE0A0,"EWRAM",0x28D23,7,true},
- [136] = {7,"Room 180",0xFFFFE0A0,"EWRAM",0x28CB1,7,true},
- [137] = {7,"Room 195",0xFFFFE0A0,"EWRAM",0x28D25,7,true},
- [138] = {7,"Room 700",0xFFFFE0A0,"EWRAM",0x28D27,7,true},
- [139] = {7,"Room 700B",0xFFFFE0A0,"EWRAM",0x28D35,7,true},
- [140] = {7,"Room 702",0xFFFFE0A0,"EWRAM",0x28D43,7,true},
- [141] = {7,"Room 704",0xFFFFE0A0,"EWRAM",0x28D29,7,true},
- [142] = {7,"Room 705",0xFFFFE0A0,"EWRAM",0x28D2B,7,true},
- [143] = {7,"Room 706",0xFFFFE0A0,"EWRAM",0x28D2D,7,true},
- [144] = {7,"Room 707",0xFFFFE0A0,"EWRAM",0x28D2F,7,true},
- [145] = {7,"Room 708",0xFFFFE0A0,"EWRAM",0x28D31,7,true},
- [146] = {7,"Room 709",0xFFFFE0A0,"EWRAM",0x28D33,7,true},
- [147] = {7,"Room 711",0xFFFFE0A0,"EWRAM",0x28D37,7,true},
- [148] = {7,"Room 712",0xFFFFE0A0,"EWRAM",0x28D39,7,true},
- [149] = {7,"Room 740",0xFFFFE0A0,"EWRAM",0x28D3B,7,true},
- [150] = {7,"Room 741",0xFFFFE0A0,"EWRAM",0x28D3D,7,true},
- [151] = {7,"Room 742",0xFFFFE0A0,"EWRAM",0x28D3F,7,true},
- [152] = {7,"Room 743",0xFFFFE0A0,"EWRAM",0x28D45,7,true},
- [153] = {7,"Room 744",0xFFFFE0A0,"EWRAM",0x28D47,7,true},
- [154] = {7,"Room 745",0xFFFFE0A0,"EWRAM",0x28D49,7,true},
- [155] = {7,"Room 790",0xFFFFE0A0,"EWRAM",0x28D41,7,true},
- [156] = {0,"Area 3",0xFFB0B0B0},
- [157] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C28,0,true},
- [158] = {7,"Switch 2",0xFFFFE0A0,"EWRAM",0x28C24,0,true},
- [159] = {7,"R510 Chest",0xFFFFE0A0,"EWRAM",0x38966,5,true}, -- 1up
- [160] = {7,"R515 Chest",0xFFFFE0A0,"EWRAM",0x38967,0,true}, -- 1up
- [161] = {7,"R511 Chest",0xFFFFE0A0,"EWRAM",0x38966,7,true}, -- Music: Secret Sounds
- [162] = {7,"R517 Chest",0xFFFFE0A0,"EWRAM",0x38967,1,true}, -- Spray: Chocolate
- [163] = {7,"R527 Chest",0xFFFFE0A0,"EWRAM",0x38967,2,true}, -- Spray: Sapphire
- [164] = {7,"R528 Chest",0xFFFFE0A0,"EWRAM",0x38966,6,true}, -- Music: Spunky Notes
- [165] = {7,"R531 Chest",0xFFFFE0A0,"EWRAM",0x38967,4,true}, -- meat
- [166] = {7,"R531 B.Chest",0xFFFFE0A0,"EWRAM",0x38967,3,true}, -- Map: Cabbage Cavern
- [167] = {7,"Room 191",0xFFFFE0A0,"EWRAM",0x28E1B,7,true},
- [168] = {7,"Room 500",0xFFFFE0A0,"EWRAM",0x28DF5,7,true},
- [169] = {7,"Room 500B",0xFFFFE0A0,"EWRAM",0x28DFD,7,true},
- [170] = {7,"Room 501",0xFFFFE0A0,"EWRAM",0x28E01,7,true},
- [171] = {7,"Room 508",0xFFFFE0A0,"EWRAM",0x28DF7,7,true},
- [172] = {7,"Room 509",0xFFFFE0A0,"EWRAM",0x28DF9,7,true},
- [173] = {7,"Room 510",0xFFFFE0A0,"EWRAM",0x28DFB,7,true},
- [174] = {7,"Room 511",0xFFFFE0A0,"EWRAM",0x28E03,7,true},
- [175] = {7,"Room 512",0xFFFFE0A0,"EWRAM",0x28E05,7,true},
- [176] = {7,"Room 513",0xFFFFE0A0,"EWRAM",0x28E07,7,true},
- [177] = {7,"Room 514",0xFFFFE0A0,"EWRAM",0x28E09,7,true},
- [178] = {7,"Room 515",0xFFFFE0A0,"EWRAM",0x28E0B,7,true},
- [179] = {7,"Room 517",0xFFFFE0A0,"EWRAM",0x28E0D,7,true},
- [180] = {7,"Room 523",0xFFFFE0A0,"EWRAM",0x28E0F,7,true},
- [181] = {7,"Room 527",0xFFFFE0A0,"EWRAM",0x28E11,7,true},
- [182] = {7,"Room 528",0xFFFFE0A0,"EWRAM",0x28DFF,7,true},
- [183] = {7,"Room 529",0xFFFFE0A0,"EWRAM",0x28E13,7,true},
- [184] = {7,"Room 530",0xFFFFE0A0,"EWRAM",0x28E15,7,true},
- [185] = {7,"Room 531",0xFFFFE0A0,"EWRAM",0x28E17,7,true},
- [186] = {7,"Room 591",0xFFFFE0A0,"EWRAM",0x28E19,7,true},
- [187] = {7,"Room 592",0xFFFFE0A0,"EWRAM",0x28E57,7,true},
- [188] = {0,"Area 4",0xFFB0B0B0},
- [189] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C44,0,true},
- [190] = {7,"Switch 2",0xFFFFE0A0,"EWRAM",0x28C4C,0,true},
- [191] = {7,"R310 B.Chest",0xFFFFE0A0,"EWRAM",0x38964,7,true}, -- Map: Mustard Mountain
- [192] = {7,"R316 Chest",0xFFFFE0A0,"EWRAM",0x38965,0,true}, -- energy drink
- [193] = {7,"R321 Chest",0xFFFFE0A0,"EWRAM",0x38965,1,true}, -- 1up
- [194] = {7,"R322 Chest",0xFFFFE0A0,"EWRAM",0x38965,2,true}, -- 1up
- [195] = {7,"R326 Chest",0xFFFFE0A0,"EWRAM",0x38965,3,true}, -- Spray: Cherry
- [196] = {7,"Room 300",0xFFFFE0A0,"EWRAM",0x28D9B,7,true},
- [197] = {7,"Room 300B",0xFFFFE0A0,"EWRAM",0x28DB5,7,true},
- [198] = {7,"Room 304",0xFFFFE0A0,"EWRAM",0x28D9D,7,true},
- [199] = {7,"Room 308",0xFFFFE0A0,"EWRAM",0x28D9F,7,true},
- [200] = {7,"Room 310",0xFFFFE0A0,"EWRAM",0x28DA1,7,true},
- [201] = {7,"Room 312",0xFFFFE0A0,"EWRAM",0x28DA3,7,true},
- [202] = {7,"Room 313",0xFFFFE0A0,"EWRAM",0x28DA5,7,true},
- [203] = {7,"Room 315",0xFFFFE0A0,"EWRAM",0x28DA7,7,true},
- [204] = {7,"Room 316",0xFFFFE0A0,"EWRAM",0x28DA9,7,true},
- [205] = {7,"Room 317",0xFFFFE0A0,"EWRAM",0x28DAB,7,true},
- [206] = {7,"Room 318",0xFFFFE0A0,"EWRAM",0x28DAD,7,true},
- [207] = {7,"Room 321",0xFFFFE0A0,"EWRAM",0x28DAF,7,true},
- [208] = {7,"Room 322",0xFFFFE0A0,"EWRAM",0x28DB1,7,true},
- [209] = {7,"Room 323",0xFFFFE0A0,"EWRAM",0x28DB3,7,true},
- [210] = {7,"Room 325",0xFFFFE0A0,"EWRAM",0x28DB7,7,true},
- [211] = {7,"Room 326",0xFFFFE0A0,"EWRAM",0x28DB9,7,true},
- [212] = {7,"Room 390",0xFFFFE0A0,"EWRAM",0x28DBB,7,true},
- [213] = {7,"Room 533",0xFFFFE0A0,"EWRAM",0x28D8B,7,true},
- [214] = {7,"Room 539",0xFFFFE0A0,"EWRAM",0x28D8D,7,true},
- [215] = {7,"Room 540",0xFFFFE0A0,"EWRAM",0x28D8F,7,true},
- [216] = {7,"Room 541",0xFFFFE0A0,"EWRAM",0x28D91,7,true},
- [217] = {7,"Room 544",0xFFFFE0A0,"EWRAM",0x28D93,7,true},
- [218] = {7,"Room 545",0xFFFFE0A0,"EWRAM",0x28D95,7,true},
- [219] = {7,"Room 546",0xFFFFE0A0,"EWRAM",0x28D97,7,true},
- [220] = {7,"Room 547",0xFFFFE0A0,"EWRAM",0x28D99,7,true},
- [221] = {0,"Area 5",0xFFB0B0B0},
- [222] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C34,0,true},
- [223] = {7,"Switch 2",0xFFFFE0A0,"EWRAM",0x28C38,0,true},
- [224] = {7,"Lever",0xFFFFE0A0,"EWRAM",0x38969,5,true},
- [225] = {7,"R719 Chest",0xFFFFE0A0,"EWRAM",0x38969,6,true}, -- cherry
- [226] = {7,"R732 B.Chest",0xFFFFE0A0,"EWRAM",0x38969,7,true}, -- Map: Carrot Castle
- [227] = {7,"R733 Chest",0xFFFFE0A0,"EWRAM",0x3896A,0,true}, -- Spray: Yellow
- [228] = {7,"R734 Chest 1",0xFFFFE0A0,"EWRAM",0x3896A,1,true}, -- Music: Secret Notes
- [229] = {7,"R734 Chest 2",0xFFFFE0A0,"EWRAM",0x3896A,2,true}, -- 1up
- [230] = {7,"R739 B.Chest",0xFFFFE0A0,"EWRAM",0x3896A,3,true}, -- Heart Piece
- [231] = {7,"Room 120",0xFFFFE0A0,"EWRAM",0x28E93,7,true},
- [232] = {7,"Room 121",0xFFFFE0A0,"EWRAM",0x28E95,7,true},
- [233] = {7,"Room 122",0xFFFFE0A0,"EWRAM",0x28E97,7,true},
- [234] = {7,"Room 170",0xFFFFE0A0,"EWRAM",0x28E99,7,true},
- [235] = {7,"Room 181",0xFFFFE0A0,"EWRAM",0x28CB3,7,true},
- [236] = {7,"Room 193",0xFFFFE0A0,"EWRAM",0x28E9B,7,true},
- [237] = {7,"Room 226",0xFFFFE0A0,"EWRAM",0x28D63,7,true},
- [238] = {7,"Room 600",0xFFFFE0A0,"EWRAM",0x28E9D,7,true},
- [239] = {7,"Room 600B",0xFFFFE0A0,"EWRAM",0x28EB3,7,true},
- [240] = {7,"Room 714",0xFFFFE0A0,"EWRAM",0x28E9F,7,true},
- [241] = {7,"Room 716",0xFFFFE0A0,"EWRAM",0x28EA1,7,true},
- [242] = {7,"Room 717",0xFFFFE0A0,"EWRAM",0x28EA3,7,true},
- [243] = {7,"Room 719",0xFFFFE0A0,"EWRAM",0x28EA5,7,true},
- [244] = {7,"Room 720",0xFFFFE0A0,"EWRAM",0x28EB7,7,true},
- [245] = {7,"Room 730",0xFFFFE0A0,"EWRAM",0x28EB9,7,true},
- [246] = {7,"Room 731",0xFFFFE0A0,"EWRAM",0x28EBB,7,true},
- [247] = {7,"Room 732",0xFFFFE0A0,"EWRAM",0x28EA7,7,true},
- [248] = {7,"Room 733",0xFFFFE0A0,"EWRAM",0x28EA9,7,true},
- [249] = {7,"Room 734",0xFFFFE0A0,"EWRAM",0x28EAB,7,true},
- [250] = {7,"Room 735",0xFFFFE0A0,"EWRAM",0x28EAD,7,true},
- [251] = {7,"Room 736",0xFFFFE0A0,"EWRAM",0x28EAF,7,true},
- [252] = {7,"Room 737",0xFFFFE0A0,"EWRAM",0x28EB1,7,true},
- [253] = {7,"Room 739",0xFFFFE0A0,"EWRAM",0x28EB5,7,true},
- [254] = {0,"Area 6",0xFFB0B0B0},
- [255] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C1C,0,true},
- [256] = {7,"Switch 2",0xFFFFE0A0,"EWRAM",0x28C20,0,true},
- [257] = {7,"Lever",0xFFFFE0A0,"EWRAM",0x38968,1,true},
- [258] = {7,"R134 Chest",0xFFFFE0A0,"EWRAM",0x38967,5,true}, -- Spray: Ocean
- [259] = {7,"R553 Chest",0xFFFFE0A0,"EWRAM",0x38967,6,true}, -- 1up
- [260] = {7,"R815 B.Chest",0xFFFFE0A0,"EWRAM",0x38967,7,true}, -- Heart Piece
- [261] = {7,"R816 B.Chest",0xFFFFE0A0,"EWRAM",0x38968,4,true}, -- Map: Olive Ocean
- [262] = {7,"R823 Chest",0xFFFFE0A0,"EWRAM",0x38968,0,true}, -- cherry
- [263] = {7,"R825 Chest",0xFFFFE0A0,"EWRAM",0x38968,2,true}, -- Music: Sound Effects
- [264] = {7,"R826 Chest",0xFFFFE0A0,"EWRAM",0x38968,3,true}, -- energy drink
- [265] = {7,"Room 130",0xFFFFE0A0,"EWRAM",0x28E1D,7,true},
- [266] = {7,"Room 131",0xFFFFE0A0,"EWRAM",0x28E1F,7,true},
- [267] = {7,"Room 132",0xFFFFE0A0,"EWRAM",0x28E21,7,true},
- [268] = {7,"Room 133",0xFFFFE0A0,"EWRAM",0x28E23,7,true},
- [269] = {7,"Room 134",0xFFFFE0A0,"EWRAM",0x28E25,7,true},
- [270] = {7,"Room 135",0xFFFFE0A0,"EWRAM",0x28E27,7,true},
- [271] = {7,"Room 551",0xFFFFE0A0,"EWRAM",0x28E29,7,true},
- [272] = {7,"Room 553",0xFFFFE0A0,"EWRAM",0x28E2B,7,true},
- [273] = {7,"Room 800",0xFFFFE0A0,"EWRAM",0x28E49,7,true},
- [274] = {7,"Room 800B",0xFFFFE0A0,"EWRAM",0x28E55,7,true},
- [275] = {7,"Room 802",0xFFFFE0A0,"EWRAM",0x28E4B,7,true},
- [276] = {7,"Room 810",0xFFFFE0A0,"EWRAM",0x28E4D,7,true},
- [277] = {7,"Room 811",0xFFFFE0A0,"EWRAM",0x28E2D,7,true},
- [278] = {7,"Room 814",0xFFFFE0A0,"EWRAM",0x28E2F,7,true},
- [279] = {7,"Room 815",0xFFFFE0A0,"EWRAM",0x28E31,7,true},
- [280] = {7,"Room 816",0xFFFFE0A0,"EWRAM",0x28E4F,7,true},
- [281] = {7,"Room 819",0xFFFFE0A0,"EWRAM",0x28E51,7,true},
- [282] = {7,"Room 821",0xFFFFE0A0,"EWRAM",0x28E53,7,true},
- [283] = {7,"Room 823",0xFFFFE0A0,"EWRAM",0x28E33,7,true},
- [284] = {7,"Room 824",0xFFFFE0A0,"EWRAM",0x28E35,7,true},
- [285] = {7,"Room 825",0xFFFFE0A0,"EWRAM",0x28E37,7,true},
- [286] = {7,"Room 826",0xFFFFE0A0,"EWRAM",0x28E39,7,true},
- [287] = {7,"Room 827",0xFFFFE0A0,"EWRAM",0x28E3B,7,true},
- [288] = {7,"Room 828",0xFFFFE0A0,"EWRAM",0x28E3D,7,true},
- [289] = {7,"Room 829",0xFFFFE0A0,"EWRAM",0x28E3F,7,true},
- [290] = {7,"Room 830",0xFFFFE0A0,"EWRAM",0x28E41,7,true},
- [291] = {7,"Room 831",0xFFFFE0A0,"EWRAM",0x28E43,7,true},
- [292] = {7,"Room 832",0xFFFFE0A0,"EWRAM",0x28E45,7,true},
- [293] = {7,"Room 890",0xFFFFE0A0,"EWRAM",0x28E47,7,true},
- [294] = {0,"Area 7",0xFFB0B0B0},
- [295] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C3C,0,true},
- [296] = {7,"Switch 2",0xFFFFE0A0,"EWRAM",0x28C40,0,true},
- [297] = {7,"R202 Chest 1",0xFFFFE0A0,"EWRAM",0x38962,3,true}, -- 1up
- [298] = {7,"R202 Chest 2",0xFFFFE0A0,"EWRAM",0x38962,4,true}, -- meat
- [299] = {7,"R206 Chest",0xFFFFE0A0,"EWRAM",0x38962,5,true}, -- Music: Dream Notes
- [300] = {7,"R209 B.Chest",0xFFFFE0A0,"EWRAM",0x38962,6,true}, -- Map: Peppermint Palace
- [301] = {7,"R209 Chest 1",0xFFFFE0A0,"EWRAM",0x38962,7,true}, -- 1up
- [302] = {7,"R209 Chest 2",0xFFFFE0A0,"EWRAM",0x38963,0,true}, -- energy drink
- [303] = {7,"R210 Chest",0xFFFFE0A0,"EWRAM",0x38963,1,true}, -- Spray: Snow
- [304] = {7,"R216 Chest",0xFFFFE0A0,"EWRAM",0x38964,4,true}, -- 1up
- [305] = {7,"R220 Chest",0xFFFFE0A0,"EWRAM",0x38963,2,true}, -- meat
- [306] = {7,"R221 Chest",0xFFFFE0A0,"EWRAM",0x38964,5,true}, -- Spray: Pink
- [307] = {7,"R224 Chest",0xFFFFE0A0,"EWRAM",0x38964,6,true}, -- maxim tomato
- [308] = {7,"R227 Chest 1",0xFFFFE0A0,"EWRAM",0x38963,3,true}, -- Music: Happy Notes
- [309] = {7,"R227 Chest 2",0xFFFFE0A0,"EWRAM",0x38963,4,true}, -- maxim tomato
- [310] = {7,"R227 Chest 3",0xFFFFE0A0,"EWRAM",0x38963,5,true}, -- 1up
- [311] = {7,"R228 Chest 1",0xFFFFE0A0,"EWRAM",0x38963,6,true}, -- 1up
- [312] = {7,"R228 Chest 2",0xFFFFE0A0,"EWRAM",0x38963,7,true}, -- meat
- [313] = {7,"R229 Chest 1",0xFFFFE0A0,"EWRAM",0x38964,0,true}, -- Spray: Grape
- [314] = {7,"R229 Chest 2",0xFFFFE0A0,"EWRAM",0x38964,1,true}, -- 1up
- [315] = {7,"R229 Chest 3",0xFFFFE0A0,"EWRAM",0x38964,2,true}, -- energy drink
- [316] = {7,"R232 Chest",0xFFFFE0A0,"EWRAM",0x38964,3,true}, -- energy drink
- [317] = {7,"Room 200",0xFFFFE0A0,"EWRAM",0x28D4B,7,true},
- [318] = {7,"Room 200B",0xFFFFE0A0,"EWRAM",0x28D7D,7,true},
- [319] = {7,"Room 202",0xFFFFE0A0,"EWRAM",0x28D4D,7,true},
- [320] = {7,"Room 203",0xFFFFE0A0,"EWRAM",0x28D4F,7,true},
- [321] = {7,"Room 204",0xFFFFE0A0,"EWRAM",0x28D51,7,true},
- [322] = {7,"Room 205",0xFFFFE0A0,"EWRAM",0x28D53,7,true},
- [323] = {7,"Room 206",0xFFFFE0A0,"EWRAM",0x28D55,7,true},
- [324] = {7,"Room 208",0xFFFFE0A0,"EWRAM",0x28D57,7,true},
- [325] = {7,"Room 209",0xFFFFE0A0,"EWRAM",0x28D59,7,true},
- [326] = {7,"Room 210",0xFFFFE0A0,"EWRAM",0x28D5B,7,true},
- [327] = {7,"Room 211",0xFFFFE0A0,"EWRAM",0x28D5D,7,true},
- [328] = {7,"Room 212",0xFFFFE0A0,"EWRAM",0x28D73,7,true},
- [329] = {7,"Room 214",0xFFFFE0A0,"EWRAM",0x28D5F,7,true},
- [330] = {7,"Room 215",0xFFFFE0A0,"EWRAM",0x28D75,7,true},
- [331] = {7,"Room 216",0xFFFFE0A0,"EWRAM",0x28D77,7,true},
- [332] = {7,"Room 217",0xFFFFE0A0,"EWRAM",0x28D79,7,true},
- [333] = {7,"Room 218",0xFFFFE0A0,"EWRAM",0x28D7B,7,true},
- [334] = {7,"Room 220",0xFFFFE0A0,"EWRAM",0x28D61,7,true},
- [335] = {7,"Room 221",0xFFFFE0A0,"EWRAM",0x28D7F,7,true},
- [336] = {7,"Room 222",0xFFFFE0A0,"EWRAM",0x28D81,7,true},
- [337] = {7,"Room 223",0xFFFFE0A0,"EWRAM",0x28D83,7,true},
- [338] = {7,"Room 224",0xFFFFE0A0,"EWRAM",0x28D85,7,true},
- [339] = {7,"Room 225",0xFFFFE0A0,"EWRAM",0x28D87,7,true},
- [340] = {7,"Room 227",0xFFFFE0A0,"EWRAM",0x28D65,7,true},
- [341] = {7,"Room 228",0xFFFFE0A0,"EWRAM",0x28D67,7,true},
- [342] = {7,"Room 229",0xFFFFE0A0,"EWRAM",0x28D69,7,true},
- [343] = {7,"Room 230",0xFFFFE0A0,"EWRAM",0x28D6B,7,true},
- [344] = {7,"Room 231",0xFFFFE0A0,"EWRAM",0x28D6D,7,true},
- [345] = {7,"Room 232",0xFFFFE0A0,"EWRAM",0x28D6F,7,true},
- [346] = {7,"Room 290",0xFFFFE0A0,"EWRAM",0x28D71,7,true},
- [347] = {7,"Room 291",0xFFFFE0A0,"EWRAM",0x28D89,7,true},
- [348] = {0,"Area 8",0xFFB0B0B0},
- [349] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C2C,0,true},
- [350] = {7,"Switch 2",0xFFFFE0A0,"EWRAM",0x28C30,0,true},
- [351] = {7,"Lever",0xFFFFE0A0,"EWRAM",0x38969,2,true},
- [352] = {7,"R102 Chest 1",0xFFFFE0A0,"EWRAM",0x38969,3,true}, -- cherry
- [353] = {7,"R102 Chest 2",0xFFFFE0A0,"EWRAM",0x38969,4,true}, -- Music: Battle Notes
- [354] = {7,"R608 Chest",0xFFFFE0A0,"EWRAM",0x38969,0,true}, -- 1up
- [355] = {7,"R617 B.Chest",0xFFFFE0A0,"EWRAM",0x38969,1,true}, -- Map: Radish Ruins
- [356] = {7,"R620 B.Chest",0xFFFFE0A0,"EWRAM",0x38968,5,true}, -- Heart Piece
- [357] = {7,"R622 Chest 1",0xFFFFE0A0,"EWRAM",0x38968,6,true}, -- Spray: Emerald
- [358] = {7,"R623 Chest 2",0xFFFFE0A0,"EWRAM",0x38968,7,true}, -- energy drink
- [359] = {7,"Room 102",0xFFFFE0A0,"EWRAM",0x28E8B,7,true},
- [360] = {7,"Room 113",0xFFFFE0A0,"EWRAM",0x28E8D,7,true},
- [361] = {7,"Room 114",0xFFFFE0A0,"EWRAM",0x28E8F,7,true},
- [362] = {7,"Room 114B",0xFFFFE0A0,"EWRAM",0x28E91,7,true},
- [363] = {7,"Room 502",0xFFFFE0A0,"EWRAM",0x28E83,7,true},
- [364] = {7,"Room 524",0xFFFFE0A0,"EWRAM",0x28E85,7,true},
- [365] = {7,"Room 525",0xFFFFE0A0,"EWRAM",0x28E87,7,true},
- [366] = {7,"Room 526",0xFFFFE0A0,"EWRAM",0x28E89,7,true},
- [367] = {7,"Room 601",0xFFFFE0A0,"EWRAM",0x28E59,7,true},
- [368] = {7,"Room 603",0xFFFFE0A0,"EWRAM",0x28E5B,7,true},
- [369] = {7,"Room 604",0xFFFFE0A0,"EWRAM",0x28E5D,7,true},
- [370] = {7,"Room 605",0xFFFFE0A0,"EWRAM",0x28E5F,7,true},
- [371] = {7,"Room 606",0xFFFFE0A0,"EWRAM",0x28E61,7,true},
- [372] = {7,"Room 608",0xFFFFE0A0,"EWRAM",0x28E6F,7,true},
- [373] = {7,"Room 609",0xFFFFE0A0,"EWRAM",0x28E71,7,true},
- [374] = {7,"Room 610",0xFFFFE0A0,"EWRAM",0x28E63,7,true},
- [375] = {7,"Room 611",0xFFFFE0A0,"EWRAM",0x28E65,7,true},
- [376] = {7,"Room 612",0xFFFFE0A0,"EWRAM",0x28E73,7,true},
- [377] = {7,"Room 613",0xFFFFE0A0,"EWRAM",0x28E75,7,true},
- [378] = {7,"Room 614",0xFFFFE0A0,"EWRAM",0x28E77,7,true},
- [379] = {7,"Room 616",0xFFFFE0A0,"EWRAM",0x28E79,7,true},
- [380] = {7,"Room 617",0xFFFFE0A0,"EWRAM",0x28E7B,7,true},
- [381] = {7,"Room 618",0xFFFFE0A0,"EWRAM",0x28E7D,7,true},
- [382] = {7,"Room 619",0xFFFFE0A0,"EWRAM",0x28E7F,7,true},
- [383] = {7,"Room 620",0xFFFFE0A0,"EWRAM",0x28E67,7,true},
- [384] = {7,"Room 621",0xFFFFE0A0,"EWRAM",0x28E69,7,true},
- [385] = {7,"Room 622",0xFFFFE0A0,"EWRAM",0x28E6B,7,true},
- [386] = {7,"Room 623",0xFFFFE0A0,"EWRAM",0x28E6D,7,true},
- [387] = {7,"Room 690",0xFFFFE0A0,"EWRAM",0x28E81,7,true},
- [388] = {0,"Area 9",0xFFB0B0B0},
- [389] = {7,"Switch 1",0xFFFFE0A0,"EWRAM",0x28C48,0,true},
- [390] = {7,"R402 Chest",0xFFFFE0A0,"EWRAM",0x38965,4,true}, -- 1up
- [391] = {7,"R403 Chest",0xFFFFE0A0,"EWRAM",0x38965,5,true}, -- Spray: Carbon
- [392] = {7,"R403 B.Chest",0xFFFFE0A0,"EWRAM",0x38965,6,true}, -- Heart Piece
- [393] = {7,"R406 B.Chest",0xFFFFE0A0,"EWRAM",0x38965,7,true}, -- Sound Player
- [394] = {7,"R418 Chest",0xFFFFE0A0,"EWRAM",0x38966,0,true}, -- cherry
- [395] = {7,"R424 Chest",0xFFFFE0A0,"EWRAM",0x38966,1,true}, -- Music: Kirby's Sounds
- [396] = {7,"R425 Chest",0xFFFFE0A0,"EWRAM",0x38966,2,true}, -- maxim tomato
- [397] = {7,"R426 B.Chest",0xFFFFE0A0,"EWRAM",0x38966,3,true}, -- Map: Candy Constellation
- [398] = {7,"R427 Chest",0xFFFFE0A0,"EWRAM",0x38966,4,true}, -- Spray: Red
- [399] = {7,"Room 400",0xFFFFE0A0,"EWRAM",0x28DBD,7,true},
- [400] = {7,"Room 400B",0xFFFFE0A0,"EWRAM",0x28DDD,7,true},
- [401] = {7,"Room 401",0xFFFFE0A0,"EWRAM",0x28DBF,7,true},
- [402] = {7,"Room 402",0xFFFFE0A0,"EWRAM",0x28DC1,7,true},
- [403] = {7,"Room 403",0xFFFFE0A0,"EWRAM",0x28DC3,7,true},
- [404] = {7,"Room 404",0xFFFFE0A0,"EWRAM",0x28DC5,7,true},
- [405] = {7,"Room 405",0xFFFFE0A0,"EWRAM",0x28DC7,7,true},
- [406] = {7,"Room 406",0xFFFFE0A0,"EWRAM",0x28DC9,7,true},
- [407] = {7,"Room 407",0xFFFFE0A0,"EWRAM",0x28DCB,7,true},
- [408] = {7,"Room 408",0xFFFFE0A0,"EWRAM",0x28DCD,7,true},
- [409] = {7,"Room 409",0xFFFFE0A0,"EWRAM",0x28DCF,7,true},
- [410] = {7,"Room 411",0xFFFFE0A0,"EWRAM",0x28DD1,7,true},
- [411] = {7,"Room 412",0xFFFFE0A0,"EWRAM",0x28DD3,7,true},
- [412] = {7,"Room 413",0xFFFFE0A0,"EWRAM",0x28DD5,7,true},
- [413] = {7,"Room 414",0xFFFFE0A0,"EWRAM",0x28DD7,7,true},
- [414] = {7,"Room 415",0xFFFFE0A0,"EWRAM",0x28DD9,7,true},
- [415] = {7,"Room 416",0xFFFFE0A0,"EWRAM",0x28DDB,7,true},
- [416] = {7,"Room 418",0xFFFFE0A0,"EWRAM",0x28DDF,7,true},
- [417] = {7,"Room 419",0xFFFFE0A0,"EWRAM",0x28DE1,7,true},
- [418] = {7,"Room 420",0xFFFFE0A0,"EWRAM",0x28DE3,7,true},
- [419] = {7,"Room 421",0xFFFFE0A0,"EWRAM",0x28DE5,7,true},
- [420] = {7,"Room 422",0xFFFFE0A0,"EWRAM",0x28DE7,7,true},
- [421] = {7,"Room 423",0xFFFFE0A0,"EWRAM",0x28DE9,7,true},
- [422] = {7,"Room 424",0xFFFFE0A0,"EWRAM",0x28DEB,7,true},
- [423] = {7,"Room 425",0xFFFFE0A0,"EWRAM",0x28DED,7,true},
- [424] = {7,"Room 426",0xFFFFE0A0,"EWRAM",0x28DEF,7,true},
- [425] = {7,"Room 427",0xFFFFE0A0,"EWRAM",0x28DF1,7,true},
- [426] = {7,"Room 490",0xFFFFE0A0,"EWRAM",0x28DF3,7,true},
- [427] = {0,"End Game",0xFFB0B0B0},
- [428] = {7,"Room 909",0xFFFFE0A0,"EWRAM",0x28EBD,7,true},
- [429] = {7,"Room 910",0xFFFFE0A0,"EWRAM",0x28EBF,7,true},
- [430] = {7,"Room 911",0xFFFFE0A0,"EWRAM",0x28EC1,7,true},
- [431] = {7,"Room 912",0xFFFFE0A0,"EWRAM",0x28EC3,7,true},
- [432] = {7,"Room 913",0xFFFFE0A0,"EWRAM",0x28EC5,7,true},
- [433] = {7,"Room 914",0xFFFFE0A0,"EWRAM",0x28EC7,7,true},
- [434] = {7,"Room 915",0xFFFFE0A0,"EWRAM",0x28EC9,7,true},
- [435] = {7,"Room 916",0xFFFFE0A0,"EWRAM",0x28ECB,7,true},
- [436] = {7,"Room 918",0xFFFFE0A0,"EWRAM",0x28ECD,7,true},
- [437] = {7,"Room 919",0xFFFFE0A0,"EWRAM",0x28ECF,7,true},
- [438] = {0,"Arena",0xFFB0B0B0},
- [439] = {7,"Room 950",0xFFFFE0A0,"EWRAM",0x28ED1,7,true},
- [440] = {7,"Room 951",0xFFFFE0A0,"EWRAM",0x28ED3,7,true},
- [441] = {7,"Room 955",0xFFFFE0A0,"EWRAM",0x28ED5,7,true},
- [442] = {7,"Room 956",0xFFFFE0A0,"EWRAM",0x28ED7,7,true},
- [443] = {7,"Room 957",0xFFFFE0A0,"EWRAM",0x28ED9,7,true},
- [444] = {0,"Beta Testing",0xFFB0B0B0},
- [445] = {7,"Room 969",0xFFFFE0A0,"EWRAM",0x28EDB,7,true},
- [446] = {0,"Ability Room",0xFFB0B0B0},
- [447] = {7,"Room 970",0xFFFFE0A0,"EWRAM",0x28EDD,7,true},
- [448] = {0,"Finish Rooms",0xFFB0B0B0},
- [449] = {7,"Room 980",0xFFFFE0A0,"EWRAM",0x28CAB,7,true},
- [450] = {7,"Room 981",0xFFFFE0A0,"EWRAM",0x28CAD,7,true},
- [451] = {7,"Room 982",0xFFFFE0A0,"EWRAM",0x28CAF,7,true}
- }
- local AddressTableKirby= {
- [1] = {1,"X",0xFFFFB0C0,"EWRAM",0x020F20,4,true,false},
- [2] = {1,"Y",0xFFFFB0C0,"EWRAM",0x020F24,4,true,false},
- [3] = {1,"X Speed",0xFFFFB0C0,"EWRAM",0x020F30,2,true,true},
- [4] = {1,"Y Speed",0xFFFFB0C0,"EWRAM",0x020F32,2,true,true},
- [5] = {1,"Hitbox Offset X",0xFFFFB0C0,"EWRAM",0x020F18,1,true,true},
- [6] = {1,"Hitbox Offset Y",0xFFFFB0C0,"EWRAM",0x020F19,1,true,true},
- [7] = {1,"Hitbox Width",0xFFFFB0C0,"EWRAM",0x020F1A,1,true,true},
- [8] = {1,"Hitbox Height",0xFFFFB0C0,"EWRAM",0x020F1B,1,true,true},
- [9] = {1,"Ability",0xFFFFB0C0,"EWRAM",0x020FE3,1,true,false},
- [10] = {1,"Health",0xFFFFB0C0,"EWRAM",0x020FE0,1,true,false},
- [11] = {1,"Max Health",0xFFFFB0C0,"EWRAM",0x020FE1,1,true,false},
- [12] = {1,"Lives",0xFFFFB0C0,"EWRAM",0x020FE2,1,true,false},
- [13] = {1,"Phone Battery",0xFFFFB0C0,"EWRAM",0x020FBC,1,true,false},
- [14] = {1,"Room",0xFFFFB0C0,"EWRAM",0x020FE6,2,true,false}
- }
- local AddressTableYellow= {
- [1] = {1,"X",0xFFFFE060,"EWRAM",0x0210C8,4,true,false},
- [2] = {1,"Y",0xFFFFE060,"EWRAM",0x0210CC,4,true,false},
- [3] = {1,"X Speed",0xFFFFE060,"EWRAM",0x0210D8,2,true,true},
- [4] = {1,"Y Speed",0xFFFFE060,"EWRAM",0x0210DA,2,true,true},
- [5] = {1,"Ability",0xFFFFE060,"EWRAM",0x02118B,1,true,false},
- [6] = {1,"Health",0xFFFFE060,"EWRAM",0x021188,1,true,false},
- [7] = {1,"Max Health",0xFFFFE060,"EWRAM",0x021189,1,true,false},
- [8] = {1,"Room",0xFFFFE060,"EWRAM",0x02118E,2,true,false}
- }
- local AddressTableRed= {
- [1] = {1,"X",0xFFFF9090,"EWRAM",0x021270,4,true,false},
- [2] = {1,"Y",0xFFFF9090,"EWRAM",0x021274,4,true,false},
- [3] = {1,"X Speed",0xFFFF9090,"EWRAM",0x021280,2,true,true},
- [4] = {1,"Y Speed",0xFFFF9090,"EWRAM",0x021282,2,true,true},
- [5] = {1,"Ability",0xFFFF9090,"EWRAM",0x021333,1,true,false},
- [6] = {1,"Health",0xFFFF9090,"EWRAM",0x021330,1,true,false},
- [7] = {1,"Max Health",0xFFFF9090,"EWRAM",0x021331,1,true,false},
- [8] = {1,"Room",0xFFFF9090,"EWRAM",0x021336,2,true,false}
- }
- local AddressTableGreen= {
- [1] = {1,"X",0xFFC0FF80,"EWRAM",0x021418,4,true,false},
- [2] = {1,"Y",0xFFC0FF80,"EWRAM",0x02141C,4,true,false},
- [3] = {1,"X Speed",0xFFC0FF80,"EWRAM",0x021428,2,true,true},
- [4] = {1,"Y Speed",0xFFC0FF80,"EWRAM",0x02142A,2,true,true},
- [5] = {1,"Ability",0xFFC0FF80,"EWRAM",0x0214DB,1,true,false},
- [6] = {1,"Health",0xFFC0FF80,"EWRAM",0x0214D8,1,true,false},
- [7] = {1,"Max Health",0xFFC0FF80,"EWRAM",0x0214D9,1,true,false},
- [8] = {1,"Room",0xFFC0FF80,"EWRAM",0x0214DE,2,true,false}
- }
- local Displays = {
- -- Name, active, col, x, y, width, height, offset of list, edit mode, table, entries shown
- [1]= {"General", false, 0xFFFFE0A0, 40, 40, 168, 34, 0, false, AddressTableGeneral,2},
- [2]= {"Kirby", false, 0xFFFFB0C0, 40, 40, 168, 66, 0, false, AddressTableKirby,6},
- [3]= {"Yellow", false, 0xFFFFE060, 40, 40, 168, 66, 0, false, AddressTableYellow,6},
- [4]= {"Red", false, 0xFFFF9090, 40, 40, 168, 66, 0, false, AddressTableRed,6},
- [5]= {"Green", false, 0xFFC0FF80, 40, 40, 168, 66, 0, false, AddressTableGreen,6},
- [6]= {"Flags", false, 0xFFFFE0A0, 40, 40, 168, 82, 0, false, AddressTableFlags,8},
- [7]= {"Hitboxes", false, 0xFFFFE0A0, nil}
- }
- local Enemies = {}
- local Other = {}
- local HelperKirby = {
- [1]={"Yellow",0xFFFFE060},
- [2]={"Red",0xFFFF9090},
- [3]={"Green",0xFFC0FF80}
- }
- local HitboxSettings = {
- [1]={"Kirby",true},
- [2]={"Enemy",true},
- [3]={"Attack",true}
- }
- local Mouse = {
- X = 0,
- Y = 0,
- XBefore = 0,
- YBefore = 0,
- clickedFrames = 0,
- clicked = false
- }
- local Color = {
- Selected = 0xB0A0A0A0,
- Normal = 0xA0303030,
- Grey = 0xA0C0C0C0
- }
- function text(x, y, text, color, backcolor)
- if backcolor==nil then backcolor=0x00000000 end
- gui.drawText(x, y, text,color,backcolor,10,"Arial")
- end
- function box(x,y,x2,y2)
- gui.drawBox(x,y,x2,y2,0x00000000,0xD0000000)
- end
- function boxNormal(x,y,x2,y2)
- gui.drawBox(x,y,x2,y2,0xFF000000,0xA0000000)
- end
- function boxSelected(x,y,x2,y2)
- gui.drawBox(x,y,x2,y2,0xFF000000,0xA0505050)
- end
- function arrowDown(xpos,ypos,col)
- gui.drawLine(xpos,ypos,xpos+6,ypos,col)
- gui.drawLine(xpos+1,ypos+1,xpos+5,ypos+1,col)
- gui.drawLine(xpos+2,ypos+2,xpos+4,ypos+2,col)
- gui.drawPixel(xpos+3,ypos+3,col)
- end
- function arrowUp(xpos,ypos,col)
- gui.drawLine(xpos,ypos,xpos+6,ypos,col)
- gui.drawLine(xpos+1,ypos-1,xpos+5,ypos-1,col)
- gui.drawLine(xpos+2,ypos-2,xpos+4,ypos-2,col)
- gui.drawPixel(xpos+3,ypos-3,col)
- end
- function drawDisplayBox(id,bordercolor,color)
- posx=Displays[id][4]
- posy=Displays[id][5]
- width=Displays[id][6]
- height=Displays[id][7]
- if Mouse.clicked then
- if Mouse.X > posx and Mouse.X < posx+width and Mouse.Y > posy and Mouse.Y < posy+height then
- if Mouse.clickedFrames > 0 then
- menuscreen=0 -- close menu
- posy = posy + (Mouse.Y-Mouse.YBefore) -- enables mouse drag
- posx = posx + (Mouse.X-Mouse.XBefore)
- if posy < 0 then posy=0 -- prevents display from going offscreen
- elseif posy > 159-height then posy=159-height end
- if posx < 0 then posx=0
- elseif posx > 239-width then posx=239-width end
- Displays[id][4]=posx
- Displays[id][5]=posy
- end
- end
- end
- gui.drawBox(posx,posy,posx+width,posy+height,bordercolor,color)
- text(posx+3,posy-1,Displays[id][1],0xFF808080)
- end
- function drawCloseButton(id)
- width=Displays[id][6]
- x=Displays[id][4]
- y=Displays[id][5]
- drawButton(x+width-10,y,10,10,"x",Color.Grey,15,function()
- Displays[id][2] = false
- end)
- end
- function drawEditButton(id)
- width=Displays[id][6]
- x=Displays[id][4]
- y=Displays[id][5]
- if Displays[id][9] then col=Color.Selected
- else col=Color.Normal end
- drawButton(x+width-25,y,12,10,"e",col,15,function()
- Displays[id][9]=not Displays[id][9]
- end)
- end
- function drawButton(posx,posy,width,height,label,color,frequency,clickedfunction)
- if Mouse.X>posx and Mouse.X<posx+width and Mouse.Y>posy and Mouse.Y<posy+height then
- if Mouse.clicked and Mouse.clickedFrames%frequency==1 then
- clickedfunction()
- end
- gui.drawBox(posx,posy,posx+width,posy+height,color-0x00303030,color+0x30303030)
- else
- gui.drawBox(posx,posy,posx+width,posy+height,color-0x00303030,color)
- end
- text(posx+1,posy-2,label,0xFFFFFFFF)
- end
- function drawMenuButton(posx,posy,width,height,label,z,drawindicator,indicator,col,clickedfunction)
- if Mouse.X>posx and Mouse.X<posx+width and Mouse.Y>posy and Mouse.Y<posy+height then
- if Mouse.clicked and Mouse.clickedFrames==z then
- menuscreen=0
- clickedfunction()
- end
- boxSelected(posx,posy,posx+width,posy+height)
- else
- boxNormal(posx,posy,posx+width,posy+height)
- end
- text(posx+2,posy-1,label,col)
- if drawindicator then
- if indicator then text(posx+width-10,posy,"o",0xFF80FF80)
- else text(posx+width-10,posy-1,"x",0xFFFF9090) end
- end
- end
- local getChangeAmount = function(valueChangeAmount)
- if Mouse.clickedFrames>540 then
- valueChangeAmount=valueChangeAmount*1000000
- elseif Mouse.clickedFrames>450 then
- valueChangeAmount=valueChangeAmount*100000
- elseif Mouse.clickedFrames>360 then
- valueChangeAmount=valueChangeAmount*10000
- elseif Mouse.clickedFrames>270 then
- valueChangeAmount=valueChangeAmount*1000
- elseif Mouse.clickedFrames>180 then
- valueChangeAmount=valueChangeAmount*100
- elseif Mouse.clickedFrames>90 then
- valueChangeAmount=valueChangeAmount*10
- end
- return valueChangeAmount
- end
- local addressTableSetValue = function(address, addressSize, addressEndian, newvalue)
- if addressSize==1 then
- memory.write_u8(address,newvalue)
- elseif addressSize==2 then
- if addressEndian then
- memory.write_u16_le(address,newvalue)
- else
- memory.write_u16_be(address,newvalue)
- end
- elseif addressSize==3 then
- if addressEndian then
- memory.write_u24_le(address,newvalue)
- else
- memory.write_u24_be(address,newvalue)
- end
- elseif addressSize==4 then
- if addressEndian then
- memory.write_u32_le(address,newvalue)
- else
- memory.write_u32_be(address,newvalue)
- end
- end
- end
- local addressTableGetValue = function(address, addressSize, addressEndian, addressSigned)
- if addressSigned then
- if addressSize==1 then
- value=memory.read_s8(address)
- elseif addressSize==2 then
- if addressEndian then
- value=memory.read_s16_le(address)
- else
- value=memory.read_s16_be(address)
- end
- elseif addressSize==3 then
- if addressEndian then
- value=memory.read_s24_le(address)
- else
- value=memory.read_s24_be(address)
- end
- elseif addressSize==4 then
- if addressEndian then
- value=memory.read_s32_le(address)
- else
- value=memory.read_s32_be(address)
- end
- end
- else
- if addressSize==1 then
- value=memory.read_u8(address)
- elseif addressSize==2 then
- if addressEndian then
- value=memory.read_u16_le(address)
- else
- value=memory.read_u16_be(address)
- end
- elseif addressSize==3 then
- if addressEndian then
- value=memory.read_u24_le(address)
- else
- value=memory.read_u24_be(address)
- end
- elseif addressSize==4 then
- if addressEndian then
- value=memory.read_u32_le(address)
- else
- value=memory.read_u32_be(address)
- end
- end
- end
- return value
- end
- local DisplayAddressTable = function(display_id, has_arrows, has_buttons, display_description, description_offset, arrows_offset, buttons_offset)
- inputTable=Displays[display_id][10]
- xpos=Displays[display_id][4]
- ypos=Displays[display_id][5]
- memorydomainBefore=memory.getcurrentmemorydomain()
- tableSize=table.getn(inputTable)
- table_start=1
- table_end=Displays[display_id][11]
- table_iterations = 1
- offset=Displays[display_id][8]
- list_height = 8*(table_end - table_start)+14
- --display arrows:
- if has_arrows then
- --bottom arrow button
- if (tableSize - offset) > table_end then
- if Mouse.X>xpos+arrows_offset and Mouse.X<xpos+arrows_offset+12 and Mouse.Y>ypos+list_height and Mouse.Y<ypos+list_height+6 then
- if Mouse.clicked then
- Displays[display_id][8]=offset+1
- end
- arrowDown(xpos+arrows_offset+2,ypos+list_height,0xFFFFFFFF)
- else
- arrowDown(xpos+arrows_offset+2,ypos+list_height,0xA0FFFFFF)
- end
- else
- if offset < 0 then
- Displays[display_id][8]=0
- end
- end
- --top arrow button
- if offset > 0 then
- if Mouse.X>xpos+arrows_offset and Mouse.X<xpos+arrows_offset+12 and Mouse.Y>ypos+list_height-10 and Mouse.Y<ypos+list_height-4 then
- if Mouse.clicked then
- Displays[display_id][8]=offset-1
- end
- arrowUp(xpos+arrows_offset+2,ypos+list_height-6,0xFFFFFFFF)
- else
- arrowUp(xpos+arrows_offset+2,ypos+list_height-6,0xA0FFFFFF)
- end
- end
- end
- -- applying display offset
- table_start = table_start + offset
- table_end = table_end + offset
- -- going through the table
- for i=table_start,table_end do --show a part of the list
- contenttype=inputTable[i][1]
- description=inputTable[i][2]
- textColor=inputTable[i][3]
- memorydomain=inputTable[i][4]
- if contenttype==0 then -- TITLE
- gui.drawBox(5+xpos,4+ypos+table_iterations*8,arrows_offset+xpos,12+ypos+table_iterations*8,0x00000000,0xFF505050)
- elseif contenttype==7 then -- BINARY
- memory.usememorydomain(memorydomain)
- address=inputTable[i][5]
- currentbit=inputTable[i][6]
- value=memory.read_u8(address)
- value=bit.check(value, currentbit)
- if value then
- value="Yes"
- valueColor=0xFF80FF80
- else
- value="No"
- valueColor=0xFFFF9090
- end
- text(5+xpos,3+ypos+table_iterations*8,value,valueColor)
- else -- OTHER TYPES
- memory.usememorydomain(memorydomain)
- address=inputTable[i][5]
- addressSize=inputTable[i][6]
- addressEndian=inputTable[i][7] -- true:little endian, false:big endian
- addressSigned=inputTable[i][8]
- valueChangeAmount=1
- value = addressTableGetValue(address,addressSize,addressEndian, addressSigned)
- text(5+xpos,3+ypos+table_iterations*8,value, textColor)
- end
- if display_description then
- text(xpos+description_offset,3+ypos+table_iterations*8,description, textColor)
- end
- if has_buttons then
- if contenttype==7 then -- binary
- drawButton(xpos+buttons_offset,4+ypos+table_iterations*8,21,8,"Set",Color.Normal,8,function()
- currentvalue=memory.read_u8(address)
- if bit.check(currentvalue,currentbit) then
- memory.write_u8(address, bit.clear(currentvalue,currentbit))
- else
- memory.write_u8(address, bit.set(currentvalue,currentbit))
- end
- end)
- elseif contenttype~=0 then -- normal values
- drawButton(xpos+buttons_offset,4+ypos+table_iterations*8,9,8,"-",Color.Normal,5,function()
- valueChangeAmount = getChangeAmount(valueChangeAmount) -- increases when holding mouse key
- newvalue = value - valueChangeAmount
- addressTableSetValue(address,addressSize,addressEndian,newvalue)
- end)
- drawButton(12+xpos+buttons_offset,4+ypos+table_iterations*8,9,8,"+",Color.Normal,5,function()
- valueChangeAmount = getChangeAmount(valueChangeAmount) -- increases when holding mouse key
- newvalue = value + valueChangeAmount
- addressTableSetValue(address,addressSize,addressEndian,newvalue)
- end)
- end
- end
- table_iterations=table_iterations+1
- end
- memory.usememorydomain(memorydomainBefore)
- end
- local drawDisplay = function(id)
- if Displays[id][4]~=nil then
- drawDisplayBox(id, 0xFF202020,0xA0000000)
- drawCloseButton(id)
- drawEditButton(id)
- if Displays[id][9] then
- DisplayAddressTable(id,true,true,true,66,158,42)
- else
- DisplayAddressTable(id,true,false,true,46,158,0)
- end
- end
- end
- local updateEnemies = function(enemyTableSize,fullSearch)
- memory.usememorydomain("EWRAM")
- count=1
- Enemies = {}
- address=0x0
- found=false
- if fullSearch then end_address=0x36FF
- else end_address=enemyTableSize*0xBC + 0x3F0 end
- while address < end_address do
- if memory.read_u32_le(address)== 0x1FFFFFF
- and memory.read_u8(address-1)~= 255 then
- Enemies[count]=address
- count=count+1
- found=true
- end
- if found then address=address+0x04
- else address=address+0x01
- end
- end
- end
- local updateOther = function(enemyTableSize)
- memory.usememorydomain("IWRAM")
- count=1
- Other = {}
- address=0x3CB0
- end_address=0x477F
- while address < end_address do
- if memory.read_u32_le(address)== 0xFFFFFFFF
- and memory.read_u8(address-1)~= 255 then
- Other[count]=address
- count=count+1
- end
- address=address+0x04
- end
- end
- local drawEnemies = function() -- Enemies
- local buttoncol,color,subcolor,verticalOffset=0
- local info=""
- local counterOffset=0
- local enemyTableSize = table.getn(Enemies)
- local otherTableSize = table.getn(Other)
- memory.usememorydomain("EWRAM")
- local cameraX = memory.read_u16_le(0x23660)
- local cameraY = memory.read_u16_le(0x23662)
- --buttons
- for s=1,table.getn(HitboxSettings) do
- if HitboxSettings[s][2] then buttoncol=Color.Selected
- else buttoncol=Color.Normal end
- drawButton(14+s*40,0,36,9,HitboxSettings[s][1],buttoncol,15,function()
- HitboxSettings[s][2]=not HitboxSettings[s][2]
- end)
- end
- if HitboxSettings[1][2] then
- --display kirby hitbox
- --!! careful: It's expected to be EWRAM here
- for i=0,3 do
- offset =i*0x1A8
- room = memory.read_u16_le(0x020FE6+offset)
- kirbyX = memory.read_u24_le(0x020F21+offset)
- kirbyY = memory.read_u24_le(0x020F25+offset)
- hitboxX = memory.read_s8(0x020F18+offset)
- hitboxY = memory.read_s8(0x020F19+offset)
- width = memory.read_s8(0x020F1A+offset)
- height = memory.read_s8(0x020F1B+offset)
- x=kirbyX-cameraX+hitboxX -- screen x
- y=kirbyY-cameraY+hitboxY -- screen y
- x2=x+width*2
- y2=y+height*2
- if i>0
- and room ~= memory.read_u16_le(0x020FE6) then --kirby is in different room
- color=HelperKirby[i][2]
- subcolor=HelperKirby[i][2]
- else -- same room
- color=0xFFFFFFFF
- subcolor=0x00000000
- end
- gui.drawBox(x,y,x2,y2,color) -- hitbox rectangle
- end
- end
- if HitboxSettings[2][2] then
- --update enemy
- if frames%12==0 then
- updateEnemies(enemyTableSize,false)
- end
- --display
- enemyTableSize = table.getn(Enemies)
- if enemyTableSize>0 then
- memory.usememorydomain("EWRAM")
- for s=1,enemyTableSize do
- offset = Enemies[s]
- extrainfo=""
- status = memory.read_u8(offset+0x32)
- enemyX = memory.read_u24_le(offset+0x44)
- enemyY = memory.read_u24_le(offset+0x48)
- hitboxX = memory.read_s8(offset+0x3B)
- hitboxY = memory.read_s8(offset+0x3C)
- width = memory.read_s8(offset+0x3D)
- height = memory.read_s8(offset+0x3E)
- heldAliveBy = memory.read_s8(offset+0x59)
- ID = memory.read_u8(offset+0x85)
- health = memory.read_s8(offset+0x83)
- x=enemyX-cameraX+hitboxX -- screen x
- y=enemyY-cameraY+hitboxY -- screen y
- x2=x+width*2
- y2=y+height*2
- x3=x+width -- center
- if Mouse.X > x-4 and Mouse.X < x2+4 and Mouse.Y > y-4 and Mouse.Y < y2+4 then
- color = 0xFF00FFFF
- subcolor = 0x80000000
- verticalOffset = -36
- info = health .. " HP\n" ..enemyX .. " X\n" ..enemyY .. " Y"
- else
- color = 0xFF00FFFF
- subcolor = 0x80000000
- verticalOffset = -13
- info = health .. " HP"
- end
- if status==0 then
- color=color - 0x80000000
- subcolor=subcolor - 0x40000000
- if HelperKirby[heldAliveBy] ~= nil then
- gui.drawLine(x,y2+1,x2,y2+1,HelperKirby[heldAliveBy][2])
- end
- end
- text(x3-8,y+verticalOffset,info,color,subcolor) -- information
- gui.drawBox(x,y,x2,y2,color) -- hitbox rectangle
- end
- text(176,-2,"enemies: " .. enemyTableSize .. " ." ,0xFFFFFF00,0x80000000)
- counterOffset=counterOffset+12
- end
- end
- if HitboxSettings[3][2] then
- --update other
- if frames%4==0 then
- updateOther(otherTableSize)
- end
- --display
- otherTableSize = table.getn(Other)
- if otherTableSize>0 then
- memory.usememorydomain("IWRAM")
- for s=1,otherTableSize do
- offset = Other[s]
- status = memory.read_u8(offset-0x27)
- status2 = memory.read_u8(offset-0x25)
- otherX = memory.read_u16_le(offset+0x11)
- otherY = memory.read_u16_le(offset+0x15)
- hitboxX = memory.read_s8(offset+0x8)
- hitboxY = memory.read_s8(offset+0x9)
- width = memory.read_s8(offset+0xA)
- height = memory.read_s8(offset+0xB)
- damage = memory.read_s8(offset+0x33)
- x=otherX-cameraX+hitboxX -- screen x
- y=otherY-cameraY+hitboxY -- screen y
- x2=x+width*2
- y2=y+height*2
- if not bit.check(status, 4)
- and (status2 == 0xA0
- or status2 == 0xA2
- or status2 == 0x10) then
- gui.drawBox(x,y,x2,y2,0xFFFF4000)
- text(x,y-13,damage .. " dmg",0xFFFF4000,0x40000000)
- end
- end
- text(176,-2+counterOffset,"attack: " .. otherTableSize .. " ." ,0xFFFF4000,0x80000000)
- end
- end
- end
- local Menu = {
- [1] = { [0] = "Script",
- [1] = 2,
- [2] = 3,
- [3] = 4,
- [4] = 5,
- [5] = 1,
- [6] = 6,
- [7] = 7
- }
- }
- local drawMenu = function()
- verticalOffset=0
- for a=1,table.getn(Menu),1 do
- drawMenuButton(-38+a*45,18,40,11,Menu[a][0],2,false,true,0xFFFFFFFF,function()
- menuscreen=a
- end)
- if menuscreen==a then
- for b=1,table.getn(Menu[a]),1 do
- id = Menu[a][b]
- title = Displays[id][1]
- indicator = Displays[id][2]
- col = Displays[id][3]
- drawMenuButton(7,32+verticalOffset*10,72,10,title,1,true,indicator,col,function()
- Displays[id][2] = not indicator
- end)
- verticalOffset=verticalOffset+1
- end
- end
- end
- if Mouse.clicked and Mouse.clickedFrames==1 then
- menuscreen = 0
- end
- end
- event.onloadstate(function()
- updateEnemies(3,true)
- updateOther(3)
- end)
- updateEnemies(3,true)
- updateOther(3)
- menuscreen=0
- frames=0
- console.clear()
- for i=1,table.getn(ScriptInfo),1 do
- print(ScriptInfo[i])
- end
- while true do
- Mouse.X = input.getmouse().X
- Mouse.Y = input.getmouse().Y
- Mouse.clicked = input.getmouse().Left
- if Displays[7][2] then -- enemies
- drawEnemies()
- end
- for i=1,table.getn(Displays) do -- all displays
- if Displays[i][2] then
- drawDisplay(i)
- end
- end
- memory.usememorydomain("EWRAM")
- text(184,10,"Room:"..memory.read_u16_le(0x020FE6),0xFFFFFFFF,0xFF000000)
- drawMenu() -- menu
- Mouse.XBefore=Mouse.X
- Mouse.YBefore=Mouse.Y
- if Mouse.clicked then Mouse.clickedFrames = Mouse.clickedFrames + 1
- else Mouse.clickedFrames = 0 end
- if client.ispaused() then
- gui.DrawFinish()
- emu.yield()
- else
- emu.frameadvance()
- end
- frames=frames+1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement