{"_id":"@2003scape/rsc-client","_rev":"3-8f413b14b604f96d15d5a6322231d000","name":"@2003scape/rsc-client","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@2003scape/rsc-client","version":"1.0.0","description":"runescape classic web client","main":"./src/mudclient.js","scripts":{"build-dev":"browserify -t bulkify index.js > dist/index.bundle.js","build":"browserify -t bulkify -p tinyify index.js > dist/index.bundle.min.js","start":"st -p 1337 -d dist"},"repository":{"type":"git","url":"git+https://github.com/2003scape/rsc-client.git"},"keywords":["runescape","classic","rsc","client","mmorpg","game"],"author":{"name":"2003Scape Team"},"license":"AGPL-3.0+","bugs":{"url":"https://github.com/2003scape/rsc-client/issues"},"homepage":"https://github.com/2003scape/rsc-client#readme","devDependencies":{"@ledgerhq/compressjs":"^1.3.2","alawmulaw":"^6.0.0","browserify":"^16.5.2","buffer":"^5.6.0","bulk-require":"^1.0.1","bulkify":"1.4.0","eslint":"^7.7.0","long":"^4.0.0","ndarray":"^1.0.19","pcm-player":"0.0.10","sleep-promise":"^8.0.1","st":"^2.0.0","tga-js":"^1.1.0","tinyify":"^3.0.0"},"gitHead":"2fa3c548f30d90754bb27d19c4db770253dcc920","_id":"@2003scape/rsc-client@1.0.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","_npmUser":{"name":"misterhat","email":"misterhat144@gmail.com"},"maintainers":[{"name":"misterhat","email":"misterhat144@gmail.com"}],"dist":{"integrity":"sha512-ukPWJi/n4LwoqIeCuST2vjP4Smk3N5R/yOSrecm37VPAvmVWCKHy68uHX18Pv4NBDQ6ASCq+GHl/KkRoSPdGjA==","shasum":"b6ab066deea33d1317ed089662b34c0a4ac1c576","tarball":"https://registry.npmjs.org/@2003scape/rsc-client/-/rsc-client-1.0.0.tgz","fileCount":77,"unpackedSize":4298980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkfRSCRA9TVsSAnZWagAARK4P/R42LnTViLY0TNr7f4iY\njKZ+h5ILJND9+TrUbG5Dau1UBlxkFhirO5IsqZih6GHbO6UJzFoQiJ0IiNNm\nUky1UAOZGPlrp0K4+6CokokFcmSYBSWMHux+ls2p3maWNBAngK3z7Q8LTzwz\nWjxEdmqDrnR2/1BW+UClAYtWjcNyJTuxoBNkC42u4HBg2F5g7oHIZlxDtiNY\nRfiuVI1QF8lbtT/ogPt4MTTIz5Kwj2b0YJPljDH269U/NA2CjmG7X1gRAGq4\n25Eo5TdHcNAbgmXe4AhDk36gFg75Rxw2KByOQWeN2iV5v0XMmAHxQCjzzmvh\no8xlNbOuTlaJUzfe9Fnr4NaenU1rR6iQZMSUWztp63jxLOWQsuh403U0nDPH\nRWxWRXf/+AAhUpsfZCKLznKtVJzohTrKR3zxR33EBH8vLnX16WP6UNrVEttY\nDxCrZYlGhhDcNDw1h0I7ubnMvE+sH688rwW2ilBXtVcHc3pwQ1vOBf5PADIa\nw70BIuFlGFuNbzA0DQ1w1PrF31CX2niWKKMjXFQDqL6BeMuP/niyCbqDK08i\nXo3EAZbcjZ1K067WYcMk8cfBStxtD3jCOlMJ90OJUiI+r5QBHRPGXq+iRDD+\n1VyrnGHK3pI2HU8Pl4p9DV4vpE9qJitWwwSsf+M3pZ2JGHyaj8Q7f5wIk0I4\nS9Xd\r\n=sWvj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKL8J2n+RbNTyaZ13xsEGNGqqtrZPitLlXWZoiGd/qZAIhANwHw3mJcLDzsHCdszhiyLwn7bCvzNiKA2olZUtBKIn2"}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rsc-client_1.0.0_1603400785547_0.5638867375275278"},"_hasShrinkwrap":false},"1.0.1":{"name":"@2003scape/rsc-client","version":"1.0.1","description":"runescape classic web client","main":"./src/mudclient.js","scripts":{"build-dev":"browserify -t bulkify index.js > dist/index.bundle.js","build":"browserify -t bulkify -p tinyify index.js > dist/index.bundle.min.js","start":"st -p 1337 -d dist"},"repository":{"type":"git","url":"git+https://github.com/2003scape/rsc-client.git"},"keywords":["runescape","classic","rsc","client","mmorpg","game"],"author":{"name":"2003Scape Team"},"license":"AGPL-3.0+","bugs":{"url":"https://github.com/2003scape/rsc-client/issues"},"homepage":"https://github.com/2003scape/rsc-client#readme","devDependencies":{"@ledgerhq/compressjs":"^1.3.2","alawmulaw":"^6.0.0","browserify":"^16.5.2","buffer":"^5.6.0","bulk-require":"^1.0.1","bulkify":"1.4.0","eslint":"^7.7.0","long":"^4.0.0","ndarray":"^1.0.19","pcm-player":"0.0.10","sleep-promise":"^8.0.1","st":"^2.0.0","tga-js":"^1.1.0","tinyify":"^3.0.0"},"gitHead":"a2f35e85d65098bc476b5f4ed8f003feac254bbc","_id":"@2003scape/rsc-client@1.0.1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","_npmUser":{"name":"misterhat","email":"misterhat144@gmail.com"},"maintainers":[{"name":"misterhat","email":"misterhat144@gmail.com"}],"dist":{"integrity":"sha512-6Ekolw5kZgoH2v7ZwkVBGWdXhdVC8bZOdtB9vxiewS4IDFeO4gjXtcqYk3mxgNTp6qpx0MSH2unnrab+LBQeEg==","shasum":"c3947f205e92daa020cf44b5b174141c66fd4551","tarball":"https://registry.npmjs.org/@2003scape/rsc-client/-/rsc-client-1.0.1.tgz","fileCount":77,"unpackedSize":4298989,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflekwCRA9TVsSAnZWagAAC1sQAJiK0RKCFceIk0dXBErV\nzc1ld2tBrBxpsez+O/m0pbrRxjSAIF3UOqdsxFCW2CcI27BmuJfEo2BODXmi\nA3tLCjhIu4KqJbutW4DyM4ovb8JO0KblzV1atBPHGEdmxH5TWrQoPN8Yn2yt\nofjBSLJ5rkqdsf5dAsNA+inSn1PX4LSm5f5ItdVhzZbOxrNq4RR7q+9PbQiX\nK7boO5zxZzW10cnyJkF8d7WH6PEAecO1+wdoUy6bcVMniBfWxMN8TvIRZ8mf\nKHo+SnF0V0h1AaR++G2xCxhem1nxlVVf1s1UXjAHgID9SbG/3coQaoHmah10\n3jW0heVcy7iklDTg/JByb2CMru+mq0D7MrBsmik4hrMfW8LKOdFoSyFdqVeT\npcBfslB2ht5YO86lPfU+98Qi1apjIZwYpt/EDdVBKLh0/qIEWQ1wZUPxK3LV\nV7JzClkeUXTli+r7ln4Pee6D+vPd5BQLZ2xw4HTrf0kJd3Dym9pU6mPoIpgv\ng7DutaVJa5Px/YN0CVwdXowUbosNCXVUwTP18ZPUvj91HDhYhKNgMf9IZm9x\n0AWp2S6EmnpeVRoajtoEFCl9hoqfyzaOOO8Wrbxqb1OhbDEBARrprIeAjNo8\nU4G2bpT2GSzwscv7ine8gDNCz6pGbrJ8P2OXMMMAjTCRxy/z/05UpNgi3bGX\nVK/n\r\n=AcJQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjvjwlKsT0uINT5KLS1hIhmtzEuR5UTAOH7bUYhzfR+AiAwYbNuod41WfG3r+hg3tN9q/hobgGIy2WaBL9U0H5NHQ=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rsc-client_1.0.1_1603660079462_0.8018526554407064"},"_hasShrinkwrap":false},"1.1.0":{"name":"@2003scape/rsc-client","version":"1.1.0","description":"runescape classic web client","main":"./src/mudclient.js","scripts":{"build-dev":"browserify -t bulkify -t brfs index.js > dist/index.bundle.js","build":"browserify -t bulkify -p tinyify index.js > dist/index.bundle.min.js","start":"st -p 1337 -nc -d dist"},"repository":{"type":"git","url":"git+https://github.com/2003scape/rsc-client.git"},"keywords":["runescape","classic","rsc","client","mmorpg","game"],"author":{"name":"2003Scape Team"},"license":"AGPL-3.0+","bugs":{"url":"https://github.com/2003scape/rsc-client/issues"},"homepage":"https://github.com/2003scape/rsc-client#readme","devDependencies":{"@ledgerhq/compressjs":"^1.3.2","alawmulaw":"^6.0.0","brfs":"^2.0.2","browserify":"^17.0.0","buffer":"^6.0.3","bulk-require":"^1.0.1","bulkify":"1.4.0","eslint":"^7.30.0","long":"^4.0.0","ndarray":"^1.0.19","pcm-player":"0.0.11","rand-token":"^1.0.1","sleep-promise":"^9.1.0","st":"^3.0.0","tga-js":"^1.1.1","tinyify":"^3.0.0"},"browserify":{"transform":["bulkify","brfs"]},"gitHead":"3608f109a836b9b055ad9f7563f23ae55c815b09","_id":"@2003scape/rsc-client@1.1.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-fWg5RbbKz+aQQBORgc/LsNJ4KhxqpK+fQr3ZVLHxZAT9gMyl7PJQiGJF8dQa4ag4+bAY/Jr//DAJst7vzf8l9Q==","shasum":"d85a2fb41027eba95e5400ae9471329f365b1825","tarball":"https://registry.npmjs.org/@2003scape/rsc-client/-/rsc-client-1.1.0.tgz","fileCount":116,"unpackedSize":5855342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5JoiCRA9TVsSAnZWagAAsjYP/RE65J/Ps6R7ciNfMYhw\nA9WwnqjqcMdd63oAZ+biUKTALMJOWO+l9f+kwTUgvrxpo51AY79UJQ5BzDwz\nGUtHrewy/ud64OWVAYgNiYCboXNdQqSsrz5bC4gxflTiNohtVGre9bXtiehk\nblWE3YjbtVkOk+BD9ttedmkQFUoc2brBTgpL0d5x7uK4DhmXapFCIywzM+L5\nTWixGexgBfLLbxm5Ofqy35qXnbkY/kEweCovHwN6zAXyAIqATsrjiFhbjdfe\napY13QMporSyAVU12XPcqxpEs6KyvwNt5F+AhBQ6roBNDhXG8olR4tbriRU8\nhMBGF7PYOodWnTFVZVyXlgat24XzWNrIayDfKme++mkzCOx3GedLHvQ1C8M4\nmN0MQpY0EZ98uie8iFWIUrfcolZlesK+zJkHig+Czx6WYAlPnO3wrwlzSIlU\n+2Id5kdEYvAcjCQYVfO+RET/pNEsfLAdpzeFogMwBOFhNdfJYpSR6XLL5WcT\n6JnO3rEQZw8lWJl2XNS4qhZbkTONuRoNxtOlfNO6oxs0O0DZcAhdth12hZBF\nZ+IAltWBttIzOZv5oIanzc5dgAXn1CJ7J/2e2Dweg/a2yYgzF40bqYk/1wHc\nT0JFJvmeej6GwOD/AfopBGgn3DNYqWSKLfktZUuwntPve1v/b43eXxSan9GT\njD8N\r\n=sfl8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+f/+O1VtjNgov8NQrlSNXllcrRBRv4m92PSKAINpLmAiEA8v450FPt5EdzTT+lBuPBAWTnU2Cl7XduOKNgwX1clx4="}]},"_npmUser":{"name":"misterhat","email":"misterhat144@gmail.com"},"directories":{},"maintainers":[{"name":"misterhat","email":"misterhat144@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rsc-client_1.1.0_1625594402127_0.8683599941057099"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-22T21:06:25.345Z","1.0.0":"2020-10-22T21:06:25.731Z","modified":"2022-04-04T10:34:54.434Z","1.0.1":"2020-10-25T21:07:59.739Z","1.1.0":"2021-07-06T18:00:02.485Z"},"maintainers":[{"name":"misterhat","email":"misterhat144@gmail.com"}],"description":"runescape classic web client","homepage":"https://github.com/2003scape/rsc-client#readme","keywords":["runescape","classic","rsc","client","mmorpg","game"],"repository":{"type":"git","url":"git+https://github.com/2003scape/rsc-client.git"},"author":{"name":"2003Scape Team"},"bugs":{"url":"https://github.com/2003scape/rsc-client/issues"},"license":"AGPL-3.0+","readme":"# rsc-client\na port of the\n[runescape classic](https://classic.runescape.wiki/w/RuneScape_Classic) client\n([*mudclient revision 204*](https://github.com/2003scape/mudclient204))\nfrom java to javascript.\n\nthis client is designed to work with\n[rsc-server](https://github.com/2003scape/rsc-server) and\n[RSCGo](https://github.com/spkaeros/RSCGo).\n\n![](./screenshot.png?raw=true)\n\n## install\n\n    $ npm install @2003scape/rsc-client\n\n## usage\nafter making modifications to `./src/`, run `$ npm install` to install developer\ndependencies, then `$ npm run build-dev` to create a new bundle in `./dist/`.\n\nthe `./dist/` directory contains everything you need to use the client.\nrun `$ npm start` to start a simple HTTP server at http://localhost:1337.\nyou may put optional arguments into the hash of the URL:\n\n    http://localhost:1337/index.html#members,127.0.0.1,43595\n\nalternatively, you can manually invoke `mudclient` on your own canvas:\n\n```javascript\nconst mudclient = require('@2003scape/rsc-client');\n\nconst mc = new mudclient(document.getElementById('mudclient-canvas'));\nmc.members = false;\nmc.threadSleep = 10;\n\n(async () => {\n    await mc.startApplication(512, 346, 'Runescape by Andrew Gower');\n})();\n```\n\nif you don't want to host a separate websockets server, you can\npass a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker)\ninstance of rsc-server into the `.server` property instead.\n\nsee https://github.com/2003scape/rsc-server#browser-usage\n\n## options\nfeatures from earlier mudclients and/or inspired by modern third-party clients\nwith their default values:\n\n```javascript\n// hold down middle click and move the mouse to rotate the camera (only when\n// camera is type manual)\nmc.options.middleClickCamera = true;\n\n// scroll panel lists and chatbox with the mouse wheel (and camera if zoom\n// enabled)\nmc.options.mouseWheel = true;\n\n// click the compas to face north\nmc.options.resetCompass = true;\n\n// show roofs unless inside buildings\nmc.options.showRoofs = false;\n\n// use arrow keys (and mouse wheel if enabled) to zoom in and out\nmc.options.zoomCamera = true;\n\n// show the remaining experience until next level in skills tab\nmc.options.remainingExperience = false;\n\n// show your total experience in the skills tab\nmc.options.totalExperience = false;\n\n// censor chat and private messages\nmc.options.wordFilter = true;\n\n// support account registration, password changes and recovery within the\n// client using jagex's older UIs\nmc.options.accountManagement = true;\n\n// display an \"Fps: X\" counter at the bottom right of the screen\nmc.options.fpsCounter = false;\n\n// retry logins when the server disconnects\nmc.options.retryLoginOnDisconnect = true;\n\n// experimental mobile support\nmc.options.mobile = false;\n```\n\n## assets\nmake sure that wherever you host it, it's able to access\n`./data204/` via\n[XHR](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest)\nfor its cache files.\n\n## faq\n* what is the purpose of `| 0`? why not use `Math.floor()`?\n\n  `number | 0` is an\n  [asm.js](https://github.com/zbjornson/human-asmjs#11-type-declaration)\n  declaration for declaring a number as a 32-bit integer. the original\n  java client used integer overflow techniques often, and this is the most\n  performant method to declare them and accomplish the correct\n  behaviour (javascript's\n  [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)\n  is an [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754); a\n  [java double](https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html)).\n\n## license\nCopyright 2021  2003Scape Team\n\nThis program is free software: you can redistribute it and/or modify it under\nthe terms of the GNU Affero General Public License as published by the\nFree Software Foundation, either version 3 of the License, or (at your option)\nany later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE. See the GNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License along\nwith this program. If not, see http://www.gnu.org/licenses/.\n","readmeFilename":"README.md"}