Join Room (XML): Difference between revisions
Jump to navigation
Jump to search
imported>Jamie Created page with "As SFS is an all-in-one package for MMOs, it contains some default methods to manipulate a user inside a zone. For instance, to join a room, you co..." |
imported>Arthur Arthur moved page Join Room to Join Room (XML) without leaving a redirect: For jr packet |
(One intermediate revision by one other user not shown) | |
(No difference)
|
Latest revision as of 21:11, 18 October 2014
As SFS is an all-in-one package for MMOs, it contains some default methods to manipulate a user inside a zone. For instance, to join a room, you could send a packet to the server containing the room's ID, a password, whether to leave the previous room too (i.e. for multiple rooms)
Example:
* <msg t='sys'><body action='joinRoom' r='-1'><room id='2' pwd= spec='0' leave='0' old='-1' /></body></msg>
<msg t='sys'><body action='joinOK' r='2'><pid id='0'/><vars /><uLs r='2'><n><![CDATA[scsc]]></n><vars></vars></uLs></body></msg>
(this example is NOT Club Penguin specific)
Packet Information
joinRoom
Action | joinRoom |
---|---|
XML Node | <room id='1' pwd='' spec='0' leave='1' old='-1' /> |
(where old is the room ID to leave, i.e. the one you're leaving)
joinOK
Action | joinOK |
---|---|
XML Node | <pid id='0' /> |
XML Node | <vars /> |
XML Node | <uLs /> |
List Element | <u i='1337' m='0'><n><![CDATA[Nickname1]]></n><vars></vars> |
(m = moderator)
![]() |
Warning: The user ID returned here is NOT the database row ID (i.e. player ID), but an internal counter used by SmartFoxServer for uniqueness. |
joinKO
TODO! This is sent on failure to join a room. Please help us by expanding.