• 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!

Exori Min Problem

Nux

Yzeria Custom War
Joined
Jan 2, 2009
Messages
1,067
Reaction score
1
Hello.

Well, im here today to say that im having some problems with the spell exori min, this is what happends - > when someone does exori min and looks down it does exori min down, and when he change side exori min does still the effect down..

like if a player looks Up then exori min effect does attack down.. this should not happen, and i dont have any clue how to fix it, but here is the script


Frontsweap.lua

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)

local area = createCombatArea( {{0, 1, 1, 1, 0},{0, 0, 3, 0, 0}})
setCombatArea(combat, area)

function onGetFormulaValues(cid, level, skill, attack, factor)
	local skillTotal, levelTotal = skill + attack * 2, level / 5
	return -(skillTotal * 1.1 + levelTotal), -(skillTotal * 3 + levelTotal)
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	local storage = 23008
	local spellname = "Front Sweep"
	local time = 6

        if exhaustion.check(cid, storage) == false then
                exhaustion.set(cid, storage, time)
                return doCombat(cid, combat, var)
        else
                doPlayerSendCancel(cid, "")
        end
end
 
Code:
local area = createCombatArea( {{0, 1, 1, 1, 0},{0, 0, 3, 0, 0}})
setCombatArea(combat, area)
to
Code:
local area = createCombatArea(AREA_WAVE6, AREADIAGONAL_SQUAREWAVE5)
setCombatArea(combat, area)

and add new in spells/lib and spells.lua
Code:
AREA_WAVE6 = {
	{0, 1, 1, 1, 0},
	{0, 0, 3, 0, 0}

not sure this will work! didnt try it and its the first time to do smth like this.
 
Back
Top