Script Function: Q4Z3

From Ultima Online: The Second Age
Revision as of 17:22, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4Z3(<span style="color:#0000FF">loc</span> place) { <span style="color:#0000FF">int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4Z3(loc place)
 {
   int Q63M;
   int Q52M;
   int Q5NS;
   int Q48W;
   Q63M = getElevation(place);
   loc Q52P = getX(place), getY(place) + 0x01, 0x00;
   Q52M = getElevation(Q52P);
   loc Q5NU = getX(place) + 0x01, getY(place), 0x00;
   Q5NS = getElevation(Q5NU);
   loc Q48X = getX(place) + 0x01, getY(place) + 0x01, 0x00;
   Q48W = getElevation(Q48X);
   if (Q63M != Q48W)
   {
     return (0x00);
   }
   if (Q63M != Q5NS)
   {
     return (0x00);
   }
   if (Q63M != Q52M)
   {
     return (0x00);
   }
   return (0x01);
 }