LightbulbKRelay Replacement??

Posts 115 of 56 · Page 1 of 4
KRelay Replacement??
Wondering if anyone would be interested in replacement program for KRelay that shares the exact same functionality in terms of writing plugins and the flow most people are used to as long with an equally easy to use or very similar GUI?

This proxy would then be available to mac users as well because it is written in Java: "the worst language in the world" - @Riigged . The idea behind this was to essentially update all the antiquated parts of AMPBEdu's Realm Relay that were broken and add the easy to use plugin writing and funtionality of KrazyShank's KRelay all wrapped up in a platform independent execution environment.

Would love to get some thoughts on this!
Iff It works sure why not
Quote Originally Posted by ruusey View Post
"the worst language in the world" - @Riigged
can confirm
Worst language award goes to rust.
Heres a little sneak peak of some sample plugins written for the new relay

You can hook events to packets or commands giving you the same functionality of KRelay plugins
Code:
package com.event;

import com.main.User;
import com.packets.server.TextPacket;

public class TestCommand extends ProxyEvent{

	public TestCommand(User user) {
		super(user);
	}

        '@Override'
	public void attach() {
		user.hookCommand("hi", TestCommand.class, "onHiCommand");
		
	}
	public void onHiCommand(String command, String[] args){
		if(args.length<2){
			TextPacket packet = EventUtils.createText("", "Too few argumenets /hi [on/off]");
			sendToClient(packet);
		}else if(args[1].equals("on")){
			TextPacket packet = EventUtils.createText("", "Hello! heres some player data: name="+user.playerData.name+" fame="+user.playerData.characterFame);
			sendToClient(packet);
		}else if(args[1].equals("off")){
			TextPacket packet = EventUtils.createText("", "Hello! no player data requested");
			sendToClient(packet);
		}
	}

}
Heres a plugin that hooks into the USEITEM packet.


edit: Also working on functionality to be able to point the proxy to your client and from that auto update the xml to make sure the xml definitions stay up to date.
Quote Originally Posted by ruusey View Post
Heres a little sneak peak of some sample plugins written for the new relay

You can hook events to packets or commands giving you the same functionality of KRelay plugins
Code:
package com.event;

import com.main.User;
import com.packets.server.TextPacket;

public class TestCommand extends ProxyEvent{

	public TestCommand(User user) {
		super(user);
	}

        '@Override'
	public void attach() {
		user.hookCommand("hi", TestCommand.class, "onHiCommand");
		
	}
	public void onHiCommand(String command, String[] args){
		if(args.length<2){
			TextPacket packet = EventUtils.createText("", "Too few argumenets /hi [on/off]");
			sendToClient(packet);
		}else if(args[1].equals("on")){
			TextPacket packet = EventUtils.createText("", "Hello! heres some player data: name="+user.playerData.name+" fame="+user.playerData.characterFame);
			sendToClient(packet);
		}else if(args[1].equals("off")){
			TextPacket packet = EventUtils.createText("", "Hello! no player data requested");
			sendToClient(packet);
		}
	}

}
Heres a plugin that hooks into the USEITEM packet.


edit: Also working on functionality to be able to point the proxy to your client and from that auto update the xml to make sure the xml definitions stay up to date.
If you added functionality to be able to tunnel the connection to a VPS like realm relay that would be neat
Quote Originally Posted by Kushala Daora View Post
If you added functionality to be able to tunnel the connection to a VPS like realm relay that would be neat
Already implemented

Code:
        //*****************************************
	//USE AN EXTERNAL PROXY INSTEAD OF LOCALHOST
	//*****************************************
	public boolean useExternalProxy = false;
	public String externalPr******* = "some.external.proxy";
	public int externalProxyPort = 1234;
Lol i got ip banned testing my proxy. RIP
Quote Originally Posted by ruusey View Post
Lol i got ip banned testing my proxy. RIP
Did your account Ruusey get banned
Quote Originally Posted by ruusey View Post
Lol i got ip banned testing my proxy. RIP
Just by using a proxy?
Quote Originally Posted by Kushala Daora View Post
Just by using a proxy?
I think it was because i was debugging and suspending the program causing very inconsistent packet data to be sent.

Quote Originally Posted by Matthew View Post
Did your account Ruusey get banned
That's 'not' my account but i can only login and hit their website through other IPs.

Edit: Also just became un IP banned magically? Maybe rotmg servers were just temporarily down but i hit the API from my phone and got a response while hitting it on my desktop was giving me an internal server error response. False alarm i guess
Quote Originally Posted by ruusey View Post

I think it was because i was debugging and suspending the program causing very inconsistent packet data to be sent.



That's 'not' my account but i can only login and hit their website through other IPs.


Edit: Also just became un IP banned magically?
What is your signature for then, lol

Were you mass creating accounts or something
Nah i was just testing my ReconnectHandler class so i was in and out/suspended mid packet send a lot. Not sure if i was even ever banned but i couldnt load the game or hit their website so...

Edit: I think deca put a mechanism in place that will temp ban you if you hit their services too often... im blocked out again right now

Quote Originally Posted by ruusey View Post
Nah i was just testing my ReconnectHandler class so i was in and out/suspended mid packet send a lot. Not sure if i was even ever banned but i couldnt load the game or hit their website so...

Edit: I think deca put a mechanism in place that will temp ban you if you hit their services too often... im blocked out again right now

Yeah deca made a patch that destroys muledump. This also affects reconnects and loading the game
Posts 115 of 56 · Page 1 of 4

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?