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

[Support] PlayerDeath Function

justin234

New Member
Joined
Jan 22, 2008
Messages
999
Reaction score
4
Warning! The murder of pk was not justified!
Pk was killed at level 43 by an orc berserker of Test Sorc (Justified).

PHP:
if isPlayer(killer) == FALSE then
	byPlayer = FALSE
	msg = msg..""
	if getPlayerSkullType(cid) > 0 then
		msg = msg.." (Unjustified)"
	else
		msg = msg.." (Justified)"
	end
end
end

Thats obviously messed up,
Kind Regards.
 
Code:
    if getPlayerSkullType(cid) > 0 then
        msg = msg.." (Unjustified)"
    else
        msg = msg.." (Justified)"
    end

Code:
    if getPlayerSkullType(cid) > 0 then
        msg = msg.." (Justiied)"
    else
        msg = msg.." (Unjustified)"
    end
 
Is it possible to add a function to the global.lua?

if getTargetSkullType(cid) > 0 then
etc..

Its not impossible:

13:35 Unertaker killed at level 41 by a monk of Elite Lucy Airoxe (UNJUSTIFIED)

I'm on Realots, a 7.72 SERVER.
 
Well... They must have source edited o.o

Only way I could think of (which won't work as we expect it) is to check if target was white or yellow skulled to check if it's justified. But problem is that he could be yellow on another person and not on the attacker.
 
Back
Top