Script Function: Q4BF

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4BF(int Q453)
 {
   obj target = getFirstVisableTargetInRange(this, 0x09);
   if (target == NULL())
   {
     return (Q453);
   }
   int Q4E6;
   switch (Q453)
   {
   case 0x04
     if (hasScript(target, "poisoned"))
     {
       Q4E6 = 0x0D;
     }
     break;
   case 0x05
     if (hasScript(target, "dexdown"))
     {
       Q4E6 = 0x0F;
     }
     break;
   case 0x06
     if (hasScript(target, "intdown"))
     {
       Q4E6 = 0x0F;
     }
     break;
   case 0x07
     if (hasScript(target, "strdown"))
     {
       Q4E6 = 0x0F;
     }
     break;
   case 0x0B
     if (hasScript(target, "rempara"))
     {
       Q4E6 = 0x0C;
     }
     break;
   case 0x11
     if (hasScript(this, "reflctor"))
     {
       Q4E6 = 0x12;
     }
     break;
   case 0x14
     if (hasScript(this, "remprtct"))
     {
       Q4E6 = 0x19;
     }
     break;
   case 0x15
     if (hasScript(this, "strup"))
     {
       Q4E6 = 0x19;
     }
     break;
   case 0x16
     if (hasScript(this, "intup"))
     {
       Q4E6 = 0x19;
     }
     break;
   case 0x17
     if (hasScript(this, "dexup"))
     {
       Q4E6 = 0x19;
     }
     break;
   default
     Q4E6 = 0x00;
   }
   return (Q4E6);
 }