Script Function: Q592

From Ultima Online: The Second Age
Revision as of 05:10, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q592(<span style="color:#0000FF">int</span> num, <span style="color:#0000FF">string</sp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function string Q592(int num, string name, string terrain)
 {
   string Q58D = "A ";
   concat(Q58D, name);
   concat(Q58D, " can not be created here.");
   if (num == (0x00 - 0x09))
   {
     Q58D = "A ";
     concat(Q58D, name);
     concat(Q58D, " can not be created here.  A living creature is blocking the ");
     concat(Q58D, name);
     concat(Q58D, ".");
     return (Q58D);
   }
   if (num == (0x00 - 0x05))
   {
     Q58D = "A ";
     concat(Q58D, name);
     concat(Q58D, " can not be created here.  Either something is blocking the ");
     concat(Q58D, name);
     concat(Q58D, " or part of the ");
     concat(Q58D, name);
     concat(Q58D, " would not be on ");
     concat(Q58D, terrain);
     concat(Q58D, ".");
     return (Q58D);
   }
   if (num <= (0x00 - 0x02))
   {
     Q58D = "An internal error occured.  Please notify a game master that you received this message."
     );
     return (Q58D);
   }
   if (num == (0x00 - 0x01))
   {
     Q58D = "A ";
     concat(Q58D, name);
     concat(Q58D, " can not be created here.");
     return (Q58D);
   }
   if (num == 0x00)
   {
     Q58D = "A ";
     concat(Q58D, name);
     concat(Q58D, " can not be created here.  Either something is blocking the ");
     concat(Q58D, name);
     concat(Q58D, " or part of the ");
     concat(Q58D, name);
     concat(Q58D, " would not be on ");
     concat(Q58D, terrain);
     concat(Q58D, ".");
     return (Q58D);
   }
   if (num > 0x00)
   {
     Q58D = "";
     return (Q58D);
   }
   return (Q58D);
 }