EQEMU NPC TUTORIAL 2, Creating NPC's which wander/Move
Return to Main - tutorial 1
This tutorial was written to help those who are confused
with the spawning process. The tutorial relies on my npc and loot editor, and
grid editor
that assists you during the spawning and npc creation process. These tools are
found on my web page at
In the previous tutorial we created static spawns, i.e.
those which remain still and never wander. They only move/chase/flee when
attacked or fleeing.
In this tutorial we will place a green drake in gfaydark and create and assign
waypoints.
Commands Used:
#grid add/delete gridnum wandertype pausetype
(see wandertype and pausetype descriptions further down the page)
#wp add/delete grid_num pause wp_num
(Pause=seconds, waypoints must start at 1)
#gassign gridnum (selected NPC will be assigned this gridnum)
Firstly, spawn (#npcspawn 54025) the drake (a_forest_drakeling,
id=54025), then select the drake and type in #npcspawn add.
Now the drake is permanently spawned here, but is still static.

Wander Types
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.
Run my grid editor, and search for all grids in gfay. We
scroll to the bottom, and see the last grid used =257. So we will work with
grid=258. This is created
with tool button 'New Grid'
As you can see there are TWO ways to create a grid. In
game, you can type #grid add 258 2 2 (Create Grid 258, wandertype=(2)random,
pausetype=(2)random)
OR in my program, click on "New Grid"
Create WayPoints by running around the zone and typing
in #wp add grid pauselength wpnum
As you can see below, I ran my character around and typed in the commands shown
below. I created 4 waypoints.

'Load Grids' to reload/refresh the grids and you will see all waypoints are now assigned.

Lastly, we will assign grid #258 to this npc. Select your drake and type in #gassign 258
Type in #repop and wait a few seconds and he will take off and wander away...
