Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---> Codes by: OrochiElf [www.OTCodes.com] <---
- local configs = {
- Quest_Storage = 19822,
- Quest_Reward = 2160,
- Ammount_Quest_Reward = 10,
- Need_Item = 2152,
- Ammount_Need_Item = 1,
- }
- function onUse(cid)
- if getPlayerStorageValue(cid, configs.Quest_Storage) < 1 then
- if(doPlayerRemoveItem(cid, configs.Need_Item, configs.Ammount_Need_Item)) then
- doPlayerAddItem(cid, configs.Quest_Reward, configs.Ammount_Quest_Reward)
- doPlayerSendTextMessage(cid, 27, "You have found "..configs.Quest_Reward.." "..configs.Ammount_Quest_Reward)
- setPlayerStorageValue(cid, configs.Quest_Storage, 1)
- return true
- else
- doPlayerSendTextMessage(cid, 27, "You need "..configs.Ammount_Need_Item.." "..configs.Need_Item)
- return true
- end
- doPlayerSendTextMessage(cid, 27, "This chest are empty.")
- return true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement