Difference between revisions of "Script: Platemail"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> spelskil; <span style="color:#0000FF">member</span> <span style="color:#0000FF">int</span> Q4HY; <span style="color:#0000F...") |
(No difference)
|
Latest revision as of 16:49, 5 October 2018
inherits spelskil;
member int Q4HY;
function void Q5RL() { if (!hasObjVar(this, "plateMailCost")) { Q4HY = (0x00 - 0x05); } else { Q4HY = getObjVar(this, "plateMailCost"); Q4HY = (0x00 - Q4HY); } if (hasObjVar(this, "pmf")) { removeObjVar(this, "pmf"); } return (); }
trigger creation { Q5RL(); return (0x01); }
trigger objectloaded { Q5RL(); return (0x01); }
trigger equip { Q43H(equippedon, 0x01, Q4HY); return (0x01); }
trigger unequip { int Q463 = 0x00 - Q4HY; Q43H(unequippedfrom, 0x01, Q463); return (0x01); }