Script: Thief
From Ultima Online: The Second Age
Revision as of 08:17, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#0000FF">int</span> Q4AY = <span style="color:#FF0000;font-weight:bold">random</span>(...")
trigger creation { int Q4AY = random(0x01, 0x05); if (Q4AY == 0x01) { addFragment(this, "actor"); return (0x00); } if (Q4AY == 0x02) { addFragment(this, "beggar"); return (0x00); } if (Q4AY == 0x03) { addFragment(this, "gypsy"); return (0x00); } if (Q4AY == 0x04) { addFragment(this, "artist"); return (0x00); } if (Q4AY == 0x05) { addFragment(this, "laborer"); return (0x00); } return (0x00); }
trigger acquiredesire { int Q5IR; obj thief; if (isPlayer(target)) { if (hasObjVar(target, "guildMember")) { Q5IR = getObjVar(target, "guildMember"); } if (Q5IR == 0x03) { return (0x01); } else { int Q5IQ = getMoney(target); int Q4PL = Q5IQ / 0x14; thief = takeMoney(target, Q4PL); string Q5WP = Q4PL; barkTo(this, target, "pilfered"); stopFollowing(this); runAway(this, target); } } return (0x01); }