/itemtarget works fine a long as it recieves an item
Ex: /itemtarget *Green
will target a groundspawn if there are spawns
if there are none with matching *green i get a CTD
Moderator: MacroQuest Developers

Code: Select all
diff -w -u -r1.51 -r1.52
--- EQLib_Commands.cpp 5 Nov 2003 01:06:39 -0000 1.51
+++ EQLib_Commands.cpp 5 Nov 2003 09:51:33 -0000 1.52
@@ -246,6 +246,8 @@
WriteChatBuffer(szBuffer,USERCOLOR_DEFAULT);
if (stricmp(Arg2,"notarget") && EQADDR_TARGET) *EQADDR_TARGET =
&EnviroTarget;
} else {
+ if (EQADDR_TARGET && (*EQADDR_TARGET == &Enviroarget))
+ *EQADDR_TARGET = NULL;
sprintf(szBuffer,"Couldn't find '%s'.",szLine);
strcpy(gLastError,"ITEM_NOTFOUND");
WriteChatBuffer(szBuffer,CONCOLOR_RED);
donations for this month's patches.