Script Function: Q5UM

From Ultima Online: The Second Age
Revision as of 03:52, 8 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q5UM(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q5UM(obj user, obj usedon, int range)
 {
   if (!canSeeObj(user, usedon))
   {
     systemMessage(user, "Target cannot be seen.");
     return (0x00);
   }
   if (getDistanceInTiles(getLocation(user), getLocation(usedon)) > range)
   {
     systemMessage(user, "Target is too far away.");
     return (0x00);
   }
   return (0x01);
 }