Difference between revisions of "Script: Scan"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> scan() { [[clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]...") |
|||
Line 11: | Line 11: | ||
{ | { | ||
[[Engine Function:_getPlayersInRange|<span style="color:#FF0000;font-weight:bold">getPlayersInRange</span>]](Q4QN, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x01F4); | [[Engine Function:_getPlayersInRange|<span style="color:#FF0000;font-weight:bold">getPlayersInRange</span>]](Q4QN, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x01F4); | ||
+ | } | ||
+ | } | ||
+ | Q5E0 = [[Script_Function:_Q4P7|<span style="color:#2B91AF">Q4P7</span>]](Q4QN); | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> scan() | ||
+ | { | ||
+ | [[Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">clearList</span>]](Q4QN); | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"findMobiles"</span>)) | ||
+ | { | ||
+ | [[Engine Function:_getMobsInRange|<span style="color:#FF0000;font-weight:bold">getMobsInRange</span>]](Q4QN, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x1388); | ||
+ | } | ||
+ | <span style="color:#0000FF">else</span> | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"findPlayers"</span>)) | ||
+ | { | ||
+ | [[Engine Function:_getPlayersInRange|<span style="color:#FF0000;font-weight:bold">getPlayersInRange</span>]](Q4QN, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x1388); | ||
} | } | ||
} | } |
Latest revision as of 15:29, 12 October 2018
function void scan() { clearList(Q4QN); if (hasObjVar(this, "findMobiles")) { getMobsInRange(Q4QN, getLocation(this), 0x01F4); } else { if (hasObjVar(this, "findPlayers")) { getPlayersInRange(Q4QN, getLocation(this), 0x01F4); } } Q5E0 = Q4P7(Q4QN); return (); }
function void scan() { clearList(Q4QN); if (hasObjVar(this, "findMobiles")) { getMobsInRange(Q4QN, getLocation(this), 0x1388); } else { if (hasObjVar(this, "findPlayers")) { getPlayersInRange(Q4QN, getLocation(this), 0x1388); } } Q5E0 = Q4P7(Q4QN); return (); }