adrianoswatt

blockSummonLeather

Jan 24th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local corpseact = 21012
  2. local monsters = {"minotaur", "minotaur leader"}
  3.  
  4. function onDeath(cid, corpse, killer)
  5.     if not isPlayer(cid) and getCreatureMaster(cid) then
  6.         getName = getCreatureName(cid):lower()
  7.         if isInArray(monsters, getName) then
  8.             corpo = corpse.uid
  9.             doSetItemActionId(corpo, corpseact)
  10.             doItemSetAttribute(corpo, "description", "Summon: "..getName..".")
  11.             doDecayItem(corpo)
  12.         end
  13.     end
  14. return true
  15. end
Advertisement
Add Comment
Please, Sign In to add comment