• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

NPC Need a little help with greeting message.

Rangerix

New Member
Joined
Nov 28, 2010
Messages
4
Reaction score
0
Hi! i need a little help.
I wanna do changeable greeting, if player say hi, then greeting message...

and after do a one mission:

if player say hi AND getplayerstoragevalue(cid,310) > 0 then say something other...
 
Lua:
function greet(cid)
	if getPlayerStorageValue(cid, 310) ~= -1 then
		npcHandler:setMessage(MESSAGE_GREET, '')
	else
		npcHandler:setMessage(MESSAGE_GREET, '')
	end
	return true
end
npcHandler:setCallback(CALLBACK_GREET, greet)
 
Back
Top