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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC Item Color
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
NPC Item Color
Recently updated my server to the nightly version, have been fixing a ton of errors and bugs, one of them is when any trade npc is spawned, all their clothing is gray. My colors in sphere_defs are correct, sphere_newb starts new players with clothes and colors them correctly, and those clothes are set just as the vendors (colors_green, etc). I can't figure this out, hopefully someone can help.

PHP Code:
[DEFNAME hues_range]
colors_all             {2 1001}
colors_skin            {1002 1058}
colors_hair            {1102 1149}
colors_pink            {1201 1254}
colors_blue            {1301 1354}
colors_green           {1401 1447}
colors_orange          {1501 1547}
colors_red             {1601 1654}
colors_yellow          {1701 1754}
colors_neutral         {1801 1908}
colors_snake           {2001 2018}
colors_bird            {2101 2130}
colors_slime           {2201 2224}
colors_animal          {2301 2318}
colors_metal           {2401 2430}

colors_bright          {062 1 071 1 03 9 0d 9 013 9 01c 9 021 9 030 9 037 9 03a 9 044 9 059 9}
colors_stone           {2498 1 2500 1 {2671 27061}
colors_skin_gargoyle   {1755 1779}
colors_white           2301
colors_black           2305
colors_brown           
{1110 1116}
colors_gray            {946 947}
colors_demon           1106 1110 }
colors_wyrm            0 1 1105 1110 34 39 }
colors_red_drag        color_red1 1 color_red2 1 }
colors_blood           33 38 }
colors_lava            { { 32 34 53 55 43 45 }
colors_poison          61 79 }

color_magic_weap       0
color_magic_shield     0
color_magic_arm        0

color_magic_defense          1650
color_magic_guarding         1430
color_magic_hardening        1353
color_magic_fortification    1805
color_magic_invulnerability  1887

color_o_spined             08ac
color_o_horned             0845
color_o_barbed             0851 

PHP Code:
[CHARDEF c_banker]
ID=c_man
NAME
=banker
DESIRES
=i_gold,t_gem
AVERSIONS
=t_trap
TSPEECH
=spk_human_prime
TSPEECH
=spk_human_default
TSPEECH
=spk_shopkeep
TSPEECH
=spk_rehello
//TSPEECH=spk_needs
TSPEECH=jobBanker
TSPEECH
=spk_needs
TSPEECH
=spk_rehello
TSPEECH
=spk_human_default
TEVENTS
=e_Human_HearUnk
TEVENTS
=e_Human_ConvInit
TEVENTS
=e_Human_Needs
TEVENTS
=e_Human_Greet
TEVENTS
=e_Human_Space
TEVENTS
=e_Human_Refuse
TEVENTS
=e_Human_Environ
TEVENTS
=e_npc_vendor
TEVENTS
=e_trainer
CATEGORY
=Civilized
SUBSECTION
=Tradesmen
DESCRIPTION
=Banker (human male)
ON=@Create
   NAME
=#NAMES_HUMANMALE
   
TITLE=the Banker
   COLOR
=colors_skin
   NPC
=brain_banker
   NEED
=i_gold
   STR
={50 75}
   
DEX={50 75}
   
INT={50 75}

   
ANATOMY={20.0 30.0}
   
DETECTINGHIDDEN={20.0 30.0}
   
EVALUATINGINTEL={20.0 30.0}
   
INSCRIPTION={20.0 30.0}
   
ITEMID={50.0 75.0}
   
MAGICRESISTANCE={20.0 30.0}
   
PARRYING={20.0 30.0}
   
REMOVETRAP={20.0 30.0}
   
SWORDSMANSHIP={20.0 30.0}
   
TACTICS={20.0 30.0}
   
WRESTLING={20.0 30.0}

   
ITEMNEWBIE=random_light
   ITEMNEWBIE
=random_male_hair
   COLOR
=colors_hair
   ITEMNEWBIE
=random_facial_hair,
    
ITEM=RANDOM_LIGHT
    ITEM
=i_shirt_fancy
    COLOR
=colors_green
    ITEM
=i_pants_long
    COLOR
=colors_yellow
    ITEM
=random_shoes
    COLOR
=colors_neutral
    ITEM
=random_coin_purse
ON
=@NPCRestock
    ITEM
=RANDOM_LIGHT
   ITEM
=random_shirts_human
   COLOR
=colors_green
   ITEM
=random_skirts_human
   COLOR
=colors_yellow
   ITEM
=random_footwear_human
   COLOR
=colors_neutral
    ITEM
=random_coin_purse 
11-06-2015 07:07 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC Item Color - Leonidas - 11-06-2015 07:07 AM
RE: NPC Item Color - x77x - 11-06-2015, 08:26 AM
RE: NPC Item Color - Leonidas - 11-06-2015, 09:38 AM
RE: NPC Item Color - XuN - 11-06-2015, 09:01 PM
RE: NPC Item Color - x77x - 11-07-2015, 03:55 AM
RE: NPC Item Color - Shamino - 11-07-2015, 05:21 AM
RE: NPC Item Color - Leonidas - 11-07-2015, 04:05 AM
RE: NPC Item Color - Artyk - 11-07-2015, 10:48 AM

Forum Jump:


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