View Single Post
  #3  
Old 11-02-2006, 01:56 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Heres' two docs I made for my self, with data i found and help users gave me in this forum;

Quote:
type
0.Circular they go 1,2,3,4,1,2,3,4,1,2,3,4..ect..
2.Random is kind of obvious.. 1,3,1,2,4,3,1,2,4,2,3,4,1,2,3,4,2..ect..
3.Patrol they go 1,2,3,4,3,2,1,2,3,4,3,2,1,2,3,4..ect..
(1.random 10 doesnt seem to work for me)
as for pause types..

Pausetype
0: Random half. NPC pauses for half of it's pause time + random of half it's pause time.
1: Full. NPC pauses for full pause time.
2: Random. NPC pauses for random of it's pause time.

heres what i do...
#grid max <--to check highest grid id (not sure if it checks whole server or just in that zone) ill say 49 shows..
#grid add 50 3 2
select npc..
#gassign 50
#wp add 50 20 1
#wp add 50 20 2
#wp add 50 20 3
ect..

then just do a #repop and he should start movin. note it takes the server a few seconds to load all the waypoints

so #wpinfo should display all the coo
Quote:
#wpinfo 0-49 - Target an NPC and use this to retrieve WP information assigned to it for waypoints 0-49.
#gassign grid_num - Target an NPC and use this to assign it's spawn2 point to grid grid_num.
#grid add/delete grid_num wandertype pausetype - Adds grid grid_num with the wandertype/pausetype as follows:

Wandertype
0: Circular. NPC will cycle waypoints in order, then head back to the first waypoint.
1: Random 10. NPC will pick a random of the nearest 10 waypoints and go to it.
2: Random. NPCwill pick a random waypoint in the grid and go to it.
3: Patrol. NPC will walk the waypoints to the end, then turn and backtrack.

Pausetype
0: Random half. NPC pauses for half of it's pause time + random of half it's pause time.
1: Full. NPC pauses for full pause time.
2: Random. NPC pauses for random of it's pause time.

or deletes grid number grid_num.

#wp add/delete grid_num pause wp_num - Adds waypoint number wp_num to grid grid_num with a pause of
pause on the location you're standing at, or deletes waypoint number wp_num in grid number grid_num
(just leave pause at 0).

To setup an NPC to a grid, simply #gassign an NPC spawned by a certain spawn2 point,
and all NPC's spawned by that point will adhere to the selected grid. An NPC assigned
to a grid will simply start wandering it after spawning.
They have served me well, hope you find use in them too
Reply With Quote