Postado Outubro 12, 2017 7 anos Gostaria de saber se alguém consegue converter esses script pro tibia 11.47 atual. Já que ele não suporta mais o doSendAnimatedText. local FRASES = {"JÁ VOLTO!", "VOLTO JÁ!", "AUSENTE!", "AFK!", "OFF-LINE!"} -- Auto-Mensagens. local TEMPO = 30 -- Intervalo de Tempo em segundos. local function doSendAutoMessage(cid, pos) if (isCreature(cid) == TRUE) then npos = getThingPos(cid) if (pos.x == npos.x) and (pos.y == npos.y) and (pos.z == npos.z) then doSendAnimatedText(pos, FRASES[math.random(#FRASES)], 215) doSendMagicEffect(pos, 2) addEvent(doSendAutoMessage, TEMPO*1000, cid, npos) end end end function onSay(cid, words, param) pos = getThingPos(cid) doSendAnimatedText(pos, FRASES[math.random(#FRASES)], 215) doSendMagicEffect(pos, 2) doPlayerSendCancel(cid, "esK~ Mengasem Automaticas") addEvent(doSendAutoMessage, TEMPO*1000, cid, pos) return TRUE end
Postado Outubro 15, 2017 7 anos Se vc só qr mudar por causa da doSendAnimatedText é só usar outra função atualizada ou alterar a source pra usar o animated, mas sem problemas tenta outra função: local FRASES = {"JÁ VOLTO!", "VOLTO JÁ!", "AUSENTE!", "AFK!", "OFF-LINE!"} -- Auto-Mensagens. local TEMPO = 30 -- Intervalo de Tempo em segundos. local function doSendAutoMessage(cid, pos) if (isCreature(cid) == TRUE) then npos = getThingPos(cid) if (pos.x == npos.x) and (pos.y == npos.y) and (pos.z == npos.z) then doCreatureSay(cid, FRASES[math.random(#FRASES)], TALKTYPE_ORANGE_1) doSendMagicEffect(pos, 2) addEvent(doSendAutoMessage, TEMPO*1000, cid, npos) end end end function onSay(cid, words, param) pos = getThingPos(cid) doCreatureSay(cid, FRASES[math.random(#FRASES)], TALKTYPE_ORANGE_1) doSendMagicEffect(pos, 2) doPlayerSendCancel(cid, "esK~ Mengasem Automaticas") addEvent(doSendAutoMessage, TEMPO*1000, cid, pos) return TRUE end Da pra melhorar mais esse lance de pos ae, mas testa Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.