Banana_Nation

8.0.0_jNoobAutoAim.txt

Dec 20th, 2012
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.07 KB | None | 0 0
  1. ;----------------------------------
  2. ;AIMBOT
  3. ;----------------------------------
  4. ; NAMES TO UPDATE
  5. ;
  6. #set fullfunctionname "com.company.assembleegameclient.objects:Player/aim_" ; the full function name
  7. #set functionname "aim_" ; the function name
  8. #set mouseClass "com.company.assembleegameclient.game:_-fy#0" ; Found at the end of the onmousedown procedure : initproperty QName(PrivateNamespace("*", "com.company.assembleegameclient.game:_-0M4#0"), "_-0E")
  9. #set mouseClicked "_-o2" ; Found at the end of the onmousedown procedure : initproperty QName(PrivateNamespace("*", "com.company.assembleegameclient.game:_-0M4#0"), "_-0E")
  10. #set playerNamespace "_-0Di" ; Namespace of the Player class
  11. #set characterNamespace "_-dH" ; Namespace of the Character class
  12. #set gameobjectNamespace "_-0TD" ; Namespace of the GameObject class
  13. #set basicobjectNamespace "_-0sV" ; Namespace of the BasicObject class
  14. #set projectileNamespace "_-Ky" ; Namespace of the Projectile class
  15. #set Aimbot_charMaxHealth "_-Iu" ; Found in com/company/assembleegameclient/objects/GameObject.class.asasm [trait slot QName(PackageNamespace(""), "_-Name") type QName(PackageNamespace(""), "int") value Integer(200) end]
  16. #set ObjLibDictionary "_-nO" ; Found in ObjectLibraray class, this is the slot 4 : trait const QName(PackageNamespace(""), "_-") slotid 4 type QName(PackageNamespace("flash.utils"), "Dictionary") end
  17. #set gameobjVector "_-Df" ;If wrong replace for _-0tg Found in GameObject class, this is the SECOND vector: trait slot QName(PackageNamespace(""), "") type TypeName(QName(PackageNamespace("__AS3__.vec"), "Vector")<QName(PackageNamespace(""), "int")>) value Null() end
  18. #set ObjPropertiesDictionary "_-0Jr" ; Found in ObjProperties class : trait slot QName(PackageNamespace(""), "") type QName(PackageNamespace("flash.utils"), "Dictionary") end
  19. #set FunctionIsInvincible "_-PK"
  20. #set FunctionsIsStasis "_-03j"
  21. #set FunctionsIsInvulnerable "_-0q6"
  22.  
  23. trait method QName(PackageNamespace(""), $"functionname" );
  24. method
  25. refid $"fullfunctionname"
  26. param QName(PackageNamespace(""), "Number")
  27. returns QName(PackageNamespace(""), "void")
  28. body
  29. maxstack 16
  30. localcount 16
  31. initscopedepth 16
  32. maxscopedepth 18
  33. code
  34. getlocal0
  35. pushscope
  36.  
  37. ;aimingAngle = arg1 + Parameters.data_.cameraAngle;
  38. getlocal1
  39. getlex QName(PackageNamespace("com.company.assembleegameclient.parameters"), "Parameters")
  40. getproperty QName(PackageNamespace(""), "data_")
  41. getproperty Multiname("cameraAngle", [PrivateNamespace("*", "com.company.assembleegameclient.objects:Player#0"), PackageNamespace(""), PrivateNamespace("*", "com.company.assembleegameclient.objects:Player#1"), PackageNamespace("com.company.assembleegameclient.objects"), PackageInternalNs("com.company.assembleegameclient.objects"), Namespace("http://adobe.com/AS3/2006/builtin"), ProtectedNamespace($"playerNamespace"), StaticProtectedNs($"playerNamespace"), StaticProtectedNs($"characterNamespace"), StaticProtectedNs($"gameobjectNamespace"), StaticProtectedNs($"basicobjectNamespace")])
  42. add
  43. setlocal 7
  44.  
  45. ;if (Left_Clicking) don't alter aimingAngle
  46. getlex QName(PackageNamespace(""), "map_")
  47. getproperty QName(PackageNamespace(""), "gs_")
  48. getproperty QName(PackageNamespace(""), "mui_")
  49. getproperty QName(PrivateNamespace("*", $"mouseClass"), $"mouseClicked")
  50. iftrue SHOOT
  51.  
  52. ;Get game object
  53. pushnull
  54. coerce QName(PackageNamespace("com.company.assembleegameclient.objects"), "GameObject")
  55. setlocal 4
  56.  
  57. ;initialize current target distance to -1
  58. pushbyte 255
  59. setlocal 8
  60.  
  61. ;initialize considered target distance to 0
  62. pushbyte 0
  63. setlocal 9
  64.  
  65. ;set local register 11 to any type (used for speed and lifetime of player's projectile)
  66. pushnull
  67. coerce_a
  68. setlocal 11
  69.  
  70. ;current target max health
  71. pushbyte 0
  72. setlocal 12
  73.  
  74. ;considered target max health
  75. pushbyte 0
  76. setlocal 13
  77.  
  78. ;used for hasnext2 instruction
  79. pushbyte 0
  80. setlocal 5
  81.  
  82. ;get the list of every object in game? jump to start going through list
  83. getlex QName(PackageNamespace(""), "map_")
  84. getproperty QName(PackageNamespace(""), "goDict_")
  85. coerce_a
  86. setlocal 6
  87.  
  88. jump NEXTOBJ
  89.  
  90. L34:
  91. label
  92. getlocal 6
  93. getlocal 5
  94. nextvalue
  95. coerce QName(PackageNamespace("com.company.assembleegameclient.objects"), "GameObject")
  96. dup
  97. setlocal 4
  98.  
  99. ;make sure object is a character and not something like a wall
  100. getlex QName(PackageNamespace("com.company.assembleegameclient.objects"), "Character")
  101. istypelate
  102. iffalse NEXTOBJ
  103.  
  104.  
  105. ;make sure object is an enemy
  106. getlocal 4
  107. getproperty QName(PackageNamespace(""), "props_")
  108. getproperty QName(PackageNamespace(""), "isEnemy_")
  109. iffalse NEXTOBJ
  110.  
  111. getlocal 4
  112. callproperty QName(PackageNamespace(""), $"FunctionIsInvincible"), 0 ;Check if target is INVINCIBLE
  113. iftrue NEXTOBJ
  114.  
  115. getlocal 4
  116. callproperty QName(PackageNamespace(""), $"FunctionsIsStasis"), 0 ;Check if target is in STASIS
  117. iftrue NEXTOBJ
  118.  
  119. getlocal 4
  120. callproperty QName(PackageNamespace(""), $"FunctionsIsInvulnerable"), 0 ;Check if target is INVULNERABLE
  121. iftrue NEXTOBJ
  122.  
  123. ;calculate distance enemy is from player
  124. getlex QName(PackageNamespace(""), "Math")
  125. getlocal 4
  126. getproperty QName(PackageNamespace(""), "y_")
  127. getlex QName(PackageNamespace(""), "y_")
  128. subtract
  129. dup
  130. multiply
  131. getlocal 4
  132. getproperty QName(PackageNamespace(""), "x_")
  133. getlex QName(PackageNamespace(""), "x_")
  134. subtract
  135. dup
  136. multiply
  137. add
  138. callproperty QName(PackageNamespace(""), "sqrt"), 1
  139. dup
  140. setlocal 9
  141.  
  142.  
  143. ;load up equiped weapon info ???
  144. getlex QName(PackageNamespace("com.company.assembleegameclient.objects"), "ObjectLibrary")
  145. getproperty QName(PackageNamespace(""), $"ObjLibDictionary")
  146. getlex QName(PackageNamespace(""), $"gameobjVector")
  147. pushbyte 0
  148.  
  149. getproperty MultinameL([PrivateNamespace("*", "com.company.assembleegameclient.objects:Projectile#0"), PrivateNamespace("*", "com.company.assembleegameclient.objects:Projectile#1"), PackageNamespace(""), PackageNamespace("com.company.assembleegameclient.objects"), PackageInternalNs("com.company.assembleegameclient.objects"), Namespace("http://adobe.com/AS3/2006/builtin"), ProtectedNamespace($"projectileNamespace"), StaticProtectedNs($"projectileNamespace"), StaticProtectedNs($"basicobjectNamespace")])
  150. convert_i
  151.  
  152. getproperty MultinameL([PrivateNamespace("*", "com.company.assembleegameclient.objects:Projectile#0"), PrivateNamespace("*", "com.company.assembleegameclient.objects:Projectile#1"), PackageNamespace(""), PackageNamespace("com.company.assembleegameclient.objects"), PackageInternalNs("com.company.assembleegameclient.objects"), Namespace("http://adobe.com/AS3/2006/builtin"), ProtectedNamespace($"projectileNamespace"), StaticProtectedNs($"projectileNamespace"), StaticProtectedNs($"basicobjectNamespace")])
  153. getproperty QName(PackageNamespace(""), $"ObjPropertiesDictionary")
  154.  
  155. pushbyte 0
  156. getproperty MultinameL([PrivateNamespace("*", "com.company.assembleegameclient.objects:Projectile#0"), PrivateNamespace("*", "com.company.assembleegameclient.objects:Projectile#1"), PackageNamespace(""), PackageNamespace("com.company.assembleegameclient.objects"), PackageInternalNs("com.company.assembleegameclient.objects"), Namespace("http://adobe.com/AS3/2006/builtin"), ProtectedNamespace($"projectileNamespace"), StaticProtectedNs($"projectileNamespace"), StaticProtectedNs($"basicobjectNamespace")])
  157.  
  158.  
  159. dup
  160. setlocal 11
  161.  
  162. ;calculate if considered target is in range using weapon projectile speed and lifetime
  163. getproperty QName(PackageNamespace(""), "speed_")
  164. pushshort 10000
  165. divide
  166. getlocal 11
  167. getproperty QName(PackageNamespace(""), "lifetime_")
  168. multiply
  169. pushbyte 1
  170. add
  171. ifgt NEXTOBJ
  172.  
  173.  
  174. ; DO NOT SHOOT MINIONS
  175. getlocal 4
  176. getproperty QName(PackageNamespace(""), "props_")
  177. getproperty QName(PackageNamespace(""), "id_")
  178. setlocal 15
  179.  
  180. getlocal 15
  181. pushstring "Steel Bot"
  182. ifeq NEXTOBJ
  183.  
  184. getlocal 15
  185. pushstring "Rock Bot"
  186. ifeq NEXTOBJ
  187.  
  188. getlocal 15
  189. pushstring "Paper Bot"
  190. ifeq NEXTOBJ
  191.  
  192. getlocal 15
  193. pushstring "Shield Orc Shield"
  194. ifeq NEXTOBJ
  195.  
  196. getlocal 15
  197. pushstring "Shield Orc Key"
  198. ifeq NEXTOBJ
  199.  
  200. getlocal 15
  201. pushstring "Shield Orc Flooder"
  202. ifeq NEXTOBJ
  203.  
  204. getlocal 15
  205. pushstring "Blue Flaming Skull"
  206. ifeq NEXTOBJ
  207.  
  208. getlocal 15
  209. pushstring "Red Flaming Skull"
  210. ifeq NEXTOBJ
  211.  
  212. getlocal 15
  213. pushstring "Pentaract Eye"
  214. ifeq NEXTOBJ
  215.  
  216. getlocal 15
  217. pushstring "Beach Spectre"
  218. ifeq NEXTOBJ
  219.  
  220. getlocal 15
  221. pushstring "Cube Overseer"
  222. ifeq NEXTOBJ
  223.  
  224. getlocal 15
  225. pushstring "Mysterious Crystal"
  226. ifeq NEXTOBJ
  227.  
  228. getlocal 15
  229. pushstring "Crystal Prisoner Steed"
  230. ifeq NEXTOBJ
  231.  
  232. getlocal 15
  233. pushstring "Stheno Swarm"
  234. ifeq NEXTOBJ
  235.  
  236. getlocal 15
  237. pushstring "Stheno Pet"
  238. ifeq NEXTOBJ
  239.  
  240. getlocal 15
  241. pushstring "Cube Defender"
  242. ifeq NEXTOBJ
  243.  
  244. getlocal 15
  245. pushstring "Cube Blaster"
  246. ifeq NEXTOBJ
  247.  
  248. getlocal 15
  249. pushstring "Haunted Armor"
  250. ifeq NEXTOBJ
  251.  
  252.  
  253. ;get considered target max health
  254. getlocal 4
  255. getproperty QName(PackageNamespace(""), $"Aimbot_charMaxHealth")
  256. dup
  257. setlocal 13
  258.  
  259. getlocal 12
  260. ifeq L103
  261.  
  262. getlocal 13
  263. getlocal 12
  264. iflt NEXTOBJ
  265.  
  266. jump L107
  267.  
  268. L103:
  269. getlocal 9
  270. getlocal 8
  271. iflt L107
  272.  
  273. jump NEXTOBJ
  274.  
  275. L107:
  276. getlocal 13
  277. setlocal 12
  278.  
  279. getlocal 9
  280. setlocal 8
  281.  
  282. getlex QName(PackageNamespace(""), "Math")
  283. getlocal 4
  284. getproperty QName(PackageNamespace(""), "y_")
  285. getlex QName(PackageNamespace(""), "y_")
  286. subtract
  287. getlocal 4
  288. getproperty QName(PackageNamespace(""), "x_")
  289. getlex QName(PackageNamespace(""), "x_")
  290. subtract
  291. callproperty QName(PackageNamespace(""), "atan2"), 2
  292. setlocal 7
  293.  
  294. jump NEXTOBJ
  295.  
  296. NEXTOBJ:
  297. hasnext2 6, 5
  298. iftrue L34
  299.  
  300. kill 6
  301. kill 5
  302. getlocal 12
  303. pushbyte 0
  304. ifeq END
  305.  
  306. SHOOT:
  307. getlocal0
  308. getlocal 7
  309. callpropvoid QName(PrivateNamespace("*", "com.company.assembleegameclient.objects:Player#0"), "shoot"), 1
  310.  
  311. END:
  312. returnvoid
  313. end ; code
  314. end ; body
  315. end ; method
  316. end ; trait
Advertisement
Add Comment
Please, Sign In to add comment