Script Function: Q45C

From Ultima Online: The Second Age
Jump to: navigation, search
 function void Q45C(obj Q5KS)
 {
   setObjVar(Q5KS, "isActor", 0x01);
   if (0x00)
   {
     debugMessage("Selecting a quest type.");
   }
   switch (Q5I7())
   {
   case 0x00
     if (0x00)
     {
       debugMessage("Selected fetch quest.");
     }
     Q5VO(Q5KS);
     break;
   case 0x02
     if (0x00)
     {
       debugMessage("Selected murder quest.");
     }
     Q5VQ(Q5KS);
     break;
   case 0x01
     if (0x00)
     {
       debugMessage("Selected deliver quest.");
     }
     Q5VM(Q5KS);
     break;
   case 0x03
     if (0x00)
     {
       debugMessage("Selected mystery quest.");
     }
   case 0x04
     if (0x00)
     {
       debugMessage("Selected tourney quest.");
     }
   default
     return ();
     break;
   }
   return ();
 }