Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2016, 10:33 PM
purpose
Fire Beetle
 
Join Date: Apr 2003
Posts: 21
Default

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!!
Reply With Quote
  #2  
Old 07-14-2016, 11:33 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

I don't know where you're getting the word 'zone_commander', it's zone_controller

Before when the original scaling plugin was written you needed to create your own zone_controller NPC

Now it is just implemented within the server itself to spawn zone_controller in every zone. This NPC does NOT exist in the database, it is a floating NPC in the zone that represents a script that controls zone based events.

You can retrofit the old system for id 10, but you will have to do it yourself.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:30 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3