Por NewAge, 21 de out. de 2012 em Scripts
info
Grupo: Artesão
Registrado: 08/10/12
Posts: 114
Reputação: 0
Quero saber como usar esse script para mudar o local onde o player nasce quando morre
function onDeath(cid, corpse, killer)
local Ppos = {x = 340, y = 840, z = 15} -- posicao para onde ele vai ir
local monstName = "Pythius The Rotten" -- nome do monstro
if isMonster(cid) then
if string.lower(getCreatureName(cid)) == string.lower(monstName) then
doTeleportThing(killer[1], Ppos)
end
return TRUE
<script>
<event name="TelePort"/>
</script>
<event type="death" name="TelePort" event="script" value="teleportmon.lua"/>
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy
@NewAge este script não serve para isto !
va no outro tópico que ja respondi
info
Grupo: Artesão
Registrado: 08/10/12
Posts: 114
Reputação: 0
Quero saber como usar esse script para mudar o local onde o player nasce quando morre
function onDeath(cid, corpse, killer)
local Ppos = {x = 340, y = 840, z = 15} -- posicao para onde ele vai ir
local monstName = "Pythius The Rotten" -- nome do monstro
if isMonster(cid) then
if string.lower(getCreatureName(cid)) == string.lower(monstName) then
doTeleportThing(killer[1], Ppos)
end
end
return TRUE
end
<script>
<event name="TelePort"/>
</script>
<event type="death" name="TelePort" event="script" value="teleportmon.lua"/>