Difference between revisions of "Script Function: Q558"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q558(<span style="color:#0000FF">obj</span> Q487, <span style="color:#0000FF">obj</span> b...") |
|||
Line 6: | Line 6: | ||
<span style="color:#0000FF">if</span> (Q5DC) | <span style="color:#0000FF">if</span> (Q5DC) | ||
{ | { | ||
− | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q487, <span style="color:#800000">" | + | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q487, <span style="color:#800000">"isPet"</span>, 0x01); |
} | } | ||
[[Engine Function:_makeBeelineFailPathfind|<span style="color:#FF0000;font-weight:bold">makeBeelineFailPathfind</span>]](Q487, 0x01); | [[Engine Function:_makeBeelineFailPathfind|<span style="color:#FF0000;font-weight:bold">makeBeelineFailPathfind</span>]](Q487, 0x01); |
Latest revision as of 00:45, 21 October 2018
function int Q558(obj Q487, obj boss, int Q54B, int Q5DC) { list myBoss = boss; setObjVar(Q487, "myBoss", myBoss); setObjVar(Q487, "myLoyalty", Q54B); if (Q5DC) { setObjVar(Q487, "isPet", 0x01); } makeBeelineFailPathfind(Q487, 0x01); disableBehaviors(Q487); attachScript(Q487, "pet"); return (0x01); }