Naxtie
mapper, designer
Hello, I would like a "Quest Chest" Script that works for TFS 0.3.6, currently im using this one and it doesnt work at all...
PHP:
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 10500) ~= 1 and getPlayerLevel(cid) >= 50 then -- if is more than level 50
doPlayerSendTextMessage(cid,22,"Here is your reward!")
doPlayerAddItem(cid,2494,1) -- edit item id 2160 to your item you want to give reaching this level.
setPlayerStorageValue(cid, 10500, 1)
else
doPlayerSendCancel(cid,"It is empty or you don't have enough level.")
end
return TRUE
end