Install:
To make this work you need source changes you can found it in this link: http://otland.net/f35/increase-player-damage-177331/
after successfull compilation simple lua part:
movements.xml
-- Important note, keep sure you not dublicating existing ring with same id in movements.xml
set/damageRing.lua
Tested on 0.3.6
To make this work you need source changes you can found it in this link: http://otland.net/f35/increase-player-damage-177331/
after successfull compilation simple lua part:
movements.xml
Code:
<movevent type="DeEquip" itemid="2164" slot="ring" function="onDeEquipItem" script="set/damageRing.lua"/>
<movevent type="Equip" itemid="2164" slot="ring" function="onEquipItem" script="set/damageRing.lua"/>
set/damageRing.lua
Code:
function onEquip(cid, item, slot)
doPlayerSetExtraMagicDamage(cid, 100)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MORTAREA)
return true
end
function onDeEquip(cid, item, slot)
doPlayerSetExtraMagicDamage(cid, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MORTAREA)
return true
end
Tested on 0.3.6