Results 1 to 12 of 12
  1. #1
    IziLife's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    465
    Reputation
    133
    Thanks
    7,868
    My Mood
    Dead

    [Code](18.0) Event Sound Notifier! Compatible with Mod Selector!!



    Event Sound Notifier
    ( a ROTMG Mod Selector mod )

    Hey there

    I just updated my code for 18.0 update, it's now compatible with the Mod Selector!! Feel free to insert it in your future release @Cryogen235 :3

    I made the code easy to update since i'm not gonna update it for each future game update

    The code is enought well documented for those who don't wanna use mod selector !

    Have fun <3





    Doc :

    • How to Add More Event :

       
      Code:
      getlocal            5
      pushstring          "XXXX"
      callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
      pushint             0
      ifge                LNOTIFY
      Just replace XXXX by what ever you want and add it just after one event block


    • More Sounds :
       

      • death_screen
      • button_click
      • level_up
      • inventory_move_item
      • error
      • enter_realm
      • loot_appears
      • no_mana
      • use_key
      • use_potion



    • More Event Message:

       


      Code:
      // Messages
      	// Crystal
      		var Crystal = [
      			"Sweet treasure awaits for powerful adventurers!",
      			"I think you need more people...",
      			"If you are not very strong, this could kill you"
      		];
      		var CrystalBroke = [
      			"You cracked the crystal! Soon we shall emerge! You might want to BACK AWAY..!!"
      		];
      
      	// Sphinx
      		var Sphinx = [
      			"At last, a Grand Sphinx will teach you to respect!",
      		    "A Grand Sphinx is more than a match for this rabble.",
      		    "My Grand Sphinxes will bewitch you with their beauty!"
      		];
      
      		var lastSphinx = [
      			"You festering rat-catchers! A Grand Sphinx will make you doubt your purpose!",
      			"Gaze upon the beauty of the Grand Sphinx and feel your last hopes drain away."
      		];
      
      
      		var SphinxDead = [
      			 "My Grand Sphinx, she was so beautiful. I will kill you myself",
      		     "My Grand Sphinx had lived for thousands of years!",
      		     "you up-jumped goat herder! You shall pay for defeating my Grand Sphinx!",
      		     "you pestiferous lout! I will not forget what you did to my Grand Sphinx!",
      		     "you foul ruffian! Do not think I forget your defiling of my Grand Sphinx!"
      		];
      
      	// Hermit
      		var Hermit = [
      			"My Hermit God's thousand tentacles shall drag you to a watery grave!"
      		];
      		var HermitDead = [
      			"My Hermit God was more than you'll ever be",
      	        "Without my Hermit God, Dreadstump is free to roam the seas without fear!"
      		];
      
      	// Ship
      		var Ship = [
      			"My Ghost Ship will terrorize you pathetic peasants!",
      			"A Ghost Ship has entered the Realm."
      		];
      		var ShipDead = [
      			"defeat my dreaded Ghost Ship?!",
      	        "has crossed me for the last time! My Ghost Ship shall be avenged.",
      	        "The spirits of the sea will seek revenge on your worthless soul"
      		];
      
      	// Skull Shrine
      
      		var Skull = [
      			"Your futile efforts are no match for a Skull Shrine!"
      		];
      		var SkullDead = [
      			"defaced a Skull Shrine! Minions, to arms!",
      	        "razed one of my Skull Shrines -- I WILL HAVE MY REVENGE!",
      	        "you will rue the day you dared to defile my Skull Shrine!",
      	        "you contemptible pig! Ruining my Skull Shrine will be the last mistake you ever make!",
      	        "you insignificant cur! The penalty for destroying a Skull Shrine is death!"
      		];
      
      	// Cube
      
      		var Cube = [
      			"Your meager abilities cannot possibly challenge a Cube God!",
      			"Worthless mortals! A mighty Cube God defends me!"
      		];
      		var CubeDead = [
      			"You have dispatched my Cube God",
      			"I have many more Cube Gods",
      			"you wretched dog! You killed my Cube God!",
      			"you pathetic swine! How dare you assault my Cube God!"
      		];
      
      	// Pentaract
      
      		var Pentaract = [
      			"Behold my Pentaract, and despair!",
      			"Ignorant fools! A Pentaract guards me still!"
      		];
      		var PentaractDead = [
      			"That was but one of many Pentaracts",
      			"you destoryed my Pentaract!",
      			"by destroying my Pentaract you have sealed your own doom!"
      		];
      
      	// Lord
      		var Lord = [
      	        "Pathetic fools! My Lord of the Lost Lands will crush you all!",
      	        "My Lord of the Lost Lands will make short work of you!",
      	        "Cower in fear of my Lord of the Lost Lands!"
      		];
      		var LordDead = [
      			"How dare you foul-mouthed hooligans treat my Lord of the Lost Lands with such indignity!",
      	        "What trickery is this?! My Lord of the Lost Lands was invincible!"
      		];
      
      	// lich
      		var finalLich = [
      			"My final Lich shall consume your souls!",
      		    "My final Lich will protect me forever!"
      		];








    Instruction :


    • Download the file
    • Extract It
    • Put the "18.0.0_notif" folder inside your "X:\18.0_Mod_Selector\mods" folder




    Download the mod :





    Virus Scans :




    Source:

    Code:
    ;---------------------------------------------------------------------------------------------------------
    ;---Event-Notifier-----Code-Version:-18--Current-File-:-_-1MR\_-V-.class.asasm----------------------------
    ;---------------------------------------------------------------------------------------------------------
          ;---------------------------------------------------------------------------------------------------
          ;--Where-To-Insert----------------------------------------------------------------------------------
          ;---------------------------------------------------------------------------------------------------
                ; Search  "spam" in the source folder
                ; search  "execute" in the file where you found "spam"
                ; Just after "code" insert the entire code      
          ;---------------------------------------------------------------------------------------------------
          ;--Names-To-Update----------------------------------------------------------------------------------
          ;---------------------------------------------------------------------------------------------------
          ;-----Play-a-sound----------------------------------------------------------------------------------
          ;---------------------------------------------------------------------------------------------------
                #set audio              "_-Zj" ;Package name ,search for level_up in Player.class.asasm
                #set noti               "_-1J8" ;Namespace,search for level_up in Player.class.asasm
          ;---------------------------------------------------------------------------------------------------
          ;-----Signal-for-Event-Found-in-Chat-BOX------------------------------------------------------------
          ;-For these names, just search for "spam" in the file where you have found "spam"-------------------
          ;---------------------------------------------------------------------------------------------------
    
                #set chat               "_-1ck"  ; getproperty         QName(PackageNamespace("", "_-1ck")
                #set chat2              "_-BK" ; getlex              QName(PackageNamespace("_-BK") (1/2)
                #set chat3              "_-Fx" ; getlex              QName(PackageNamespace("_-Fx") (2/2)
                #set chat4              "_-0NM" ; getproperty         QName(PackageNamespace(""), "_-0NM")
          
    ;---------------------------------------------------------------------------------------------------------
    ; Option
    ;---------------------------------------------------------------------------------------------------------
          ;-----Custom-Sound----------------------------------------------------------------------------------
          #set source             "enter_realm" ; ex :level_up or enter_realm - search for "play"
          ;---------------------------------------------------------------------------------------------------
          ;-----Custom-Signal---------------------------------------------------------------------------------
          #set signal             "**!!** EVENT FOUND **!!**" ; What ever you want
          ;---------------------------------------------------------------------------------------------------
    ;---------------------------------------------------------------------------------------------------------
          getlocal1
          getproperty         QName(PackageNamespace(""), "text_")
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "valueOf"), 0
          coerce_s
          setlocal            5
    
          getlocal            5
          pushstring          "At last, a Grand Sphinx will teach you to respect!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "A Grand Sphinx is more than a match for this rabble."
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "My Grand Sphinxes will bewitch you with their beauty!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "You festering rat-catchers! A Grand Sphinx will make you doubt your purpose!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "Gaze upon the beauty of the Grand Sphinx and feel your last hopes drain away."
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "My Hermit God's thousand tentacles shall drag you to a watery grave!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "My Ghost Ship will terrorize you pathetic peasants!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "A Ghost Ship has entered the Realm."
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "Your futile efforts are no match for a Skull Shrine!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "Your meager abilities cannot possibly challenge a Cube God!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "Worthless mortals! A mighty Cube God defends me!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "Pathetic fools! My Lord of the Lost Lands will crush you all!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "My Lord of the Lost Lands will make short work of you!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "My final Lich shall consume your souls!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "My final Lich will protect me forever!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "Sweet treasure awaits for powerful adventurers!"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "I think you need more people..."
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
          getlocal            5
          pushstring          "If you are not very strong, this could kill you"
          callproperty        QName(Namespace("https://adobe.com/AS3/2006/builtin"), "search"), 1
          pushint             0
          ifge                LNOTIFY
    
    
          jump                CONTINUE
    
          LNOTIFY:
    
          getlex              QName(PackageNamespace($"audio"), $"noti")
          pushstring          $"source"
          callpropvoid        QName(PackageNamespace(""), "play"), 1
    
    
          CONTINUE:
    
    ;---------------------------------------------------------------------------------------------------------
    <b>Downloadable Files</b> Downloadable Files
    Last edited by Royce; 12-18-2013 at 09:09 PM.

  2. The Following 18 Users Say Thank You to IziLife For This Useful Post:

    Alde. (12-16-2013),artufe (12-18-2013),belloguu (12-18-2013),Cryogen235 (12-17-2013),Drowlys (12-17-2013),Ftwtfu (12-17-2013),HeroOfSinnoh (12-17-2013),hugo222 (12-16-2013),IAmDM (12-16-2013),karolixas (12-16-2013),maat7043 (12-16-2013),pixl8r (12-17-2013),ramyadav (12-16-2013),Royce (12-17-2013),Sorenl373 (06-14-2015),The_En|D (12-16-2013),verarschen00 (12-19-2013),worldwidecoffee (12-16-2013)

  3. #2
    maat7043's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Texas
    Posts
    676
    Reputation
    71
    Thanks
    2,579
    My Mood
    Daring
    Fantastic work!
    This is very well documented code. Do you mind if I add it to automatically update in my tool?

  4. #3
    worldwidecoffee's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    1
    My Mood
    Psychedelic
    Very well done Thank you!

  5. #4
    Royce's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    17,967
    Reputation
    4088
    Thanks
    6,418
    approved .

  6. #5
    IziLife's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    465
    Reputation
    133
    Thanks
    7,868
    My Mood
    Dead
    Quote Originally Posted by maat7043 View Post
    Fantastic work!
    This is very well documented code. Do you mind if I add it to automatically update in my tool?
    Thanks !

    Yes you can!

  7. #6
    HeroOfSinnoh's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Berlin
    Posts
    59
    Reputation
    10
    Thanks
    3
    My Mood
    Stressed
    This is pretty darn awesome. Great work man.

  8. #7
    Time's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    26,497
    Reputation
    3714
    Thanks
    4,530
    My Mood
    Mellow
    I'm a bit new to this scene, what exactly does this do?

  9. #8
    Cryogen235's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    Beachzone
    Posts
    414
    Reputation
    98
    Thanks
    10,508
    I like it. The code is really easy to update so I'll update it next release and include it in the mod selector.

  10. #9
    maat7043's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Texas
    Posts
    676
    Reputation
    71
    Thanks
    2,579
    My Mood
    Daring
    Quote Originally Posted by Time View Post
    I'm a bit new to this scene, what exactly does this do?
    It plays the level up sound whenever an event it called out, rather than just the text notification

  11. #10
    pixl8r's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    I guess I should just test this but I'm at work. does it work if you have all the ROTMG in game sound options turned off?

  12. #11
    maat7043's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Texas
    Posts
    676
    Reputation
    71
    Thanks
    2,579
    My Mood
    Daring
    No. It will come in just like any other sound effect

  13. #12
    infern000's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    294
    Reputation
    10
    Thanks
    74
    would it work if we checked for ..."opened by"..., too?

    //doesnt matter but im curious what is the enter_realm sound? i remember the level_up.

    sry asking now that 19.0 is out

Similar Threads

  1. OUTDATED [Code] SOUND Notifier - Never miss an Event !! :)
    By IziLife in forum Realm of the Mad God Tutorials & Source Code
    Replies: 12
    Last Post: 12-16-2013, 07:00 AM
  2. [Solved] Sound Notifier for Quests/Events
    By IziLife in forum Realm of the Mad God Help & Requests
    Replies: 8
    Last Post: 08-31-2013, 01:13 PM
  3. [Release] decafCoffee by atillathedud (Compatible with v1.7!)
    By matjuh123 in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 37
    Last Post: 12-10-2010, 04:24 AM
  4. [SOLVED] how i can host a public server compatible with alteriwnet 1.3.37a???
    By hamed2011 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-15-2010, 05:09 AM
  5. (help) sound to help with guns
    By xstyalx in forum Combat Arms Mod Discussion
    Replies: 4
    Last Post: 12-27-2009, 10:44 AM