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

Npc Greeting

Xyzyk

RudziutOTS Maker
Joined
Jun 14, 2008
Messages
39
Reaction score
0
Location
Poland
How make that if your sex is female npc for 'hi' says 'Hello Lady' and if your sex is male npc says 'Hello Sir'?
 
How make that if your sex is female npc for 'hi' says 'Hello Lady' and if your sex is male npc says 'Hello Sir'?

Lua:
if msgcontains(msg, "hi") then
     if getPlayerSex(cid) == 0 then
          npcHandler:say("Hello Lady", cid, true)
     else
          npcHandler:say("Hello Sir", cid, true)
     end
     npcHandler:addFocus(cid)
 
Lua:
if msgcontains(msg, "hi") then
     if getPlayerSex(cid) == 0 then
          npcHandler:say("Hello Lady", cid, true)
     else
          npcHandler:say("Hello Sir", cid, true)
     end
     npcHandler:addFocus(cid)

Lua:
if msgcontains(msg, "hi") or msgcontains(msg, "hello") then
     if getPlayerSex(cid) == 0 then
          npcHandler:say("Hello Lady |PLAYERNAME|!", cid, true)
     else
          npcHandler:say("Hello Sir |PLAYERNAME|!", cid, true)
     end
     npcHandler:addFocus(cid)
xD
 
Back
Top