So i have this code in my lua file.
but how do i make this work as message_greet?
but how do i make this work as message_greet?
Code:
elseif msgcontains(msg, 'hi') or msgcontains(msg, 'hello') then
if getPlayerStorageValue(cid, 99998) == TRUE then
npcHandler:say('WHAT? You have to be that trespasser my brothers told me about! Entering the restricted area is a horrible crime!')
talk_state = 2
else
npcHandler:say('Welcome, ' .. getCreatureName(cid) .. '! Feel free to tell me what has brought you here.')
end