Script: Bountykillcount

From Ultima Online: The Second Age
Revision as of 01:10, 6 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#0000FF">if</span> (!<span style="color:#FF0000;font-weight:bold">hasObjVar</span>(...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger creation
{
  if (!hasObjVar(this, "killcount"))
  {
    bark(this, "No kills are tallied on this person.");
    detachScript(this, "bountykillcount");
  }
  int x;
  list Q51M;
  getObjListVar(Q51M, this, "killcount");
  x = numInList(Q51M);
  string blah = x;
  bark(this, "There are " + blah + " kills reported on this character.");
  if (hasScript(this, "bountymark"))
  {
    bark(this, "There is a bounty outstanding as well.");
  }
  detachScript(this, "bountykillcount");
  return (0x01);
}