Script Function: Q4LY

From Ultima Online: The Second Age
Revision as of 22:11, 11 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4LY(<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 Q4LY(obj user, obj usedon)
 {
   int Q5NC = 0x00;
   if (Q43T(user, usedon))
   {
     loc Q55E = getObjVar(usedon, "markLoc");
     Q5G6 = getLocation(user);
     caster = user;
     sfx(Q55E, 0x01FC, 0x00);
     int Q4OU = 0x00;
     if (getEncumbrance(caster) > 0x64)
     {
       systemMessage(caster, "Thou art too encumbered to move.");
       Q4OU = 0x01;
     }
     if (!Q4OU && (!Q50M(Q5G6) || !Q50L(Q55E)))
     {
       systemMessage(caster, "You can not teleport into that area.");
       Q4OU = 0x01;
     }
     if (!Q4OU)
     {
       Q4MN(user, Q55E);
       Q5NC = 0x01;
     }
   }
   Q5UQ(this);
   return (Q5NC);
 }