Difference between revisions of "Script Function: Q43T"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q43T(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> u...")
 
(No difference)

Latest revision as of 22:12, 11 October 2018

 function int Q43T(obj user, obj usedon)
 {
   if (usedon == NULL())
   {
     return (0x00);
   }
   if ((containedBy(usedon) == NULL()) && (canSeeObj(user, usedon) != 0x01))
   {
     bark(user, "I cannot see that object.");
     return (0x00);
   }
   if (isMobile(usedon))
   {
     bark(user, "I cannot recall from that object.");
     return (0x00);
   }
   if (!hasObjVar(usedon, "markLoc"))
   {
     bark(user, "I cannot recall from that object.");
     return (0x00);
   }
   return (0x01);
 }