Hello, i need some help, to make a npc to talk a lot i make something like this
As you can see, i just out the dialog and start an event with a delay to run another function that only have the line to make the npc to talk, but when the server run that function another npc say the line, i explain myself, i'm talking with "mark", so when its time to run the function "talk" the npc mark don't say anything but another npc "bob" answer what i wanted mark to say, so i was believing why that happen?, i have something wrong in the order of my functions?
Code:
function talk()
npcHandler:say("More and more words", cid)
end
function main(parameters) -- this is the body of the npc script
-- functions --
npcHandler:say("bla bla bla, here is where the conversation starts", cid)
addEvent(15000, talk)
end
As you can see, i just out the dialog and start an event with a delay to run another function that only have the line to make the npc to talk, but when the server run that function another npc say the line, i explain myself, i'm talking with "mark", so when its time to run the function "talk" the npc mark don't say anything but another npc "bob" answer what i wanted mark to say, so i was believing why that happen?, i have something wrong in the order of my functions?