Advertisement
RoksasNunes

Deaathh

Apr 13th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onDeath(cid, corpse, killer)
  2.  
  3. local monstName = "Demon" -- nome do monstro
  4.     if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then
  5.         doCreatureSay(cid, "VocΓͺ ganhou acesso o prΓͺmio da Quest.", TALKTYPE_ORANGE_1)
  6.             if isInParty(killer[1]) == true then
  7.  
  8. local players = getPartyMembers(getPartyLeader(killer[1]))
  9.  
  10.             for i, k in ipairs(players) do
  11.                 setPlayerStorageValue(k, 11540, 1)
  12.             end
  13.                 else
  14.                     setPlayerStorageValue(killer[1], 11549, 1)
  15.                 end  
  16.             end
  17.                 return true
  18.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement