Difference between revisions of "Script: 3850"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> potion; <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">if</span> (!Q4H6|<span style="col...") |
(No difference)
|
Latest revision as of 04:22, 7 October 2018
inherits potion;
trigger use { if (!Q4H6(user)) { return (0x00); } if (Q4NQ(user) == 0x00) { return (0x00); } setInvisible(user, 0x00); int power = 0x01; if (hasObjVar(this, "power")) { power = getObjVar(this, "power"); } if ((hasScript(user, "poisoned")) || (hasObjVar(user, "poison_strength"))) { systemMessage(user, "You are already poisoned."); } else { setObjVar(user, "poison_strength", power); attachScript(user, "poisoned"); } obj Q4NN = createGlobalObjectOn(this, 0x0F0E); destroyOne(this); return (0x00); }