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

Armor reflects damage

x1nject

New Member
Joined
Apr 24, 2010
Messages
118
Reaction score
0
Hi im using the TFS 0.3.6pl1 and i heard there was like a reflection system you can put on items like
ReflectChance
ReflectPercent


or something like that does anyone know what the commands are for items.xml, if there not done in items.xml can anyone make script please? Thanks.
 
i don't know about 0.3.6, but in 0.4 DEV trunk 3660 it's done.

PHP:
else if(tmpStrValue == "reflectpercentenergy")
			{
				if(readXMLInteger(itemAttributesNode, "value", intValue))
					it.abilities.reflect[REFLECT_PERCENT][COMBAT_ENERGYDAMAGE] += intValue;
			}

else if(tmpStrValue == "reflectchanceenergy")
			{
				if(readXMLInteger(itemAttributesNode, "value", intValue))
					it.abilities.reflect[REFLECT_CHANCE][COMBAT_ENERGYDAMAGE] += intValue;
			}
 
Back
Top