Hello otland!
Does anyone understand the logic behind spell/rune areas to help me solve my problem?
I'm modifying the rune "fire wall" so it hits where it normally does EXCEPT the center. This is intended so that people may use Rune Target Hotkeys, but if they try to hit the target directly it won't hit it. This is intended so that people can use the rune hotkey "Crosshairs" but not "Target" directly, which is a central mechanism I'm trying to implement.
My best try was to change the wallfield to the following:
-- Walls
AREA_WALLFIELD = {
{1, 1, 0, 1, 1}
}
However, this doesn't solve the problem as the crosshair of the rune is still getting damaged. Also, when I try to use this logic diagonally, the fire wall diagonal is thrown off by 2-3 sqm.
This is my first time programming an otserver and my first time posting in otland, any help would be much appreciated
Does anyone understand the logic behind spell/rune areas to help me solve my problem?
I'm modifying the rune "fire wall" so it hits where it normally does EXCEPT the center. This is intended so that people may use Rune Target Hotkeys, but if they try to hit the target directly it won't hit it. This is intended so that people can use the rune hotkey "Crosshairs" but not "Target" directly, which is a central mechanism I'm trying to implement.
My best try was to change the wallfield to the following:
-- Walls
AREA_WALLFIELD = {
{1, 1, 0, 1, 1}
}
However, this doesn't solve the problem as the crosshair of the rune is still getting damaged. Also, when I try to use this logic diagonally, the fire wall diagonal is thrown off by 2-3 sqm.
This is my first time programming an otserver and my first time posting in otland, any help would be much appreciated