Page 1 of 1

0x98 All Names with 2D

Posted: Sat May 30, 2009 9:44 am
by *Edwards
Notes
Only 3D clients send this packet. Server and client packet.
Unsure as of when, 2D client added this ability also.
Does anyone know which client can support this feature?

Re: 0x98 All Names with 2D

Posted: Sat May 30, 2009 4:16 pm
by CWO
Newer clients support this feature... at least 5.x+. This packet is used when you hold Ctrl+Shift. But this is ONLY requested for mobiles in the area. Items use their cliloc names.

uopacket.cfg

Code: Select all

Packet 0x98
{
    Length variable
    ReceiveFunction allnames:allnames
}
allnames.src

Code: Select all

use uo;

program install()
	Print("Installing Allnames packethook");
	return 1;
endprogram

exported function allnames(who, byref packet)
	Packet.SetLength(37);
	Packet.SetString(7, SystemFindObjectBySerial(packet.getint32(3)).name, 1);
	Packet.SendPacket(who);
  return 1;
endfunction

Although I have this in a packethook still because my shard is on 096 currently, this was added into the core late in 097.

Re: 0x98 All Names with 2D

Posted: Sat May 30, 2009 10:22 pm
by *Edwards
Thanks a lot CWO I had it working on my project here but I'm still using really old client... I might upgrade really soon :( :)

Re: 0x98 All Names with 2D

Posted: Wed Sep 23, 2009 5:09 am
by Curb
This is insanely late and rather bringing it out of the dust a little, but can confirm that client 4.0.3c has the Ctrl+Shift 'all names' feature too, but 4.0.1l (and before) doesn't. So somewhere between those two.

Re: 0x98 All Names with 2D

Posted: Fri Jan 29, 2010 10:06 am
by Pachacuti
*An Corp*

Err.. is there any way to disable this feature? Without having to use older clients?

Re: 0x98 All Names with 2D

Posted: Fri Jan 29, 2010 1:24 pm
by *Edwards
I know there is a shard project in the download section with the packethook allnames. You could simply modify it to return 1 so POL will modify it as you want.

Re: 0x98 All Names with 2D

Posted: Fri Feb 05, 2010 5:45 am
by CWO
Well if you want to disable the displaying of the names in AllNames, all you need to do is install the code I have above but change the function to

Code: Select all

exported function allnames(who, byref packet)
  return 1;
endfunction
Other than forcing the use of older clients, you can't actually disable the client from attempting to use AllNames, you can only fool around with the reply.

Re: 0x98 All Names with 2D

Posted: Fri Feb 05, 2010 8:28 am
by Pachacuti
What I got with this was that the boxes keep being displayed, but the names dont appear...

I would like the boxes not to show up, but its in the core right?

My solution was disconecting players which used this allnames =P

Re: 0x98 All Names with 2D

Posted: Fri Feb 05, 2010 1:14 pm
by Turley
Nope its not in the core, the client simply expects an answer thats why it shows the box. Maybe setting account.uo_expansion<AOS and/or servspecopt.uofeatureenable <AOS helps.

Re: 0x98 All Names with 2D

Posted: Sat Feb 06, 2010 5:00 am
by Pachacuti
But turley, would this mess with the tooltips? Or the graphics of the new mobiles?

Re: 0x98 All Names with 2D

Posted: Sat Feb 06, 2010 7:52 am
by CWO
I wouldn't recommend disconnection since people can hit it purely by accident by hitting Ctrl+Shift. Since the buttons are next to eachother, accidents can happen. You'll then develop some upset players. And Turley, it won't work that I know of because my shard is pre-AOS and the AllNames still works.

Re: 0x98 All Names with 2D

Posted: Sun Feb 07, 2010 5:26 am
by Pachacuti
The idea isnt disconnecting in the first time. If someone press it, a warning will appear and nothing will happen. If the player keep using it, he'll be disconnected. Got it? This was the only solution I got to prevent players from using allnames...