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