Shows proc level, haste percent, and container types.
Code: Select all
class ItemDisplay
{
public:
VOID Trampoline(PCONTENTS pitem,bool unknown);
VOID Detour(PCONTENTS pitem,bool unknown)
{
PEQITEMWINDOW This;
__asm mov [This], ecx;
CHAR out[MAX_STRING] = {0};
CHAR temp[MAX_STRING] = {0};
PCHAR lore = NULL;
Trampoline(pitem,unknown);
strcpy(out,"<BR><c \"#00FFFF\">");
lore=pitem->Item->LoreName;
if (lore[0]=='*') lore++;
if (strcmp(lore,pitem->Item->Name)) {
sprintf(temp,"Item Lore: %s<BR>",pitem->Item->LoreName);
strcat(out,temp);
}
// This really should be a compare against some field in the item...
if (strstr(This->ItemInfo->Text,"(Combat)")) {
sprintf(temp,"Procs at %d<BR>",pitem->Item->Common.Level);
strcat(out,temp);
} else if (pitem->Item->Common.SpellId==/*Haste*/998) {
sprintf(temp,"%d%% Haste<BR>",pitem->Item->Common.Level+1);
strcat(out,temp);
}
if (pitem->Item->Type == ITEMTYPE_PACK) {
sprintf(temp,"Container Type: %s<BR>",szCombineTypes[pitem->Item->Container.Combine]);
strcat(out,temp);
}
if (out[0]!=17) {
strcat(out,"</c>");
AppendCXStr(&This->ItemInfo,&out[0]);
}
}
}; 
