Script Function: Q53Z

From Ultima Online: The Second Age
Revision as of 18:13, 7 October 2018 by Grimoric (talk | contribs)
Jump to: navigation, search


 function int Q53Z()
 {
   int charges = 0x00;
   if (hasObjVar(this, <span style="color:#800000">"charges"</span>))
   {
     charges = getObjVar(this, <span style="color:#800000">"charges"</span>);
   }
   if (charges <= 0x00)
   {
     removeObjVar(this, <span style="color:#800000">"charges"</span>);
   }
   else
   {
     setObjVar(this, <span style="color:#800000">"charges"</span>, charges - 0x01);
     returnResourcesToBank(this, 0x03, <span style="color:#800000">"magic"</span>);
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, <span style="color:#800000">"charges"</span>);
   returnResourcesToBank(this, 0x03, <span style="color:#800000">"magic"</span>);
   if (charges <= 0x00)
   {
     removeObjVar(this, <span style="color:#800000">"charges"</span>);
   }
   else
   {
     setObjVar(this, <span style="color:#800000">"charges"</span>, charges - 0x01);
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, <span style="color:#800000">"charges"</span>);
   returnResourcesToBank(this, 0x03, <span style="color:#800000">"magic"</span>);
   if (charges <= 0x00)
   {
     removeObjVar(this, <span style="color:#800000">"charges"</span>);
   }
   else
   {
     setObjVar(this, <span style="color:#800000">"charges"</span>, charges - 0x01);
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, <span style="color:#800000">"charges"</span>);
   returnResourcesToBank(this, 0x03, <span style="color:#800000">"magic"</span>);
   if (charges <= 0x00)
   {
     removeObjVar(this, <span style="color:#800000">"charges"</span>);
   }
   else
   {
     setObjVar(this, <span style="color:#800000">"charges"</span>, charges - 0x01);
   }
   return (charges);
 }
 function int Q53Z()
 {
   int charges = getObjVar(this, <span style="color:#800000">"charges"</span>);
   returnResourcesToBank(this, 0x03, <span style="color:#800000">"magic"</span>);
   if (charges <= 0x00)
   {
     removeObjVar(this, <span style="color:#800000">"charges"</span>);
   }
   else
   {
     setObjVar(this, <span style="color:#800000">"charges"</span>, charges - 0x01);
   }
   return (charges);
 }