OUTDATED [Code] SOUND Notifier - Never miss an Event !! :)
Hey,
Im proud to share with you my real first addition to the ROTMG hack community
-Thanks @nilly for your chat filter code -
Sound notifier
Im proud to share with you my real first addition to the ROTMG hack community
-Thanks @nilly for your chat filter code -
Sound notifier
This code detect what Oryx or other player say and play a sound to notify you !
You'll never miss something, it work in background, so chat in facebook, skype, watch vids on youtube ! i promise you'll miss nothing on ream <3
IT WORKS WHEN ORYX SHOUT AN EVENT !

Info :
If you don't wanna be spammed by the sounds, i recommend you to put, as filter, the correct sentence of what Oryx Shout
Example :
Sweet treasure awaits powerful adventurers
Requirement :
REQUIREMENT
16.0+
/!\ if you haven't put a chat filter already don't forget to replace :
Location :
_-1gP/_-1Rs.class.asasm
Line :
169
Code:
localcount 5
Code:
localcount 6
How To :
HOWTO
Just put the code in :
Location :
_-1gP/_-1Rs.class.asasm
Line :
186
DOC :
How to make your own notifier :
DOC
Code:
;--------------------- SOUND NOTIFIER -------------------------------------------------
getlocal1
getproperty QName(PackageNamespace(""), "text_")
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "valueOf"), 0
coerce_s
setlocal 5
;XXXX-------------------
getlocal 5
pushstring "XXXX" // What you want to filter , just replace XXXX by what ever you want
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge YYYY // funtion called , just replace YYYY by the function you created
;--------------------------
YYYY:
;----Do something-----
(..) // put here the code you wanna load when XXXX is detected ( You can find some sounds in com\company\assembleegameclient\objects\Player.class.asasm - search "Play"
Different sounds :
no_mana
Code:
getlex QName(PackageNamespace("_-1jf"), "_-sH")
pushstring "no_mana"
callpropvoid QName(PackageNamespace("", "#0"), "play"), 1
error
Code:
getlex QName(PackageNamespace("_-1jf"), "_-sH")
pushstring "error"
callpropvoid QName(PackageNamespace("", "#0"), "play"), 1
lvl_up
Code:
getlex QName(PackageNamespace("_-1jf"), "_-sH")
pushstring "level_up"
callpropvoid QName(PackageNamespace("", "#0"), "play"), 1
Code Sample:
EXAMPLE
Code:
;--------------------- SOUND NOTIFIER -------------------------------------------------
getlocal1
getproperty QName(PackageNamespace(""), "text_")
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "valueOf"), 0
coerce_s
setlocal 5
;--------------------------Put Your Filter Here----------------------------------------
;-------------------------
;Sphinx-------------------
getlocal 5
pushstring "sphinx"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Sphinx"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "SPHINX"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Hermit-------------------
getlocal 5
pushstring "hermit"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Hermit"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "HERMIT"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Ghost Ship-------------------
getlocal 5
pushstring "ship"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Ship"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "SHIP"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Skull Shrine-------------------
getlocal 5
pushstring "shrine"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Shrine"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "SHRINE"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Cube-------------------
getlocal 5
pushstring "cube"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Cube"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "CUBE"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Crystal-------------------
getlocal 5
pushstring "crystal"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Crystal"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "CRYSTAL"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "treasure"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Manor-------------------
getlocal 5
pushstring "manor"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Manor"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "MANOR"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Lab-------------------
getlocal 5
pushstring "lab"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Lab"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "LAB"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Cemetery-------------------
getlocal 5
pushstring "cemetery"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Cemetery"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "CEMETERY"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;Candy-------------------
getlocal 5
pushstring "cland"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "Candy"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
getlocal 5
pushstring "CLAND"
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
pushint 0
ifge NOTIF
;--------------------------
;---------------------------------------------------------------------------------------
jump CONTINUE
NOTIF:
;----Play LvL UP Sound-----
getlex QName(PackageNamespace("_-1jf"), "_-sH")
pushstring "level_up"
callpropvoid QName(PackageNamespace("", "#0"), "play"), 1
CONTINUE:
;--------------------------------------------------------------------------------------

