View Full Version : Auto generate grid points
superemu
10-06-2016, 02:05 AM
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.
DanCanDo
10-06-2016, 02:50 AM
If I am not mistaken, not too long ago, someone posted a "random roam" script to put
on npc's and set the distance they roam. It's on the forums here somewhere.
Shin Noir
10-06-2016, 03:08 AM
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-Plugins/blob/master/plugins/path_tools.pl
https://github.com/EQEmu/Quests-Plugins/blob/master/quests/kithicor/%23a_jack_o_lantern.pl
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.
Robregen
10-06-2016, 01:47 PM
you can also add roambox in the database for max xy and min xy. distance, and pause timer as an alternative to scripting.
superemu
10-06-2016, 05:34 PM
you can also add roambox in the database for max xy and min xy. distance, and pause timer as an alternative to scripting.
I just found a thread about that option. I'll play around with it. I assume that the mobs will still walk through tress and stuff. Thank for all the suggestions, all.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.