Results 1 to 10 of 10
  1. #1
    fuckyoutwo's Avatar
    Join Date
    Nov 2013
    Gender
    female
    Posts
    25
    Reputation
    10
    Thanks
    12

    Realm Relay disable hp/mp/other notifications for other players

    Code:
    //noOtherNotif.js
    
    var ID_NOTIFICATION = $.findPacketId("NOTIFICATION");
    var ID_UPDATE = $.findPacketId("UPDATE");
    var ID_CREATE_SUCCESS = $.findPacketId("CREATE_SUCCESS");
    var ID_SHOW_EFFECT = $.findPacketId("SHOW_EFFECT");
    var ID_NEW_TICK = $.findPacketId("NEW_TICK");
    
    var classes = {
    	768: "Rouge"
    	, 775: "Archer"
    	, 782: "Wizard"
    	, 784: "Priest"
    	, 797: "Warrior"
    	, 798: "Knight"
    	, 799: "Paladin"
    	, 800: "Assassin"
    	, 801: "Necromancer"
    	, 802: "Hunter"
    	, 803: "Mystic"
    	, 804: "Trickster"
    	, 805: "Sorceror"
    	, 806: "Ninja"
    }
    var players = {};
    var playerId = -1;
    
    function onServerPacket(event) {
    	var packet = event.getPacket();
    	switch (packet.id()) {
    		case ID_CREATE_SUCCESS: {
    			playerId = packet.objectId;
    			break;
    		}
    		case ID_UPDATE: {
    			for (var i = 0; i < packet.newObjs.length; i++) {
    				if (packet.newObjs[i] && classes[packet.newObjs[i].objectType]) {
    					players[packet.newObjs[i].status.objectId] = packet.newObjs[i].objectType;
    				}
    			}
    			for (var i = 0; i < packet.drops.length; i++) {
    				if (packet.drops[i] && players[packet.drops[i]]) {
    					delete players[packet.drops[i]];
    				}
    			}
    			break;
    		}
    		case ID_NEW_TICK: {
    			for (var i = 0; i < packet.statuses.length; i++) {
    				if (packet.statuses[i] && players[packet.statuses[i].objectId] && packet.statuses[i].objectId != playerId) {
    					var newData = [];
    					for (var j = 0; j < packet.statuses[i].data.length; j++) {
    						if (packet.statuses[i].data[j]) {
    							if (packet.statuses[i].data[j].obf0 != 6 && packet.statuses[i].data[j].obf0 != 7) {
    								newData[newData.length] = packet.statuses[i].data[j];
    							}
    						}
    					}
    					packet.statuses[i].data = newData;
    				}
    			}
    			break;
    		}
    		case ID_NOTIFICATION: {
    			if (players[packet.objectId] && packet.objectId != playerId) event.cancel();
    			break;
    		}
    		case ID_SHOW_EFFECT: {
    			if ((packet.effectType == 7 || packet.effectType == 1) &&
    				players[packet.targetObjectId] &&
    				playerId != packet.targetObjectId)
    				event.cancel();
    			break;
    		}
    	}
    }
    edit: updated to also disable pet heal effect. Now, if i could just figure out where the +xp packet is hiding...
    edit2: now also hides experience gained for other players.
    edit3: accidentaly uploaded broken version. this one should work and also disables level up notifications.
    Last edited by fuckyoutwo; 01-12-2014 at 06:32 AM.

  2. The Following 6 Users Say Thank You to fuckyoutwo For This Useful Post:

    059 (01-11-2014),Alde. (01-11-2014),c2k8s (01-11-2014),CrazyJani (01-26-2014),Cryogen235 (01-11-2014),Zasx (01-11-2014)

  3. #2
    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
    How do you guys /10char so well
    Alde is Alde is

  4. The Following User Says Thank You to Alde. For This Useful Post:

    Pepsi Cola (01-12-2014)

  5. #3
    rocker1988's Avatar
    Join Date
    Sep 2006
    Gender
    male
    Posts
    301
    Reputation
    10
    Thanks
    62
    My Mood
    Doubtful

    Cool

    This is not disabling showing how much dmg other players are taking.....


    Fix needed?
    Last edited by rocker1988; 01-12-2014 at 05:02 AM.

  6. #4
    Zasx's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Northern Italy
    Posts
    1,379
    Reputation
    10
    Thanks
    442
    My Mood
    Yeehaw
    Quote Originally Posted by ZBORNOX View Post
    How do you guys /10char so well
    Thou shall enlight my words and trust them.

    White text color FTW
    "First get me some porn accounts"
    . . . . . . . . . . . . . . .-Trapped

  7. #5
    Pepsi Cola's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,083
    Reputation
    135
    Thanks
    2,100
    My Mood
    Bitchy
    >.<
    Finally figured it out...
    Last edited by Pepsi Cola; 01-12-2014 at 04:59 AM.

  8. #6
    fuckyoutwo's Avatar
    Join Date
    Nov 2013
    Gender
    female
    Posts
    25
    Reputation
    10
    Thanks
    12
    Crap did update with a broken version?

    Well, ill update the main post with the version im using. Should work. Also disables level up notifications (i think, i havent seen any )

  9. The Following User Says Thank You to fuckyoutwo For This Useful Post:

    rocker1988 (01-12-2014)

  10. #7
    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
    [COLOR="Black"]
    Quote Originally Posted by lolpot132 View Post
    magic
    ................
    "................[slashCOLOR]"
    Alde is Alde is

  11. #8
    059's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    California
    Posts
    3,312
    Reputation
    700
    Thanks
    92,771
    awesome script, thanks fuckyoutwo
    My Vouches
    Having an issue with RotMG? Check for the solution here.


    Need Realm items? Come to RealmStock!

    Accepting PayPal - Bitcoin - Giftcards
    Selling ST Sets, Class Top Sets, Life Pots, and much more!


    Find it here: MPGH Sales Thread

  12. #9
    fuckyoutwo's Avatar
    Join Date
    Nov 2013
    Gender
    female
    Posts
    25
    Reputation
    10
    Thanks
    12
    No worries, enjoy!

    Unfortunatelly i cannot remove enemy hp notifications, doing so makes them invulnerable.

    Noticing that gave me an idea, and i found out that "messing" with hp statdata can easily get you disconnected - making an instakill hack wasn't that easy haha

  13. #10
    JustAnoobROTMG's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,916
    Reputation
    185
    Thanks
    18,230
    There is no +xp packet.
    Server send the new xp count in a statdata of NEWTICK . Then the game compute the difference and display +Xp if the player is below level 20
    Due to a recent DMCA takedown attempt we had to remove Faintmako brain. Please do not paid attention to what he say or do.


Similar Threads

  1. Realm Relay Loot Notifs
    By Nisuxen in forum Realm of the Mad God Tutorials & Source Code
    Replies: 13
    Last Post: 02-01-2015, 04:25 AM
  2. [Outdated] Realm Relay v1.1.0 - Proxy for RotMG 19.1
    By DeVoidCoder in forum Realm of the Mad God Hacks & Cheats
    Replies: 285
    Last Post: 02-17-2014, 11:45 AM
  3. Realm-Relay v1.1.0 temp fix for connecting to busy servers
    By zekikez in forum Realm of the Mad God Tutorials & Source Code
    Replies: 1
    Last Post: 01-25-2014, 07:33 AM
  4. [Outdated] Realm Relay v1.0.0 - Proxy for RotMG 17.2
    By DeVoidCoder in forum Realm of the Mad God Hacks & Cheats
    Replies: 126
    Last Post: 10-17-2013, 10:23 PM
  5. Disable stuns/flahes for other players
    By MLG_ProTryhard in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 0
    Last Post: 09-11-2013, 12:12 PM