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
How to have = [NPC name + Profession] show?
Author Message
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #2
RE: How to have = [NPC name + Profession] show?
here ya go!

It will require a few little changes to your NPC's but it shouldnt take long.

First, Your NPC needs a title (if it states the Title under the name it won't read it as the NPC's Title E.G NAME=#NAMES_HUMANMALE the Barber) So change your NPC to read this:

[CHARDEF 0402]
DEFNAME=C_H_BARBER
NAME=#NAMES_HUMANMALE //NOTE THE TITLE IS GONE
ID=C_MAN
AVERSIONS=t_TRAP,t_eerie_stuff
DESIRES=i_gold,e_notoriety
TSPEECH=spk_human_prime
TSPEECH=spk_shopkeep
TSPEECH=spk_needs
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
CATEGORY=Civilized
SUBSECTION=Tradesmen
DESCRIPTION=Barber

ON=@Create
NPC=brain_vendor
COLOR=colors_skin
TITLE=The Barber //This is what the player sees and what the title is on the paperdoll
NEED=i_gold
STR={66 80}
DEX=90
INT={66 80}
FENCING=100.0
PARRYING=100.0
SWORDSMANSHIP=100.0
WRESTLING=100.0
MACEFIGHTING=100.0
MAGICRESISTANCE=100.0
TACTICS=100.0
ITEMNEWBIE=i_lantern
ITEMNEWBIE=random_male_hair
COLOR=colors_hair
ITEMNEWBIE=random_facial_hair
COLOR=match_hair

Once all your NPC's have their title seperated from their name, Add this to your NPC @CREATE

EVENTS=+e_profession_announce

Then put this somwere at the bottom of your script

[EVENTS e_profession_announce]
ON=@CLICK
MESSAGE <TITLE>

All done! Smile
(This post was last modified: 04-11-2013 10:33 PM by UltimaAku.)
04-11-2013 10:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to have = [NPC name + Profession] show? - UltimaAku - 04-11-2013 10:32 PM

Forum Jump:


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