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-nmm6 (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-nmm6 (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-nmm6 (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
Barber profession
Author Message
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #1
Exclamation Barber profession
Hi there, long time no see...

I need some help please, just noticed that the barber doesn't seem to be working properly. He only sells "Savage body paint" and I get this weird errors in my sphere console:
Code:
08:58:ERROR:(sphere_vendors.scp,898)Undefined symbol 'i_barber_haircut' ['i_barber_haircut,10']
08:58:ERROR:(sphere_vendors.scp,899)Undefined symbol 'i_barber_dye_beard' ['i_barber_dye_beard,10']
08:58:ERROR:(sphere_vendors.scp,900)Undefined symbol 'i_barber_dye_hair' ['i_barber_dye_hair,10']

Looked into, and just discovered that he doesn't even have a sell/buy template.
so I went ahead and created one:
Code:
[TEMPLATE VENDOR_B_BARBER_TEMPLATE]
CATEGORY=Vendor Templates
SUBSECTION=Buy Templates
DESCRIPTION=Barber
   BUY=i_hair_dyes,10
   BUY=i_barber_haircut,10
   BUY=i_barber_dye_beard,10
   BUY=i_barber_dye_hair,10
   BUY=i_bodypaint,10

[TEMPLATE VENDOR_S_BARBER_TEMPLATE]
CATEGORY=Vendor Templates
SUBSECTION=Sell Templates
DESCRIPTION=Barber
   SELL=i_hair_dyes,10
   SELL=i_barber_haircut,10
   SELL=i_barber_dye_beard,10
   SELL=i_barber_dye_hair,10
   SELL=i_bodypaint,10

But somehow this still doesn't work.
Looked into sphere_item_profession_barber.scp and I've noticed:
Code:
[COMMENT sphere_item_profession_barber.scp]

This file contains:

* tools used by barbers
* decoration found in barbershops
* Items of type t_hair and t_beard for both human and gargoyle

[b]FIXME: Make enabling or disabling "hair growth" easier by moving the
implementation into a TYPEDEF so you can disable it in one place.[/b]

Is it related?
Can someone help me having my barber to cut hairs, please?
07-19-2017 07:18 AM
Visit this user's website 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: Barber profession
i_Barber_haircut item seems to not exist.
I think you need to place each hair style in the template (i_hair_short, i_hair_long and so on), they are all in the sphere_item_barber_profession.scp file.
(This post was last modified: 07-19-2017 08:45 AM by darksun84.)
07-19-2017 08:45 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: Barber profession
yea I'm taking a look here and confirmed this console error. Probably these items was "sphere custom" and got removed accidentally some months ago when I removed many custom codes from the default sphere script pack

on OSI this NPC is called "hairstylist" and have different items on buy/sell list. Curiously it was never called "barber" like it was on sphere since decades ago, so it makes more sense update the code with the proper hairstylist NPC instead just add back the custom "barber". I'm a bit busy atm and this will require some time to add all missing gumps, but for now as workaround you can add the item "i_hair_none" on the buy/sell list, maybe this will make the player bald

EDIT: hairstylist done, I will send the changes to script pack on next days because I'm also trying to add the "body sculptor" NPC, which requires some extra investigation to add compatibility for the client "face selection" internal gump (enhanced clients only)
(This post was last modified: 07-30-2017 02:43 PM by Coruja.)
07-27-2017 01:21 PM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #4
RE: Barber profession
Many Thanks!
08-03-2017 06:18 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: Barber profession
UPDATE: new vendors 'c_hairstylist' and 'c_body_sculptor' (+ related speech/dialogs) added on script pack. It works using an ugly 'buy' dialog but unfortunately that's the dialog made by OSI, I'm leaving it as it is to avoid custom changes on default script pack

PS: 'body sculptor' only works on enhanced clients and requires latest 56d build released today (it uses the new CHANGEFACE function added on this build)
(This post was last modified: 08-06-2017 04:59 AM by Coruja.)
08-05-2017 01:58 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)