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