Difference between revisions of "Script: Trap locklevel seven"
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">int</span> lockLevel; <span style="color:#0...") |
(No difference)
|
Latest revision as of 09:09, 5 October 2018
inherits globals;
member int lockLevel;
trigger creation { if (!hasObjVar(this, "isLocked")) { attachScript(this, "locked"); lockLevel = random(0x97, 0xAF); setObjVar(this, "isLocked", lockLevel); setObjVar(this, "lockLevel", lockLevel); } return (0x00); }
trigger callback(0x25) { if (!hasObjVar(this, "isLocked")) { setObjVar(this, "isLocked", lockLevel); } return (0x00); }
trigger use { if (!hasObjVar(this, "isLocked")) { callback(this, 0x3C, 0x25); } return (0x01); }