• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

I can't die

patryk22005

New Member
Joined
May 7, 2014
Messages
35
Reaction score
2
i have ots serwer 8,6 tfs 0.4 for linux. My problem is i can't die :D when my knight have 0hp he still stey and can't die.... HEELLLPPP MEEE plz. i try to find this but i can't
 
nop
First fink its i see on 100 lvl 100hp or 100% i change this in config but i don see this there and now is normal 100lvl and i see 1500hp but still i can't die. I'm looking this on data but still nothing
 
Could be caused by a creaturescript with type preparedeath. If this is missing return true, people won't die.
It can also be from a creaturescript with type kill, but then you would only have this when people die from being killed by other people.
 
What do you mean?
If you go to creaturescripts.xml, you can look if you have scripts with type preparedeath, if you have, look in the lua script if it's missing return true above the last end.
 
In your server, go to data/creaturescripts/creaturescripts.xml.
Look for a line with type preparedeath or post your creaturescripts.xml so we can help find it.
 
this is mine craturescipt.xml

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
<event type="advance" name="levelpoints" event="script" value="levelpoints.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="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
<event type="death" name="yalahari" event="script" value="yalahari.lua"/>
<event type="advance" name="advance" script="advance.lua"/>
<event type="statschange" name="stats_ctf" event="script" value="stats_ctf.lua"/>
<event type="combat" name="ctf_target" event="script" value="ctf_target.lua"/>
<event type="advance" name="Events" event="script" value="events.lua"/>
<event type="think" name="ZombieThink" event="script" value="zombie/onthink.lua"/>
<event type="statschange" name="ZombieAttack" event="script" value="zombie/onattack.lua"/>
<event type="death" name="ZombieDeath" event="script" value="zombie/ondeath.lua"/>



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

<event type="login" name="first items" event="script" value="first items.lua"/>

<event type="login" name="supportlogin" event="script" value="supportlogin.lua"/>


<event type="advance" name="lvlitems" event="script" value="lvlitems.lua"/>
<event type="advance" name="advbroadcas" event="script" value="advbroadcast.lua"/>


</creaturescripts>
 
function onDeath(cid, corpse, killer)

registerCreatureEvent(cid, "yalahari")

local creaturename = getCreatureName(cid)

local yalahari_in_position = {x=1002, y=443, z=7, stackpos=2}

local yalahari_to_position = {x=990, y=497, z=7, stackpos=1}

local time_to_pass = 60
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "You now have 60 seconds to exit this room through the teleporter. It will bring you to the reward room only during his time or the teleporter will disappear."

if creaturename == 'Yalahari Boss' then

teleport = doCreateTeleport(tpID, yalahari_to_position, yalahari_in_position)

doSendMagicEffect(yalahari_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInYalahariBossWard, (1000*time_to_pass))


end
end

function removeTeleportInYalahariBossWard()
if getThingfromPos({x=1002, y=443, z=7, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=1002, y=443, z=7, stackpos=1}).uid,1)
doSendMagicEffect({x=1002, y=443, z=7, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
 
Back
Top