Guest User

trip world lua script vba v24

a guest
Sep 22nd, 2015
104
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local xenemybefore = {0,0,0,0,0,0,0,0}
  2. local xposbefore = 0
  3. local inputtable={}
  4.  
  5. function fn()
  6. if movie.active() then
  7. gui.text(2,16,vba.framecount() .."/".. movie.length() .. "  " .. emu.lagcount(), "#ffffff", "#000000")
  8.  else
  9. gui.text(2,16,"movie not recording", "#ff2222", "#000000") end
  10. end
  11.  
  12. gui.register(fn)
  13.  
  14. local formtable= {
  15. [0] = "fish",
  16. [1] = "fish/attack",
  17. [2] = "fish/damage",
  18. [4] = "fish/splash",
  19. [8] = "fish",
  20. [9] = "fish/attack",
  21. [10] = "fish/damage",
  22.  
  23. [16] = "normal",
  24. [17] = "normal/attack",
  25. [18] = "normal/damage",
  26. [19] = "normal/damage",
  27. [20] = "normal/splash",
  28. [24] = "normal",
  29. [25] = "normal/attack",
  30. [26] = "normal/damage",
  31. [27] = "normal/damage",
  32.  
  33. [32] = "flying",
  34. [34] = "flying/damage",
  35. [35] = "flying/damage",
  36. [36] = "splash",
  37. [40] = "flying",
  38. [42] = "flying/damage",
  39. [43] = "flying/damage",
  40.  
  41. [48] = "transform",
  42.  
  43. [80] = "ball",
  44. [84] = "ball/splash",
  45. [88] = "ball",
  46.  
  47. [96] = "mouse",
  48. [97] = "mouse/attack",
  49. [98] = "mouse/damage",
  50. [99] = "mouse/damage",
  51. [100] = "mouse/splash",
  52. [104] = "mouse",
  53. [105] = "mouse/attack",
  54. [106] = "mouse/damage",
  55. [107] = "mouse/damage",
  56.  
  57. [112] = "flower",
  58. [113] = "flower/attack",
  59. [114] = "flower/damage",
  60. [116] = "flower/splash",
  61. [120] = "flower",
  62. [121] = "flower",
  63. [122] = "flower/damage",
  64.  
  65. [128] = "big",
  66. [132] = "big/splash",
  67. [136] = "big",
  68.  
  69. [144] = "mini",
  70. [145] = "mini/attack",
  71. [146] = "mini/damage",
  72. [148] = "mini/splash",
  73. [152] = "mini",
  74. [153] = "mini/attack",
  75. [154] = "mini/damage",
  76.  
  77. [160] = "goku",
  78. [161] = "goku/attack",
  79. [162] = "goku/damage",
  80. [164] = "goku/splash",
  81. [168] = "goku",
  82. [169] = "goku/attack",
  83. [170] = "goku/damage"
  84. }
  85.  
  86. Color = "#ffffff"
  87. BorderColor = "#00111111"
  88.  
  89. XOFFSET = 0
  90. YOFFSET = 40
  91.  
  92.  
  93. while true do
  94.  
  95. xcam = memory.readbyte(0xff9d)*256 + memory.readbyte(0xff9e)
  96. ycam = memory.readbyte(0xff9f)*256
  97. form = memory.readbyte(0xffad)
  98. paused = memory.readbytesigned(0xc2db)
  99. health = memory.readbytesigned(0xffa0)
  100. ingamecounter = memory.readbyte(0xff99)
  101. xspeed = memory.readbytesigned(0xffa8)
  102. yspeed = memory.readbytesigned(0xffaa)
  103. xpos = memory.readbyteunsigned(0xffa1)*256 + memory.readbyteunsigned(0xffa2)
  104. ypos = memory.readbyteunsigned(0xffa3)*256 + memory.readbyteunsigned(0xffa4)
  105. powerupduration = memory.readbyteunsigned(0xc2c4)*256 + memory.readbyteunsigned(0xc2c5)
  106. bosshealth = memory.readbyteunsigned(0xc102)
  107. bosshealth2 = memory.readbytesigned(0xc122)
  108. bosshealth3 = memory.readbytesigned(0xc142)
  109. bosshealth4 = memory.readbytesigned(0xc162)
  110. bosshealth5 = memory.readbytesigned(0xc182)
  111.  
  112. xyacopudiff = xpos - xposbefore
  113. xposbefore = xpos
  114.  
  115.  
  116.  
  117. -- ENEMIES
  118.  
  119. for i=0,7,1 do
  120. xspeedenemy = memory.readbytesigned(0xc103+i*32)
  121. xenemy = memory.readbyte(0xc106+i*32)*256 + memory.readbyte(0xc105+i*32)
  122. yenemy = memory.readbyte(0xc108+i*32)*256 + memory.readbyte(0xc107+i*32)
  123. xactual = (xenemy-xcam)/16 -8
  124. yactual = (yenemy-ycam)/16 -26
  125.  
  126. xdiff = xenemybefore[i+1] - xenemy
  127. if xdiff < 0 then xdiff=xdiff*-1 end
  128.  
  129. gui.opacity(0.65)
  130. gui.drawbox(xactual-1,yactual-8,xactual+26,yactual+13,"#AA1000")
  131. gui.opacity(0.82)
  132.  
  133. gui.text(xactual,yactual-7, xspeedenemy, Color,BorderColor)
  134. gui.text(xactual,yactual, "D:"..xdiff, Color,BorderColor)
  135. gui.text(xactual,yactual+7, "X:"..xenemy, Color,BorderColor)
  136. --gui.text(xactual,yactual+7, yenemy, Color, BorderColor)
  137.  
  138. xenemybefore[i+1] = xenemy
  139.  
  140. end
  141.  
  142. -- DRAW BOXES
  143.  
  144. gui.opacity(0.75)
  145. gui.drawbox(0+XOFFSET,-2+YOFFSET,160+XOFFSET,14+YOFFSET,"#001175")
  146. gui.opacity(0.9)
  147.  
  148. -- DRAW HEALTH AND FORM
  149. gui.drawbox(0+XOFFSET,0+YOFFSET,7+XOFFSET,6+YOFFSET,"#dd0000",BorderColor)
  150. gui.drawbox(7+XOFFSET,0+YOFFSET,14+XOFFSET,6+YOFFSET,"#dd0000",BorderColor)
  151. gui.drawbox(14+XOFFSET,0+YOFFSET,21+XOFFSET,6+YOFFSET,"#dd0000",BorderColor)
  152. gui.drawbox(21+XOFFSET,0+YOFFSET,28+XOFFSET,6+YOFFSET,"#dd0000",BorderColor)
  153.  
  154. for i=health-1,0,-1 do
  155. gui.drawbox(i*7+XOFFSET,0+YOFFSET,7+i*7+XOFFSET,6+YOFFSET,"#00dd00",BorderColor)
  156. end
  157.  
  158. if formtable[form] then
  159. gui.text(2+XOFFSET,7+YOFFSET,formtable[form], Color, BorderColor) else
  160. gui.text (2+XOFFSET,7+YOFFSET, "???", Color, BorderColor) end
  161.  
  162. -- DRAW STATS
  163.  
  164.     if xyacopudiff > 149 then
  165.     gui.text(40+XOFFSET,0+YOFFSET,"d: "..xyacopudiff,"green",BorderColor)
  166.     else
  167.      gui.text(40+XOFFSET,0+YOFFSET,"d: "..xyacopudiff,Color,BorderColor)
  168.    end
  169.  
  170. gui.text(60+XOFFSET,7+YOFFSET,memory.readbyteunsigned(0xC3C2),Color,BorderColor)
  171.  
  172. gui.text(94+XOFFSET,0+YOFFSET, xspeed, Color,BorderColor)
  173. gui.text(94+XOFFSET,7+YOFFSET, yspeed,Color,BorderColor)
  174. gui.text(112+XOFFSET,0+YOFFSET, xpos,Color,BorderColor)
  175. gui.text(112+XOFFSET,7+YOFFSET, ypos,Color,BorderColor)
  176. gui.text(138+XOFFSET,0+YOFFSET, powerupduration,Color,BorderColor)
  177. gui.text(138+XOFFSET,7+YOFFSET, bosshealth,Color,BorderColor)
  178. gui.text(146+XOFFSET,7+YOFFSET, bosshealth2,Color,BorderColor)
  179. gui.text(154+XOFFSET,7+YOFFSET, bosshealth3,Color,BorderColor)
  180.  
  181. if emu.lagged() then
  182. gui.text(80,16,"************************************************", "#ff2222", "#ff000000") end
  183.  
  184. -- DRAW SPEED PENALTY ON YACOPU
  185.  
  186. xonscreen = (xpos-xcam)/16
  187. yonscreen = (ypos-ycam)/16
  188. penaltytimer = ingamecounter % 16
  189.  
  190. gui.opacity(0.40)
  191. if penaltytimer == 0 and paused==0 then
  192. gui.drawbox(xonscreen-10,yonscreen-12,xonscreen+6,yonscreen-2, "#ff0000" )
  193. end
  194.  
  195. if penaltytimer == 0 and paused==1 then
  196. gui.drawbox(xonscreen-10,yonscreen-12,xonscreen+6,yonscreen-2, "#00ff00" )
  197. end
  198.  
  199. gui.opacity(0.75)
  200. gui.drawbox(xonscreen-7,yonscreen-25,xonscreen+5,yonscreen-16, "#000000" )
  201. gui.opacity(1)
  202. gui.text(xonscreen-4,yonscreen-24, 16-penaltytimer, Color, BorderColor)
  203.  
  204. gui.opacity(1)
  205.  
  206.  
  207. vba.frameadvance()
  208. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×