$char(hp,pct) reporting incorrectly (fixed in 03.12.24b)

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

$char(hp,pct) reporting incorrectly (fixed in 03.12.24b)

Post by ml2517 » Wed Dec 24, 2003 8:59 pm

Lax already knows about this and probably has it changed in the CVS but if you want to change your copy modify this section of MQ2Parms.cpp.

From this:

Code: Select all

	// $char(hp,pct)
    } else if (!strncmp("char(hp,pct)",szVar,12)) {
        i+=11;
        CHAR szTemp[MAX_STRING] = {0};
        itoa((INT)(GetCurHPS()/GetMaxHPS()),szTemp,10);
        strcat(szOutput,szTemp);
To this:

Code: Select all

	// $char(hp,pct)
    } else if (!strncmp("char(hp,pct)",szVar,12)) {
        i+=11;
        CHAR szTemp[MAX_STRING] = {0};
        itoa((INT)(GetCurHPS()*100/GetMaxHPS()),szTemp,10);
        strcat(szOutput,szTemp);

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Wed Dec 24, 2003 9:55 pm

If you have the 24 December 16:00:23 Zip this isn't in there yet.