Results 1 to 14 of 14
  1. #1
    JustAnoobROTMG's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,916
    Reputation
    185
    Thanks
    18,230

    Add "Private Message" Menu item

    This menu item allow you to quickly start a private conversation with someone you clicked



    1) You must locate the class where the menu is drawn. Easy => look for "Unlock" in files..
    You will be in a method dealing with "Unlock", "Lock", "Trade" items..

    For me its in _-aa\_-0BN.asasm

    2) Add this just before the returnvoid AND AFTER THE LAST LXXX line !!

    Code:
     ;-----------------------------------------------------------------------------
    ; ADD Private message Shortcut
    ;-----------------------------------------------------------------------------
    
         findpropstrict      QName(PackageNamespace("_-aa"), "_-T6")
         getlex              QName(PackageNamespace("com.company.util"), "AssetLibrary")
         pushstring          "lofiInterface2"
         pushbyte            3
         callproperty        QName(PackageNamespace("", "#0"), "_-0U6"), 2
         pushint             16777215
         pushstring          "Private message"
         constructprop       QName(PackageNamespace("_-aa"), "_-T6"), 3
         coerce              QName(PackageNamespace("_-aa"), "_-T6")
         setlocal3
    
         getlocal3
         getlex              QName(PackageNamespace("flash.events"), "MouseEvent")
         getproperty         QName(PackageNamespace("", "#0"), "CLICK")
         getlocal0
         getproperty         QName(PrivateNamespace("*", "_-aa:_-0BN"), "_pmuser")
         callpropvoid        QName(PackageNamespace("", "#0"), "addEventListener"), 2
    
         findpropstrict      QName(ProtectedNamespace("_-81"), "_-0Fn")
         getlocal3
         callpropvoid        QName(ProtectedNamespace("_-81"), "_-0Fn"), 1
     ;-------------------------------------------------------------------------------------
    So if we click on the button, the method "_pmuser" will be called

    Lets add it !


    3) We have just edited a method.
    Copy this code UNDER THE METHOD WE'VE JUST MODIFIED !
    (under the end; method)
    Code:
        ;--------------------------------------------------------------------------------- 
      trait method QName(PrivateNamespace("*", "_-aa:_-0BN"), "_pmuser")
       method
        refid "_-aa:_-0BN/_pmuser"
        param QName(PackageNamespace("flash.events"), "Event")
        returns QName(PackageNamespace("", "#0"), "void")
        body
         maxstack 4
         localcount 4
         initscopedepth 10
         maxscopedepth 11
         code
         
         
         ; get the gameSprite
         getlocal0
         getproperty         QName(PackageNamespace("", "#0"), "gs_")
         setlocal1   
     
          ;set the beginning of text
          pushstring          "/tell "
          setlocal2
          
          ; get player name
          getlocal0
          getproperty         QName(PackageNamespace("", "#0"), "player_")      
          getproperty         QName(PackageNamespace("", "#0"), "name_")    
          setlocal3     
          
          ; concat playername to /tell 
          getlocal2
          getlocal3
          add 
          setlocal3
          
          ; add a space
          getlocal3
          pushstring " "
          add
          setlocal3
         
         ;display textbox
          getlocal          1
          getproperty       QName(PackageNamespace("", "#0"), "textBox_")
          callpropvoid      QName(PrivateNamespace("*", "com.company.assembleegameclient.ui:_-1-J#0"), "_-0WH"), 0
       
          ; set text
          getlocal             1   
          getproperty         QName(PackageNamespace("", "#0"), "textBox_")
          getproperty         QName(PrivateNamespace("*", "com.company.assembleegameclient.ui:_-1-J#0"), "_-XO")
          getlocal            3
          setproperty         QName(PackageNamespace("", "#0"), "text")
           
          ; Set cursor position?   
          getlocal1
          getproperty         QName(PackageNamespace("", "#0"), "textBox_")
          getproperty         QName(PrivateNamespace("*", "com.company.assembleegameclient.ui:_-1-J#0"), "_-XO")
          getlocal1
          getproperty         QName(PackageNamespace("", "#0"), "textBox_")      
          getproperty         QName(PrivateNamespace("*", "com.company.assembleegameclient.ui:_-1-J#0"), "_-XO")
          getproperty         QName(PackageNamespace("", "#0"), "length")
          getlocal1
          getproperty         QName(PackageNamespace("", "#0"), "textBox_")      
          getproperty         QName(PrivateNamespace("*", "com.company.assembleegameclient.ui:_-1-J#0"), "_-XO")
          getproperty         QName(PackageNamespace("", "#0"), "length")
          callpropvoid        QName(PackageNamespace("", "#0"), "setSelection"), 2
      
           findpropstrict      QName(ProtectedNamespace("_-81"), "remove")
           callpropvoid        QName(ProtectedNamespace("_-81"), "remove"), 0
           
           returnvoid
         end ; code
        end ; body
       end ; method
      end ; trait 
     ;-------------------------------------------------------------------------------
    If you plan to update this code, remember that you need to update
    * _-aa with the folder where your file is
    * _-0BN with the file name we are currently editing
    * _-T6, _-81, and _-0Fn with the good names . See how the other menu items are build to find new names.

    * _-1-J is the class of the "textbox_" in GameSprite class
    * _-0WH is a method called in _-1-J file to display the textbox
    * _-XO is the textfield property of the _-1-J object

    Remember that you cant chat if you are not registered
    Last edited by JustAnoobROTMG; 03-13-2013 at 10:44 AM.
    Due to a recent DMCA takedown attempt we had to remove Faintmako brain. Please do not paid attention to what he say or do.


  2. The Following 10 Users Say Thank You to JustAnoobROTMG For This Useful Post:

    captinawesome (03-13-2013),Cyeclops (03-15-2013),Hyzek (03-15-2013),maat7043 (03-14-2013),Ninjin (03-13-2013),rghmodz (03-13-2013),Saxitus (03-13-2013),shushus (03-15-2013),skerf (03-13-2013),ZkT (03-13-2013)

  3. #2
    Saxitus's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    The Computer
    Posts
    469
    Reputation
    10
    Thanks
    59
    My Mood
    Cool
    Nice tutorial; this can be very helpful if you don't want to type out their name
    "The man with the glasses always knows best" -Unnamed


     
    Quote Originally Posted by Neuropathy View Post
    Thank you very much! Spent $9 on a Dirk of Cronus & Demon Blade - would definitely use this seller again! Very friendly and very professional.
    Quote Originally Posted by Un5tuck View Post
    bought pots off him legit fast and easy
    Quote Originally Posted by Godlyjman View Post
    Bought a few things off him for good prices. All went smooth.
    Quote Originally Posted by Zozuh View Post
    Bought one Cosmic, Went well! +1Vouch
    Vouch Thread: https://www.mpgh.net/forum/showthread.php?t=858811

    If I helped you in any way, please remember to hit the thanks button

  4. #3
    Ninjin's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    Germany
    Posts
    430
    Reputation
    35
    Thanks
    1,986
    My Mood
    Doh
    u are my hero JustAnoobROTMG thx for this i will add it

  5. #4
    ZkT's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    75
    Reputation
    10
    Thanks
    3
    My Mood
    Yeehaw
    Amazing! You did it again jnoob.

  6. #5
    iwantyourkandy's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    CaliBay
    Posts
    308
    Reputation
    10
    Thanks
    155
    My Mood
    Devilish
    How do you find all those man, Icant even find the first folder. Well the first thing u need to change.

  7. #6
    rghmodz's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    264
    Reputation
    17
    Thanks
    295
    Nice. Thanks for the release.

  8. #7
    wowees8's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    78
    Reputation
    10
    Thanks
    130
    is there a way to change the icon though?

  9. #8
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    Awesome! But I would like to know how and wich program we need to use :/

  10. #9
    Layarion's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    95
    Reputation
    10
    Thanks
    197
    awesome. would be nice if constructs could be targeted in the auto aim
    I r a noob

  11. #10
    navillus's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    98
    Reputation
    10
    Thanks
    9
    Man, I hope all this ooey, gooey goodness gets baked into the next batch of clients released!

  12. #11
    Cyeclops's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Australia
    Posts
    595
    Reputation
    49
    Thanks
    440
    My Mood
    Devilish
    Quote Originally Posted by iwantyourkandy View Post
    How do you find all those man, Icant even find the first folder. Well the first thing u need to change.
    Jnoob mentioned in another thread for Windows, i dont remember the exact name but uses a similar command as Mac with 'grep' which will search for text within files, for Mac I would type:

    grep -r "Unlock" ~/Desktop/rabcasm/client_1/*

    I dont know if you need an app for this on Windows?
    Last edited by Cyeclops; 03-13-2013 at 10:44 PM.

  13. #12
    mainaltmule's Avatar
    Join Date
    Feb 2013
    Gender
    female
    Posts
    131
    Reputation
    10
    Thanks
    6
    My Mood
    Dead
    whats the procedure for seeing the source code? a decompiler? can someone explain a bit?

  14. #13
    JustAnoobROTMG's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,916
    Reputation
    185
    Thanks
    18,230
    There are tutorials here.
    Look for old threads with the [Tutorial] tag.

    All you need is RABCDASM ,Astrogrep, and a text editor (NOT notepad).
    And playing with.. commandline
    Due to a recent DMCA takedown attempt we had to remove Faintmako brain. Please do not paid attention to what he say or do.


  15. #14
    wowees8's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    78
    Reputation
    10
    Thanks
    130
    Quote Originally Posted by JustAnoobROTMG View Post
    There are tutorials here.
    Look for old threads with the [Tutorial] tag.

    All you need is RABCDASM ,Astrogrep, and a text editor (NOT notepad).
    And playing with.. commandline
    how do i add this to modselector? idk how to add it

Similar Threads

  1. Add "Realm-Eye Me!" menu item
    By JustAnoobROTMG in forum Realm of the Mad God Tutorials & Source Code
    Replies: 52
    Last Post: 11-10-2013, 06:40 AM
  2. how the fuck do i send a private message in this forum
    By iluvdawayy in forum Combat Arms Help
    Replies: 1
    Last Post: 06-12-2010, 11:05 AM
  3. my CF menu item
    By undergroundhack in forum C++/C Programming
    Replies: 0
    Last Post: 04-26-2009, 12:50 PM
  4. Replies: 0
    Last Post: 07-28-2008, 01:35 PM
  5. Please do NOT private message me.
    By Synns in forum WarRock Korea Hacks
    Replies: 0
    Last Post: 07-25-2008, 09:36 AM