Ah okay, I am starting to understand a bit better (I think).
So according to
Quote:
== 12/29/2015 ==
Akkadius: Implemented standardized zone controller scripts (Rule Zone, UseZoneController) Defaulted to true
- When a zone boots, it will spawn an invisible npc by the name of zone_controller
- Lua and Perl scripts can be represented with this npc as zone_controller.pl/lua
- This NPC's ID is ruled be define ZONE_CONTROLLER_NPC_ID 10
- Two EVENT's uniquely are handled with this NPC/controller (They only work with the zone_controller NPC)
- EVENT_SPAWN_ZONE :: All NPC spawns in the zone trigger the controller and pass the following variables:
$spawned_entity_id
$spawned_npc_id
- EVENT_DEATH_ZONE :: All NPC deaths in the zone trigger the controller event and pass the following variables:
$killer_id
$killer_damage
$killer_spell
$killer_skill
$killed_npc_id
|
This guide
http://www.eqemulator.org/forums/showthread.php?t=37660is now outdated, and the script for zonecommander (now should be zone_commander) needs to have the new variables ($spawned_entity_id, $spawned_npc_id, etc) used. Also, it used ID 50 and the new ID is 10.
Am I on the right track?
As an aside, I did a complete reinstall of the windows server compile, and didnt realize in its default state it WAS spawning zone_commander without me having to add the NPC in the database or implement the .pl files.
Still a bit confused as I cant find the zone_commander under the database npc_types ID 10, but the NPC is spawning!!