Script Function: Q53Z

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q53Z()
 {
   int charges = 0x00;
   if (hasObjVar(this, "charges"))
   {
     charges = getObjVar(this, "charges");
   }
   if (charges <= 0x00)
   {
     removeObjVar(this, "charges");
   }
   else
   {
     setObjVar(this, "charges", charges - 0x01);
     returnResourcesToBank(this, 0x03, "magic");
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, "charges");
   returnResourcesToBank(this, 0x03, "magic");
   if (charges <= 0x00)
   {
     removeObjVar(this, "charges");
   }
   else
   {
     setObjVar(this, "charges", charges - 0x01);
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, "charges");
   returnResourcesToBank(this, 0x03, "magic");
   if (charges <= 0x00)
   {
     removeObjVar(this, "charges");
   }
   else
   {
     setObjVar(this, "charges", charges - 0x01);
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, "charges");
   returnResourcesToBank(this, 0x03, "magic");
   if (charges <= 0x00)
   {
     removeObjVar(this, "charges");
   }
   else
   {
     setObjVar(this, "charges", charges - 0x01);
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, "charges");
   returnResourcesToBank(this, 0x03, "magic");
   if (charges <= 0x00)
   {
     removeObjVar(this, "charges");
   }
   else
   {
     setObjVar(this, "charges", charges - 0x01);
   }
   return (charges);
 }