Script Function: Q4RJ

From Ultima Online: The Second Age
Revision as of 03:05, 8 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4RJ(<span style="color:#0000FF">string</span> description, <span style="color:#0000FF">i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4RJ(string description, int Q4IE)
 {
   switch (Q4IE)
   {
   case 0x00
     description = description + "to the North.";
     break;
   case 0x01
     description = description + "to the Northeast.";
     break;
   case 0x02
     description = description + "to the East.";
     break;
   case 0x03
     description = description + "to the Southeast.";
     break;
   case 0x04
     description = description + "to the South.";
     break;
   case 0x05
     description = description + "to the Southwest.";
     break;
   case 0x06
     description = description + "to the West.";
     break;
   case 0x07
     description = description + "to the Northwest.";
     break;
   default
     debugMessage("getDirection: invalid direction returned.");
     description = description + " in some direction.";
     break;
   }
   return ();
 }