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
you got issues!
Author Message
darksun84
Sir Spamalot
****

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



Post: #2
RE: you got issues!
The weird colors are caused by the CanUse attribute and t_equiptem event. It happens that some items, when created, get a weird value in their CanUse attribute.

One of these items is the checkered shirt, an item that is almost present in every vendor NPC:
ITEM=random_shirts_human // This includes the checkered shirt

So the NPC can't equip it (notes that the item is not placed at all in the world), then if we take a look at the following line we see this:
COLOR=colors_all

For some reason (probably because it can't equip it and the item is not placed in the world), the color will be applied to the npc skin value.

So possible solutions are :
Apply the CanUse = can_use_all in the Itemdef of each item that doesn't have it, or modify/remove the t_equipitem event.
(This post was last modified: 10-20-2015 10:15 PM by darksun84.)
10-20-2015 10:10 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
you got issues! - x77x - 10-20-2015, 08:21 AM
RE: you got issues! - darksun84 - 10-20-2015 10:10 PM
RE: you got issues! - x77x - 10-20-2015, 10:46 PM
RE: you got issues! - darksun84 - 10-20-2015, 11:35 PM
RE: you got issues! - x77x - 10-21-2015, 12:05 AM
RE: you got issues! - darksun84 - 10-21-2015, 12:36 AM
RE: you got issues! - x77x - 10-21-2015, 03:54 AM
RE: you got issues! - pointhz - 10-21-2015, 05:25 AM
RE: you got issues! - Diathim - 10-21-2015, 04:38 PM

Forum Jump:


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