skydangerous

Untitled

Oct 29th, 2011
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local sky = {
  2.         monster = "Demon",
  3.         item = {2160, 2160, 2160, 2160},
  4.         storage = 15000
  5. }
  6.  
  7. function onKill(cid, target, lastHit)
  8.         if getPlayerStorageValue(cid, sky.storage) < 1 then
  9.                 if isPlayer(cid) and getCreatureName(target) == sky.monster then
  10.                         doPlayerAddItem(cid, sky.item[math.random(1, #sky.item)])
  11.                         setPlayerStorageValue(cid, sky.storage, 1)
  12.                 end
  13.         else
  14.                
  15.         end
  16.         return true
  17. end
  18.  
Advertisement
Add Comment
Please, Sign In to add comment