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

Solved Npc that tells histories TFS 1.0

Raiden

Developer
Joined
Sep 16, 2008
Messages
486
Reaction score
32
Location
Venezuela
Hello, i need some help, to make a npc to talk a lot i make something like this

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?
 
Back
Top