Possible fix for /finditem ...
Posted: Mon Sep 08, 2003 7:39 pm
I haven't checked this as I am writing it on my train ride home, but here is a possible fix to get /finditem to open/select items again.
The cyan changes are all that should be needed to get the updated contaner state.
Code: Select all
gLastFind = PriSlot;
[color=cyan] if (pContainer->Open == 0) { [/color]
sprintf(szBuf,"right inv %d",PriSlot);
Click(pChar,szBuf);
WasOpen = TRUE;
}
[color=cyan] if (pContainer->Open == 0) { [/color]
strcpy(gLastError,"FIND_PACKNOTOPEN");
return;
}
sprintf(gLastFindSlot,"%d,%d",PriSlot,BagSlot);
sprintf(szBuf,"left pack %d %d",PriSlot,BagSlot);