So, what I want to do is add delay beetween the counts (Tp en 1.. tp en 2..), someone can make it for me?
LUA:
local table = {
['!demon'] = {{x=94, y=125, z=7}, 39,6},
['!hydra'] = {{x=88, y=127, z=7}, 39,6}
}
local count = {"TP en 3..","TP en 2..","TP en 1..","Adios!"}
function onSay(cid, words, param, channel)
ppos = getPlayerPosition(cid)
local table = table[words]
if getPlayerItemCount(cid, 2345) > 0 then
for i = 1,#count do
doPlayerSendTextMessage(cid,TALKTYPE_ORANGE_1,count[i])
doTeleportThing(cid, table[1])
doSendMagicEffect(table[1],table[2])
doSendMagicEffect(table[1],table[3])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Necesitas una tp wand para utilizar este comando.')
end
return true
end