• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Auto say bye?

Dangnoob

Member
Joined
Jun 8, 2008
Messages
105
Solutions
2
Reaction score
12
Anybody know how to make an NPC say bye? I'm not sure what to use, here's simple code as an example. As it sits, you have to say something first, if anybody knew to to make it instantly say bye as soon as u say hi that would be awesome as well.
Code:
    if (isSorcerer(cid) or isDruid(cid)) then
        else
        selfSay('I only help the mages here, go see {name} the knight or {name} the paladin.', cid)
        end
 
..... Obviously i know how to do that haha. I meant like the literal function of bye. Stops talking to you goes back to neutral state. lol
 
..... Obviously i know how to do that haha. I meant like the literal function of bye. Stops talking to you goes back to neutral state. lol

LUA:
npcHandler:say("Bye now.", cid)
npcHandler:releaseFocus(cid)

Should do the trick, depending on your npcsystem/tfs
 
Solution
Back
Top