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

easy request

Animera

* * * * *
Joined
Dec 9, 2008
Messages
2,449
Solutions
5
Reaction score
618
Location
ANIMERARPG.ONLINE
I want spell exevo vis lux that won't shoot unless you have target and if it haves a target the wave goes diagonal if the monster is diagonal it goes east if the targeted monster is east etccc
tfs 0.3.5 crying damson
 
Last edited:
I'm searching a spel with range of exevo vis hur.
But to use the spell you need atleast a target.
and to make sure nobody could avoid it i want that the spell folows the target like:

1= player
2= spell
3= monster

if player is here

1 and the targetted monster here 3 (east of it)
then the wave goes to east
,,,222
122223
,,,222
but if the targeted monster is diagonal then the spell goes
(it doesn't matter what area the exevo vis hur was an example)
1
,2
,,2
,,2 2 2
,,,2 2 2
,,,,2 3 2
 
no that won't work ebcause the beam will have this:

i say exevo vis hur
then happens this
1 = spell area
2 = monster
,,,111
21111
,,,111

wich isn't supposed to be it must be
,,,111
11112
,,,111
 
20axop1.jpg
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.4, 0, -1.9, 0)

beam = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}

local area = createCombatArea(beam)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
I think this should work, you must have needtarget="1" in spells.xml too.
 
Just set max range? That would solve the problem on the picture. Didn't rly think about that :p
So everything you have to do is set needtarget and range in spells.xml.
Don't use my script, it would not be the same.
 
it wont work good, what if target is closer/more far(how to say it?)?

it doesn't amtter if it is toof ar because it only needs to go to that side not have to hit by the way exevo vis hur was a example.
Just set max range? That would solve the problem on the picture. Didn't rly think about that :p
So everything you have to do is set needtarget and range in spells.xml.
Don't use my script, it would not be the same.

what script? -.-
 
using easy spell it isnt possible, it needs some custom functions to use sqm next to caster as target but to use direction-to-targeted-creature as direction instead of caster lookdir

maybe mindrage will help?
 
Back
Top