brunolopes
New Member
- Joined
- Nov 8, 2009
- Messages
- 49
- Reaction score
- 1
Hello, people!
I have a problem with NPCs, in the area of TalkStates...
Actually my NPCs isn't obbeying the talkstates, when I say 'yes', a NPC say all the his sentences related to the "yes", for example:
With one "yes", the NPC will say "=)", "=D" and "xD" at once.
Can you help me?
Sorry for my english...
I have a problem with NPCs, in the area of TalkStates...
Actually my NPCs isn't obbeying the talkstates, when I say 'yes', a NPC say all the his sentences related to the "yes", for example:
Code:
if(msgcontains(msg, "yes")) then
npcHandler:say("=)", cid)
talkState[talkUser] = 2
end
if(msgcontains(msg, "yes") and talkState[talkUser] == 2) then
npcHandler:say("=D", cid)
talkState[talkUser] = 3
end
if(msgcontains(msg, "yes") and talkState[talkUser] == 3) then
npcHandler:say("xD", cid)
talkState[talkUser] = 4
end
With one "yes", the NPC will say "=)", "=D" and "xD" at once.
Can you help me?
Sorry for my english...