EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=596)
-   -   Auto generate grid points (https://www.eqemulator.org/forums/showthread.php?t=40944)

superemu 10-06-2016 02:05 AM

Auto generate grid points
 
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

Quote:

Originally Posted by superemu (Post 251570)
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.

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

Quote:

Originally Posted by Robregen (Post 251579)
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.


All times are GMT -4. The time now is 09:41 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.