Page 1 of 1

read_light_level

Posted: Thu Feb 12, 2009 1:22 am
by coltain
Hallo

Is there a possibility to read a persons actual light level? I`ve searched packet list but have not noticed any useful.

I want to compare a light level I send with actual in UO. This is to prevent using a razor feature.

Re: read_light_level

Posted: Fri Feb 13, 2009 5:13 pm
by ncrsn
As far as I know, no.

Closest thing you can do is to save lightlevel of character every time it is send by server; but, this doesn't help you in this case, as what server tells the client to do forces nothing.

If you have a working day/night cycle you could of course add a how dark is it out there -check, with some options like "not dark at all" and so on. I wouldn't do that, but maybe someone out there likes the idea.

Re: read_light_level

Posted: Sat Feb 14, 2009 2:04 pm
by Pierce
I also don't know packet to read the clients light level.

But even if such a packet would exist, you can't prevent Razor from setting the "always light", because it is done on your players computer. I think Razor simply blocks packet 0x4e and 0x4f and sends upon start "light on" ;)
I hate that, too. It makes a lot of items pretty useless and players can't sell these ones.

Re: read_light_level

Posted: Sat Feb 14, 2009 3:54 pm
by coltain
Yes, I cannot break throught razor block

But I could disconnect a player that has a different light set that I send.

Re: read_light_level

Posted: Sat Feb 14, 2009 4:20 pm
by Pierce
*g* The bad way. If you find that packet, tell us. I like that :D
I would do it the same way, but i think there is no way yet :shame: