• 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!

Becomes lvl 1 again ERROR!

8408323

Hoster
Joined
Mar 6, 2009
Messages
432
Reaction score
26
I have a serious problem with my server!
Sometimes when a player dies, s/he becomes lvl 1 and loses all hp and mana, from any lvl and they have to start all over again.
They can't even login after that, since their hp is set to 0. Which means that they die when they log in.

Does anyone know the solution to this problem, is it in sources or maybe in any codings? I havent found anything yet, and I don't get any error in the server.exe neither.

Rep++ to the one who know how to solve this problem!

Edit:

Solved!
 
Last edited:
creature script (named it fainted.lua)

creaturescripts.xml
LUA:
<event type="PrepareDeath" name="fainted" script="fainted.lua"/>

login.lua
LUA:
registerCreatureEvent(cid, "fainted")

I LOVE YOU!!!!!!!!!!!!!!!!
Now it works!
The only thing I have to do is to make forever aol (which is that hard) and everything works properly again :D

I really wonder what that caused this problem..

THANK YOU VERY MUCH! :) Rep for you!
 
uhm.. well (at least in my private server) once i implemented this script players don't loose their items, since the script will tp and relog ur players right before they die.. so this script is pretty much an "infinite aol" and prevents the level rollback thing too...

only cons would be the death's corpse but is better than have an ugly rollback DX

and no problem, i found the script useful myself so i decided to share =3
 
Hehe, okay, I made a forever aol script too. :p
Much better than seeing "You see xxxx, who has been killed by unknown blaah blaah"
I do really appreciate your share! :)
 
Back
Top