Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function text(x, y, text, color, style)
- if style==nil then style="regular" end
- gui.drawText(x, y, text,color,0x00000000,10,"Arial",style)
- end
- function box(x,y,x2,y2)
- gui.drawBox(x,y,x2,y2,0x80707070,0x80404040)
- end
- client.SetGameExtraPadding(0,0,140,0)
- event.onexit(function()
- client.SetGameExtraPadding(0,0,0,0)
- end)
- while true do
- x=100
- y=0
- memory.usememorydomain("Combined WRAM")
- layer2_pointer = memory.read_u32_le(0x004acc)
- layer2_active = memory.read_u8(0x004b6c)
- layer2_timer1 = memory.read_u16_le(0x004b68)
- layer2_timer2 = memory.read_u32_le(0x004b8c)
- speech_characterpointer1 = memory.read_u32_le(0x0146ec)
- speech_characterpointer2 = memory.read_u32_le(0x01438c)
- speech_idk1 = memory.read_u16_le(0x0079f0) -- some kind of timer that is related to wideblock glitch (it determines whether the block can disappear or not)
- speech_idk2 = memory.read_u16_le(0x014579) -- this address is responsible for the Information Store Dialogue Glitch
- box(145+x,40+y,270+x,152+y)
- text(150+x,40+y,"Event Layer 2",0xFFFFFFFF,"underline")
- text(150+x,50+y,"Pointer: " .. string.format("x%X",layer2_pointer),0xFFFFFFFF)
- text(150+x,50+y,"Pointer: " .. string.format("x%X",layer2_pointer),0xFFFFFFFF)
- text(150+x,60+y,"Activity: " .. string.format("x%X",layer2_active),0xFFFFFFFF)
- text(150+x,70+y,"Timer1: " .. layer2_timer1,0xFFFFFFFF)
- text(150+x,80+y,"Timer2: " .. layer2_timer2,0xFFFFFFFF)
- text(150+x,95+y,"Speech Bubble",0xFFFFFFFF,"underline")
- text(150+x,105+y,"Pointer1: " .. string.format("x%X",speech_characterpointer1),0xFFFFFFFF)
- text(150+x,115+y,"Pointer2: " .. string.format("x%X",speech_characterpointer2),0xFFFFFFFF)
- text(150+x,125+y,"Wideblock: " .. speech_idk1,0xFFFFFFFF)
- text(150+x,135+y,"HintGuy: " .. string.format("x%X",speech_idk2),0xFFFFFFFF)
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement