character_name speaking w/ color 0x34

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm

character_name speaking w/ color 0x34

Post by atreiu »

Hello folks

when character said something then in server console i have this line

Code: Select all

character_name speaking w/ color 0x34
how to disable this? i am searching&searching but nothing helpful

thanks in advance
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: character_name speaking w/ color 0x34

Post by CWO »

Not sure about that one. I pulled up an old packethook I had for speech and it defined an acceptable range between 2 and 1001. This snippet is from years ago on POL096 but I'll paste it in case it helps you track it down. This was part of my 0xAD packethook. The actual reason for this color check in my script was a client side problem where the speech color was corrupted and would result in invisible speech.

Code: Select all

exported function HandleSpeech( character, byref packet )
	var color := packet.GetInt16(4);
	if ((color < 2) || (color > 1001))
		SendSysMessage(character, "You are speaking with an out of range text color. Please go into your options and change your speech color.");
		packet.SetInt16(4, 1001);
	endif
	return 0;
endfunction
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm

Re: character_name speaking w/ color 0x34

Post by atreiu »

i've checked 0xAD packet hook and all *.src *.inc files on that words
situation become to mistical. mb search in server source code =(
Skinny
Expert Poster
Posts: 76
Joined: Wed Dec 19, 2012 10:27 pm

Re: character_name speaking w/ color 0x34

Post by Skinny »

Go to pol.cfg file and find this lines:

Code: Select all

#
# ShowSpeechColors: If enabled, reports the speech colors clients are using when they talk.
#
ShowSpeechColors=0
Set "ShowSpeechColors" to 0 (zero).
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm

Re: character_name speaking w/ color 0x34

Post by atreiu »

thank you Skinny
Post Reply