View difference between Paste ID: Ukyhqypr and f3i6Arfm
SHOW: | | - or go back to the newest paste.
1
while true do
2
 
3
    for i = 0xAD00, 0xAEFF, 32 do
4
        if memory.readword(i+0) ~= 0 then
5
            local xpos = memory.readwordsigned(i)
6
            local ypos = memory.readwordsigned(i+3)
7
            local typeid = memory.readbytesigned(i+5)
8
            local screeny = memory.readbyteunsigned(i+9)
9
            local screenx = memory.readbyteunsigned(i+10)
10
            local type = ""
11
            local color = ""
12
13
if typeid == 0 then type = "killed"
14
elseif typeid == 1 then type = "koopa"
15
elseif typeid == 2 then type = "shell"                     --stillstanding
16
elseif typeid == 3 then type = "shell"                     --moving
17
elseif typeid == 4 then type = "shell"                     --held
18
elseif typeid == 5 then type = "fish"                       --horizontal moving
19
elseif typeid == 6 then type = "shark"
20
elseif typeid == 7 then type = "piranha plant / fish"      --ceiling plant, fish
21
elseif typeid == 8 then type = "goomba"                         --paragoomba
22
elseif typeid == 9 then type = "goomba"
23
elseif typeid == 10 then type = "squashed"
24
elseif typeid == 11 then type = "blow fish"
25
elseif typeid == 12 then type = "piranha plant"
26
elseif typeid == 13 then type = "piranha plant"                 --fireball spitting
27
elseif typeid == 14 then type = "fireball"                            --spit from plant
28
elseif typeid == 15 then type = "octopus"                           --mini, from boss
29
elseif typeid == 16 then type = "item gotten"   
30
elseif typeid == 17 then type = "mushroom"                       --boxed, further down are unboxed?
31
elseif typeid == 18 then type = "fireflower"
32
elseif typeid == 19 then type = "carrot"
33
elseif typeid == 20 then type = "starman"
34
elseif typeid == 21 then type = "heart"
35
elseif typeid == 22 then type = "goal bell"
36
elseif typeid == 23 then type = "checkpoint"                        -- checkpoint bell
37
elseif typeid == 24 then type = "bubble"
38
elseif typeid == 25 then type = "money bag"
39
elseif typeid == 26 then type = "starman"                            --descending after 100 kills
40
elseif typeid == 27 then type = "starman"
41
elseif typeid == 28 then type = "fireflower"
42
elseif typeid == 29 then type = "carrot"
43
elseif typeid == 30 then type = "starman"
44
elseif typeid == 31 then type = "frog"
45
elseif typeid == 32 then type = "goomba / mole"                 --(underwater goomba)
46
elseif typeid == 33 then type = "ceiling spear / spiny"
47
elseif typeid == 34 then type = "ant / dragonfly"
48
elseif typeid == 35 then type = "ant"                                    -- boulder throwing ant
49
elseif typeid == 36 then type = "rock"                                  -- thrown by ant
50
elseif typeid == 37 then type = "ant"                                    -- bullet shooting
51
elseif typeid == 38 then type = "bullet"                              
52
elseif typeid == 39 then type = "ant"                                    --spiky
53
elseif typeid == 40 then type = "???"
54
elseif typeid == 41 then type = "???"
55
elseif typeid == 42 then type = "???"
56
elseif typeid == 43 then type = "platform"                           --left right
57
elseif typeid == 44 then type = "platform"                           -- diagonal
58
elseif typeid == 45 then type = "???"
59
elseif typeid == 46 then type = "platform"                           -- falling
60
elseif typeid == 47 then type = "???"
61
elseif typeid == 48 then type = "platform"                            -- moving in circle
62
elseif typeid == 49 then type = "???"
63
elseif typeid == 50 then type = "???"
64
elseif typeid == 51 then type = "beetle"                                 -- hercules beetle
65
elseif typeid == 52 then type = "beetle"                                 -- fly-away
66
elseif typeid == 53 then type = "bee / witch trap"                 -- (witch trapped boxed)
67
elseif typeid == 54 then type = "witch trap"
68
elseif typeid == 55 then type = "owl"
69
elseif typeid == 56 then type = "cloud"                                  -- platform
70
elseif typeid == 57 then type = "swallow"
71
elseif typeid == 58 then type = "goomba"                             -- up down para goomba
72
elseif typeid == 61 then type = "fish / owl"                            -- horizontal fish, flying owl
73
elseif typeid == 62 then type = "gear wheel / bee"               --gear wheel, skull bee
74
elseif typeid == 63 then type = "gear wheel / bee"              -- wheel descend, skull bee remains
75
elseif typeid == 64 then type = "screw / bee"                        -- (bee squeeze)
76
elseif typeid == 65 then type = "saw / caterpillar"                -- horizontal small saw
77
elseif typeid == 66 then type = "snail / spike squeezer" 
78
elseif typeid == 67 then type = "spiked ball / egg"                 -- (ball moving in a circle)
79
elseif typeid == 68 then type = "rubber ball / bomb bug"     
80
elseif typeid == 69 then type = "bear / bomb"                        -- (angry teddy bear)
81
elseif typeid == 71 then type = "black box"
82
elseif typeid == 72 then type = "robot" 
83
elseif typeid == 73 then type = "grabber" 
84
elseif typeid == 74 then type = "saw"                                      -- circular ceiling (mario zone4)
85
elseif typeid == 75 then type = "saw"                                      -- horizontal big
86
elseif typeid == 76 then type = "saw"                                      -- circular ground (mario zone4)
87
elseif typeid == 77 then type = "boo / pig"  
88
elseif typeid == 78 then type = "falling spike / ball"              -- ball from a pig
89
elseif typeid == 79 then type = "spike ball"                            -- up and down
90
elseif typeid == 80 then type = "saw"                                      -- vertical small
91
elseif typeid == 81 then type = "vampire / clown trap"         -- vampire,trap boxed
92
elseif typeid == 82 then type = "bat / clown trap"
93
elseif typeid == 83 then type = "zombie goomba / bullet bill"
94
elseif typeid == 84 then type = "one-eyed guy"
95
elseif typeid == 85 then type = "flame / skull fish"
96
elseif typeid == 86 then type = "umbrella / gordo"
97
elseif typeid == 87 then type = "ghost"                                   -- ghost goomba
98
elseif typeid == 88 then type = "cow fish / alien"
99
elseif typeid == 90 then type = "broom / space ship"
100
elseif typeid == 91 then type = "bird fish"
101
elseif typeid == 92 then type = "headless fish / spike bubble"
102
elseif typeid == 94 then type = "fish / star"                            -- horizontal moving, star vertical
103
elseif typeid == 95 then type = "fish / star"                            -- vertical moving, star horizontal
104
elseif typeid == 96 then type = "platform"                              -- ... made out of bones
105
elseif typeid == 97 then type = "platform"                              -- ''
106
elseif typeid == 98 then type = "wario fist"
107
elseif typeid == 100 then type = "wario ball"                          -- normal
108
elseif typeid == 101 then type = "wario ball"                          -- damaged
109
elseif typeid == 103 then type = "skull block"
110
elseif typeid == 104 then type = "huge fireball"
111
elseif typeid == 105 then type = "fireball"
112
elseif typeid == 106 then type = "fireball"
113
elseif typeid == 107 then type = "heli platform"
114
elseif typeid == 110 then type = "huge ball"
115
elseif typeid == 111 then type = "small ball"                          -- spike balls in warios castle
116
elseif typeid == 246 then type = "boss"
117
else type = "???" end
118
119
120
if typeid == 0 then color = "#000099"                     -- dark blue, killed enemy
121
elseif  typeid < 10  then color = "#990000"        --dark red, enemies general
122
elseif typeid == 10 then color = "#000099"                     -- dark blue, killed enemy
123
elseif  typeid < 16  then color = "#990000"        --dark red, enemies general
124
elseif typeid < 30  then color = "#336633"        --dark green, items
125
elseif typeid < 42 then color = "#990000"        --dark red, enemies general
126
elseif typeid < 50 then color = "#868A08"        --dark yellow, platforms
127
elseif typeid < 55 then color = "#990000"        --dark red, enemies general
128
elseif typeid == 55 then color = "#868A08"        --dark yellow, platforms
129
elseif typeid == 56 then color = "#868A08"        --dark yellow, platforms
130
elseif typeid < 68 then color = "#990000"        --dark red, enemies general
131
elseif typeid == 68 then color = "#990000"        --dark red, enemies general     (todo special case)
132
elseif typeid == 69 then color = "#990000"        --dark red, enemies general 
133
elseif typeid == 71 then color = "#868A08"        --dark yellow, platforms
134
elseif typeid == 72 then color = "#990000"        --dark red, enemies general 
135
elseif typeid == 73 then color = "#868A08"        --dark yellow, platforms
136
elseif  typeid < 96 then color = "#990000"        --dark red, enemies general
137
elseif typeid == 96 then color = "#868A08"        --dark yellow, platforms
138
elseif typeid == 97 then color = "#868A08"        --dark yellow, platforms
139
elseif typeid < 103 then color = "#990000"        --dark red, enemies general
140
elseif typeid == 103 then color = "#868A08"        --dark yellow, platforms
141
elseif typeid < 107 then color = "#990000"        --dark red, enemies general
142
elseif typeid == 107 then color = "#868A08"        --dark yellow, platforms
143
elseif typeid < 115  then color = "#990000"        --dark red, enemies general
144
elseif typeid == 246  then color = "#990000"        --dark red, enemies general
145
else color ="ffffff" end
146
147
if screenx == 0 then w = 1000
148
elseif screenx  > 142 then w = 142
149
elseif screenx < 19 then w = 19
150
else w = screenx end
151
152
if screeny > 141 then s = 141
153
elseif screeny < 22 then s = 22 
154
else s = screeny end
155
156
gui.opacity(0.6)
157
gui.drawbox(w-18,s-22,w+15,s-7,color)
158
gui.opacity(0.88)
159
gui.text(w-16,s-21,type)
160
gui.text(w-16,s-14, "ID:" ..typeid)
161
 
162
        end
163
end
164
165
if memory.readword(0xAD00) ~= 0 then sprite1 = 1 else sprite1 = 0 end
166
if memory.readword(0xAD20) ~= 0 then sprite2 = 1 else sprite2 = 0 end
167
if memory.readword(0xAD40) ~= 0 then sprite3 = 1 else sprite3 = 0 end
168
if memory.readword(0xAD60) ~= 0 then sprite4 = 1 else sprite4 = 0 end
169
if memory.readword(0xAD80) ~= 0 then sprite5 = 1 else sprite5 = 0 end
170
if memory.readword(0xADA0) ~= 0 then sprite6 = 1 else sprite6 = 0 end
171
if memory.readword(0xADC0) ~= 0 then sprite7 = 1 else sprite7 = 0 end
172
if memory.readword(0xADE0) ~= 0 then sprite8 = 1 else sprite8 = 0 end
173
if memory.readword(0xAE00) ~= 0 then sprite9 = 1 else sprite9 = 0 end
174
if memory.readword(0xAE20) ~= 0 then sprite10 = 1 else sprite10 = 0 end
175
if memory.readword(0xAE40) ~= 0 then sprite11 = 1 else sprite11 = 0 end
176
if memory.readword(0xAE60) ~= 0 then sprite12 = 1 else sprite12 = 0 end
177
if memory.readword(0xAE80) ~= 0 then sprite13 = 1 else sprite13 = 0 end
178
if memory.readword(0xAEA0) ~= 0 then sprite14 = 1 else sprite14 = 0 end
179
if memory.readword(0xAEC0) ~= 0 then sprite15 = 1 else sprite15 = 0 end
180
if memory.readword(0xAEE0) ~= 0 then sprite16 = 1 else sprite16 = 0 end
181
local spritecount = 0 + sprite1 + sprite2 + sprite3 + sprite4 + sprite5 +sprite6 + sprite7 + sprite8+sprite9+sprite10+sprite11+sprite12+sprite13+sprite14+sprite15+sprite16
182
gui.drawbox(147,0,160,7,"black","black")
183-
 gui.text(155,0, spritecount)
183+
 gui.text(151,0, spritecount)
184
185
vba.frameadvance()
186
end