Script Function: Q4SU

From Ultima Online: The Second Age
Jump to: navigation, search
 function string Q4SU(int Q4XG)
 {
   string Q5Y4;
   Q4XG = Q4XG - 0x03E8;
   Q4XG = Q4XG - 0x8000;
   switch (Q4XG)
   {
   case 0x0F
   case 0x16
   case 0x1D
   case 0x1E
   case 0x24
   case 0x25
     Q5Y4 = "pale";
     break;
   case 0x08
   case 0x09
   case 0x17
   case 0x1F
   case 0x2C
   case 0x2D
   case 0x01
   case 0x02
   case 0x10
   case 0x11
   case 0x12
   case 0x2E
     Q5Y4 = "fair";
     break;
   case 0x0A
   case 0x0B
   case 0x13
   case 0x18
   case 0x19
   case 0x20
   case 0x26
   case 0x27
   case 0x28
   case 0x2F
     Q5Y4 = "tanned";
     break;
   case 0x03
   case 0x04
   case 0x05
   case 0x0C
   case 0x1A
   case 0x29
   case 0x2A
   case 0x30
   case 0x38
     Q5Y4 = "copper";
     break;
   case 0x06
   case 0x07
   case 0x0D
   case 0x0E
   case 0x14
   case 0x15
   case 0x1B
   case 0x1C
   case 0x21
   case 0x22
   case 0x23
   case 0x2B
   case 0x31
   case 0x32
   case 0x39
     Q5Y4 = "dark";
     break;
   case 0x33
   case 0x34
   case 0x35
     Q5Y4 = "yellow";
     break;
   default
     Q5Y4 = "deathly";
     break;
   }
   return (Q5Y4);
 }
 function string Q4SU(obj killer)
 {
   string Q5Y4;
   int Q4XG = getHue(killer);
   Q4XG = Q4XG - 0x03E8;
   Q4XG = Q4XG - 0x8000;
   if (0x00)
   {
     string Q48R = Q4XG;
     bark(killer, Q48R);
   }
   switch (Q4XG)
   {
   case 0x0F
   case 0x16
   case 0x1D
   case 0x1E
   case 0x24
   case 0x25
     Q5Y4 = "pale";
     break;
   case 0x08
   case 0x09
   case 0x17
   case 0x1F
   case 0x2C
   case 0x2D
   case 0x01
   case 0x02
   case 0x10
   case 0x11
   case 0x12
   case 0x2E
     Q5Y4 = "fair";
     break;
   case 0x0A
   case 0x0B
   case 0x13
   case 0x18
   case 0x19
   case 0x20
   case 0x26
   case 0x27
   case 0x28
   case 0x2F
     Q5Y4 = "tanned";
     break;
   case 0x03
   case 0x04
   case 0x05
   case 0x0C
   case 0x1A
   case 0x29
   case 0x2A
   case 0x30
   case 0x38
     Q5Y4 = "copper";
     break;
   case 0x06
   case 0x07
   case 0x0D
   case 0x0E
   case 0x14
   case 0x15
   case 0x1B
   case 0x1C
   case 0x21
   case 0x22
   case 0x23
   case 0x2B
   case 0x31
   case 0x32
   case 0x39
     Q5Y4 = "dark";
     break;
   case 0x33
   case 0x34
   case 0x35
     Q5Y4 = "yellow";
     break;
   default
     Q5Y4 = "pimply";
     break;
   }
   return (Q5Y4);
 }