Difference between revisions of "Script: Amnesty4"
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> Q4ID; <span style="color:#0000FF...") |
(No difference)
|
Latest revision as of 01:23, 6 October 2018
inherits globals;
member int Q4ID;
trigger creation { if (!getCompileFlag(0x01)) { if (getNotoriety(this) < 0x00) { setNotoriety(this, 0x00); Q4ID = 0x01; callback(this, 0x01, 0x76); } else { if (getNotoriety(this) > 0x00) { setNotoriety(this, 0x00); Q4ID = 0x00; callback(this, 0x01, 0x76); } } } else { if (getFameLevel(this) < 0x00) { setFame(this, 0x00); Q4ID = 0x01; callback(this, 0x01, 0x76); } else { if (getFameLevel(this) > 0x00) { setFame(this, 0x00); Q4ID = 0x00; callback(this, 0x01, 0x76); } } } return (0x01); }
trigger callback(0x76) { if (Q4ID) { barkTo(this, this, "You have been granted amnesty for your crimes. --Lord British."); } else { barkTo(this, this, "Let no good deed go unpunished! --Lord Blackthorn"); } return (0x01); }