Bordom... Stamina found

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:

Bordom... Stamina found

Post by Plazmic » Sun Nov 02, 2003 4:40 pm

In _CHARINFO change the lines in red

Code: Select all

/*0x1324*/    DWORD       UnknownData0x1324;
[color=red]/*0x1328*/    BYTE        Fatigue; //stamina gone, 0=full, 100=empty
/*0x1329*/    BYTE        Unknown0x1329[0x1f];[/color]/*0x1348*/    DWORD       UnknownData0x1348; // This value looks familiar...
In parmChar change $char(stamina,xxx) stuff to

Code: Select all

    // $char(stamina,max)
    } else if (!strncmp("char(stamina,max)",szVar,17)) {
        i+=16;
        CHAR szTemp[MAX_STRING] = {0};
        strcpy(szTemp,"100"); // Fixed cap
        strcat(szOutput,szTemp);

    // $char(stamina,cur)
    } else if (!strncmp("char(stamina,cur)",szVar,17)) {
        i+=16;
        CHAR szTemp[MAX_STRING] = {0};
        itoa(100-GetCharInfo()->Fatigue,szTemp,10);
        strcat(szOutput,szTemp);

    // $char(stamina,pct)
    } else if (!strncmp("char(stamina,pct)",szVar,17)) {
        i+=16;
        CHAR szTemp[MAX_STRING] = {0};
        itoa(100-GetCharInfo()->Fatigue,szTemp,10);
        strcat(szOutput,szTemp);
- Plazmic

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sun Nov 02, 2003 4:43 pm

If you are bored you could figure out why the current dev CVS doesn't compile :)

The error is in EQLib_Main, and the message is

EQLib\EQLib_Main.cpp(1253): error C2601: 'hookCBTProc' : local function definitions are illegal

Also a problem with /who using this morning's CVS, get lots of weirdness.
MQ2: Think of it as Evolution in action.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sun Nov 02, 2003 4:47 pm

In the CVS btw.
MQ2: Think of it as Evolution in action.

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

Post by Plazmic » Sun Nov 02, 2003 4:48 pm

Update the zip and i'll figure out what happened when my diff got merged.
- Plazmic

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sun Nov 02, 2003 4:52 pm

Never mind, something stupid on my part, a missing end brace.
MQ2: Think of it as Evolution in action.

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:04 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:05 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:06 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:07 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:08 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:10 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:11 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Bordom... Stamina found

Post by xyilla » Wed Oct 01, 2025 8:47 pm