Script: Flame statue
From Ultima Online: The Second Age
Revision as of 21:55, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#FF0000;font-weight:bold">setType</span>(this, 0x07A3); <span style="color:#0000FF...")
trigger creation { setType(this, 0x07A3); return (0x00); }
trigger enterrange(0x03) { list Q5DQ; loc Q5C0 = getX(getLocation(this)), getY(getLocation(this)), (getZ(getLocation(this)) + 0x01); if (getObjType(this) == 0x07A3) { callback(this, 0x02, 0x01); setType(this, 0x01); messageToRange(getLocation(this), 0x05, "blowUp", Q5DQ); doLocAnimation(getLocation(this), 0x3709, 0x02, 0x38, 0x00, 0x00); } return (0x01); }
trigger leaverange(0x07) { list Q67G; list Q5DQ; loc Q5C0 = getX(getLocation(this)), getY(getLocation(this)), (getZ(getLocation(this)) - 0x01); getMobsInRange(Q67G, getLocation(this), 0x05); if ((numInList(Q67G) == 0x00)) { if (getObjType(this) == 0x1228) { doLocAnimation(getLocation(this), 0x3709, 0x02, 0x38, 0x00, 0x00); setType(this, 0x01); callback(this, 0x02, 0x02); } } return (0x01); }
trigger message("blowUp") { loc Q5C0 = getX(getLocation(this)), getY(getLocation(this)), (getZ(getLocation(this)) + 0x01); if (!(sender == this) && (getObjType(this) == 0x07A3)) { callback(this, 0x02, 0x01); setType(this, 0x01); doLocAnimation(getLocation(this), 0x3709, 0x02, 0x38, 0x00, 0x00); } return (0x00); }
trigger callback(0x01) { if (getObjType(this) == 0x01) { setType(this, 0x1228); } return (0x00); }
trigger callback(0x02) { if (getObjType(this) == 0x01) { setType(this, 0x07A3); } return (0x00); }