Script Function: Q5R9

From Ultima Online: The Second Age
Revision as of 16:20, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5R9() { <span style="color:#0000FF">string</span> drinkType = <span style="color:#...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q5R9()
 {
   string drinkType = "water";
   if (hasObjVar(this, "drinkType"))
   {
     drinkType = getObjVar(this, "drinkType");
   }
   int Q62A = getObjType(this);
   switch (Q62A)
   {
   case 0x0FF6
     if (drinkType == "ale")
     {
       setType(this, 0x1F95);
     }
     if (drinkType == "cider")
     {
       setType(this, 0x1F97);
     }
     if (drinkType == "liquor")
     {
       setType(this, 0x1F99);
     }
     if (drinkType == "milk")
     {
       setType(this, 0x09F0);
     }
     if (drinkType == "wine")
     {
       setType(this, 0x1F9B);
     }
     if (drinkType == "water")
     {
       setType(this, 0x1F9D);
     }
     break;
   case 0x0FF7
     if (drinkType == "ale")
     {
       setType(this, 0x1F96);
     }
     if (drinkType == "cider")
     {
       setType(this, 0x1F98);
     }
     if (drinkType == "liquor")
     {
       setType(this, 0x1F9A);
     }
     if (drinkType == "milk")
     {
       setType(this, 0x09F0);
     }
     if (drinkType == "wine")
     {
       setType(this, 0x1F9C);
     }
     if (drinkType == "water")
     {
       setType(this, 0x1F9E);
     }
     break;
   case 0x1F81
     if (drinkType == "ale")
     {
       setType(this, 0x09EE);
     }
     if (drinkType == "cider")
     {
       setType(this, 0x1F7D);
     }
     if (drinkType == "liquor")
     {
       setType(this, 0x1F85);
     }
     if (drinkType == "milk")
     {
       setType(this, 0x1F89);
     }
     if (drinkType == "wine")
     {
       setType(this, 0x1F8D);
     }
     if (drinkType == "water")
     {
       setType(this, 0x1F91);
     }
     break;
   case 0x1F82
     if (drinkType == "ale")
     {
       setType(this, 0x09EE);
     }
     if (drinkType == "cider")
     {
       setType(this, 0x1F7E);
     }
     if (drinkType == "liquor")
     {
       setType(this, 0x1F86);
     }
     if (drinkType == "milk")
     {
       setType(this, 0x1F8A);
     }
     if (drinkType == "wine")
     {
       setType(this, 0x1F8E);
     }
     if (drinkType == "water")
     {
       setType(this, 0x1F92);
     }
     break;
   case 0x1F83
     if (drinkType == "ale")
     {
       setType(this, 0x09EF);
     }
     if (drinkType == "cider")
     {
       setType(this, 0x1F7F);
     }
     if (drinkType == "liquor")
     {
       setType(this, 0x1F87);
     }
     if (drinkType == "milk")
     {
       setType(this, 0x1F8B);
     }
     if (drinkType == "wine")
     {
       setType(this, 0x1F8F);
     }
     if (drinkType == "water")
     {
       setType(this, 0x1F93);
     }
     break;
   case 0x1F84
     if (drinkType == "ale")
     {
       setType(this, 0x09EF);
     }
     if (drinkType == "cider")
     {
       setType(this, 0x1F80);
     }
     if (drinkType == "liquor")
     {
       setType(this, 0x1F88);
     }
     if (drinkType == "milk")
     {
       setType(this, 0x1F8C);
     }
     if (drinkType == "wine")
     {
       setType(this, 0x1F90);
     }
     if (drinkType == "water")
     {
       setType(this, 0x1F94);
     }
     break;
   }
   return ();
 }