Difference between revisions of "Script Function: Q4WZ"

From Ultima Online: The Second Age
Jump to: navigation, search
(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...")
 
 
Line 6: Line 6:
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q5AO, <span style="color:#800000">"myhousedoor"</span>))
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q5AO, <span style="color:#800000">"myhousedoor"</span>))
 
     {
 
     {
       Q5AB = [[getobjvar_obj|<span style="color:#FF0000;font-weight:bold">getobjvar_obj</span>]](Q5AO, <span style="color:#800000">"myhousedoor"</span>);
+
       Q5AB = [[Engine Function:_getobjvar_obj|<span style="color:#FF0000;font-weight:bold">getobjvar_obj</span>]](Q5AO, <span style="color:#800000">"myhousedoor"</span>);
 
     }
 
     }
 
     <span style="color:#0000FF">obj</span> Q5AP = [[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]();
 
     <span style="color:#0000FF">obj</span> Q5AP = [[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]();
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q5AO, <span style="color:#800000">"myhousesign"</span>))
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q5AO, <span style="color:#800000">"myhousesign"</span>))
 
     {
 
     {
       Q5AP = [[getobjvar_obj|<span style="color:#FF0000;font-weight:bold">getobjvar_obj</span>]](Q5AO, <span style="color:#800000">"myhousesign"</span>);
+
       Q5AP = [[Engine Function:_getobjvar_obj|<span style="color:#FF0000;font-weight:bold">getobjvar_obj</span>]](Q5AO, <span style="color:#800000">"myhousesign"</span>);
 
     }
 
     }
 
     <span style="color:#0000FF">string</span> Q4F8 = [[Engine Function:_getName|<span style="color:#FF0000;font-weight:bold">getName</span>]](user);
 
     <span style="color:#0000FF">string</span> Q4F8 = [[Engine Function:_getName|<span style="color:#FF0000;font-weight:bold">getName</span>]](user);

Latest revision as of 09:03, 19 October 2018

 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);
 }