Advertisement
Guest User

Makako

a guest
Nov 11th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement