Moderator: MacroQuest Developers
Code: Select all
*** EQData.h.orig 2004-02-15 13:49:40.000000000 -0500
--- EQData.h 2004-02-16 10:35:46.000000000 -0500
***************
*** 322,328 ****
--- 322,331 ----
/*0x1c8*/ DWORD SpellShield;
/*0x1cc*/ DWORD Avoidance;
/*0x1d0*/ BYTE Unknown0x1d0[0xc];
+ union {
/*0x1dc*/ DWORD CastTime;
+ /*0x1dc*/ DWORD Nourishment;
+ };
union {
/*0x1e0*/ BYTE MaxCharges;
/*0x1e0*/ BYTE Stackable;
Code: Select all
*** MQ2Parms.cpp.orig 2004-02-13 22:41:54.000000000 -0500
--- MQ2Parms.cpp 2004-02-16 10:46:12.000000000 -0500
***************
*** 200,205 ****
--- 200,212 ----
i+=19;
strcat(szOutput,szDmgBonusType[pItem->DmgBonusType]);
+ // $cursor(nourish)
+ } else if (!strncmp("cursor(nourish)",szVar,15)) {
+ i+=14;
+ CHAR szTemp[MAX_STRING] = {0};
+ itoa(pItem->Nourishment*100,szTemp,10);
+ strcat(szOutput,szTemp);
+
// $cursor(unknown)
} else {
DebugSpewNoFile("PMP - Bad $cursor() '%s'",szVar);
***************
*** 400,405 ****
--- 407,419 ----
strcat(szOutput, "Book");
}
+ // $item(nourish)
+ } else if (!strncmp("nourish)",szVar+Offset,8)) {
+ i+=Offset+7;
+ CHAR szTemp[MAX_STRING] = {0};
+ itoa(pItem->Item->Nourishment*100,szTemp,10);
+ strcat(szOutput,szTemp);
+
// $item(unknown)
} else {
DebugSpewNoFile("PMP - Bad $item() '%s'",szVar);
***************
*** 3086,3091 ****
--- 3100,3119 ----
itoa(pCharInfo->CareerFavor,szTemp,10);
strcat(szOutput,szTemp);
+ // $char(hunger)
+ } else if (!strncmp("char(hunger)",szVar,12)) {
+ CHAR szTemp[MAX_STRING] = {0};
+ i+=11;
+ itoa(pCharInfo->hungerlevel,szTemp,10);
+ strcat(szOutput,szTemp);
+
+ // $char(thirst)
+ } else if (!strncmp("char(thirst)",szVar,12)) {
+ CHAR szTemp[MAX_STRING] = {0};
+ i+=11;
+ itoa(pCharInfo->thirstlevel,szTemp,10);
+ strcat(szOutput,szTemp);
+
// $char(unknown)
} else {
DebugSpewNoFile("PMP - Bad $char() '%s'",szVar);
Code: Select all
*** orig/MQ2ItemDisplay/MQ2ItemDisplay.cpp Wed Feb 11 02:05:44 2004
--- new/MQ2ItemDisplay/MQ2ItemDisplay.cpp Fri Feb 20 09:57:35 2004
***************
*** 66,71 ****
--- 66,77 ----
strcat(out,temp);
}
+ // visar 2004/02/20
+ if (Item->ItemType==/*Food*/14 || Item->ItemType==/*Drink*/15) {
+ sprintf(temp,"Nourishment: %d<BR>",Item->Nourishment*100);
+ strcat(out,temp);
+ }
+
// This really should be a compare against some field in the item...
if (strstr(This->ItemInfo->Text,"(Combat)")) {
if (Item->Level == 0 )