since I bet anyone cannot achieve anymore ACCURACY, SHARPSHOOTER thanks to castle and other stuff,
I was wonder, how hard is to code the autoaim, to keep on firing when not targetting (keeping the last direction used) ?
Bellow the full code publicly known a bit shortened (just kept thesteel golem)
Here are my 2 ideads to have it working, but Maybe I am wrong, maybe this could be done a lot easier :
in the bellow code : is removing the "ifeq END" be ok ?
=> Does work
Code:
NEXTOBJ:
hasnext2 6, 5
iftrue L34
kill 6
kill 5
getlocal 12
pushbyte 0
ifeq END <------------------
SHOOT:
getlocal0
getlocal 7
callpropvoid QName(PrivateNamespace("*", "com.company.assembleegameclient.objects:Player#0"), "shoot"), 1
END:
code
Original Main code (Shortenned)
Code:
;----------------------------------
;AIMBOT
;----------------------------------
; NAMES TO UPDATE
;
#set fullfunctionname "com.company.assembleegameclient.objects:Player/aim_" ; the full function name
#set functionname "aim_" ; the function name
#set mouseClass "com.company.assembleegameclient.game:_-0n1#0" ; Found at the end of the onmousedown procedure : initproperty QName(PrivateNamespace("*", "com.company.assembleegameclient.game:_-0M4#0"), "_-0E")
#set mouseClicked "_-Oc" ; Found at the end of the onmousedown procedure : initproperty QName(PrivateNamespace("*", "com.company.assembleegameclient.game:_-0M4#0"), "_-0E")
#set playerNamespace "_-Cu" ; Namespace of the Player class
#set characterNamespace "_-0wU" ; Namespace of the Character class
#set gameobjectNamespace "_-67" ; Namespace of the GameObject class
#set basicobjectNamespace "_-RO" ; Namespace of the BasicObject class
#set projectileNamespace "_-093" ; Namespace of the Projectile class
#set Aimbot_charMaxHealth "_-0Ix" ; Found in com/company/assembleegameclient/objects/GameObject.class.asasm [trait slot QName(PackageNamespace(""), "_-Name") type QName(PackageNamespace(""), "int") value Integer(200) end]
#set ObjLibDictionary "_-0mX" ; Found in ObjectLibraray class, this is the slot 7 : trait const QName(PackageNamespace(""), "_-") slotid 4 type QName(PackageNamespace("flash.utils"), "Dictionary") end
#set gameobjVector "_-1Qj" ;If wrong replace for _-NC 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
#set ObjPropertiesDictionary "_-0JZ" ; Found in ObjProperties class : trait slot QName(PackageNamespace(""), "") type QName(PackageNamespace("flash.utils"), "Dictionary") end
#set FunctionIsInvincible "_-0ks"
#set FunctionsIsStasis "_-1Xp"
trait method QName(PackageNamespace(""), $"functionname");
method
refid $"fullfunctionname"
param QName(PackageNamespace(""), "Number")
returns QName(PackageNamespace(""), "void")
body
maxstack 16
localcount 16
initscopedepth 16
maxscopedepth 18
code
getlocal0
pushscope
getlocal1
getlex QName(PackageNamespace("com.company.assembleegameclient.parameters"), "Parameters")
getproperty QName(PackageNamespace(""), "data_")
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")])
add
setlocal 7
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "mui_")
getproperty QName(PrivateNamespace("*", $"mouseClass"), $"mouseClicked")
iftrue SHOOT
pushnull
coerce QName(PackageNamespace("com.company.assembleegameclient.objects"), "GameObject")
setlocal 4
pushbyte 255
setlocal 8
pushbyte 0
setlocal 9
pushnull
coerce_a
setlocal 11
pushbyte 0
setlocal 12
pushbyte 0
setlocal 13
pushbyte 0
setlocal 5
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "goDict_")
coerce_a
setlocal 6
jump NEXTOBJ
L34:
label
getlocal 6
getlocal 5
nextvalue
coerce QName(PackageNamespace("com.company.assembleegameclient.objects"), "GameObject")
dup
setlocal 4
getlex QName(PackageNamespace("com.company.assembleegameclient.objects"), "Character")
istypelate
iffalse NEXTOBJ
getlocal 4
getproperty QName(PackageNamespace(""), "props_")
getproperty QName(PackageNamespace(""), "isEnemy_")
iffalse NEXTOBJ
getlocal 4
callproperty QName(PackageNamespace(""), $"FunctionIsInvincible"), 0
iftrue NEXTOBJ
getlocal 4
callproperty QName(PackageNamespace(""), $"FunctionsIsStasis"), 0
iftrue NEXTOBJ
getlex QName(PackageNamespace(""), "Math")
getlocal 4
getproperty QName(PackageNamespace(""), "y_")
getlex QName(PackageNamespace(""), "y_")
subtract
dup
multiply
getlocal 4
getproperty QName(PackageNamespace(""), "x_")
getlex QName(PackageNamespace(""), "x_")
subtract
dup
multiply
add
callproperty QName(PackageNamespace(""), "sqrt"), 1
dup
setlocal 9
getlex QName(PackageNamespace("com.company.assembleegameclient.objects"), "ObjectLibrary")
getproperty QName(PackageNamespace(""), $"ObjLibDictionary")
getlex QName(PackageNamespace(""), $"gameobjVector")
pushbyte 0
getproperty MultinameL([PrivateNamespace("*", "com.company.as..... StaticProtectedNs($"basicobjectNamespace")])
convert_i
getproperty MultinameL([PrivateNamespace("*", "com.company.a........ ($"basicobjectNamespace")])
getproperty QName(PackageNamespace(""), $"ObjPropertiesDictionary")
pushbyte 0
getproperty MultinameL([PrivateNamespace("*", "com.company..... taticProtectedNs($"basicobjectNamespace")])
dup
setlocal 11
getproperty QName(PackageNamespace(""), "speed_")
pushshort 10000
divide
getlocal 11
getproperty QName(PackageNamespace(""), "lifetime_")
multiply
pushbyte 1
add
ifgt NEXTOBJ
getlocal 4
getproperty QName(PackageNamespace(""), "props_")
getproperty QName(PackageNamespace(""), "id_")
setlocal 15
getlocal 15
pushstring "Steel Bot"
ifeq NEXTOBJ
getlocal 4
getproperty QName(PackageNamespace(""), $"Aimbot_charMaxHealth")
dup
setlocal 13
getlocal 12
ifeq L103
getlocal 13
getlocal 12
iflt NEXTOBJ
jump L107
L103:
getlocal 9
getlocal 8
iflt L107
jump NEXTOBJ
L107:
getlocal 13
setlocal 12
getlocal 9
setlocal 8
getlex QName(PackageNamespace(""), "Math")
getlocal 4
getproperty QName(PackageNamespace(""), "y_")
getlex QName(PackageNamespace(""), "y_")
subtract
getlocal 4
getproperty QName(PackageNamespace(""), "x_")
getlex QName(PackageNamespace(""), "x_")
subtract
callproperty QName(PackageNamespace(""), "atan2"), 2
setlocal 7
jump NEXTOBJ
NEXTOBJ:
hasnext2 6, 5
iftrue L34
kill 6
kill 5
getlocal 12
pushbyte 0
ifeq END
SHOOT:
getlocal0
getlocal 7
callpropvoid QName(PrivateNamespace("*", "com.company.assembleegameclient.objects:Player#0"), "shoot"), 1
END:
returnvoid
end ; code
end ; body
end ; method
end ; trait