View Single Post
  #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