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

Lua Npc

tompan

Member
Joined
Dec 13, 2008
Messages
646
Reaction score
24
Location
Sweden
So i have this code in my lua file.
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
 
Back
Top