Tooltips; What are they and why don't they work or do they?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Tooltips; What are they and why don't they work or do they?

Post by Yukiko »

I have POL 0.98 Core and Distro set-up and running. I have UOFeatureEnable set to 0x20. I have the megacliloc (tooltip) packethook package installed and enabled. I am using UO:ML with client version 6.0.9.2. I have tooltips enabled in the client options gump. I create a "townchest" which has a tooltip on it in the itemdesc.cfg file entry. I hover my mouse over the chest or I click on the chest. I even fiddle with the "Item Properties Display Mode" setting but I can't seem to figure out how to get that tooltip to display. So what am I doing wrong? Do tooltips actually work? If so how, pray tell, do I get them to show-up?
User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: Tooltips; What are they and why don't they work or do they?

Post by Sadahar »

I'm not sure if the tooltip will display the "Tooltip" cfg entry of the item (maybe you have to script that), but if you have them enabled, every time you hover the mouse over an item the tooltip will display its default name.

Myabe you dont have the correct expansion enabled(ML)?
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Tooltips; What are they and why don't they work or do they?

Post by Yukiko »

What good is it to display the name? I can always get that just by clicking on the item or enabling "follows Mouse" in "Item Properties Display Mode" client options gump. Why would there be a "Tooltip" member on items if it can't be displayed? I'm somewhat confused. I thought since the megacliloc packethook was under the "Tooltip" subject in custom scripts then it should display tooltips. Maybe I just don't get packethooks. It wouldn't be the first time something was over my head.

Let me explain what I want to do and maybe you can tell me if it's possible.

I hover the mouse over a weapon and a gump pops up showing the intrinsic properties of that weapon or atleast those properties I want it to show. That's what I had in mind when I started looking at tooltips. I know it isn't exactly a tooltip I am trying to do but I was hoping I could use the tooltip member to on which to store that kind of info.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Tooltips; What are they and why don't they work or do they?

Post by Yukiko »

Oh yes I even set my UOFeatureEnable to 0x1a0 to make sure I had all the proper flags enabled and that still didn't work.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: Tooltips; What are they and why don't they work or do they?

Post by Turley »

You could check with eg SpyUO what exactly happens.
If your client is <5.0 the server should send 0xBF Sub 0x10 per object, and client answers with 0xBF Sub 0x10
if your client is >=5.0 the server sends 0xDC per object -> Client response with 0xD6
this is done by the core if you have set the correct flags.
After the client response the core sends 0xd6 packet with the text/clilocs (this is what you should hook)
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: Tooltips; What are they and why don't they work or do they?

Post by MuadDib »

the itemdesc.cfg tooltip options is for oldschool tooltips from 2.x clients. hehe
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Tooltips; What are they and why don't they work or do they?

Post by Yukiko »

Thanks Turley. I will do some inspection there.

Maud, since what you say is the case I must have misunderstood the whole purpose tooltip hook.

I'll have to look at the hook script more closely.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: Tooltips; What are they and why don't they work or do they?

Post by MuadDib »

yeah, go over the actual hook closely. I haven't done anything with it so can't say myself. But the Itemdesc entry, is for old tooltips in oldschool clients
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Tooltips; What are they and why don't they work or do they?

Post by Yukiko »

Anybody know where I can get the latest clients.cfg file for SpyUO?
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: Tooltips; What are they and why don't they work or do they?

Post by Turley »

Take a look at the spyuo thread on runuo.
Which clientversion do you have, maybe its in my client.cfg?
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Tooltips; What are they and why don't they work or do they?

Post by Yukiko »

6.0.9.2 ATM.

I'll revisit that thread. I didn't look through the entire postings there.
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: Tooltips; What are they and why don't they work or do they?

Post by Tomi »

4874efec: "6.0.9.2 2d" 41c610 5 2 435cd5 7 6
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Tooltips; What are they and why don't they work or do they?

Post by Yukiko »

Thanks Tomi.
Post Reply