Ir para conteúdo

AJUDA! Player teletransportado para o temple quando e nao morre

Featured Replies

Postado
  • Autor

 

tenta assim

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
    <event type="login" name="PlayerLogin" event="script" value="login.lua"/>

    <event type="channelrequest" name="Ban_Type" event="script" value="ban/type.lua"/>
    <event type="channelrequest" name="Ban_Action" event="script" value="ban/action.lua"/>
    <event type="textedit" name="Ban_Finish" event="script" value="ban/finish.lua"/>

    <event type="channeljoin" name="GuildEvents" event="script" value="guild.lua"/>
    <event type="mailreceive" name="Mail" event="script" value="mail.lua"/>
    <event type="reportbug" name="ReportBug" script="reportbug.lua"/>
    <event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
    <event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>

    <event type="think" name="Idle" event="script" value="idle.lua"/>
    <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>

    <event type="extendedopcode" name="ExtendedOpcode" event="script" value="extendedopcode.lua"/>
    <event type="kill" name="AZKILL" script="yala/azkill.lua"/>  
    <event type="kill" name="INQKill" event="script" value="inq/kill.lua"/>
    <event type="kill" name="DISKILL" event="script" value="yala/diseased.lua"/>
    <event type="kill" name="QUARAKILL" event="script" value="yala/quaras.lua"/>
    <event type="kill" name="KILLMORIK" event="script" value="yala/morik.lua"/>
    
    <!-- Inquisition Full Quest -->
    <event type="kill" name="inquisitionPortals" script="Inquisition.lua"/>
    
    <!-- Custom Scripts-->
    <event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>
    
    <!-- Quests-->
    <event type="logout" name="demonOakLogout" event="script" value="doq/demonOakLogout.lua"/>
    <event type="death" name="demonOakDeath" event="script" value="doq/demonOakDeath.lua"/>
    <event type="attack" name="demonOakAttack" event="script" value="doq/demonOakAttack.lua"/>
     <event type="kill" name="svargrond_arena" event="script" value="arena_kill.lua"/>
    <event type="death" name="PythiusTheRotten" event="script" value="PythiusTheRotten.lua"/>
</creaturescripts>

Coloquei e ainda continua o problema

function onPrepareDeath(cid, corpse)
	if isPlayer(cid) then
		if (getPlayerLevel(cid) < 100 and getPlayerSkullType(cid) ~= nil) then
			doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
            doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
        else
            doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 100)
            doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 100)
		end
	end
	return true
end

playerdeath.lua

  • Respostas 10
  • Visualizações 452
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Esse script é de lvl protection,

você já testou esse erro com players acima do lvl 100 ?

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Postado

tenta esse

function onPrepareDeath(cid, corpse)
	if isPlayer(cid) then
		if (getPlayerLevel(cid) < 10 and getPlayerSkullType(cid) ~= nil) then
			doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
            doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
        else
            doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 100)
            doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 100)
		end
	end
	return true
end

I like

Postado
  • Autor

sim isso ocorre com players de todos os leveis, testei com um player de lv 20 e um player de lv acima de 100

o lv protect é atualmente :1

Postado

sim isso ocorre com players de todos os leveis, testei com um player de lv 20 e um player de lv acima de 100

o lv protect é atualmente :1

 

Exclua a tag do script e veja se continua ...

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo