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

Help my script !! Repp u++ lua easy!

Discovery

Developing myself
Joined
Apr 16, 2010
Messages
562
Solutions
11
Reaction score
261
Location
Neverland
What is the error of this script?


function onUse(cid, item, frompos, item2, topos)

if (getPlayerStorageValue(cid,2092) == -1) then
doPlayerSendTextMessage(cid,21,"Agora, morra Humano!!! Guardas.")
doPlayerAddItem(cid, 2092, 1)
setPlayerStorageValue(cid,2092,1)
doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
else
doPlayerSendTextMessage(cid,25,"Apenas uma vez! Saia daqui.")
end

end
return TRUE
end
end
 
LUA:
local STORAGE = 2092

function onUse(cid, item, fromPosition, itemEx, toPosition)

    if getPlayerStorageValue(cid,STORAGE) ~= -1 then
        return doPlayerSendTextMessage(cid, 25, 'Apenas uma vez! Saia daqui.')
    end

    doPlayerSendTextMessage(cid, 21, 'Agora, morra Humano!!! Guardas.')
    doPlayerAddItem(cid, STORAGE, 1)
    setPlayerStorageValue(cid, STORAGE, 1)
    doSendMagicEffect(getCreaturePosition(cid), math.random(67))
    return true
end
 
Back
Top