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

how to make that

Mauzim

Member
Joined
Jan 3, 2011
Messages
568
Reaction score
9
Example :
Code:
  elseif(msgcontains(msg:lower(), 'no') and talkState[talkUser] == 1) then
    npcHandler:say("Hope to see you soon.", cid)
   [B] npcHandler:releaseFocus(cid)[/B]
  end
if msgcontains "no" then npc say: Hope to see you soon. and npcHandler:releaseFocus(cid) << its not work
how to fix that
 
no i no need that ;s
>>>>>>>>>> npcHandler:releaseFocus(cid) <<<<<<<<< this function not work npc talking with me and stay
 
Code:
function greet(cid, message, keywords, parameters)       
		if getCreatureCondition(cid, CONDITION_DRUNK) == TRUE then
			npcHandler:setMessage(MESSAGE_GREET, 'Hello')
		else
		npcHandler:setMessage(MESSAGE_GREET, 'Bye *HICKS*')
		npcHandler:releaseFocus(cid)
		end	
		return true
end
look cyko i want do that and its not work all work but i need when npc say Bye he releaseFocus too
 
it doesn't work because you're doing it wrong, use return false instead
LUA:
function greet(cid)
	if getCreatureCondition(cid, CONDITION_DRUNK) then
		npcHandler:setMessage(MESSAGE_GREET, 'Hey t-there, you look like someone who enjoys a good booze.')
		return true
	else
		npcHandler:say('Oh, two t-trolls. Hellooo, wittle twolls. <hicks>', cid)
		return false
	end
end
 
Back
Top