Difference between revisions of "Script: Dec2 door one"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"unlocked"</span>) { <span style...") |
(No difference)
|
Latest revision as of 22:55, 5 October 2018
inherits globals;
trigger message("unlocked") { int Q5DQ; if (!hasObjVar(this, "unlocked")) { setObjVar(this, "unlocked", Q5DQ); callback(this, 0x78, 0x25); } return (0x00); }
trigger use { if (!hasObjVar(this, "unlocked")) { bark(this, "This door appears to be locked."); return (0x00); } return (0x01); }
trigger callback(0x25) { if (hasObjVar(this, "unlocked")) { removeObjVar(this, "unlocked"); } return (0x00); }