mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-11 14:34:40 +00:00
Enable GM (anonymous mode) for all players
This commit is contained in:
parent
ccad92a555
commit
38715c0d04
2 changed files with 4 additions and 6 deletions
|
|
@ -13,8 +13,7 @@ final case class LoginRespMessage(token : String, // printable ascii for 16
|
|||
subscriptionStatus : Long, // 2 or 5
|
||||
someToken : Long, // 685276011
|
||||
username : String, // the user
|
||||
unk5 : Long, // 0 and unset bool
|
||||
someBit : Boolean) extends PlanetSideGamePacket {
|
||||
privilege : Long) extends PlanetSideGamePacket {
|
||||
def opcode = GamePacketOpcode.LoginRespMessage
|
||||
def encode = LoginRespMessage.encode(this)
|
||||
}
|
||||
|
|
@ -27,8 +26,7 @@ object LoginRespMessage extends Marshallable[LoginRespMessage] {
|
|||
("station_error" | uint32L) ::
|
||||
("subscription_status" | uint32L) ::
|
||||
("unknown" | uint32L) ::
|
||||
("username" | PacketHelpers.encodedString) ::
|
||||
("unknown" | uint32L) ::
|
||||
("unknown" | byteAligned(bool))
|
||||
("username" | PacketHelpers.encodedString) :: (
|
||||
("privilege" | uint32L) flatZip { priv => bool } xmap[Long]({case (a, _) => a}, priv => (priv, (priv & 1) == 1)))
|
||||
).as[LoginRespMessage]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue