tem sim =D pede na area de script Rep+ ai vlw
4
649
info
Group: Campones
Joined: 20/12/10
Posts: 91
Reputation: +19
Tibia Character: Lhan Boldensa

16 de dezembro de 2011 às 17:46
Edited Dezembro 16 by Extremeots
info
Group: Conde
Joined: 30/06/11
Posts: 631
Reputation: +371
Tibia Character: Warrior of Mort

16 de dezembro de 2011 às 23:21
Vai em data/creaturescripts/scripts, duplica um arquivo e renomeia para aoldeath e nele cole:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
local aolID = 2130 -- id do aol
local lossExp = false -- perde xp 'false' para falso ou 'true' para verdadeiro
local lossItems = false -- perde items
if isPlayer(cid) then
if ((getPlayerSlotItem(cid, 2).itemid == aolID) and (getCreatureSkullType(cid) ~= SKULL_RED)) then
if (lossExp == false) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
end
doCreatureSetDropLoot(cid, lossItems)
return true
end
end
return true
end
Agora vai em data/creaturescripts/creaturescripts.xml e cola a tag:
<event type="preparedeath" name="AolDeath" event="script" value="aoldeath.lua"/>
E por último, vai em data/creaturescripts/scripts e abra o arquivo login.lua e nele cole:
registerCreatureEvent(cid, "AolDeath")


info
Group: Campones
Joined: 02/02/11
Posts: 53
Reputation: 0
Gender: Masculino
Pessoal do xtibia, eu tenho uma duvida aaqui !
Sera que isso e possivel,
Criar ou editar um item , como aol , mas ele funciona assim , quando vooc morre nao perde o aol e nem o level ?
se isso for possivel, por favor ajuda !
Rep +++