• 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 Creaturescript - statschange

sestorme

Member
Joined
Dec 9, 2011
Messages
272
Reaction score
6
Location
Birmingham, UK
LUA:
function onStatsChange(cid, attacker, type, combat, value)
	if type == STATSCHANGE_HEALTHLOSS and combat == COMBAT_PHYSICALDAMAGE then
	attacker = attacker
		if isPlayer(attacker) == TRUE then
			doSendAnimatedText(getPlayerPosition(cid), "XYZ!", 18)
		end
	end
	return true
end

How to detect a PLAYER actually dealing damage to anything? This of course don't work. And yes, it is added to login and creaturescripts.
 

Similar threads

Back
Top