skydangerous

Untitled

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