Script Function: Q5ML

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q5ML(obj Q68S)
 {
   int Q5W5;
   int Q5LU;
   int Q5W0;
   int Q5NC;
   int Q5NG = 0x00;
   for(int i = 0x00; i < 0x03; i++)
   {
     Q5W5 = getStatMod(Q68S, i);
     if (Q5W5 != 0x00)
     {
       Q5NC = setStatMod(Q68S, i, 0x00);
       Q5NG = 0x01;
     }
     Q5LU = getRealStat(Q68S, i);
     Q5W0 = getStatAttributeMax(Q68S, i);
     if (Q5LU != Q5W0)
     {
       Q5NC = setStatAttributeMax(Q68S, i, Q5LU);
       Q5NG = 0x01;
     }
   }
   return (Q5NG);
 }