An odd issue has shown on my TFS 1.3 and I cant figure out where it comes from.
Using utito tempo with this code:
Does not do anything beside showing the text "utito tempo" on casting and it does actually print in the script so it does call right files and no errors are showing up.
However if i set
to -1 it somewhat works besides that it calculates the melee percent without the bonus stats from other systems/berserker potion etc and therefor set the melee back instead. (It takes 10 * 135% = 13, instead of 40 * 135 which is my true stat with all bonuses.)
Anyone have a fix for this? or any idea on how to point me in the right direction?
Edit: same thing with utito tempo san
Using utito tempo with this code:
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setParameter(CONDITION_PARAM_SKILL_MELEEPERCENT, 135)
condition:setParameter(CONDITION_PARAM_DISABLE_DEFENSE, true)
condition:setParameter(CONDITION_PARAM_BUFF_SPELL, true)
combat:addCondition(condition)
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
However if i set
Lua:
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
Anyone have a fix for this? or any idea on how to point me in the right direction?
Edit: same thing with utito tempo san
Last edited: