Since people were trashing my ot when I had npcs I decided to do something like this, but it isnt working:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1234 and item.itemid == 1945 then
quest = getPlayerStorageValue(cid, 789)
if quest == 0 or quest == -1 then
if...