• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua [TFS 1.4] Directional spell with sprite offset

Cebal

Member
Joined
Aug 28, 2009
Messages
18
Solutions
2
Reaction score
9
Hi! Im looking for a simple spell script that is on almost every anime ots. Directional spell with effect offset that I can set up easly. The image below (from google) is an example what im looking for:
jutsu.png
Thanks in advance!
 
Maybe i am missing something but you are asking for something like exevo flam hur?
Did you have any issues trying to modify that spell?
 
Last edited:
Well, yes it's something similar and sure I tried to edit but the problem is that every directions effect needs to be set up separately.
I have better script that can be edited but I failed to do it to be honest so im asking for your help.

LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, 1)
combat:setFormula(COMBAT_FORMULA_DAMAGE, 0, -100, 0, -200)
combat:setArea(createCombatArea(AREA_SQUAREWAVE5, AREADIAGONAL_SQUAREWAVE5))

local effect = {
    [DIRECTION_NORTH] = 2,
    [DIRECTION_EAST] = 3,
    [DIRECTION_SOUTH] = 4,
    [DIRECTION_WEST] = 5
}


function onCastSpell(creature, variant)
    creature:getPosition():sendMagicEffect(effect[creature:getDirection()])
    return combat:execute(creature, variant)
end

So I kind of tried to add to each direction:
Code:
local position = {x=target:getPosition(cid).x+2, y=target:getPosition(cid).y, z=target:getPosition(cid).z}
but didnt work unfortunately...
 
Back
Top