Quote:
Originally Posted by superemu
I notice that there are a lot of animal spawns in Qeynos Hills that are not assigned to grids. I want to make them wander. Now, I know how to build grids and assign mobs to them, but I am wondering if there is a way to auto create grids with large numbers of randomly placed points. Doing this manually is pretty tedious.
|
RandomRoam.
https://github.com/EQEmu/Quests-Plug.../path_tools.pl
https://github.com/EQEmu/Quests-Plug...k_o_lantern.pl
Code:
sub EVENT_SPAWN {
my $min = 1;
my $range = 4;
my $randomspawn = int(rand($range)) + $min;
plugin::RandomRoam(250, 250);
quest::settimer(1,$randomspawn);
}
sub EVENT_TIMER {
plugin::RandomRoam(250, 250);
}
For more granular control, would need to create an array with boundaries and other clever tactics, I don't think there's a builtin feature for that.