Difference between revisions of "Script: Sha switch one"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">list</span> Q5DQ; <span style="...") |
(No difference)
|
Latest revision as of 14:12, 5 October 2018
inherits globals;
trigger use { list Q5DQ; loc trapLocation = 0x154C, 0xBB, 0x00; if (!hasObjVar(this, "switchWorking")) { setObjVar(this, "switchWorking", 0x01); [[messageToRange|messageToRange]](trapLocation, 0x05, "disarm", Q5DQ); callback(this, 0x1E, 0x26); return (0x01); } return (0x00); }
trigger callback(0x26) { list Q5DQ; loc trapLocation = 0x154C, 0xBB, 0x00; if (hasObjVar(this, "switchWorking")) { removeObjVar(this, "switchWorking"); [[messageToRange|messageToRange]](trapLocation, 0x05, "reset", Q5DQ); } return (0x00); }