BulawOw
Soul of Shinobi
- Joined
- Sep 15, 2014
- Messages
- 204
- Solutions
- 8
- Reaction score
- 62
Spell 1
Spell 2
Lua:
local condition = Condition(CONDITION_WALKLOCK)
condition:setTicks(config.OUTFIT_TIMELAPSE)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
combat:setParameter(COMBAT_PARAM_KNOCKBACK, 2)
combat:setArea(createCombatArea(AREA_SQUARE1X1))
function onGetFormulaValues(player, skill, attack, factor)
local level = player:getLevel()
local taijutsu = player:getSkillLevel(SKILL_TAIJUTSU)
local min = level / 5 + taijutsu / 5
local max = level + taijutsu
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
--------------------------------------------------------------------------
--------------------------------------------------------------------------
local function copyOutfit(creatureId, newLooktype)
end
function animateKick(creature, variant, lookType)
end
function animateBack(creature, lookType)
end
function onCastSpell(creature, variant)
end
Spell 2
Lua:
local condition = Condition(CONDITION_WALKLOCK)
condition:setTicks(config.OUTFIT_TIMELAPSE)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
combat:setParameter(COMBAT_PARAM_KNOCKBACK, 1)
combat:setArea(createCombatArea(AREA_SQUARE1X1))
function onGetFormulaValues(player, skill, attack, factor)
local level = player:getLevel()
local taijutsu = player:getSkillLevel(SKILL_TAIJUTSU)
local min = level / 5 + taijutsu / 5
local max = level + taijutsu
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
--------------------------------------------------------------------------
--------------------------------------------------------------------------
local function copyOutfit(creatureId, newLooktype)
end
function animateKick(creature, variant, lookType)
end
function animateBack(creature, lookType)
end
function onCastSpell(creature, variant)
end
Ok, so my question is why when i use spell1 the effect from spell2 is getting drawn where line playerPosOffset:sendMagicEffect(86) in spell1 dont exist ? XD
Last edited: