View Single Post
Old 06-19-2005, 10:57 PM   #16 (permalink)
Gandy897
Forum Expert
 
Join Date: Mar 2004
Location: New York City
Age: 32
Posts: 287
Send a message via AIM to Gandy897
Default

Quote:
Originally Posted by Jakob
Zippy wrote:
Code:
if ( (int)type == 0x0F ) // If the message is of type GM
The variable type can never be 0x0F. If the client sends a message with the type 0x0F (this is done when you use the GM: prompt) this code
Code:
if ( !Enum.IsDefined( typeof( MessageType ), type ) )
	type = MessageType.Regular;
detects that there is no value in the MessageType enum that is equal to 0x0F, so it sets the type to MessageType.Regular;

Thus, when it arrives to PlayerMobile.DoSpeech the type is 0x00 (RegularSpeech) instead of 0x0F. You need to add the line I wrote into the core to prevent the core from changing type from 0x0F to 0x00.

Umm dude.. Zippy is a core developer .. why not just say thanks zippy for the assist and let it be.. sheesh
__________________
Do what you want with the women, but let me go :)
Gandy897 is offline   Reply With Quote