Script: Lever2
From Ultima Online: The Second Age
trigger message("activate") { if (getObjType(this) == 0x1095) { setType(this, 0x1093); processTriggerCmds(this, "a"); } return (0x00); }
trigger message("deactivate") { if (getObjType(this) == 0x1093) { setType(this, 0x1095); processTriggerCmds(this, "d"); } return (0x00); }
trigger use { list args; int Q65M = getObjType(this); if (Q65M == 0x1095) { message(this, "activate", args); } else { message(this, "deactivate", args); } return (0x00); }