V1
data\talkactions\scripts\nomedoarquivo.lua
function onSay(cid,words,param) local pokemons = getCreatureSummons(cid) if #pokemons == 0 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Tira Seu Pokemon Da Ball.") end doCreatureSay(getCreatureSummons(cid)[1],param,TALKTYPE_SAY) return true end
data\talkactions\talkactions.xml
<talkaction words="!x" event="script" value="nomedoarquivo.lua"/>
exemplo como fazer pokemon falar
!x E Ae Galera Do XTibia
V2
data\talkactions\scripts\nomedoarquivo.lua
local Fpoke = {"Mewtwo","Meowth","Entei","Alakazam","Gengar"} -- Aqui Coloca Os Pokemon Que Vai Falar function onSay(cid,words,param) local pokemons = getCreatureSummons(cid) if #pokemons == 0 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "your pokemon is not out of the ball") end if table.find(Fpoke, getCreatureName(getCreatureSummons(cid)[1])) then doCreatureSay(getCreatureSummons(cid)[1],param,TALKTYPE_MONSTER) else doPlayerSendCancel(cid,"That Pokemon Do not Speak.") end return true end
data\talkactions\talkactions.xml
<talkaction words="!x" event="script" value="nomedoarquivo.lua"/>
nessa v2
apenas Mewtwo,Meowth,Entei que fala e deixei alakazam e gengar fala espero que gostei *-*