• 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 message_greet if female x if male x?

Ezzz

Developer of Nostalrius and The Violet Project
Joined
Feb 26, 2010
Messages
1,889
Solutions
3
Reaction score
794
Location
Spain, Europe
Hello,

i want that the message_greet gives different message if player is female, or a male.
Does anyone knows how to do it?.
Or like compiling?.

OTSERVSVN r.5552.
 
callback :p!
Code:
function greetCallback(cid)
	if getPlayerSex(cid) == 0 then
		npcHandler:setMessage(MESSAGE_GREET, "Oh, hello |PLAYERNAME|, your hair looks great! Who did it for you?")
	else	
		npcHandler:setMessage(MESSAGE_GREET, "Oh, hello, handsome! It's a pleasure to meet you |PLAYERNAME|.")
	end
	return true
end
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
 
Back
Top