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

Does monster loose certain abilites after its away 8 tiles away from player?

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,454
Solutions
1
Reaction score
627
Location
Estonia
Using TFS 1.0
I noticed my custom charge spell on monster gives timeout for server if the charge spell comes 8 tiles away from targeted monster. It has no problem to execute it when its 7 tiles or less.

Im using:
Monster(cid):getTargetList()
getPath(startPos, endPos, obstacle)
--custom function
It spirals out from startPos until it finds endPos. It will search maximum 10 tiles in one direction. (this means covers only 100 tiles. else it returns empty table). After finding endPos is will trace back to startPos using table indexes, so it will take the shortest path to StartPos. Return value is table with positions.
Monster(cid):teleportTo(position) --it teleports the monster trough shortest path until it reach destination position. Using AddEvent() with interval 300.
For each position i do: Tile(position):getBottomCreature() -- if it finds target it will deal damage to it.
I also add Condition HASTE on monster for the charing duration -- total duration is SUM of addEvent intervals

Any clue why 8+ tiles cause timeout?
 
Back
Top