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
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #2
RE: NPC Item Color
oh, so im not the only one... =)


just gotta wait it out, til the devs fix what they broke


DON'T USE THE NIGHTLYS, DON'T USE THE NIGHTLYS!

it is recommended that you use the build from 2 years ago =)

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-06-2015 08:57 AM by x77x.)
11-06-2015 08:26 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

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



Post: #3
RE: NPC Item Color
Well the build before the one I have now was dated 2006 lol, so I thought it was time for an update
11-06-2015 09:38 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: NPC Item Color
Found the problem, i'll sent the fix later. You should also update your banker script (or revert it to original) you have duplicated items.


@x77x: Read this post: http://forum.spherecommunity.net/Announc...Guidelines . I'm not warning you anymore.
11-06-2015 09:01 PM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #5
RE: NPC Item Color
what exact rule am i breaking?


heres a suggestion, make a bug report forum
we can post possible bugs there for devs to investigate

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-07-2015 04:37 AM by x77x.)
11-07-2015 03:55 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

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



Post: #6
RE: NPC Item Color
Sweet thanks man, and I was fiddling around with that banker part, the rest of the chars don't have duplicates
11-07-2015 04:05 AM
Find all posts by this user Like Post Quote this message in a reply
Shamino
Noob Scripter
*

Posts: 57
Likes Given: 5
Likes Received: 15 in 11 posts
Joined: Mar 2012
Reputation: 0

Exilio UO

Post: #7
RE: NPC Item Color
(11-07-2015 03:55 AM)x77x Wrote:  what exact rule am i breaking?


heres a suggestion, make a bug report forum
we can post possible bugs there for devs to investigate

* Be respectful towards others. Treat others as you would expect to be treated, do not attack and/or "flame" others.

"My world is hell for the infidels. My blood pleasure of the immortals"
[Image: 2ec003662b15c61da117767a59bb99bao.jpg]
(This post was last modified: 11-07-2015 05:22 AM by Shamino.)
11-07-2015 05:21 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Shamino's post
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #8
RE: NPC Item Color
There's the "Bug Tracker", as the name suggests, to track bugs..
11-07-2015 10:48 AM
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)