Script Function: Q50K

From Ultima Online: The Second Age
Revision as of 15:37, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q50K(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">obj</span> t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q50K(obj this, obj target)
 {
   if (!isHuman(target))
   {
     return (0x00);
   }
   if (isNPC(target))
   {
     return (0x00);
   }
   if (isDead(target))
   {
     return (0x00);
   }
   if (!canSeeObj(this, target))
   {
     return (0x00);
   }
   return (0x01);
 }