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 ******.
His is here:
https://******.com/DeVoidCoder/Realm-Relay
Mine is here:
https://******.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.