SphereCommunity
Item tooltip - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Item tooltip (/Thread-Item-tooltip)



Item tooltip - Tastaran - 05-10-2017 05:22 AM

Hi,

I wanted to realize item properties through tooltip. But can't deal with some problems ...

1)I can't see any cliloc. In my code i see only "Test".

Code:
on=@ClientTooltip
src.addcliloc 1062028,Test
src.say ToolTip activated
return 0

2) Trigger @ClientTooltip triggers only when an item is created ? Smile I thought that it will fire when I positioned cursor on item.
Because my trigger fires only when an item is created.

In sphere.ini I have this about tooltip settings :
FeatureAOS = 06
TooltipMode=1
AutoTooltipResend=07f

Using client : 5.0.9.1 and ML version of UO.


RE: Item tooltip - darksun84 - 05-10-2017 06:06 AM

I think it conflicts with the @ClientTooltip from TEVENTS t_equipitem (items/sphere_item_typedef_equipitem.scp), when i disable it, your tooltip works fine with (using client 7.0.20.0)

When i hover the mouse on item i get:
Condition: Test
plus the basic properties.

So i think you should try to disable the TEVENTS t_equipitem (just replace TYPEDEF with COMMENT keyword) then resync,resend tooltip (see below)
Another thing:
When you are testing clienttooltip, and you are making a change, make sure to use .xresendtooltip on the item/creature, otherwise you'll need to wait some time until the tooltipcache is cleared.


RE: Item tooltip - Tastaran - 05-10-2017 07:45 AM

Yea trigger works properly if I use resend - problem was cache.

But Still i dont see Clilocs ... btw In main post I see only "ToolTip activated", there i've made mistake in description - I see only my testing say, but nothing from cliloc. T-equipitem was not problem


RE: Item tooltip - darksun84 - 05-10-2017 08:36 AM

What is the text entry of that cliloc with your client files?

Mine is something like this:
"Condition: ~Status1"
something like that

Try with other clilocs numbers from here:
https://wiki.spherecommunity.net/index.php?title=ADDCLILOC


RE: Item tooltip - Tastaran - 05-10-2017 08:50 AM

I see this - simply nothing from it Big Grin ... Tried other clilocs, or original sphere items with defined clilocs.

[Image: pPJQ.png]


RE: Item tooltip - Tastaran - 05-10-2017 07:10 PM

Well...Solved - I tried older client - 5.0.9.0 and it started working itself. Even If i start again my client 5.0.9.1, it works too.