The idea is based on lifesteal weapons. It heals % of the average damage that people will hit with a certain level, skills and attack of the weapon.
Tested with TFS 0.3.6pl1 8.54
Attack damage weapons
Weapons.xml
Weapon.lua
[Weapon] Weapon with healing (healing % of weapon damage)
Tested with TFS 0.3.6pl1 8.54
Attack damage weapons
Weapons.xml
XML:
<melee id="XXXX" level="20" unproperly="1" event="script" value="weapon.lua"/>
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat...