Advertisement
Guest User

MLSS dialogue and wideblock lua

a guest
Jun 28th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.78 KB | None | 0 0
  1. function text(x, y, text, color, style)
  2.     if style==nil then style="regular" end
  3.     gui.drawText(x, y, text,color,0x00000000,10,"Arial",style)
  4. end
  5.  
  6. function box(x,y,x2,y2)
  7.     gui.drawBox(x,y,x2,y2,0x80707070,0x80404040)
  8. end
  9.  
  10. client.SetGameExtraPadding(0,0,140,0)
  11.  
  12. event.onexit(function()
  13. client.SetGameExtraPadding(0,0,0,0)
  14. end)
  15.  
  16. while true do
  17. x=100
  18. y=0
  19. memory.usememorydomain("Combined WRAM")
  20. layer2_pointer = memory.read_u32_le(0x004acc)
  21. layer2_active = memory.read_u8(0x004b6c)
  22. layer2_timer1 = memory.read_u16_le(0x004b68)
  23. layer2_timer2 = memory.read_u32_le(0x004b8c)
  24. speech_characterpointer1 = memory.read_u32_le(0x0146ec)
  25. speech_characterpointer2 = memory.read_u32_le(0x01438c)
  26. 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)
  27. speech_idk2 = memory.read_u16_le(0x014579) -- this address is responsible for the Information Store Dialogue Glitch
  28. box(145+x,40+y,270+x,152+y)
  29. text(150+x,40+y,"Event Layer 2",0xFFFFFFFF,"underline")
  30. text(150+x,50+y,"Pointer: " .. string.format("x%X",layer2_pointer),0xFFFFFFFF)
  31. text(150+x,50+y,"Pointer: " .. string.format("x%X",layer2_pointer),0xFFFFFFFF)
  32. text(150+x,60+y,"Activity: " .. string.format("x%X",layer2_active),0xFFFFFFFF)
  33. text(150+x,70+y,"Timer1: " .. layer2_timer1,0xFFFFFFFF)
  34. text(150+x,80+y,"Timer2: " .. layer2_timer2,0xFFFFFFFF)
  35. text(150+x,95+y,"Speech Bubble",0xFFFFFFFF,"underline")
  36. text(150+x,105+y,"Pointer1: " .. string.format("x%X",speech_characterpointer1),0xFFFFFFFF)
  37. text(150+x,115+y,"Pointer2: " .. string.format("x%X",speech_characterpointer2),0xFFFFFFFF)
  38. text(150+x,125+y,"Wideblock: " .. speech_idk1,0xFFFFFFFF)
  39. text(150+x,135+y,"HintGuy: " .. string.format("x%X",speech_idk2),0xFFFFFFFF)
  40.  
  41.  
  42. emu.frameadvance()
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement