Estou com um problema baixei um servidor aqui :
http://www.xtibia.com/forum/topic/233906-erondino-patch-v171-source/
Esse server veio com ditto system tudo certo, ele copia o ditto vem as skills na move bar porem ele não solta as skills sai somente a frase "m1" "m2" e quando ele volta pra ball vem como ditto novamente.
O Erro no console é esse:
[Error - TalkAction Interface] data/talkactions/scripts/move1.lua:onSay Description: data/talkactions/scripts/move1.lua:242: attempt to index field '?' (a nil value) stack traceback: data/talkactions/scripts/move1.lua:242: in function <data/talkactions/scripts/move1.lua:201>
Linhas 201 até 250:
function onSay(cid, words, param) local sumomdonego = getCreatureSummons(cid)[1] if not sumomdonego then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a pokemos to moves.") return 0 end local pokemon = cp[getCreatureName(sumomdonego)][words] if isInArray({"Ditto","Smeargle"}, getCreatureName(sumomdonego)) then if isInArray({"28"}, getCreatureOutfit(sumomdonego).lookType) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a transform to use moves.") return 0 end if exhaustion.get(cid, 548798) then dittocold = math.floor(((exhaustion.get(cid, 548798)) )) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "ths pokemon needs "..dittocold.." seconds to learn the moves") return 0 end local ditto = getPlayerSlotItem(cid, 8) local ropax = getItemAttribute(ditto.uid, "nomepoke") if words == "!cd" then pokemon = cp[ropax][words] if not pokemon then if getPlayerStorageValue(sumomdonego, 1236) <= 0 then return true end end pokemon.pokenome = "Ditto" if ropax == "Smeargle" then pokemon.pokenome = "Smeargle" end else pokemon = cp[ropax][words] -- linha 242 if not pokemon then if getPlayerStorageValue(sumomdonego, 1236) <= 0 then return true end end end
Ja tentei olhar outros scripts de ditto aqui no servidor mas são todos para PDA não sei adaptar para as funções do erondino.
Se alguem der uma ajuda agradeço..