Może ktoś mi powiedzieć jak zrobić coś takiego że gdy użyje skrzyni dostane książke ale ... bd w niej coś np pisało?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == UID then
queststatus = getPlayerStorageValue(cid, STORG)
if queststatus < 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "BOOK")
doPlayerAddItem(cid, BOOK ID, 1)
doPlayerSetStorageValue(cid, STORG, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
end
return TRUE
end