EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   #advnpcspawn (https://www.eqemulator.org/forums/showthread.php?t=27420)

jenco420 02-07-2009 01:26 PM

#advnpcspawn
 
I've been trying to figure out how to use this command to make use of roamboxes... But i have no idea how to get it to work. The wiki does'nt have anything on it either. Does anyone have any example on how to use this command?

Secrets 02-07-2009 02:02 PM

It's basically a box.

min_x = west x location
min_y = south y location
max_x = east x location
max_y = north y location
dist = distance it will roam from where it randomly spawns
delay = time before the NPC switches into a random direction

to see an npc roam anywhere, #ai roambox when an NPC is targeted

hope that helps!

jenco420 02-07-2009 02:38 PM

thanks, will try this out now :P

cavedude 02-07-2009 05:48 PM

I have to admit I am having a bit of trouble with this as well. For whatever reason, I can't get the NPCs to load their roamboxes from the DB. #ai roambox works fine, but if I give them values in the DB, they just stand there. Is there a trick to it or did I make an error when I merged the code into SVN?

jenco420 02-08-2009 02:36 AM

I got the roamboxes to work after i let the zone go down and restarted it after i set the npc to roam.

cavedude 02-08-2009 03:33 PM

Well, at least I know it works.

I'll have to keep playing, even after a reboot the NPCs I assigned roamboxes to won't move. Oh well.

leslamarch 02-08-2009 03:59 PM

I'm also not having any luck getting this to work, could someone be so generous as to tell me how they are doing this step-by-step? I would really appreciate any pointers you guys have to offer.

Thanks,
leslamarch

jenco420 02-08-2009 04:19 PM

alright here is how i'm currently using it (nay not be the intended way ;p)

target the mob you want to randomly roam.

#advnpcspawn editgroupbox <spawngroupID> <dist> <max x> <<min x> <max y> <min y> <delay> (as described above by Secrets)

It gives me a message saying GroupID 0 being created. But i hav'nt played around with it much. Only the roamboxes.

<edit> I have to shut down the zone and reboot it to have the mob start roaming also.

I have also been unsuccesful spawning a mob with this command, but i'm sure it's something on my end :P Imma look at the tables this command uses and see if i can get a better understanding.

cavedude 02-08-2009 04:51 PM

I've been editing the db directly, I'll have to see what the command does to the DB.

ChaosSlayer 02-08-2009 04:54 PM

I am getting confused as hell by this new system
which DB table does roam box data stored in?

cavedude 02-08-2009 05:06 PM

spawngroup:

Code:

mysql> describe spawngroup;
+-------------+-------------+------+-----+---------+----------------+
| Field      | Type        | Null | Key | Default | Extra          |
+-------------+-------------+------+-----+---------+----------------+
| id          | int(11)    | NO  | PRI | NULL    | auto_increment |
| name        | varchar(50) | NO  | UNI |        |                |
| spawn_limit | tinyint(4)  | NO  |    | 0      |                |
| dist        | float      | NO  |    | 0      |                |
| max_x      | float      | NO  |    | 0      |                |
| min_x      | float      | NO  |    | 0      |                |
| max_y      | float      | NO  |    | 0      |                |
| min_y      | float      | NO  |    | 0      |                |
| delay      | int(11)    | NO  |    | 0      |                |
+-------------+-------------+------+-----+---------+----------------+
9 rows in set (0.03 sec)


jenco420 02-08-2009 05:08 PM

it seems to be using the X,Y, as a loc for the npc to move there and just chill indefinitly, i'm even more confused now ><

the #ai roambox command seems to be working flawlessly tho, just would like to be able to save them correctly :P

ChaosSlayer 02-08-2009 05:12 PM

Quote:

Originally Posted by cavedude (Post 164172)
spawngroup:


mysql> describe spawngroup

ah I see I thgout this was made into grid system, this clears a few things up... thanks!

trevius 02-08-2009 05:47 PM

I know I have successfully used roamboxes. I used them for an event I was working on and they actually worked really well. That event isn't currently running on my server anymore though.

If I was to guess to what might be causing problems, I would think it could maybe be related to the timeleft field being moved into it's own table. I am not positive, but I think timeleft was a field in the spawngroup table. If so, maybe #advancespawn and the roamboxes stuff is failing because it is still looking for that field and not finding it. That is pure speculation though. I haven't done any research into it yet.

ChaosSlayer 02-16-2009 02:13 AM

Ok I seem to have problem simular to what Cavedude is describing - I have entered data for roambox into DB spawngroup table - and nothing is happening. NPCs just sit there doing nothing.
I have zoned out and zone back in - do I have to fully restart the server for this to take effect?

BTW I still don't get what is the diffirence betwin: dist and delay:
dist - how far npc will travel
vs
delay - how long it will travel?

isn't it kind of same thing for the purpose of roaming around?


All times are GMT -4. The time now is 02:22 PM.

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