Myszax
New Member
- Joined
- Jan 6, 2009
- Messages
- 10
- Reaction score
- 0
Witam!
Mam takie pytanie jak dodać do tego skryptu:
Gdy gracz nie ma cap na podniesienie itema tu piszę mu na zielono, że potrzebuje tyle i tyle cap i żeby item nie pojawiał się pod nim.
Mam takie pytanie jak dodać do tego skryptu:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 8000 then
queststatus = getPlayerStorageValue(cid,1003)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You have found a ' .. getItemNameById(item.uid) .. '.")
doPlayerAddItem(cid,2493,1)
setPlayerStorageValue(cid,1003,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"It is empty.")
end
else
return 0
end
return 1
end