• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Players Dont Die

shitter

..
Joined
Mar 26, 2010
Messages
491
Reaction score
22
as the title says players dont die from any thing
when they get 0 hp they dont die :S
can any one help?
i am using naxedot 6.0
frozenhell map and data pack
tibia vesion :8.54
if any one helped i can give any thing you want :$
 
his creaturescripts
Code:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
    <event type="look" name="eventtimers" event="script" value="event_timers.lua"/>
    <event type="login" name="PlayerLogin" event="script" value="login.lua"/>
    <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
    <event type="receivemail" name="Mail" event="script" value="mail.lua"/>
    <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
    <event type="think" name="Idle" event="script" value="idle.lua"/>
    <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
    <event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
    <event type="joinchannel" name="teamchannels" event="script" value="teamchannels.lua"/>
 
 
<!--BEGIN CUSTOM SCRIPTS-->
    <event type="preparedeath" name="PrepareDeath" event="script" value="playerdeath.lua"/>
    <event type="death" name="onDeath" event="script" value="ondeath.lua"/>
 
 
    <event type="combat" name="GuildAttack" event="script" value="castle wars/guild_attack.lua"/>
    <event type="death" name="KillKing" event="script" value="castle wars/kill_king.lua"/>
    <event type="combat" name="CombatKing" event="script" value="castle wars/combat_king.lua"/>
 
    <!--Event Arenas-->
    <event type="preparedeath" name="WarDeath" event="script" value="war arena/war_death.lua"/>
    <event type="combat" name="TeamAttack" event="script" value="war arena/team_attack.lua"/>
    <event type="preparedeath" name="CtfDeath" event="script" value="capture the flag/ctf_death.lua"/>
    <!--Event Arenas-->
 
    <!--Vocation Items-->
    <event type="statschange" name="KnightShieldBlock" event="script" value="buffs/knightshieldblock.lua"/>
    <!--Vocation Items-->
 
    <!--Reflect Spells-->
    <event type="statschange" name="ReflectSpellKnight" event="script" value="spells/reflectknight.lua"/>
    <event type="statschange" name="ReflectSpellPally" event="script" value="spells/reflectpally.lua"/>
    <event type="statschange" name="ReflectSpellMage" event="script" value="spells/reflectmage.lua"/>
    <!--Reflect Spells-->
 
    <!--Death Note-->
    <event type="textedit" name="DeathNote" event="script" value="deathnote.lua"/>
 
    <event type="login" name="exchangeDonor" event="script" value="exchangedonor.lua"/>
      <event type="kill" name="xmasArena" event="script" value="xmas_Arena.lua"/>  
 
            <event type="kill" name="satan" event="script" value="satanDeath.lua"/>  
 
<!--END CUSTOM SCRIPTS-->
</creaturescripts>
 
[Error - CreatureScript Interface]
[25/10/2010 12:38:06] data/creaturescripts/scripts/playerdeath.lua:eek:nPrepareDeath
[25/10/2010 12:38:06] Description:
[25/10/2010 12:38:06] data/creaturescripts/scripts/playerdeath.lua:12: bad argument #1 to 'abs' (number expected, got nil)
[25/10/2010 12:38:06] stack traceback:
[25/10/2010 12:38:06] [C]: in function 'abs'
[25/10/2010 12:38:06] data/creaturescripts/scripts/playerdeath.lua:12: in function <data/creaturescripts/scripts/playerdeath.lua:11>
 
i guess he will have to post all these scripts to see which is(are) bad :p
his creaturescripts
Code:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
    <event type="look" name="eventtimers" event="script" value="event_timers.lua"/>
    <event type="login" name="PlayerLogin" event="script" value="login.lua"/>
    <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
    <event type="receivemail" name="Mail" event="script" value="mail.lua"/>
    <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
    <event type="think" name="Idle" event="script" value="idle.lua"/>
    <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
    <event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
    <event type="joinchannel" name="teamchannels" event="script" value="teamchannels.lua"/>
 
 
<!--BEGIN CUSTOM SCRIPTS-->
    [COLOR=red]<event type="preparedeath" name="PrepareDeath" event="script" value="playerdeath.lua"/>
    <event type="death" name="onDeath" event="script" value="ondeath.lua"/>
[/COLOR] 
 
    <event type="combat" name="GuildAttack" event="script" value="castle wars/guild_attack.lua"/>
    [COLOR=red]<event type="death" name="KillKing" event="script" value="castle wars/kill_king.lua"/>[/COLOR]
    <event type="combat" name="CombatKing" event="script" value="castle wars/combat_king.lua"/>
 
    <!--Event Arenas-->
    [COLOR=red]<event type="preparedeath" name="WarDeath" event="script" value="war arena/war_death.lua"/>
    [/COLOR]<event type="combat" name="TeamAttack" event="script" value="war arena/team_attack.lua"/>
[COLOR=red]    <event type="preparedeath" name="CtfDeath" event="script" value="capture the flag/ctf_death.lua"/>[/COLOR]
    <!--Event Arenas-->
 
    <!--Vocation Items-->
    <event type="statschange" name="KnightShieldBlock" event="script" value="buffs/knightshieldblock.lua"/>
    <!--Vocation Items-->
 
    <!--Reflect Spells-->
    <event type="statschange" name="ReflectSpellKnight" event="script" value="spells/reflectknight.lua"/>
    <event type="statschange" name="ReflectSpellPally" event="script" value="spells/reflectpally.lua"/>
    <event type="statschange" name="ReflectSpellMage" event="script" value="spells/reflectmage.lua"/>
    <!--Reflect Spells-->
 
    <!--Death Note-->
    <event type="textedit" name="DeathNote" event="script" value="deathnote.lua"/>
 
    <event type="login" name="exchangeDonor" event="script" value="exchangedonor.lua"/>
[COLOR=red]      <event type="kill" name="xmasArena" event="script" value="xmas_Arena.lua"/>  

            <event type="kill" name="satan" event="script" value="satanDeath.lua"/>  [/COLOR] [COLOR=red]
[/COLOR] 
<!--END CUSTOM SCRIPTS-->
</creaturescripts>

btw try removing:
XML:
<event type="preparedeath" name="PrepareDeath" event="script" value="playerdeath.lua"/>
 
I thinkk it stats here which one you need to show
Code:
[Error - CreatureScript Interface] 
[25/10/2010 12:38:06] data/creaturescripts/scripts/[B][FONT="Arial Black"]playerdeath.lua[/FONT][/B]nPrepareDeath
[25/10/2010 12:38:06] Description: 
[25/10/2010 12:38:06] data/creaturescripts/scripts/playerdeath.lua:12: bad argument #1 to 'abs' (number expected, got nil)
[25/10/2010 12:38:06] stack traceback:
[25/10/2010 12:38:06] [C]: in function 'abs'
[25/10/2010 12:38:06] data/creaturescripts/scripts/playerdeath.lua:12: in function <data/creaturescripts/scripts/playerdeath.lua:11>
 
Back
Top Bottom