Difference between revisions of "Script: Des1 ankh"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> enterrange(0x03) { <span style="color:#0000FF">string</span> Q5ZO =...") |
(No difference)
|
Latest revision as of 22:48, 5 October 2018
inherits globals;
trigger enterrange(0x03) { string Q5ZO = "An overwhelming sense of peace fills you." ); barkTo(this, target, Q5ZO); return (0x01); }
trigger use { int Q5L8 = random(0x01, 0x04); string Q4H1 = Q5L8; if (!hasObjVar(user, "usedDespiseLvlOneAnkh")) { setObjVar(user, "usedDespiseLvlOneAnkh", Q5L8); attachScript(user, "des1_ankh_user"); doLocAnimation(getLocation(user), 0x373A, 0x01, 0x10, 0x00, 0x00); if ((Q5L8 == 0x01) || (Q5L8 == 0x04)) { setCurHP(user, getMaxHP(user)); barkTo(user, user, "A sense of warmth fills your body!"); } if ((Q5L8 == 0x02) || (Q5L8 == 0x04)) { setCurMana(user, getMaxMana(user)); barkTo(user, user, "A feeling of power surges through your veins!"); } if ((Q5L8 == 0x03) || (Q5L8 == 0x04)) { setCurFatigue(user, getMaxFatigue(user)); barkTo(user, user, "You feel as though you've slept for days!"); } } return (0x00); }