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

npcHandler:say witch 3 texts

Mauzim

Member
Joined
Jan 3, 2011
Messages
568
Reaction score
9
any1 know how to make regular time like in real to stop spam in npc
Code:
npcHandler:say({"Texta", "Textb", "Texct", "Texdt"}, cid)
To make work it.
 
Then modify this function in npchandler.lua, check if parameter is table and if it is, make it call doNpcTalkALot instead with the text
 
I've better function.
PHP:
function doNPCTalk(cid, npc, delay, messages)
	for i = 1,#messages do
		addEvent(doCreatureSay, delay * i, npc, messages[i], TALKTYPE_PRIVATE_NP, false, cid)
	end
end
And for example:
PHP:
doNPCTalk(cid, getNpcCid(), 5000, {"I need 100 {Wyrm Scale} and 50 {Shockwave Amulet}.", "If you have found it say {mission}"})
 
its sux too why it can't be like edit npcHandler to set one random time from first to second text and its work like if one text then say it just asap if more than1 then npc say first asap and next in time what is in this function random
 
Back
Top