SHARE
TWEET

Armin

a guest Nov 12th, 2019 79 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(killer[1], Storage) == 1 then
  5.             doCreatureSay(cid, "Voce ja pode passar pelos portoes.", TALKTYPE_ORANGE_1)
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top