Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2010, 08:34 PM
fourier
Sarnak
 
Join Date: Aug 2009
Location: MO
Posts: 35
Default COMMITTED: listnpcs all with spawn locations

All,

I've found this small addition useful and maybe it could be added if anyone finds it useful and applicable. Here's a patch file:


Code:
Index: EQEmuServer/zone/entity.cpp
===================================================================
--- EQEmuServer/zone/entity.cpp	(revision 1286)
+++ EQEmuServer/zone/entity.cpp	(working copy)
@@ -2602,7 +2602,8 @@
 	client->Message(0, "NPCs in the zone:");
 	if(searchtype == 0) {
 		while(iterator.MoreElements()) {
-			client->Message(0, "  %5d: %s", iterator.GetData()->GetID(), iterator.GetData()->GetName());
+			client->Message(0, "  %5d: %s %f %f %f", iterator.GetData()->GetID(), iterator.GetData()->GetName(), 
+							iterator.GetData()->x_pos, iterator.GetData()->y_pos, iterator.GetData()->z_pos);
 			x++;
 			z++;
 			iterator.Advance();
Reply With Quote
  #2  
Old 04-04-2010, 02:20 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Thanks. Committed in Rev1356.
Reply With Quote
Reply


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 07:39 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3