The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item tooltip
Author Message
Tastaran
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #1
Item tooltip
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.
05-10-2017 05:22 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Item tooltip
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.
05-10-2017 06:06 AM
Find all posts by this user Like Post Quote this message in a reply
Tastaran
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #3
RE: Item tooltip
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
(This post was last modified: 05-10-2017 07:46 AM by Tastaran.)
05-10-2017 07:45 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Item tooltip
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.p...=ADDCLILOC
05-10-2017 08:36 AM
Find all posts by this user Like Post Quote this message in a reply
Tastaran
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #5
RE: Item tooltip
I see this - simply nothing from it Big Grin ... Tried other clilocs, or original sphere items with defined clilocs.

[Image: pPJQ.png]
(This post was last modified: 05-10-2017 08:51 AM by Tastaran.)
05-10-2017 08:50 AM
Find all posts by this user Like Post Quote this message in a reply
Tastaran
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2015
Reputation: 0



Post: #6
RE: Item tooltip
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.
(This post was last modified: 05-10-2017 07:57 PM by Tastaran.)
05-10-2017 07:10 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)