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

[Monster] Reflects damage.

Alcik

ots.tibiaserver.pl
Joined
Mar 12, 2009
Messages
177
Reaction score
4
Location
Ireland/Polish
Hey.
I searched for a script that would help me with this monster but I've found nothing.


I am looking for a monster that reflects damage. So, if the player deals 100 to the monster, the monster and the player will both get 100 damage.


I really searched for this script. I was looking for it in many forums and I've found nothing.
 
reflect.lua
Lua:
function onStatsChange(cid, attacker, type, combat, value)
	if type == STATSCHANGE_HEALTHLOSS and cid ~= attacker then
		doTargetCombatHealth(cid, attacker, combat, value, value, CONST_ME_NONE)
	end
	return true
end
creaturescripts.xml
XML:
-
	<event type="statschange" name="Reflect" event="script" value="reflect.lua"/>
monster file
XML:
-
	<script>
		<event name="Reflect"/>
	</script>
 
TFS 1.4
 
Back
Top