Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onDeath(cid, corpse, killer)
- local Ppos = {x = 1689, y = 1411, z = 7} -- posicao para onde ele vai ir
- local monstName = "The Draken Master" -- nome do monstro
- local stoneID = 2222 -- id da pedra
- local stonePos = {x = 1709, y = 1403, z = 2} -- pos da pedra
- local stone = getTileItemById(stonePos, stoneID)
- if getCreatureName(cid) == monstName then
- if isMonster(cid) then
- doTeleportThing(killer[1], Ppos)
- doPlayerSendTextMessage(killer[1], 28, "Você provou ser um bravo guerreiro.")
- if stone.uid > 0 then
- doRemoveItem(stone.uid)
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement