Discovery
Developing myself
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
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