Script: Remprtct

From Ultima Online: The Second Age
Revision as of 14:41, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> spelskil; <span style="color:#0000FF">trigger</span> callback(0x13) { <span style="color:#0000FF">if</span> (hasObjVar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits spelskil;
trigger callback(0x13)
{
  if (hasObjVar(this, "defenseBonus"))
  {
    int Q48Q = getObjVar(this, "defenseBonus");
    int Q5MX = getNaturalAC(this) - Q48Q;
    setNaturalAC(this, Q5MX);
    removeObjVar(this, "defenseBonus");
  }
  detachScript(this, "remprtct");
  return (0x00);
}