Is there a way of connection to a RuneScape server and trying to log in BY PHP?
E.X; On the website you log in on your account, and also at the same time log in to the server?
Printable View
Is there a way of connection to a RuneScape server and trying to log in BY PHP?
E.X; On the website you log in on your account, and also at the same time log in to the server?
Depends.
PHP can open socket connection for example, your server should then be programmed to respond to PHP commands and vice versa. You can also implement a GET/POST receiver at the server, and send GET or POST data (or receive).
That is of course, if you're planning on using this with your own private server that you can tinker with. I seriously doubt you could do anything with an official runescape server though.
There's no way to connect to another server's session through your server. If you notice, you can log-in to the runescape website, but when you goto a world, you have to log in again. I think this is because their worlds are all on sepperate servers in one way or another. My guess is that they're having problems connecting to their own sessions. Soooo, how would you have a chance to signin from a server even more isolated from theirs? Also, I don't work with Java, so I don't know how you'd have to deal with getting their Java Applet to respond to your PHP post/get/session/cookie request.
I'm hardly a pioneer to PHP, so honestly, I don't know weather or not it's possible. I just have some reason to believe that runescape would want to block that request somehow.. They don't seem to have a way to accept a login request of any kind as it is.
There are two answers here, both correct:
1. Of course.
2. Impossible.
Let me elaborate:
1. PHP can open almost any type of socket connection (be it TCP, UDP, SSL or otherwise) and if that fails use a custom build transport layer. This enables it to, in theory, mimic any kind of client available. Because of this you can easily build IRC bots in PHP for example.
2. IRC is an open protocol. Most MMO servers use a closed protocol, sometimes even encrypted. There are two ways around this: either find the exact specification on the protocol, or reverse engineer an existing client. The first is unlikely, the latter is usually very hard.
I have not worked with Runescape though, so perhaps you're lucky and the protocol is either available or very simple (like the one used by Habbo hotel for instance). Either way it'll be a lot of work, but theoretically possible :smile: