Difference between revisions of "Script: Sha tele new"
From Ultima Online: The Second Age
(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 45: | Line 45: | ||
{ | { | ||
Q648 = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"toLocation"</span>); | Q648 = [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"toLocation"</span>); | ||
− | <span style="color:#0000FF">if</span> (![[ | + | <span style="color:#0000FF">if</span> (![[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](Q5YN, Q648)) |
{ | { | ||
[[Engine Function:_setType|<span style="color:#FF0000;font-weight:bold">setType</span>]](this, 0x01); | [[Engine Function:_setType|<span style="color:#FF0000;font-weight:bold">setType</span>]](this, 0x01); |
Latest revision as of 07:18, 19 October 2018
inherits globals;
trigger creation { setType(this, 0x01); return (0x00); }
trigger enterrange(0x01) { if (!hasObjVar(this, "working")) { obj Q5YN = target; setObjVar(this, "working", Q5YN); setType(this, 0x373A); callBack(this, 0x05, 0x24); } return (0x01); }
trigger callback(0x24) { obj Q5YN; list Q67G; loc Q648; int Q4QI = 0x01; loc Q59R = getLocation(this); if (!hasObjVar(this, "working")) { Q4QI = 0x00; } Q5YN = getObjVar(this, "working"); removeObjVar(this, "working"); clearList(Q67G); getMobsInRange(Q67G, Q59R, 0x02); if (!isInList(Q67G, Q5YN)) { Q4QI = 0x00; } if (!hasObjVar(this, "toLocation")) { Q4QI = 0x00; } if (Q4QI) { Q648 = getObjVar(this, "toLocation"); if (!teleport(Q5YN, Q648)) { setType(this, 0x01); return (0x01); } setType(this, 0x01); return (0x00); } setType(this, 0x01); return (0x00); }