Tirei como base um script que achei por ae no fórum. Se quiser tentar:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
local storage_castle = xxx --Storage que o player recebe ao entrar no castelo.
if isPlayer(cid) and getPlayerStorageValue(cid, storage_castle) >= 1 then
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 256, true)
doCreatureAddMana(cid, getCreatureMaxMana(cid))
doRemoveConditions(cid, false)
return false
end
return true
end
E tem esse também '-'
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
local storage_castle = xxx --Storage do castle.
if isPlayer(cid) and getPlayerStorageValue(cid, storage_castle) >= 1 then
doCreatureSetDropLoot(cid, false)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) + 65500, true)
end
return true
end





info
Grupo: Campones
Registrado: 28/05/13
Posts: 19
Reputação: 0
Char no Tibia: Ons Alaka
Duvida!
Tenho Um server onde tenho um castle... neste castle tem monstros... onde dropa itens raros e talls... Bom eu queria saber como fasso para o player q esta dentro do castle, quando morto não perder level dentro do castle...
AJUDA EU AE PLIXX.
Editado Novembro 3 por tchutcha