objects v3.1

This commit is contained in:
wish
2022-08-02 05:21:03 +10:00
parent f8afa42707
commit e0b1b7eab2
3 changed files with 14 additions and 4 deletions

View File

@@ -134,7 +134,6 @@ func handleMsgSysTerminalLog(s *Session, p mhfpacket.MHFPacket) {
func handleMsgSysLogin(s *Session, p mhfpacket.MHFPacket) {
pkt := p.(*mhfpacket.MsgSysLogin)
name := ""
rights := uint32(0x0E)
// 0e with normal sub 4e when having premium
@@ -150,9 +149,7 @@ func handleMsgSysLogin(s *Session, p mhfpacket.MHFPacket) {
panic(err)
}
s.server.db.QueryRow("SELECT name FROM characters WHERE id = $1", pkt.CharID0).Scan(&name)
s.Lock()
s.Name = name
s.charID = pkt.CharID0
s.rights = rights
s.token = pkt.LoginTokenString