mirror of
https://github.com/moparisthebest/rswiki-book
synced 2024-11-22 00:52:15 -05:00
Create MediaWiki page '135 Protocol'
This commit is contained in:
parent
3af8529f09
commit
52ee3005e6
87
135-Protocol.mediawiki
Normal file
87
135-Protocol.mediawiki
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
[[Category RSC]]
|
||||||
|
|
||||||
|
This page refers to the RSC #135 client revision.
|
||||||
|
|
||||||
|
|
||||||
|
== '''Packet structure''' ==
|
||||||
|
?
|
||||||
|
|
||||||
|
== '''Login''' ==
|
||||||
|
?
|
||||||
|
|
||||||
|
== '''Incoming Data''' ==
|
||||||
|
'''TODO:'''
|
||||||
|
<pre>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<table border="1" cellpadding="3" cellspacing="3">
|
||||||
|
<tr>
|
||||||
|
<td><b>opcode</b></td>
|
||||||
|
<td><b>usage</b></td>
|
||||||
|
<td><b>size</b></td>
|
||||||
|
<td><b>payload</b></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
== '''Outgoing Data''' ==
|
||||||
|
<pre>
|
||||||
|
(ns rsc.135.packets
|
||||||
|
(:use [jagex.client.SocketStream]))
|
||||||
|
|
||||||
|
;; Opcode: 2
|
||||||
|
(defn newplayer [stream]
|
||||||
|
(doto stream
|
||||||
|
(.begin-packet 2)
|
||||||
|
(.put-int16 ???)
|
||||||
|
(.put-int64 (Util/long-for-name username))
|
||||||
|
(.put-int16 referrerid)
|
||||||
|
(.putline-rsa password server-session-id key-a key-b) ; keys for RSA?
|
||||||
|
(.flush)
|
||||||
|
(.read) ; newplayer response
|
||||||
|
(.end-packet)))
|
||||||
|
|
||||||
|
;; Opcode: 6
|
||||||
|
(defn packet-logout [stream]
|
||||||
|
(doto stream
|
||||||
|
(.begin-packet 6)
|
||||||
|
(.end-packet)))
|
||||||
|
|
||||||
|
;; Opcode: 10
|
||||||
|
(defn report-abuse [stream username]
|
||||||
|
(let [name (.substring username 12)
|
||||||
|
l5 (Util/long-for-name name)]
|
||||||
|
(doto stream
|
||||||
|
(.begin-packet 10)
|
||||||
|
(.put-int64 l5)
|
||||||
|
(.end-packet))))
|
||||||
|
|
||||||
|
;; Opcode: 27
|
||||||
|
(defn remove-from-friends-list [stream name] ; name is long represenation of username (i.e Util/long-for-name username)
|
||||||
|
(doto stream
|
||||||
|
(.begin-packet 27)
|
||||||
|
(.put-int64 name)
|
||||||
|
(.end-packet)))
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<table border="1" cellpadding="3" cellspacing="3">
|
||||||
|
<tr>
|
||||||
|
<td><b>opcode</b></td>
|
||||||
|
<td><b>usage</b></td>
|
||||||
|
<td><b>size</b></td>
|
||||||
|
<td><b>payload</b></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
@ -9,4 +9,4 @@ The following categories contain pages or media.
|
|||||||
* [[Category Packet 474]] (1 members)
|
* [[Category Packet 474]] (1 members)
|
||||||
* [[Category Packet {{{revision}}}]] (1 members)
|
* [[Category Packet {{{revision}}}]] (1 members)
|
||||||
* [[Category RS2]] (11 members)
|
* [[Category RS2]] (11 members)
|
||||||
* [[Category RSC]] (5 members)
|
* [[Category RSC]] (6 members)
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
This page will display any information regarding RSC.
|
This page will display any information regarding RSC.
|
||||||
<!-- DO NOT EDIT BELOW THIS LINE, OR CHANGE THIS COMMENT, CODE AUTOMATICALLY GENERATED BY category.sh -->
|
<!-- DO NOT EDIT BELOW THIS LINE, OR CHANGE THIS COMMENT, CODE AUTOMATICALLY GENERATED BY category.sh -->
|
||||||
== '''Pages in category "RSC"''' ==
|
== '''Pages in category "RSC"''' ==
|
||||||
The following 5 pages are in this category.
|
The following 6 pages are in this category.
|
||||||
|
* [[135 Protocol]]
|
||||||
* [[202 Protocol]]
|
* [[202 Protocol]]
|
||||||
* [[204 Items]]
|
* [[204 Items]]
|
||||||
* [[204 NPCs]]
|
* [[204 NPCs]]
|
||||||
|
Loading…
Reference in New Issue
Block a user