Script: Shipleftplank
From Ultima Online: The Second Age
inherits shipplank;
trigger creation { int Q5NC = Q5S7(this, 0x01, "shipleftplank"); return (0x01); }
trigger enterrange(0x00) { return (Q5S5(0x01, this, target)); }
trigger ooruse { if (isDead(user)) { Q5RW(0x00, this, user); return (0x00); } int Q5NC = Q5SA(0x01, this, user); if (!Q5S7(this, 0x01, "shipleftplank")) { Q5S6(getMultiSlaveId(this)); } return (0x00); }
trigger use { if (isDead(user)) { Q5RW(0x00, this, user); return (0x00); } int Q5NC = Q5SA(0x01, this, user); if (!Q5S7(this, 0x01, "shipleftplank")) { Q5S6(getMultiSlaveId(this)); } return (0x01); }
trigger multirecycle { Q5RX(0x01, this, oldtype); return (0x01); }