Script Function: Q4RJ

From Ultima Online: The Second Age
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 ();
 }
 function void Q4RJ(string description, loc Q4VS, loc there)
 {
   int Q4IE = getDirectionInternal(Q4VS, there);
   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 ();
 }