People I need some spells, I hope someone could help me :d
First
I need a rune which when a player use it hits with 5 bolts (damage depending the distance of the player), remove 5 bolts from your slot
Second
I need an spell which summons 5 monsters and removes 50 soul
Third
How can I put on this spell:
I would like that formula damage depends of the Ml 60% and the skills 40%
First
I need a rune which when a player use it hits with 5 bolts (damage depending the distance of the player), remove 5 bolts from your slot
Second
I need an spell which summons 5 monsters and removes 50 soul
Third
How can I put on this spell:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onGetFormulaValues(cid, level, skill, attack, factor)
local skillTotal, levelTotal = skill + attack * 2, level / 5
return -(skillTotal * 1.1 + levelTotal), -(skillTotal * 3 + levelTotal)
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I would like that formula damage depends of the Ml 60% and the skills 40%
Last edited: