Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Realm of the Mad God Hacks & Cheats › Realm of the Mad God Tutorials & Source Code › Realm Relay /wc

Realm Relay /wc

Posts 1–6 of 6 · Page 1 of 1
NI
Nisuxen
Realm Relay /wc
Give me ideas for more.

 
wc.js
Code:
// wc.js

var ID_CREATE_SUCCESS = 47;
var ID_NOTIFICATION = 91;
var ID_PLAYER_TEXT = 80;
var ID_UPDATE = 66;

var helloPacket = null;

var player_id = null;
var inc_holders = {};

function onClientPacket(event) {
	var packet = event.getPacket();
	switch (packet.id()) {
		case ID_PLAYER_TEXT: {
			var text = packet.text;
			if(text == "/wc"){
				event.cancel();

				var toPrint = "Inc Holders:\\n";

				for (var id in inc_holders){
					if (!inc_holders.hasOwnProperty(id))
						continue;

					toPrint += inc_holders[id] + "\\n"
				}

				this.displayRealmRelayNotification(event, player_id, 0xFF7700, toPrint);
			}
			break;
		}
	}
}

function onServerPacket(event) {
	var packet = event.getPacket();
	switch (packet.id()) {
		case ID_CREATE_SUCCESS: {
			player_id = packet.objectId;
			inc_holders = {};
			break;
		}
		case ID_UPDATE: {
			if(packet.newObjs == null)
				break;

			var boss = this;

			// New objects
			for (var i = 0; i < packet.newObjs.length; i++) {
				var objectData = packet.newObjs[i];

				if(objectData != null){// && objectData.status.objectId != player_id){
					var inc = false;

					for (var j = 0; j < objectData.status.data.length; j++) {
						var statData = objectData.status.data[j];
						if(statData != null && ((statData.obf0 >= 8 && statData.obf0 <= 19) || (statData.obf0 >= 71 && statData.obf0 <= 78))){
							if(statData.obf1 == 1826) { //1826 - Value for incantation
								inc = true;
							}
						}

						if(inc && statData.obf0 == 31){
							inc_holders[objectData.status.objectId] = statData.obf2;

							boss.displayRealmRelayNotification(event, player_id, 0xFF7700, statData.obf2 + " has an inc!");
						}
					}
				}
			}

			// Removed objects
			for (var i = 0; i < packet.drops.length; i++) {
				var droppedObjectId = packet.drops[i];

				if(inc_holders[droppedObjectId] != null){
					boss.displayRealmRelayNotification(event, player_id, 0xFF7700, inc_holders[droppedObjectId] + " has left.");	
					delete inc_holders[droppedObjectId];			
				}
			}
			break;
		}
	}
}
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);
}
#1 · 12y ago
krazyshank
krazyshank
Had this on my todo-list, now I don't have to figure it out :P
Thanks
#2 · 12y ago
CL
Cluclu
Make a /recon (reconnect) and a /drecon (dungeon reconnect) command! Ive tried and just cant seem to do it
#3 · 12y ago
NI
Nisuxen
Quote Originally Posted by Cluclu View Post
Make a /recon (reconnect) and a /drecon (dungeon reconnect) command! Ive tried and just cant seem to do it
Use a client with the P to reconnect.
#4 · 12y ago
CL
Cluclu
Ugh i want to learn how to do this on my own so bad... How did you begin learning??
#5 · 12y ago
NI
Nisuxen
Quote Originally Posted by Cluclu View Post
Ugh i want to learn how to do this on my own so bad... How did you begin learning??
DeVoid's example scripts gave me all the information I needed to get started. He really went beyond himself to facilitate the making of scripts.
#6 · 12y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Realm Relay v1.0.0 - Proxy for RotMG 17.2By DeVoidCoder in Realm of the Mad God Hacks & Cheats
    126Last post 12y ago
  • PLEASE NEED HELP WITH REALM RElAYBy DANWARPER in Realm of the Mad God Help & Requests
    18Last post 12y ago
  • Realm Relay Command Script!By angelofsilence123 in Realm of the Mad God Hacks & Cheats
    7Last post 12y ago
  • Free realms game cards for saleBy Versa in Trade Accounts/Keys/Items
    4Last post 16y ago
  • Unforgotten Realms.By daowner2 in General
    2Last post 18y ago

Tags for this Thread

None