darknelson
Member
- Joined
- Jun 19, 2011
- Messages
- 190
- Solutions
- 1
- Reaction score
- 15
im trying to do a spell for my god player who can one shot kill every monster in game for test boss etc, this is the script i make
but it simply doest not return any error it just says the spell name and nothing else more what can be?[/CODE]
Lua:
local combat = Combat()
local player = creature:getPlayer()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 4.3) + 32
local max = (level / 5) + (maglevel * 7.4) + 48
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var, isHotkey)
if Player:getAccountType() == ACCOUNT_TYPE_GOD then
return combat:execute(creature, var)
end
end
but it simply doest not return any error it just says the spell name and nothing else more what can be?[/CODE]