Difference between revisions of "Script: Sha fire circle daemon"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { setType|<span style="color:#FF0000;font-weight:bold">se...")
 
 
Line 31: Line 31:
 
     {
 
     {
 
       Q648 = (0x1647 + i), 0x20, 0x00;
 
       Q648 = (0x1647 + i), 0x20, 0x00;
       Q64U = [[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](Q67G[i], Q648);
+
       Q64U = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](Q67G[i], Q648);
 
     }
 
     }
 
   }
 
   }
 
   <span style="color:#0000FF">return</span> (0x00);
 
   <span style="color:#0000FF">return</span> (0x00);
 
  }
 
  }

Latest revision as of 07:20, 19 October 2018

inherits globals;
trigger creation
{
  setType(this, 0x01);
  return (0x00);
}
trigger enterrange(0x00)
{
  list Q5DQ;
  if (!hasObjVar(this, "working"))
  {
    setObjVar(this, "working", 0x01);
    [[messageToRange|messageToRange]](getLocation(this), 0x0A, "poof", Q5DQ);
    callback(this, 0x05, 0x24);
  }
  return (0x01);
}
trigger callback(0x24)
{
  list Q67G;
  int Q64U;
  loc Q648;
  if (hasObjVar(this, "working"))
  {
    removeObjVar(this, "working");
    getMobsInRange(Q67G, getLocation(this), 0x04);
    for(int i = 0x00; i < numInList(Q67G); i++)
    {
      Q648 = (0x1647 + i), 0x20, 0x00;
      Q64U = teleport(Q67G[i], Q648);
    }
  }
  return (0x00);
}