Expanded item links...

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Expanded item links...

Post by Plazmic » Sun Nov 02, 2003 6:07 am

Only shows lore name if it's useful.
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]); 
	  }
   } 
}; 
- Plazmic

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sun Nov 02, 2003 9:00 am

CVS'd
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0