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

Fortera Global

Intermediate OT User
Joined
Nov 20, 2015
Messages
1,180
Solutions
2
Reaction score
117
I tried inside npc.lua this and don't work, how its should work?

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

tfs 1.2
 
I tried inside npc.lua this and don't work, how its should work?

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

tfs 1.2
I don't understand what your trying to accomplish with the array?
Try without the array.
Lua:
npcHandler:say("Hello |PLAYERNAME|. ", cid)
 
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