EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: listnpcs all with spawn locations (https://www.eqemulator.org/forums/showthread.php?t=30848)

fourier 03-18-2010 08:34 PM

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();


Derision 04-04-2010 02:20 PM

Thanks. Committed in Rev1356.


All times are GMT -4. The time now is 02:19 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.