Greystar
Member
I am using ServUO.
I would like to figure out a spawnrange/homerange number to use based on a regions rectangle. Has anyone done this or tried this before? So basically finding the center of a rectangle based on the X/Y had height/width provided in the region file. then from that center find a valid spawn location within that region withing range of the spawner. Basically I am recreating a "Working" town invasion system. Unless you want to pay 70$ to use Voxpires (Way to much for a Free Source code (IE to use on ServUO/RunUO if you have vitanex core installed) btw, but I know some people had the money to throw away) none of the other ones I've tested work properly. So I'm starting over, I've got it so that the Spawner will spawn mobiles in a valid location within range of the spawner so they are not all stacked in the center, but I want to be able to dynamically find the center AND from that extrapolate a range to set as the mobs home range. I am using the Miniboss spawners that are using to spawn the Minibosses/renown in the Abyss as my base with some changes of my own to stop the clumping at the spawner. I am kinda stuck at this point, I could just throw in a generic range but that doesn't seem practical especially for the larger towns. I'd also need a main controller which I could probably write up eventually because I want only ONE to be active at a given interval (ie maybe every 2 hours they switch). Also going to be working on a way to randomly choose what invasion type spawns when the individual town invasion is active. After that I'll have to work on a gump or another way to display what wave it's on and how many more mobs need to be killed to advance to the next wave. I originally considered using the Champ system but it's overly complicated.
So any help/direction would be nice.
I would like to figure out a spawnrange/homerange number to use based on a regions rectangle. Has anyone done this or tried this before? So basically finding the center of a rectangle based on the X/Y had height/width provided in the region file. then from that center find a valid spawn location within that region withing range of the spawner. Basically I am recreating a "Working" town invasion system. Unless you want to pay 70$ to use Voxpires (Way to much for a Free Source code (IE to use on ServUO/RunUO if you have vitanex core installed) btw, but I know some people had the money to throw away) none of the other ones I've tested work properly. So I'm starting over, I've got it so that the Spawner will spawn mobiles in a valid location within range of the spawner so they are not all stacked in the center, but I want to be able to dynamically find the center AND from that extrapolate a range to set as the mobs home range. I am using the Miniboss spawners that are using to spawn the Minibosses/renown in the Abyss as my base with some changes of my own to stop the clumping at the spawner. I am kinda stuck at this point, I could just throw in a generic range but that doesn't seem practical especially for the larger towns. I'd also need a main controller which I could probably write up eventually because I want only ONE to be active at a given interval (ie maybe every 2 hours they switch). Also going to be working on a way to randomly choose what invasion type spawns when the individual town invasion is active. After that I'll have to work on a gump or another way to display what wave it's on and how many more mobs need to be killed to advance to the next wave. I originally considered using the Champ system but it's overly complicated.
So any help/direction would be nice.