Clients in stage are now notified when player chooses a quest

This commit is contained in:
Sophie
2020-03-07 14:21:08 +00:00
parent ac40e679fe
commit 795028a1ca
3 changed files with 29 additions and 7 deletions

View File

@@ -58,6 +58,9 @@ func (s *Session) Start() {
// QueueSend queues a packet (raw []byte) to be sent.
func (s *Session) QueueSend(data []byte) {
fmt.Printf("Sending To CharID: '%x'\n", s.charID)
fmt.Printf("Sent Data:\n%s\n", hex.Dump(data))
s.sendPackets <- data
}
@@ -144,6 +147,7 @@ func (s *Session) handlePacketGroup(pktGroup []byte) {
opcode != network.MSG_SYS_NOP &&
opcode != network.MSG_SYS_TIME &&
opcode != network.MSG_SYS_EXTEND_THRESHOLD {
fmt.Printf("CharID: '%x'\n", s.charID)
fmt.Printf("Opcode: %s\n", opcode)
fmt.Printf("Data:\n%s\n", hex.Dump(pktGroup))
}