Muito bem galera, postarei o meu "Crew mode" que criei a pouko devido a pedidos no meu OT!^^
esta talkaction foi feita por mim! Se forem por em outro fórum, coloke os créditos por favor!
Ok, Primeiro abra o bloco de notas e digite issso:
--[[ Talking Tp/signs/tiles for TFS 0.2+ ]]-- local time = 5 -- 1 = 1 sec, 2 = 2 sec, ... local say_events = {} local function SayText(cid) if isPlayer(cid) == TRUE then if say_events[getPlayerGUID(cid)] ~= nil then if isPlayer(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"CREWw", math.random(01,255)) end say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000 / 2, cid) end end return TRUE end function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end if param == "on" then if isPlayer(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"CREWW", math.random(01,255)) end say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000, cid) doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"CREW MODE ON.") elseif param == "off" then stopEvent(say_events[getPlayerGUID(cid)]) say_events[getPlayerGUID(cid)] = nil doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"CREW MODE OFF.") end return TRUE end
e salve em: data/talkactions/scripts com o nome creu.lua
Agora abra o talkaction.xml e coloque isso:
<talkaction words="!crew" event="script" value="creu.lua"/>
(Galera ali na "talkaction words" está !crew, mas no jogo digitem !crew on senão ñ funfa)
Salve, ligue seu OT e digite !crew on
e seu char ficará dizendu "CREWW"!
E digite !crew off
Agora divirta-se!
Desculpem se cometi algum erro é meu 1º post no XTibia então qualquer erro comentem, blz?
Atenção: eu testei no meu OT 8.54, ñ sei se funciona em OTs de versões superiores ou inferiores!
Obrigadu pela atenção!
Ass: Gustavoxloko
O GOD Macabrow do Macabrow Tibia! xD