protocol speak fix
This commit is contained in:
parent
09548488fa
commit
f9e7d52ac0
|
@ -35,18 +35,12 @@ enum SpeakClasses {
|
|||
SPEAK_PRIVATE = 0x06, //Players speaking privately to players
|
||||
SPEAK_CHANNEL_Y = 0x07, //Yellow message in chat
|
||||
SPEAK_CHANNEL_W = 0x08, //White message in chat
|
||||
SPEAK_RVR_CHANNEL = 0x09, //Reporting rule violation - Ctrl+R
|
||||
SPEAK_RVR_ANSWER = 0x0A, //Answering report
|
||||
SPEAK_RVR_CONTINUE = 0x0B, //Answering the answer of the report
|
||||
SPEAK_BROADCAST = 0x0C, //Broadcast a message - #b
|
||||
SPEAK_CHANNEL_R1 = 0x0D, //Talk red on chat - #c
|
||||
SPEAK_PRIVATE_RED = 0x0E, //Red private - @name@ text
|
||||
SPEAK_CHANNEL_O = 0x0F, //Talk orange on text
|
||||
//SPEAK_ = 0x10, //?
|
||||
SPEAK_CHANNEL_R2 = 0x11, //Talk red anonymously on chat - #d
|
||||
//SPEAK_ = 0x12, //?
|
||||
SPEAK_MONSTER_SAY = 0x13, //Talk orange
|
||||
SPEAK_MONSTER_YELL = 0x14 //Yell orange
|
||||
SPEAK_BROADCAST = 0x09, //Broadcast a message - #b
|
||||
SPEAK_CHANNEL_R1 = 0x0A, //Talk red on chat - #c
|
||||
SPEAK_PRIVATE_RED = 0x0B, //Red private - @name@ text
|
||||
SPEAK_CHANNEL_O = 0x0C, //Talk orange on text
|
||||
SPEAK_MONSTER_SAY = 0x0D, //Talk orange
|
||||
SPEAK_MONSTER_YELL = 0x0E //Yell orange
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -684,16 +684,18 @@ void ProtocolGame::parseCreatureSpeak(InputMessage& msg)
|
|||
parsePosition(msg); // creaturePos
|
||||
break;
|
||||
case SPEAK_CHANNEL_R1:
|
||||
case SPEAK_CHANNEL_R2:
|
||||
case SPEAK_CHANNEL_O:
|
||||
case SPEAK_CHANNEL_Y:
|
||||
case SPEAK_CHANNEL_W:
|
||||
msg.getU16(); // channelId
|
||||
break;
|
||||
case SPEAK_RVR_CHANNEL:
|
||||
msg.getU32(); // time
|
||||
case SPEAK_PRIVATE:
|
||||
case SPEAK_PRIVATE_PN:
|
||||
case SPEAK_BROADCAST:
|
||||
case SPEAK_PRIVATE_RED:
|
||||
break;
|
||||
default:
|
||||
logDebug("[ProtocolGame::parseCreatureSpeak]: Unknown speak type.", (int)type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue