Difference between revisions of "Script: Telknsisbase"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> spelskil; <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4CU(<span style="color:#0000FF...") |
(No difference)
|
Latest revision as of 10:26, 5 October 2018
inherits spelskil;
function int Q4CU(obj user, obj usedon) { if (!isValid(usedon)) { return (0x00); } if (!canSeeObj(user, usedon)) { systemMessage(user, "Target can not be seen"); return (0x00); } return (0x01); }
function int Q4ML(obj user, obj usedon) { int Q5NC = 0x00; if (Q4CU(user, usedon)) { loc Q4VS = getLocation(user); loc there = getLocation(usedon); faceHere(user, getDirectionInternal(Q4VS, there)); doLocAnimation(getLocation(usedon), 0x376A, 0x09, 0x20, 0x00, 0x00); sfx(there, 0x01F5, 0x00); useItem(user, usedon); Q5NC = 0x01; } Q5UQ(this); return (Q5NC); }