Difference between revisions of "Script: Door switch two"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">loc</span> Q4N2 = 0x14AF, 0x0244, 0x00; <span style="color:#0000FF">list</span> Q5DQ; <...") |
(No difference)
|
Latest revision as of 22:40, 5 October 2018
trigger use { loc Q4N2 = 0x14AF, 0x0244, 0x00; list Q5DQ; if (!hasObjVar(this, "working")) { setObjVar(this, "working", 0x01); messageToRange(Q4N2, 0x02, "unlocked", Q5DQ); setType(this, 0x1090); callback(this, 0x02, 0x01); } return (0x00); }
trigger callback(0x01) { if (hasObjVar(this, "working")) { removeObjVar(this, "working"); } if (getObjType(this) == 0x1090) { setType(this, 0x108F); } return (0x00); }