• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Creature not found

Cracudoo

New Member
Joined
Jan 22, 2017
Messages
32
Reaction score
0
Are these errors happening in the distro, can they help?

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
 

This error happens there if you have nothing occupying the slot

Code:
[24/02/2017 00:11:35] [Error - TalkAction Interface] 
[24/02/2017 00:11:35] data/talkactions/scripts/dittorevert.lua:onSay
[24/02/2017 00:11:35] Description: 
[24/02/2017 00:11:35] (luaGetItemAttribute) Item not found
 
you are answering your question, that's the bug, if there is not a ball on pokeball slot where is the item to read that attribute?
I bet you only did "/s Ditto" and tried to use "!revert" xD, it won't work at that way
 
you are answering your question, that's the bug, if there is not a ball on pokeball slot where is the item to read that attribute?
I bet you only did "/s Ditto" and tried to use "!revert" xD, it won't work at that way

I did not use ditto / s, I was just without any pokemon and I removed the ditto from the slot. Only that this error happens if you do not have some pokeball in the slot, the right thing was to send a message to the player
 
Back
Top