Bug in /identify
Posted: Wed Feb 11, 2004 6:55 pm
Certain stats (all except Mana and HP, I'd guess) need to be handled as signed integers to account for items with negative stats.
Testing with 0014873-00001-00001-00001-00001-00001A2D2571FValidus Custodus Plate Breastplate on my cursor says it has 251 AGI, while the real value is -5.
Not a serious bug, but something that someone might look into when they are bored =)
Hmz - just before clicking submit, I decided to do a search on the syntax for sprintf, and at least for PHP %d indicates a signed integer. Maybe I'm just drunk or something, but the item still shows 251Agi with identify

Code: Select all
if (pCharInfo->Cursor->Item->AGI) {
sprintf(szTmp,"%dAGI ",pCharInfo->Cursor->Item->AGI);
strcat(szMsg,szTmp);
}
Not a serious bug, but something that someone might look into when they are bored =)
Hmz - just before clicking submit, I decided to do a search on the syntax for sprintf, and at least for PHP %d indicates a signed integer. Maybe I'm just drunk or something, but the item still shows 251Agi with identify
