FE

Nao Perder Os Itens Nen A Bp.

Por Felipefox34, 27 de mar. de 2012 em Archived

tibia
script
otserv
5
751
Felipefox34F
27 de março de 2012 às 13:18

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 .

MulizeuM
27 de março de 2012 às 13:50

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"/>

Felipefox34F
27 de março de 2012 às 14:12

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

Editado Março 27 por Felipefox34

MulizeuM
27 de março de 2012 às 14:31

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

Felipefox34F
27 de março de 2012 às 14:56

Continua dando erro a versao do meu ot é 8.40.