; _-names
#set privNs "com.company.assembleegameclient.game:_-Nn#0"
#set notif "_-1EV" ; search Player class for "level up!". Is the name of the function that acts on that string.
#set mouseUp "_-8w" ; mouseup maybe? right after mousedown trait slot
#set notifFolder "_-9q" ; name of the folder, grep "Player.LevelUp"
#set notifFile "_-1D2" ; name of the file, grep "Player.LevelUp"
#set levelUp "_-0Ej" ; grep "Player.LevelUp"
#set charUnlock "_-0nL" ; grep "Player.NewClassUnlocked"
; code
getlocal0
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "map")
getproperty QName(PackageNamespace(""), "player_")
getlocal0
getproperty QName(PrivateNamespace("*", $"privNs"), $"mouseUp")
iffalse AA_OFF
getlex QName(PackageNamespace($"notifFolder"), $"notifFile")
getproperty QName(PackageNamespace(""), $"levelUp")
jump AA_CONT
AA_OFF:
getlex QName(PackageNamespace($"notifFolder"), $"notifFile")
getproperty QName(PackageNamespace(""), $"charUnlock")
AA_CONT:
callpropvoid QName(PackageNamespace(""), $"notif"), 1
#set privNs "com.company.assembleegameclient.game:_-Nn#0"
#set mouseUp "_-8w" ; mouseup maybe? right after mousedown trait slot
#set spiral "_-e-"
#set textObjPackage "_-0eX"
#set textObjClass "_-ew"
#set stringCrPkg "_-0yQ"
#set stringCrClass "_-0aZ"
;call spiral-effect
getlocal0
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "map")
getproperty QName(PackageNamespace(""), "player_")
callpropvoid QName(PackageNamespace(""), $"spiral"), 0
;get mapOverlay to call addStatusText on at the end
getlocal0
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "map")
getproperty QName(PackageNamespace(""), "mapOverlay_")
;create text object
findpropstrict QName(PackageNamespace($"textObjPackage"), $"textObjClass") ;arg0
getlocal0
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "map")
getproperty QName(PackageNamespace(""), "player_") ;arg1
pushint 65280 ;arg2
pushshort 2000 ;arg3
constructprop QName(PackageNamespace($"textObjPackage"), $"textObjClass"), 3 ;call
coerce QName(PackageNamespace($"textObjPackage"), $"textObjClass") ;convert
dup ;store it as addStatusText arg1
;create string
findpropstrict QName(PackageNamespace($"stringCrPkg"), $"stringCrClass")
;choose the string
getlocal0
getproperty QName(PrivateNamespace("*", $"privNs"), $"mouseUp")
iffalse AA_OFF
pushstring "Auto-Aim: On"
jump AA_CONT
AA_OFF:
pushstring "Auto-Aim: Off"
AA_CONT:
constructprop QName(PackageNamespace($"stringCrPkg"), $"stringCrClass"), 1
;change the string in the text object
callpropvoid QName(PackageNamespace(""), "setStringBuilder"), 1
;draw the text to the screen (arg0=mapOverlay objectRef, arg1=text objectRef)
callpropvoid QName(PackageNamespace(""), "addStatusText"), 1