• 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!

|PLAYERNAME|

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,200
Solutions
2
Reaction score
149
I tried inside npc.lua this and don't work, how its should work?

LUA:
npcHandler:say({"Hello |PLAYERNAME|. "}, cid)

tfs 1.2
 
Can somebody help me?
i have tried
tree methods
LUA:
npcHandler:say("Good bye ".. getPlayerName(cid) ..".", cid)
but on goodbye it does not occurs anything and with these one
Code:
npcHandler:say("Good bye ".." |PLAYERNAME| "..".", cid)
Code:
npcHandler:say("Good Bye |PLAYERNAME|. ", cid)
is displaying |PLAYERNAME| instead or the actual name
this one works in greetcallback, but no inside of creaturesaycallback
Code:
npcHandler:setMessage(MESSAGE_GREET, "Welcome on board, Sir ".." |PLAYERNAME| "..".")

edit: solved

changed
LUA:
npcHandler:say("Good bye ".. getPlayerName(cid) ..".", cid)
to
Code:
npcHandler:say("Good bye ".. getCreatureName(cid) ..".", cid)

Code:
 Good bye Tester.
tfs 1.5
 
Last edited:
Back
Top