Gostei (Nem Li)
info
Grupo: Campones
Registrado: 05/09/11
Posts: 32
Reputação: -1
Char no Tibia: Lord Horkremo

info
Grupo: Lorde
Registrado: 05/06/12
Posts: 2.2k
Reputação: +215
Gênero: Masculino

Gostei (Nem Li)
Este tipo de comentario é considerado Flood, leia as regras, considere como ultimo aviso.
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

function onDeath(cid, corpse, deathList)
local config = {
onlypremium = true, -- se precisa ser premium para não perder nada
exp = true, -- se ao morrer o jogador irá perder exp
skills = false, -- se ao morrer vai perder skills
magic = false, -- se vai perder magic level
loot = false, -- se ao morrer o jogador irá perder o loot
level = 50 -- até que level irá proteger o player
}
if isPlayer(cid) and getPlayerLevel(cid) <= config.level then
if getPlayerSkullType(cid) >= 4 then return TRUE end
if config.onlypremium == true and not isPremium(cid) then return TRUE end
if config.loot == false then doCreatureSetDropLoot(cid, false) end
if config.magic == false then doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end
if config.skills == false then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) end
if config.exp == false then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end
return TRUE end return TRUE end
@ManelksCouto
Também gostei de te reportar ![]()
@TkSamer
local config = {
premium = "yes",
protectionLevel = 50,
var = {
[PLAYERLOSS_EXPERIENCE] = "yes",
[PLAYERLOSS_MANA] = "no",
[PLAYERLOSS_SKILLS] = "no",
[PLAYERLOSS_CONTAINERS] = "no",
[PLAYERLOSS_ITEMS] = "no"
}
}
function onDeath(cid, corpse, deathList)
if getPlayerLevel(cid) > config.protectionLevel then
return true
end
if getBooleanFromString(config.premium) == true and not isPremium(cid) then
return true
end
if getCreatureSkullType(cid) > 3 then
return true
end
for type, enabled in pairs(config.var) do
enabled = getBooleanFromString(enabled)
if enabled == true then
doPlayerSetLossPercent(cid, type, 0)
end
end
return true
end
Ah, nem vi que o Vodkart postou. Eu gosto de refazer scripts, aí eu demoro.
Editado Dezembro 14 por Oneshot
info
Grupo: Artesão
Registrado: 09/06/09
Posts: 146
Reputação: +4
Char no Tibia: Shared Elven

Vlw amigos, problema resolvido ^^
Resolvido & Reportado
info
Grupo: Lorde
Registrado: 17/01/09
Posts: 2.1k
Reputação: +395
Char no Tibia: Adra Sata

Obrigado mayzin por reportar.
Movido para dúvidas sanadas.








info
Grupo: Artesão
Registrado: 09/06/09
Posts: 146
Reputação: +4
Char no Tibia: Shared Elven
Galera preciso que alguem bote esse script para quando o cara for pk ou pk red esse script n funcione para ele, esse script é de protected level postado pelo Vodkat (não sei se o nome ta certo), mas então to precisando disso, o problema ta que quando o cara é pk red ele n perde nada quando morre até o level q esta configurado por esse script, meu ot é 9.70
Editado Dezembro 14 por TkSamer