Advertisement
Skymagnum

Untitled

Apr 28th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. function onDeath(cid, corpse, killer)
  2.  
  3. local Ppos = {x = 1689, y = 1411, z = 7} -- posicao para onde ele vai ir
  4. local monstName = "The Draken Master" -- nome do monstro
  5.  
  6.     local stoneID = 2222 -- id da pedra
  7.     local stonePos = {x = 1709, y = 1403, z = 2} -- pos da pedra
  8.     local stone = getTileItemById(stonePos, stoneID)
  9.  
  10.     if getCreatureName(cid) == monstName then
  11.       if isMonster(cid) then
  12.         doTeleportThing(killer[1], Ppos)
  13.         doPlayerSendTextMessage(killer[1], 28, "Você provou ser um bravo guerreiro.")
  14.           if stone.uid > 0 then
  15.              doRemoveItem(stone.uid)
  16.           end
  17.       end
  18.     end
  19.  
  20.     return true
  21.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement