Instance dung help

08/27/2014 01:16 mlejnek2#1
so I know how to get my in game position but is there a way to get the top, bottom , left and right positions for the maps since none of the map tools here seem to like me at all just get blank screen when I open them
08/27/2014 15:43 mongreldogg#2
top, bottom, left and right positions is not a map position in 3 directions.

guess you saw that columns in instance dungeon monster respawn resource.

so, bottom and left are min X and min Y coordinate, top and right are max X and max Y coordinates. that coordinates used to generate random position for monster's spawn at its death.

it works same as random respawn schema used for random respawn in LUA, using commands

add_random_area
add_random_monster
set_random_respawn

look here: [Only registered and activated users can see links. Click Here To Register...]


to get map's local X and Y position, just use such a script:

Code:
function get_lc()

local x = gv("x")
local y = gv("y")

_x = x - math.floor(x / 16128) * 16128
_y = y - math.floor(y / 16128) * 16128

message (_x .. ", " .. _y)

end
08/27/2014 16:40 mlejnek2#3
ok cause I tried to add them in the server ini lua for spawns but they don't show so only way left I can think of is to do them in the DB cause all the m1 basements are there and they show and when I take those out they don't show so im guessing that its in that db only

ok I understand now tyvm man I get it so then I just make them where the max spawns are then. so I can do my own I see why most of the spawns in the db are the same.