R63 Post-Shuffle Packet Structure - Official Rooms (Public Room List) 100%
Hey, recently I learned about how to read packet structures (from myself lol) and I want to share a packet structure with you guys. It's the Official Rooms list (previously known as the Public Rooms list) 100% (with promoted campaign rooms and recommended rooms, almost every detail coded). This code is directly taken from Carbon (my Java R63 emulator)
The packet invoking void:
PHP Code:
ServerMessage SS = new ServerMessage(OpcodesOut.OFFICIAL_ROOMS); // append short(header/packet id)
SS.writeInt(Officials.size()); // append int with amount of items
for (OfficialItem Item : Officials)
{
Item.Serialize(SS); // for every OfficialItem Item in the List Officials, invoke the Serialize void of that type.
}
boolean rec = (Recommended != null);
SS.writeInt((rec) ? 1 : 0); // append int, if you want a recommended room, do 1, else do 0.
if(rec)
{
Recommended.Serialize(SS); // if you want a recommended room, serialize an OfficialItem class item, but ONLY if the id above is 1
}
// Next step is hard to understand, if you want promoted rooms, change below bool to true
bool promoted = false
SS.writeInt((promoted) ? 1 : 0); // write 0 if promoted = false, write 1 if promoted = true)
if (promoted)
{
SS.writeUTF("partyRoom"); // write string with name of campaign
SS.writeUTF(""); // write string, no idea maybe image
SS.writeInt(2); // write int with amount of rooms
for (Room Room : PromotedRooms)
{
Room.getRoomData().Serialize(SS); // serialize the roomdata of every Room type in the List PromotedRooms (same roomdata as in other tabs)
}
}
session.sendMessage(SS); // send message
What it will look like:
http://i.imgur.com/heP84.png
Re: R63 Post-Shuffle Packet Structure - Official Rooms (Public Room List) 100%
wow thatis very nice? But how can i add that to my hotel? (i use atom emu)
#1st post
Re: R63 Post-Shuffle Packet Structure - Official Rooms (Public Room List) 100%
Quote:
Originally Posted by
FlyHotel
wow thatis very nice? But how can i add that to my hotel? (i use atom emu)
#1st post
You gotta code it.
Re: R63 Post-Shuffle Packet Structure - Official Rooms (Public Room List) 100%
Quote:
Originally Posted by
Tha
You gotta code it.
mhm ok, btw you have a r63b hotel do you have a big catalogue? Mine catalogue is scrap it doesn't have the new furni's