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
Weird misnaming effect in connection with decaying items.
Author Message
Gadianton
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #1
Weird misnaming effect in connection with decaying items.
I really don't know where to put it, but since I can't rule out some glitch in my scripts I put it here. I am currently developing a new set of scripts for our project. Since I am alone on the server and there are only a handful of items I have witnessed a really awkward behaviour.

If I have an Item laying around called "Bogus" and this item decays as soon as I create some new item (does not matter which) - say a piece of marble - the tooltip of this new item reads "Bogus". Most interestingly if you use a function like .xshow name on the item it will give you the correct name: "Marble"

I have reproduced this phenomenon very securely now, it even went so far that when I logged out yesterday there was still one of my testitems lying around. It decayed overnight and when I logged in today my Char suddenly was named like the item. Using .set name= fixed that but I still find it to be odd.

At first I blamed one of my standard typedef scripts, that manipulates the Tooltips via the @CLIENTTOOLTIP trigger. But even commenting it out or using items that do not use this type has not fixed the issue.

Anyone has seen this before? My server build is a nightly from April 30th 2012.

advice appreciated

Gadianton

Okay it seems to be some sort of client issue 7.0.7.1 client I use. When I relogg after such an event the item has the correct name again...

But if anybody else has seen this would be great to get some feedback.
(This post was last modified: 09-06-2012 10:13 PM by Gadianton.)
09-06-2012 10:09 PM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #2
RE: Weird misnaming effect in connection with decaying items.
This is a client tooltip issue. It only happens because tooltips are updated after a certain amount of seconds at a certain amount of times. You can alter these values in sphere.ini but the real way of updating a tooltip is to use
Code:
[obj.]resendtooltip
You can use this in a script such as
Code:
on=@itemdropon_ground //first placed in world or dropped whenever after creation
act.resendtooltip
You should use this feature in other triggers such as @itemdropon_pack, @itemdropon_item to update the amount of objects inside a container, example
Code:
on=@itemdropon_pack
argo.resendtooltip //argo is the pack, act is the item
act.resendtooltip //act is the item, argo is the pack
Pretty simple I guess, wherever you notice this error just add in a trigger and add resendtooltip to the object in question Smile

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
09-12-2012 04:04 PM
Visit this user's website 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)