Guest User

Makako

a guest
Nov 11th, 2019
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onDeath(cid, corpse, killer)
  2. local monstName,Storage = "Leviathan",63536  -- monster name, storage
  3.     if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then
  4.         if getPlayerStorageValue (cid, Storage) == 1 then
  5.             acontece alguma coisa
  6.         else
  7.             doCreatureSay(cid, "Voce agora pode passar pelos portoes de Atlantida e enfrentar os monstros do Mar.", TALKTYPE_ORANGE_1)
  8.             if isInParty(killer[1]) == true then
  9.             local players = getPartyMembers(getPartyLeader(killer[1]))
  10.                 for i, k in ipairs(players) do
  11.                 setPlayerStorageValue(k, Storage, 1)
  12.                 end
  13.             elseif
  14.                 setPlayerStorageValue(killer[1], Storage, 1) then
  15.             end
  16.         end
  17.     end
  18. return true
  19. end
RAW Paste Data