It happens quiete often to me, that my teleportspells aren't reaching the edge of the client window and the messages "you can't see there" pops up once and now aswell, but as I just click and let go off the button I teleport somewhere completly wrong, is there a way to include some kind range/reach indication?
Pellandria wrote:It happens quiete often to me, that my teleportspells aren't reaching the edge of the client window and the messages "you can't see there" pops up once and now aswell, but as I just click and let go off the button I teleport somewhere completly wrong, is there a way to include some kind range/reach indication?
Teleport to the second to last square? An actual indicator seems a bit unneeded.
AlexRose wrote:So just recast and learn the spell ranges.
The problem there is, that sometimes the range of the spell is at the client window and sometimes three squares off, for no obvious reason at all, this is why I asked if this is even possible.
Faladron wrote:Please code that for weapons too, bows for example.
The problem is, as far as I understood, that you actually teleport to a completly wrong square when you targe an unreachable tile. But you don't shoot the grass, when you aim for enemey that is too far away, do you?
Wrong, if the tile is too far away you get the message after you have released alt, only if you click on a tile you can't see, then you get the error sound and message.
The server does not know the range of a spell before the script is triggered. And the script is triggered as soon as you cast the spell. So its absolutly impossible to show how far you can cast before you actually casted the spell.
Same for weapons.
So can be something implemented, that blocks the client from "doing" the spell after you did the spell... sorry, in german
Wenn der Server erst nach dem tatsächlichen Sprechen des Spells erkennt, ob es möglich ist dort hinzukommen, oder nicht, ginge es dann nicht durch einen wenn, dann code eine art blockade einzuführen?
sprich:
Ziel gewählt, Alt losgelassen, Tile erreichbar: Spell wird benützt
Ziel gewählt, Alt losgelassen, Tile nicht erreichbar: Spell wird "blockiert", Nachricht erscheint: Diese Strecke ist zu weit.
Mit der Strecke zu weit passiert bereits, bloss das man den zauberspruch dann eben nochmal ausführen muss, im Gegensatz zu den "dahin kannst du nicht sehen", was darin endet das das Ziel abgewählt wird und wenn man dnan loslässt, der Zauberspruch natürlich auf die eigene Person zurückfällt.