Results 1 to 4 of 4
  1. #1
    Tignite's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Ger
    Posts
    56
    Reputation
    10
    Thanks
    2

    Realm Relay - Reconnect Script

    Hi guys, since Realm Relay has been released i got more interrested in coding hacks for rotmg because the hacks are written in javascript!
    The reconnect thing would be a thing i would like to manage via realm relay but i dont know where to get the data from dungeon connections readable and accesible via javascript, could you give me some information or hints where to look up?

  2. #2
    DeVoidCoder's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    105
    Reputation
    10
    Thanks
    702
    When you connect to a new area, you need to grab the keyTime, key, and gameId from the hello packet. You can then use that to construct a reconnect packet to send to the client.

  3. #3
    Botmaker's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    England
    Posts
    1,360
    Reputation
    89
    Thanks
    7,597
    My Mood
    Amused
    Use portal packet first
    Then receive reconnect packet, with the key time, key, key size, and gameId host ip
    Then use the hello packet to connect with the above information

  4. #4
    Tignite's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Ger
    Posts
    56
    Reputation
    10
    Thanks
    2
    I found the packets and their ids but dont really know how to access the important information.. Just by storing 'packet.key' into a variable if its a reconnect packet?

    2nd problem: Im trying to write a chat notifier with spam filter but i cant get this code to work

    Code:
    function displayRealmRelayNotification(event, playerObjectId, color, text) {
    	var notificationPacket = event.createPacket(ID_NOTIFICATION);
    	notificationPacket.objectId = playerObjectId;
    	notificationPacket.message = "{\"key\":\"blank\",\"tokens\":{\"data\":\"" + text + "\"}}";
    	notificationPacke*****lor = color;
    	event.sendToClient(notificationPacket);
    }
    
    
    
    function onServerPacket(event) {
    	var packet = event.getPacket();
    	switch (packet.id()) {
    		case ID_TEXT: {
    			var text = packet.text;
    			var boss = this
    			if(text.IndexOf('lab') != -1) || (text.IndexOf('mad') != -1){
    				player_id = packet.objectId;
    				var toPrint = "Lab Callers:\\n";
    				toPrint += player_id
    				boss.displayRealmRelayNotification(event, player_id, 0xFF7700, toPrint);
    			}
    		}
    	}
    }
    Last edited by Tignite; 10-16-2013 at 09:59 AM.

Similar Threads

  1. PLEASE NEED HELP WITH REALM RElAY
    By DANWARPER in forum Realm of the Mad God Help & Requests
    Replies: 18
    Last Post: 01-04-2014, 05:38 AM
  2. OUTDATED - [Realm Relay] Event Notifier script
    By IziLife in forum Realm of the Mad God Tutorials & Source Code
    Replies: 20
    Last Post: 10-28-2013, 02:11 PM
  3. [Release] Realm Relay Command Script!
    By angelofsilence123 in forum Realm of the Mad God Hacks & Cheats
    Replies: 7
    Last Post: 10-21-2013, 02:06 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. [Help] Auto Reconnect script
    By djrubenmp3 in forum Team Fortress 2 Hacks
    Replies: 2
    Last Post: 09-09-2012, 01:11 PM