• 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 NPC Talkstate changes for all players when 1 guy talk to NPC

Tufte

Member
Joined
Nov 19, 2007
Messages
652
Reaction score
24
Location
Norway
NPC's are my weak side, and I have no clue why this is happening. If more than 1 guy talks to my NPC, the talkstate will change for everyone talking to the NPC.
So if 1 guy says hi, task, then everyone else has said task. So if they say task now, nothing happens, but if they say a task, the NPC will reply.

This is how I update talkstates...
Code:
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_PRIVATE and 0 or cid
Code:
talkState[talkUser] = 1
talkState[talkUser] = 2
etc

Help?
 
Back
Top