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

Lua Remove healing when level

Powtreeman

Member
Joined
Sep 26, 2011
Messages
400
Reaction score
6
Location
USA
Where can I make it stop putting me at full HP and mana when I level up?

I tried using a config from a different file just now and it came up with sqlite errors and would not load. I don't know if that would have fixed the healing on level problem.
 
Last edited:
That is not in my config at all plus my config runs on yes or no not true or false.

- - - Updated - - -

- - - Updated - - -

Does anyone know how to solve this? It is only a problem because I dont want people running through all my spawns and not having to heal because they just level up
 
Last edited:
this is all i have in creaturescripts

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerLogin" script="login.lua"/>
<event type="login" name="FirstItems" script="firstitems.lua"/>
<event type="death" name="PlayerDeath" script="playerdeath.lua"/>
</creaturescripts>
 
Which server do you use?
And the config you use, is it the exact same one that came with the server or did you replaced/removed parts?
 
Still could be a mod, check since I guess you recently downloaded the dist. If not I would say look in the source code or if that file still is there, global.lua (havent used 0.2 in ages)
WibbenZ
 
You should post the download link of the server that you downloaded, so we can check the files :P

@EDIT:
The function is on source files (player.cpp) so you need to download the source and then compile it :P

Search fo this line:
[cpp]g_game.changeSpeed(this, 0);[/cpp]

This should be under the first code:
[cpp]g_game.addCreatureHealth(this);[/cpp]

Replace it for this:
[cpp]//g_game.addCreatureHealth(this);[/cpp]
 
Last edited:
Back
Top