Script Function: Q4RB

From Ultima Online: The Second Age
Revision as of 14:33, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RB(<span style="color:#0000FF">obj</span> item) { <span style="color:#0000FF">s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }