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

OnTargetTile Update Position

Well i like the way of onTargetTile, we can use math.random to get random tiles. But if there is no way, then only way i can think of. Is to do it manually :/
 
Well i like the way of onTargetTile, we can use math.random to get random tiles. But if there is no way, then only way i can think of. Is to do it manually :/
That will not be stable, hmm i am thinking of a new CallBack type to follow creature, but i will face one problem is to change Const Position to Position.
 
can't you just do smt like
Code:
local function randomaoe(cid, playerpos)
    randompos = playerpos+{x = math.random(-3,3), y =math.random(-3,3), z = 0}
    Position(randompos + Position(-6, -5, 0)):sendDistanceEffect(randompos, CONST_ANI_ICE)
    return doCombat(cid, combat1, positionToVariant(randompos))
end

that's what I use for a "snowstorm" spell that follows the player around for a short duration

or maybe that's what u meant with doing it manually :p
 
Not sure what you want to do.
But closest I have got with visual auras are in onThink() function in creaturescripts.

I use addEvent() to cut time below 1 sec interval.
 
Back
Top