Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sky = {
- monster = "Demon",
- item = {2160, 2160, 2160, 2160},
- storage = 15000
- }
- function onKill(cid, target, lastHit)
- if getPlayerStorageValue(cid, sky.storage) < 1 then
- if isPlayer(cid) and getCreatureName(target) == sky.monster then
- doPlayerAddItem(cid, sky.item[math.random(1, #sky.item)])
- setPlayerStorageValue(cid, sky.storage, 1)
- end
- else
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment