Realm Relay Command Script!

Posts 1–8 of 8 · Page 1 of 1
Realm Relay Command Script!
Hey guys, I figured I'd release a Realm Relay script, as that was the entire purpose of RealmRelay.

This one only works with the newest source of mine or DeVoid Coder's github.
His is here: https://github.com/DeVoidCoder/Realm-Relay
Mine is here: https://github.com/AngelofSilence/Realm-Relay

Without further ado, the script.

Code:
var ID_PLAYERTEXT;

function onEnable(event) {
	ID_PLAYERTEXT = event.findPacketId("PLAYERTEXT");	
}

function onClientPacket(event) {
	var packet = event.getPacket();
	
	if (packet.id() == ID_PLAYERTEXT) {	 
			var text_ = packet.text.toLowerCase()			
			if(text_ == "/harlemshake"){
				event.echo("Do the Harlem Shake!");
				harlemPacket = event.createPacket(83);
				harlemPacket.effectType = 14;				
				event.sendToClient(harlemPacket);
                                event.cancel();
	                }
        }
}
Should also do event.cancel() since it's really no business of the client to see the text "/harlemshake"
Pretty goofy. FYI, it would probably be best to release scripts designed for the stable version released on mpgh. Most users will be on that version until the next official release.
Quote Originally Posted by DeVoidCoder View Post
Pretty goofy. FYI, it would probably be best to release scripts designed for the stable version released on mpgh. Most users will be on that version until the next official release.
Off topic: Could.you consider a way to make "static" scripts meaning that if the script writer chooses, they remain loaded in memory even if the user disconnects, changes maps, etc?
Quote Originally Posted by krazyshank View Post
Off topic: Could.you consider a way to make "static" scripts meaning that if the script writer chooses, they remain loaded in memory even if the user disconnects, changes maps, etc?
I suppose it is possible, but what would it allow that you could not do with global variables?
Quote Originally Posted by DeVoidCoder View Post
I suppose it is possible, but what would it allow that you could not do with global variables?
They're a hassle and inefficient code wise for things i'm trying to do :/
what does this do??
Quote Originally Posted by DANWARPER View Post
what does this do??
This is a script for Realm Relay, A proxy for Realm of the Mad God with option to make scripts/hacks.
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?