Hi, can someone help me? i add a custom spell "fan of knives" in my server, and i copy the sprite from throwing knife, but the problem is when i use the spell, the sprite still on map for ever. If when i walk it dont desapear, can someone help me?(PRINT)
Spell Code:
Spell Code:
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, 177)
combat:setArea(createCombatArea(AREA_CIRCLE5X5))
function onGetFormulaValues(player, skill, attack, factor)
local min = (player:getLevel() / 5) + (skill * attack * 0.03) + 7
local max = (player:getLevel() / 5) + (skill * attack * 0.05) + 11
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
Attachments
-
help2.jpg265.4 KB · Views: 29 · VirusTotal
-
help1.jpg273.4 KB · Views: 27 · VirusTotal