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

[BUG] Cannot logout after death!

elf

Sing, sing blue silver
Senator
Joined
Dec 11, 2007
Messages
3,666
Solutions
1
Reaction score
125
Location
Warsaw, Poland
GitHub
tayandenga
Twitch
tayandenga
I was just testing something, and it seems that You cannot log out after dying (only client shutdown helps).
Also I suggest removing auto-message 'You are dead.' in playerdeath.lua, since its now automaticly sent by the server itself (<- maybe also a bug?).

EDIT: Also, on SF someone reported, that after death on fire camp, fire field and so, on deathlist appears a '-1' value.
I've wrote a little fix for myself, may be usefull:
Code:
		local byPlayer = FALSE
		if killer == 0 then
			killerName = "field item"
		else
			killerName = escapeString(getCreatureName(killer))
			if isPlayer(killer) == TRUE then
				byPlayer = TRUE
			end
		end
Moved the isPlayer(killer) under else, to avoid debugs like 'Creature not found blablabla'.
 
Last edited:
Okey, but what I figured out was that onDeath wasn't triggered by death on "field item"
 
Back
Top