Difference between revisions of "Script: Sha door one 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> Q4N2; <span style="color:#0000FF"...") |
(No difference)
|
Latest revision as of 14:14, 5 October 2018
inherits globals;
member loc Q4N2; member list Q5DQ;
trigger creation { Q4N2 = 0x15C2, 0xC6, 0x00; return (0x00); }
trigger use { if (!hasObjVar(this, "doorSwitchWorking")) { setObjVar(this, "doorSwitchWorking", 0x01); [[messageToRange|messageToRange]](Q4N2, 0x01, "unlock", Q5DQ); callback(this, 0x1E, 0x26); return (0x01); } return (0x00); }
trigger callback(0x26) { if (hasObjVar(this, "doorSwitchWorking")) { removeObjVar(this, "doorSwitchWorking"); [[messageToRange|messageToRange]](Q4N2, 0x01, "lockup", Q5DQ); } return (0x00); }