Ovnyx
Member
- Joined
- Jul 25, 2017
- Messages
- 163
- Solutions
- 2
- Reaction score
- 7
hi, im using Delusion ability system
i recently add the last abilities delusion add like attackspeed, damagemitigation, supporthealing, etc
i was using this script to test the healregeneration:
working perfect, now i was trying to figure out how to deal with weapon speed attack with this lua script:
as it says it works with MS, i try to test it with 100 ms but its not working, dont know if i need to use another ability or some ability need to have 1 as value, to enable that ability? i already added the item
thanks in advice!
i recently add the last abilities delusion add like attackspeed, damagemitigation, supporthealing, etc
i was using this script to test the healregeneration:
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid == 2494 then
local position = player:getPosition()
target:setAbility(ITEM_ABILITY_REGENERATION, 1)
target:setAbility(ITEM_ABILITY_HEALTHGAIN, 500)
target:setAbility(ITEM_ABILITY_HEALTHTICKS, 0.5)
player:sendCancelMessage("Health upgrade! 500 hp per second")
position:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
end
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid == 2446 then
local position = player:getPosition()
local percentage = player:getSpeed()*0.15
target:setAbility(ITEM_ABILITY_SPEEDATTACK, 100)
player:sendCancelMessage("Speed Attack upgrade!")
position:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
return true
end
2446
to the movements.xml file.thanks in advice!
