anyeor
Member
- Joined
- Jan 6, 2010
- Messages
- 109
- Solutions
- 2
- Reaction score
- 18
Can anybody help me how i can make uh for voc?
my code didnt work:
i dont know how to remake this script
my code didnt work:
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
function onGetFormulaValues(player, level, maglevel)
if player:getVocation() == 4 or player:getVocation() == 8 then
local min = (level * 2) + (maglevel * 16) --for knight
local max = (level * 2) + (maglevel * 17.5) --for knight
elseif getPlayerVocation(player) == 1 or player:getVocation() == 2 or player:getVocation() == 5 or player:getVocation() == 6 then
local max = (level * 1) + (maglevel * 2.3) --for sorc&druid
local max = (level * 1) + (maglevel * 2.5) --for sorc&druid
end
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
i dont know how to remake this script