Outdated[Mod](20.0.1) Event Notifier

Posts 115 of 16 · Page 1 of 2
[Mod](20.0.1) Event Notifier

EVENT NOTIFIER
a Mod for the ModSelector
__________________________






Screen:



Info:

It will play a sound and notify you when:

  • It spawn
  • Someone kill it
  • Closed Realm


Planned for next version::

  • /tpto for (lab, horse, cemetery, manor, crystal)
  • Player Notification



Source:

20.0.1_eventNotifier.txt
 
Code

Code:
;---------------------EVENT NOTIFIER by IziLife------------------------------------------------
;----------------------------------------------------------------------------------------------
;------------------Info------------------------------------------------------------------------
;--Version: 20.0.1
;--Location: _-1N\_-1k3.class.asasm
;--Line: 183
;----------------------------------------------------------------------------------------------
    ;-------------------------------------------------------------
    ;------------------Name to Update-----------------------------
    ;-------------------------------------------------------------
        #set audioPackage   "_-13C"     ;search for "level_up"
        #set audioClass     "_-0PY"     ;search for "level_up"

        #set text1  "_-12q"         ;search for "spam" follow the order
        #set text2  "_-0J1"         ;   ""        
        #set text3  "_-TR"          ;   ""
        #set text4  "_-lZ"          ;   ""


    ;-------------------------------------------------------------
    ;------------------OPTION-------------------------------------
    ;-------------------------------------------------------------
        #set message    "Event: "
        #set sound      "enter_realm"


;-----------------------------------------------------------------------------------------------
;----------------------CODE---------------------------------------------------------------------
;-----------------------------------------------------------------------------------------------

    ;-------------------------------------------------------------------------------------------
    ;------------------Save Text----------------------------------------------------------------
    ;-------------------------------------------------------------------------------------------
        getlocal1
        getproperty         QName(PackageNamespace(""), "text_")
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "valueOf"), 0
        coerce_s
        setlocal            5
    ;--------------------------------------------------------------------------------------------
    ;------------------Set saved text to lower case----------------------------------------------
    ;--------------------------------------------------------------------------------------------
        getlocal            5
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "toLowerCase"), 0
        setlocal            6
    ;-------------------------------------------------------------------------------------------
    ;------------------Save Name----------------------------------------------------------------
    ;-------------------------------------------------------------------------------------------
        getlocal1
        getproperty         QName(PackageNamespace(""), "name_")
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "valueOf"), 0
        coerce_s
        setlocal            7
    ;-------------------------------------------------------------------------------------------
    ;------------------Check Name---------------------------------------------------------------
    ;-------------------------------------------------------------------------------------------
        getlocal            7
        pushstring          "#Oryx the Mad God"
        ifne                CONTINUE
    ;--------------------------------------------------------------------------------------------

    ;--------------------------------------------------------------------------------------------
    ;--------------------------Events to be notified for-----------------------------------------
    ;--------------------------------------------------------------------------------------------

EVENTS:

    ;Sphinx-------------------
        getlocal            6
        pushstring          "grand_sphinx.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "grand_sphinx.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "grand_sphinx.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "grand_sphinx.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------

    ;Hermit-------------------
        getlocal            6
        pushstring          "hermit_god.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "hermit_god.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "hermit_god.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "hermit_god.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------

    ;Pentaract-------------------
        getlocal            6
        pushstring          "pentaract.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "pentaract.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "pentaract.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "pentaract.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;-------------------------- 

    ;Skull Shrine-------------------
        getlocal            6
        pushstring          "skull_shrine.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "skull_shrine.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "skull_shrine.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "skull_shrine.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------

    ;Cube-------------------
        getlocal            6
        pushstring          "cube_god.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "cube_god.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "cube_god.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "cube_god.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------

    ;Ghost Ship-------------------
        getlocal            6
        pushstring          "ghost_ship.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "ghost_ship.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "ghost_ship.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "ghost_ship.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
    ;Lord of the lost Land-------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------

    ;Closed Realm-------------------
        getlocal            6
        pushstring          "oryx_closed_realm"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------   

    ;-------------------------------------------------------------------------------------------

    jump                CONTINUE

NOTIF:

    ;------------------------------------------------------------------
    ;----Print Event---------------------------------------------------
    ;------------------------------------------------------------------

        getlocal0
        getproperty         QName(PackageNamespace("", "#0"), $"text1")
        getlex              QName(PackageNamespace($"text2"), $"text3")
        getlex              QName(PackageNamespace("com.company.assembleegameclient.parameters"), "Parameters")
        getproperty         QName(PackageNamespace("", "#0"), $"text4")
        pushstring          $"message"
        getlocal            6
        add
        callproperty        QName(PackageNamespace("", "#0"), "make"), 2
        callpropvoid        QName(PackageNamespace("", "#0"), "dispatch"), 1

    
    ;------------------------------------------------------------------
    ;----Play a Sound--------------------------------------------------
    ;------------------------------------------------------------------
        getlex              QName(PackageNamespace($"audioPackage"), $"audioClass")
        pushstring          $"sound"
        callpropvoid        QName(PackageNamespace("", ""), "play"), 1



CONTINUE:
;----------------------------------------------------------------------------------------------


20.0.1_eventNotifier.xml
 
Code

Code:
<?xml version="1.0" encoding="UTF-8"?>

<rotmg>
		<mod id="Event Notifier">
		<code file2mod="_-1N/_-1k3.class.asasm"
			  line="183">
			20.0.1_eventNotifier.txt
		</code>
		</mod>
</rotmg>

Scans:

- Virustotal
- Jotti

Oops i forgot the "Lord of the lost lands"

just add this after "EVENTS:"

 
Code

Code:
    ;Lord of the lost Land-------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.new"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.one"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.death"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
        getlocal            6
        pushstring          "lord_of_the_lost_lands.killed"  
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"), "search"), 1
        pushint             0
        ifge                NOTIF
        ;--------------------------
20.0.1_eventNotifier_mpgh.net.zip2 KB · 1,475 downloads Clean
//Approved
valueOf? lol....

(Seems kinda spammy aswell)
do we have to have the sounds of the game on? i have them off cause i find them really annoying
It is good, but why not use an auto-nexus hack?
Nice release! I think this would be a great addition to the hacks already existent in the mod selector.
omg atlast someone made the best thing everyone wanted
waiting for /tpto bro release it soon
Maybe add something that helps keep track of whats left to kill before realm is shut. Would be cool, never seen anything like that. Besides the suggestion this is awesome, keep up the great work looking forward to the /tp command!
Help! When I use this, it doesn't really notify me as it should. A line of text shows up in the chat box. Example: if a skull shrine was killed it says
Event:{"key":stringlist.skull_shrine.killed.1", "tokens":{"killer":"[Playername]"}}
Quote Originally Posted by gainb View Post
Help! When I use this, it doesn't really notify me as it should. A line of text shows up in the chat box. Example: if a skull shrine was killed it says
Event:{"key":stringlist.skull_shrine.killed.1", "tokens":{"killer":"[Playername]"}}
It's definitely a feature :')
Quote Originally Posted by gainb View Post
Help! When I use this, it doesn't really notify me as it should. A line of text shows up in the chat box. Example: if a skull shrine was killed it says
Event:{"key":stringlist.skull_shrine.killed.1", "tokens":{"killer":"[Playername]"}}
I'm still working on it, i'll remove this when i'll have the player notification set up

If you want something cleaner just add this :

after NOTIF:
Code:
    ;------------------------------------------------------------------
    ;----Clean the Text-------------------------------------------------
    ;------------------------------------------------------------------
        getlocal            6
        getlocal            6
        pushstring          "."
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"),"indexOf"), 1
        pushbyte 1
        add
        getlocal            6
        pushstring          "}"
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"),"indexOf"), 1
        decrement
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"),"substring"), 2
        coerce_s
        setlocal            6
Quote Originally Posted by Knorrex View Post
It's definitely a feature :')
Offer a fix or a suggestion instead of flooding this post by trolling
Quote Originally Posted by IziLife View Post
I'm still working on it, i'll remove this when i'll have the player notification set up

If you want something cleaner just add this :

after NOTIF:
Code:
    ;------------------------------------------------------------------
    ;----Clean the Text-------------------------------------------------
    ;------------------------------------------------------------------
        getlocal            6
        getlocal            6
        pushstring          "."
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"),"indexOf"), 1
        pushbyte 1
        add
        getlocal            6
        pushstring          "}"
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"),"indexOf"), 1
        decrement
        callproperty        QName(Namespace("http://adobe.com/AS3/2006/builtin"),"substring"), 2
        coerce_s
        setlocal            6


Offer a fix or a suggestion instead of flooding this post by trolling
Why? This is the release section, also I had this working the way I need it for the past years

Sorry, with this, I'm out
Hey Izi! Great work!
Now, for a suggestion, not everyone has their sounds on, nor stare at the chat 100% of the time. So my suggestion would be, to push the string of Notification ontop of your character, since as a Bullet Hell game, you would be staring at your character almost nearly 100% of the time.
Definitely could use some adjustments but I really like it, thanks a lot! As someone else said, if you could get the notifications to show above your character that would be awesome

Will keep an eye on this, thanks again
Some errors:show some red error script in left down corner
Posts 115 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?