Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.
/ rsc-client Public archive

runescape classic client in javascript

Notifications You must be signed in to change notification settings

misterhat/rsc-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE

This project has been archived. See https://github.com/2003scape/rsc-client

rsc-client

a port of the runescape classic client (mudclient revision 204) from java to javascript.

install

npm install rsc-client

usage

the dist/ directory contains everything you need to use the client. run npm start to start a simple HTTP server http://localhost:1337. you may put optional arguments into the hash of the URL as such:

http://localhost:1337/index.html#members,127.0.0.1,43595

alternatively, you can manually invoke mudclient on your own canvas as such:

const mudclient = require('rsc-client');

const mc = new mudclient(document.getElementById('mudclient-canvas'));
mc.members = false;
mc.threadSleep = 10;

(async () => {
    await mc.startApplication(512, 346, 'Runescape by Andrew Gower', false);
})();

just make sure that wherever you host it, it's able to access ./data204/ via XHR for its cache files.

license

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.