Script Function: Q5SD

From Ultima Online: The Second Age
Jump to: navigation, search
 function obj Q5SD(int Q5SR, loc place)
 {
   obj ship;
   int Q4IE = 0x05;
   ship = Q5SE(Q5SR, 0x00, place);
   if (ship != NULL())
   {
     Q4IE = 0x00;
   }
   if (Q4IE != 0x05)
   {
     setObjVar(ship, "myshipdir", Q4IE);
     setObjVar(ship, "myshiptype", Q5SR);
     string Q5AS;
     getCurrentTimeStr(Q5AS);
     setObjVar(ship, "creationtime", Q5AS);
   }
   return (ship);
 }