• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[NPC] Light/Dark Blue Replies

Sklm01

New Member
Joined
Dec 12, 2011
Messages
11
Reaction score
0
hi guys, i'm trying to make my NPCS responses in dark blue, something like:

NPC: Greeting, |Playername|, i can promote you!.

but i have not been able to do it, I know there is a line i can edit::

LUA:
 -- These are the default replies of all npcs. They can/should be changed individually for each npc.
			[MESSAGE_GREET]		= "Greetings, |PLAYERNAME|. I have been expecting you.",

but idk how, neither for one or for each NPC.

I tried looking for some LUA guide/tutorial but i have not found any good. if u can refer me, ill appreciate it.


PD: Srry for my english.
 
I think it's something like {keyword}

So, "Greeting, |PLAYERNAME|, I can {promote} you!"

I may be wrong, it's just a guess right out of the blue
 
At the end of your script file you can add:

LUA:
--Example from one of my custom NPCs
npcHandler:setMessage(MESSAGE_GREET, "Hi! I hope you're not going to kill me!")  --if player greets
npcHandler:setMessage(MESSAGE_FAREWELL, "Good bye, |PLAYERNAME|.") --if player says "bye"
npcHandler:setMessage(MESSAGE_WALKAWAY, "Good bye, |PLAYERNAME|.") --if player just leaves

To highlight a word in darkblue you have to set it in brackets {}..
Ex.: "Hello, player. Ask me for my {name}!
Hello, player. Ask me for my name!

Rep+ 'n like if I helped.
 
YAY! thanks it works!!.

Now i have to figure out how to personalize the responses to each npc, i'll appreciate any suggestions :D

EDIT: NVM... Summ already responded with the previous post (Thanks.)
 
Last edited:
Back
Top