Script Function: Q43D

From Ultima Online: The Second Age
Revision as of 13:59, 19 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q43D(obj user, obj usedon)
 {
   if (usedon == NULL())
   {
     return (0x00);
   }
   if (!isValid(usedon))
   {
     bark(user, "I cannot mark that object.");
     return (0x00);
   }
   if ((containedBy(usedon) == NULL()) && (canSeeObj(user, usedon) != 0x01))
   {
     bark(user, "I cannot see that object.");
     return (0x00);
   }
   if (isMobile(usedon) || (!Q4A2(usedon)))
   {
     bark(user, "I cannot mark that object.");
     return (0x00);
   }
   if (isOnAnyMulti(user))
   {
     bark(user, "You can not mark an object at that location.");
     return (0x00);
   }
   return (0x01);
 }