Page 1 of 1

speaking with out-of-range color 0x7620

Posted: Thu Oct 02, 2008 9:23 pm
by BELL
if im use ML client. its fixed?

Re: speaking with out-of-range color 0x7620

Posted: Thu Oct 02, 2008 11:33 pm
by BELL
client 5.0.1.h

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 11:50 am
by *Edwards

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 1:49 pm
by BELL
tnx, go --->

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 2:10 pm
by BELL
sorry
antics im using )) on not fixed speech error
GetUOStatus .. im using 96 POL, packet need 97 pol
and im not find on this packed fix my error - out of range color....
----
im bad speak and read eng, sorry... may be im no understand?

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 2:22 pm
by BELL

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 2:39 pm
by BELL
im no view road to fix (((

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 4:53 pm
by *Edwards
I'm not admin here but Please post all in one reply.

Pol096 handle packethooks.

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 11:03 pm
by BELL
ok, sorry
packethooks- yes, but what id packet i do hook?
1) [0x03] Talk Request
2) [0xAD] Unicode/Ascii speech request
3) [0xB3] Chat Text ????
i dont know ((

Re: speaking with out-of-range color 0x7620

Posted: Fri Oct 03, 2008 11:32 pm
by CWO
Packet 0xAD

Code: Select all

use uo;
use os;
use polsys;

program HookStart()
	return 1;
endprogram

exported function HandleSpeech( character, byref packet )
	var color := packet.GetInt16(4);
	if ((color < 2) || (color > 1001))
		packet.SetInt16(4, 1001);
	endif
endfunction

Re: speaking with out-of-range color 0x7620

Posted: Sat Oct 04, 2008 1:11 am
by BELL
CWO wrote:Packet 0xAD

Code: Select all

use uo;
use os;
use polsys;

program HookStart()
	return 1;
endprogram

exported function HandleSpeech( character, byref packet )
	var color := packet.GetInt16(4);
	if ((color < 2) || (color > 1001))
		packet.SetInt16(4, 1001);
	endif
endfunction

Code: Select all

Packet 0xAD
{
  Length		variable
  ReceiveFunction	speech:HandleSpeech
}
its right - working
thx, many great thx, sorry bad englush )))))