Script: Scrollbase

From Ultima Online: The Second Age
Revision as of 15:21, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> spelskil; <span style="color:#0000FF">trigger</span> lookedat { <span style="color:#0000FF">string</span> Q53V; <span...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits spelskil;
trigger lookedat
{
  string Q53V;
  int Q5E2 = getQuantity(this);
  int Q5UU = Q4T2(this);
  string Q5O0 = Q5E2;
  if (Q5E2 > 0x01)
  {
    Q53V = Q5O0 + " " + Q4T0(Q5UU) + " scrolls";
  }
  else
  {
    Q53V = "a " + Q4T0(Q5UU) + " scroll";
  }
  barkTo(this, looker, Q53V);
  return (0x00);
}