Script Function: Q45M

From Ultima Online: The Second Age
Revision as of 16:21, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q45M(<span style="color:#0000FF">obj</span> me, <span style="color:#0000FF">int</span> Q4...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q45M(obj me, int Q4OS)
 {
   Q4VS = getLocation(me);
   switch (Q4OS)
   {
   case 0x00
     setY(Q4VS, getY(Q4VS) - 0x03)
     setZ(Q4VS, getZ(Q4VS) + 0x0C)
     break;
   case 0x01
     setX(Q4VS, getX(Q4VS) + 0x02);
     setY(Q4VS, getY(Q4VS) - 0x01);
     setZ(Q4VS, getZ(Q4VS) + 0x14)
     break;
   case 0x02
     setX(Q4VS, getX(Q4VS) + 0x03);
     setZ(Q4VS, getZ(Q4VS) + 0x17)
     break;
   case 0x03
     break;
   case 0x04
     setX(Q4VS, getX(Q4VS) - 0x01);
     setY(Q4VS, getY(Q4VS) + 0x02);
     setZ(Q4VS, getZ(Q4VS) + 0x08)
     break;
   case 0x05
     setX(Q4VS, getX(Q4VS) - 0x02);
     setY(Q4VS, getY(Q4VS) + 0x01);
     setZ(Q4VS, getZ(Q4VS) + 0x07)
     break;
   case 0x06
     setX(Q4VS, getX(Q4VS) - 0x02);
     setZ(Q4VS, getZ(Q4VS) + 0x0A)
     break;
   case 0x07
     setZ(Q4VS, getZ(Q4VS) + 0x14)
     break;
   default
     break;
   }
   return ();
 }