Script Function: Q447

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q447(obj target, int Q5XG)
 {
   loc Q61U = getLocation(this);
   int Q62G = getZ(Q61U);
   loc Q5YL = getLocation(target);
   int Q5YP = getZ(Q5YL);
   int Q4HE = Q62G - Q5YP;
   string Q5WL = Q4HE;
   if ((Q4HE > 0x0A) || (Q4HE < (0x00 - 0x0A)))
   {
     return (0x00);
   }
   if (isDead(target))
   {
     if (findGoodZ(Q5YL, getZ(Q5YL), getZ(Q5YL), getHeight(target), 0x01) == (0x00 - 0x80))
     {
       return (0x00);
     }
     if (!Q5XG)
     {
       if (!getCompileFlag(0x01))
       {
         if (getNotorietyLevel(target) < (0x00 - 0x02))
         {
           bark(this, "Thy deeds are those of a scoundrel; thou shalt not be resurrected here.");
           return (0x00);
         }
       }
       else
       {
         if (isMurderer(target))
         {
           bark(this, "Thy deeds are those of a scoundrel; thou shalt not be resurrected here.");
           return (0x00);
         }
       }
     }
     string Q5N1;
     if (Q5XG)
     {
       Q5N1 = "It is possible for you to be resurrected here at the Chaos Shrine. Do you wish to try?";
     }
     else
     {
       Q5N1 = "It is possible for you to be resurrected at this Shrine to the Virtues. Do you wish to try?";
     }
     Q426(this, target, 0x01, Q5N1)return(0x01);
   }
   return (0x00);
 }