• 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!

Solved Index boolean value...

A Dirty Rag

Active Member
Joined
Mar 31, 2014
Messages
147
Reaction score
32
Getting the error: 'attempt to index a boolean value in `doCreateItem`'
Any help is appreciated.

Code:
local function createItems()
    local pos = getCreaturePosition(cid)
    doCreateItem(146, 1 , pos)
end

function onStepIn(cid, item, pos)
    if item.itemid == 146 then
        if isPlayer(cid) == TRUE then
            doCreatureAddHealth(cid, 1000)
            doRemoveItem(item.uid)
            addEvent(createItems, 25000)
        end
    end
    return TRUE
end
 
Back
Top