Script: Atkbonus

From Ultima Online: The Second Age
Revision as of 01:21, 6 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> spelskil; <span style="color:#0000FF">member</span> <span style="color:#0000FF">int</span> Q688; <span style="color:#0000FF...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits spelskil;
member int Q688;
member int Q471;
trigger equip
{
  list Q57J = 0x0F4F, 0x0F50, 0x13B1, 0x13B2, 0x13FC, 0x13FD;
  int weapon = getObjType(this);
  for(int Q624 = 0x00; Q624 < numInList(Q57J); Q624++)
  {
    int Q4GB = Q57J[Q624];
    if (Q4GB == weapon)
    {
      Q688 = 0x01;
    }
  }
  int mod;
  if (Q688 == 0x01)
  {
    mod = modifySkillMod(equippedon, 0x1F, Q471);
  }
  else
  {
    mod = modifySkillMod(equippedon, 0x1B, Q471);
  }
  return (0x01);
}
trigger unequip
{
  int mod;
  if (Q688 == 0x01)
  {
    mod = modifySkillMod(unequippedfrom, 0x1F, (0x00 - Q471));
  }
  else
  {
    mod = modifySkillMod(unequippedfrom, 0x1B, (0x00 - Q471));
  }
  return (0x01);
}