Script Function: Q4SO

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4SO(obj it)
 {
   int Q65M = getObjType(it);
   int power = 0x00 - 0x01;
   switch (Q65M)
   {
   case 0x0F25
   case 0x0F15
   case 0x0F23
   case 0x0F24
   case 0x0F2C
     power = 0x01F4;
     break;
   case 0x0F0A
   case 0x0F14
   case 0x0F1A
   case 0x0F1C
   case 0x0F1D
   case 0x0F2A
   case 0x0F2B
   case 0x0F18
   case 0x0F1E
   case 0x0F20
   case 0x0F2D
     power = 0x02EE;
     break;
   case 0x0F10
   case 0x0F2F
   case 0x0F11
   case 0x0F12
   case 0x0F19
   case 0x0F1F
   case 0x0F16
   case 0x0F17
   case 0x0F22
   case 0x0F2E
     power = 0x03E8;
     break;
   case 0x0F0F
   case 0x0F1B
   case 0x0F21
     power = 0x04E2;
     break;
   case 0x0F26
   case 0x0F27
   case 0x0F28
   case 0x0F29
   case 0x0F30
     power = 0x07D0;
     break;
   }
   return (power);
 }