Nome: Mutual Sacanagem
Script de: "~Dragonlordez~"
Versão Testada: TFS 0.3.6 - 8.54
OBS: Parece que o script ja existia... Eu fiz esse não se ta muito parecido mesmo assim creditos pela ideia vai pra quem fez primero...
Bom nessa talkaction o GM fala por exemplo: /say Baitola, Eu sou macho. Então o personagem "Batiola" vai falar em amarelo "Eu sou macho" como se ele mesmo tivesse falando...
Say.lua:
function onSay(cid, words, param) local t = string.explode(param, ',') local tid = getPlayerByNameWildcard(t[1]) if tid and t[2] ~= nil then doCreatureSay(getCreatureByName(tostring(t[1])), tostring(t[2]), 1) elseif (not tid) then doPlayerSendTextMessage(cid, 18, 'The player '.. t[1] ..' is not online') else doPlayerSendTextMessage(cid, 18, 'Param required!') end return true end
Tag talkactions.xml:
<talkaction access="3" log="yes" words="/say" event="script" value="say.lua"/>
É isso...
Duvidas e bugs aqui!
OBS: O CODE FICO MAL FORMATADO POR CAUSA DO FORUM EU DEXEI TUDO ARRUMADO.
"~Dragonlordez~"