Script Function: Q4WZ

From Ultima Online: The Second Age
Revision as of 14:57, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4WZ(<span style="color:#0000FF">obj</span> Q5AO, <span style="color:#0000FF">obj</span> Q...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4WZ(obj Q5AO, obj Q4H5, obj user)
 {
   transferAllResources(Q5AO, Q4H5);
   Q59B(Q5AO);
   obj Q5AB = NULL();
   if (hasObjVar(Q5AO, "myhousedoor"))
   {
     Q5AB = getobjvar_obj(Q5AO, "myhousedoor");
   }
   obj Q5AP = NULL();
   if (hasObjVar(Q5AO, "myhousesign"))
   {
     Q5AP = getobjvar_obj(Q5AO, "myhousesign");
   }
   string Q4F8 = getName(user);
   if (Q5AP != NULL())
   {
     setObjVar(Q5AP, "creatorId", user);
     setObjVar(Q5AP, "creatorName", Q4F8);
   }
   else
   {
     setObjVar(Q5AO, "creatorId", user);
     setObjVar(Q5AO, "creatorName", Q4F8);
   }
   int Q5NC = Q4WT(user, Q5AO, Q5AB, Q5AP, 0x00);
   Q5NC = Q4WT(user, Q5AO, Q5AB, Q5AP, 0x01);
   if (Q5AO != NULL())
   {
     deleteObject(Q4H5);
   }
   return (0x01);
 }