View Single Post
  #2  
Old 10-23-2005, 07:11 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
NPC Code:
setcharprop #C0,#T(#e(6,-1,#c));



setcharprop - sets THIS npc's property
#C0 - property for skin color
#T(string) - trims spaces off start and end of string, not needed here
#e(startindex,stopindex,string) - takes a slice of a string from startindex to stopindex. 6 is determined by counting characters (including spaces!), so it'd be / = 1, s = 2, k = 3, and so on. remember, spaces count. -1 means to not take a stopindex, but use the end of the string as the terminator. #c is the player's chat string.
Reply With Quote