Are these errors happening in the distro, can they help?
Ditto
Code:
[23/02/2017 23:15:13] [Error - TalkAction Interface]
[23/02/2017 23:15:13] data/talkactions/scripts/dittorevert.lua
[23/02/2017 23:15:13] Description:
[23/02/2017 23:15:13] (luaGetCreatureStorage) Creature not found
[23/02/2017 23:22:33] [Error - TalkAction Interface]
[23/02/2017 23:22:34] data/talkactions/scripts/dittorevert.lua
[23/02/2017 23:22:34] Description:
[23/02/2017 23:22:34] (luaGetThingPosition) Thing not found
[23/02/2017 23:23:00] [Error - TalkAction Interface]
[23/02/2017 23:23:01] data/talkactions/scripts/dittorevert.lua:onSay
[23/02/2017 23:23:01] Description:
[23/02/2017 23:23:01] (luaGetItemAttribute) Item not found
Ditto
Code:
function onSay(cid, words, param, channel)
local thisball = getPlayerSlotItem(cid, 8)
if words == "!revert" or "/revert" then
if getItemAttribute(thisball.uid, "ehditto") then
doItemSetAttribute(thisball.uid, "poke", "Ditto")
doItemSetAttribute(thisball.uid, "ehditto", 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Puxe o Ditto para terminar a reversão do Ditto.')
elseif getItemAttribute(thisball.uid, "ehshinyditto") then
doItemSetAttribute(thisball.uid, "poke", "Shiny Ditto")
doItemSetAttribute(thisball.uid, "ehshinyditto", 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Puxe o Shiny Ditto para terminar a reversão do Shiny Ditto.')
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você não está usando um Ditto ou Shiny Ditto.')
end
end
return true
end