Script: Spellwand
From Ultima Online: The Second Age
function int Q4ZO(obj Q68S) { list Q5A8; int Q5NC = [[messageret|messageret]](this, Q68S, "spellcanstartcast", Q5A8); return (Q5NC); }
function int Q49T(obj Q68S, obj Q67Y) { return (hasObjEquipped(Q68S, Q67Y)); }
function int Q49S(obj Q68S, obj Q67Y) { if (hasObjEquipped(Q68S, Q67Y)) { if (Q4ZO(Q68S)) { return (0x01); } } return (0x00); }
function void Q5VL(obj user) { list Q5A8; attachScript(user, "spellwords"); message(user, "spellstartcast", Q5A8); return (); }
trigger use { if (Q49S(user, this)) { Q5VL(user); } return (0x01); }