Script Function: Q4RB

From Ultima Online: The Second Age
Jump to: navigation, search
 function string Q4RB(obj item)
 {
   string Q5K9 = "";
   string Q4R4 = "";
   int Q5NC = 0x00;
   int val = 0x00;
   Q5K9 = getArticle(getObjType(item));
   Q5NC = getResource(val, item, "magic", 0x03, 0x02);
   if (Q5NC)
   {
     if (val > 0x00)
     {
       if (Q5K9 != "")
       {
         Q5K9 = Q5K9 + " ";
       }
       Q5K9 = Q5K9 + "magic";
     }
   }
   if (Q5K9 != "")
   {
     Q5K9 = Q5K9 + " ";
   }
   Q4R4 = Q5K9 + getNameByType(getObjType(item));
   return (Q4R4);
 }