![]() |
Barber profession - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Barber profession (/Thread-Barber-profession) |
Barber profession - amonvangrell - 07-19-2017 07:18 AM 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'] 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] 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] Is it related? Can someone help me having my barber to cut hairs, please? RE: Barber profession - darksun84 - 07-19-2017 08:45 AM 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. RE: Barber profession - Coruja - 07-27-2017 01:21 PM 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) RE: Barber profession - amonvangrell - 08-03-2017 06:18 PM Many Thanks! RE: Barber profession - Coruja - 08-05-2017 01:58 PM 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) |