Difference between revisions of "Script Function: Q4JM"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4JM(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span...") |
(No difference)
|
Latest revision as of 14:33, 12 October 2018
function string Q4JM(obj user, obj usedon) { string name; name = Q4XP(usedon); if (name == "") { doLookAt(user, usedon); return (name); } else { if (hasObjVar(usedon, "charges")) { int charges = getObjVar(usedon, "charges"); if (charges > 0x00) { name = name + " with " + charges + " charges"; } } if (!(hasObjVar(usedon, "appraising"))) { systemMessage(user, "It is: " + name); } setObjVar(usedon, "beenIdentified", 0x01); setObjVar(usedon, "owner", user); setObjVar(usedon, "lookAtText2", name); attachScript(usedon, "magicitem"); removeObjVar(usedon, "appraising"); } return (name); }