Difference between revisions of "Script Function: Q5IH"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5IH(<span style="color:#0000FF">obj</span> Q68S, <span style="color:#0000FF">obj</span>...") |
|||
Line 1: | Line 1: | ||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5IH(<span style="color:#0000FF">obj</span> Q68S, <span style="color:#0000FF">obj</span> item, <span style="color:#0000FF">string</span> Q56O) | ||
+ | { | ||
+ | <span style="color:#0000FF">obj</span> Q5HA = [[Engine Function:_getBackpack|<span style="color:#FF0000;font-weight:bold">getBackpack</span>]](Q68S); | ||
+ | <span style="color:#0000FF">string</span> Q5AI = Q56O; | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](Q5HA) && [[Engine Function:_canHold|<span style="color:#FF0000;font-weight:bold">canHold</span>]](Q5HA, item)) | ||
+ | { | ||
+ | <span style="color:#0000FF">concat</span>(Q5AI, <span style="color:#800000">" in your backpack."</span>); | ||
+ | <span style="color:#0000FF">int</span> Q527 = [[Engine Function:_putObjContainer|<span style="color:#FF0000;font-weight:bold">putObjContainer</span>]](item, Q5HA); | ||
+ | } | ||
+ | <span style="color:#0000FF">else</span> | ||
+ | { | ||
+ | <span style="color:#0000FF">concat</span>(Q5AI, <span style="color:#800000">" at your feet."</span>); | ||
+ | } | ||
+ | [[Engine Function:_systemMessage|<span style="color:#FF0000;font-weight:bold">systemMessage</span>]](Q68S, Q5AI); | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5IH(<span style="color:#0000FF">obj</span> Q68S, <span style="color:#0000FF">obj</span> item, <span style="color:#0000FF">string</span> Q56O) | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5IH(<span style="color:#0000FF">obj</span> Q68S, <span style="color:#0000FF">obj</span> item, <span style="color:#0000FF">string</span> Q56O) | ||
{ | { |
Latest revision as of 17:41, 12 October 2018
function void Q5IH(obj Q68S, obj item, string Q56O) { obj Q5HA = getBackpack(Q68S); string Q5AI = Q56O; if (isValid(Q5HA) && canHold(Q5HA, item)) { concat(Q5AI, " in your backpack."); int Q527 = putObjContainer(item, Q5HA); } else { concat(Q5AI, " at your feet."); } systemMessage(Q68S, Q5AI); return (); }
function void Q5IH(obj Q68S, obj item, string Q56O) { obj Q5HA = getBackpack(Q68S); string Q5AI = Q56O; if (isValid(Q5HA) && canHold(Q5HA, item)) { concat(Q5AI, " in your backpack."); int Q527 = putObjContainer(item, Q5HA); } else { concat(Q5AI, " at your feet."); } systemMessage(Q68S, Q5AI); return (); }