Nao Perder Os Itens Nen A Bp.

Felipefox34
em Lixeira Pública

Felipefox34

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/01/12Posts: 11Char no Tibia: Cadeachinela

Tipo do script: Slayer Yourots v11

Protocolo (versão do Tibia): 8.40

Servidor utilizado: The Forgotten Server

Nível de experiência:

Adicionais/Informações: quero um script que n perda nada nen a bp .

pokemontibia0jd.gif

Mulizeu

Programar ate cair os dedos
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 05/08/10Posts: 218Gênero: Masculino

vai em data/creaturescripts crie um arquivo lua e coloque

 

function onDeath(cid, corpse, killer)
if isPlayer(cid) == TRUE then
doPlayerSetLossPercent(cid, PLAYERLOSS_SKILL, 0)
doPdoPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
doCreatureSetDropLoot(cid,FALSE)
return TRUE
end
end

 

na msm pasta em login coloque

 

registerCreatureEvent(cid,"Loss")

 

 

em creaturescripts.xml cloque

 

<event type="death" name="Loss" script="nome do arquivo.lua"/>

Felipefox34

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/01/12Posts: 11Char no Tibia: Cadeachinela

Warning: [Event::loadScript] Event onLogin not found. data/creaturescripts/scripts/login.lua

 

oq tem no meu login.lua

 

 

function onLogin(cid)

local loss = getConfigValue('deathLostPercent')

if(loss ~= nil) then

for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do

doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent'))

end

end

 

registerCreatureEvent(cid, "GuildMotd")

registerCreatureEvent(cid, "PlayerDeath")

return TRUE

end

aecuando vo loga um personagen o ot cai

pokemontibia0jd.gif

Mulizeu

Programar ate cair os dedos
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 05/08/10Posts: 218Gênero: Masculino

tesnta assim!

 

 

function onLogin(cid)
if isPlayer(cid) == TRUE then
doPlayerSetLossPercent(cid, PLAYERLOSS_SKILL, 0)
doPdoPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
doCreatureSetDropLoot(cid,FALSE)
return TRUE
end

registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "PlayerDeath")
registerCreatureEvent(cid,"Loss")
return TRUE
end

Felipefox34

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/01/12Posts: 11Char no Tibia: Cadeachinela

Continua dando erro a versao do meu ot é 8.40.

pokemontibia0jd.gif