Difference between revisions of "Script: Trap wall vanish"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { <span style="color:#0000FF">int</span> Q5A2 = getObjTyp...") |
(No difference)
|
Latest revision as of 09:06, 5 October 2018
inherits globals;
trigger creation { int Q5A2 = getObjType(this); setObjVar(this, "myObjType", Q5A2); setType(this, 0x01); return (0x00); }
trigger enterrange(0x02) { if (isDead(target)) { return (0x01); } int Q5A2 = getObjVar(this, "myObjType"); if (getObjType(this) != Q5A2) { setType(this, Q5A2); setObjVar(this, "working", 0x01); callback(this, 0x03, 0x24); } return (0x01); }
trigger callback(0x24) { list Q67G; clearList(Q67G); getMobsInRange(Q67G, getLocation(this), 0x03); if (numInList(Q67G) == 0x00) { setType(this, 0x01); removeObjVar(this, "working"); return (0x00); } callback(this, 0x03, 0x24); return (0x00); }