[AutoAim Notification] - [Partial Fix]

Posts 1–7 of 7 · Page 1 of 1
[AutoAim Notification] - [Partial Fix]
I decided to do a little difference on the notifications when they turn on or off. The easiest way to do this was to use built-in notifications. Now it shows "Level up!" when you turn autoaim on and "New class unlocked!" when you turn it off.

Replace the contents of *\mods\19.0.0_jNoobAutoAim\19.0.0_jNoobAutoAim_not if.txt with this:
Code:
; _-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
I want @Cryogen235 to see this asap :P
Nice! I will be adding this asap to my tool
Why not a custom QueuedText that says "Autoaim ON" and "Autoaim OFF" ?
Quote Originally Posted by Knorrex View Post
Why not a custom QueuedText that says "Autoaim ON" and "Autoaim OFF" ?
Quote Originally Posted by CrazyJani View Post
The easiest way to do this was to use built-in notifications.
Easier to update this way
An updated auto aim notification was posted a long time ago. I updated this code awhile ago but then forgot about it. Since this is the way the notification is meant to work, I guess I'll use this from now on. Here's the 19.0 version. Replace the contents of 19.0.0_jNoobAutoAim_notif.txt in the mod selector with this code:
Code:
#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
wasnt there a "spiral up" and a "spiral down" effect? would using just them make updating easier?
Quote Originally Posted by infern000 View Post
wasnt there a "spiral up" and a "spiral down" effect? would using just them make updating easier?
It always makes spiral up effect, that's the only spiral effect that is already coded in the client.
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?