SixNine
Active Member
- Joined
- Dec 12, 2018
- Messages
- 452
- Reaction score
- 41
TFS 1.2
Lua:
elseif isInArray(arrayGreetings, msg) and not npcHandler:isFocused(cid) then
npcHandler:addFocus(cid)
if string.find(playerGreetMessage, "|PLAYERNAME|") then --here
local newMsg = string.gsub(playerGreetMessage, "|PLAYERNAME|", player:getName())
selfSay(newMsg, cid)
else
selfSay(playerGreetMessage, cid)
end
elseif isInArray(arrayFarewell, msg) and npcHandler:isFocused(cid) then
if string.find(playerGoodbyeMessage, "|PLAYERNAME|") then -- here
local newMsg = string.gsub(playerGoodbyeMessage, "|PLAYERNAME|", player:getName())
selfSay(newMsg, cid)
else
selfSay(playerGoodbyeMessage, cid)
end
npcHandler:releaseFocus(cid)