Difference between revisions of "Script: Glasssword"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> ishitting { sfx(<span style="color:#FF0000;font-weight:bold">getLocation</span>(this), 0x3F, 0x3F); debugMes...")
 
(No difference)

Latest revision as of 21:48, 5 October 2018

trigger ishitting
{
  sfx(getLocation(this), 0x3F, 0x3F);
  debugMessage("HIT");
  doDamageWithWeapon(containedBy(this), victim, this, 0x2710);
  deleteObject(this);
  return (0x01);
}
trigger equip
{
  if (isPlayer(equippedon))
  {
    list args = 0x0A;
    multimessage(equippedon, "usedme", args);
  }
  return (0x01);
}
trigger creation
{
  setHue(this, 0x53);
  int Q527 = applyWeaponTemplate(this, 0x3D);
  setObjVar(this, "lookAtText", "a glass sword");
  return (0x01);
}