robertorb12
New Member
- Joined
- Jan 15, 2020
- Messages
- 65
- Reaction score
- 3
Hi everyone, I have a little problem with knight spells or weapons. if I do a knight spell (anyone) and I have an ax cobra, cobra ax (Atk: 8 physical + 44 ice, Def: 29 +2, ax fighting +2), falcon battleaxe, etc. anyone who has little physical attack and a lot of elementary the damage done by spells is very little, even weapons that have 30 physical do twice the damage with spells
I'll put a script on one of those weapons and a spell to see what might be happening
exori gran script:
cobra axe:
weapons.xml of cobra axe:
What could be happening?
I'll put a script on one of those weapons and a spell to see what might be happening
exori gran script:
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1)
combat:setParameter(COMBAT_PARAM_USECHARGES, 1)
function onGetFormulaValues(player, skill, attack, factor)
local skillTotal = skill * attack
local levelTotal = player:getLevel() / 5
return -(((skillTotal * 0.02) + 4) + (levelTotal)), -(((skillTotal * 0.04) + 9) + (levelTotal))
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
return combat:execute(creature, var)
end
cobra axe:
Code:
<item id="35231" article="a" name="cobra axe">
<attribute key="weight" value="4000" />
<attribute key="weaponType" value="axe" />
<attribute key="attack" value="8" />
<attribute key="elementIce" value="44" />
<attribute key="defense" value="29" />
<attribute key="extradef" value="2" />
<attribute key="skillAxe" value="2" />
<attribute key="imbuingSlots" value="2" />
</item>
Code:
</melee>
<melee id="35231" level="220" unproperly="1">
<vocation name="Knight" />
What could be happening?
Last edited: