• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Why spell 1 cast effect from spell 2 ? XD

BulawOw

Soul of Shinobi
Joined
Sep 15, 2014
Messages
204
Solutions
8
Reaction score
62
Spell 1

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:
Back
Top