Difference between revisions of "Script: Creatfodbase"
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> Q4JB(<span style="color:#0000FF...") |
|||
Line 7: | Line 7: | ||
[[Engine Function:_faceHere|<span style="color:#FF0000;font-weight:bold">faceHere</span>]](user, [[Engine Function:_getDirectionInternal|<span style="color:#FF0000;font-weight:bold">getDirectionInternal</span>]](Q4VS, place)); | [[Engine Function:_faceHere|<span style="color:#FF0000;font-weight:bold">faceHere</span>]](user, [[Engine Function:_getDirectionInternal|<span style="color:#FF0000;font-weight:bold">getDirectionInternal</span>]](Q4VS, place)); | ||
<span style="color:#0000FF">list</span> Q56N = 0x09D1, 0x09D3, 0x097D, 0x09EB, 0x097B, 0x09F2, 0x09B7, 0x09C0, 0x09D0, 0x09D2; | <span style="color:#0000FF">list</span> Q56N = 0x09D1, 0x09D3, 0x097D, 0x09EB, 0x097B, 0x09F2, 0x09B7, 0x09C0, 0x09D0, 0x09D2; | ||
− | <span style="color:#0000FF">int</span> Q4Q5 = [[ | + | <span style="color:#0000FF">int</span> Q4Q5 = [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x01, 0x0A); |
<span style="color:#0000FF">obj</span> food = [[Engine Function:_createGlobalObjectAt|<span style="color:#FF0000;font-weight:bold">createGlobalObjectAt</span>]](0x09D3, place); | <span style="color:#0000FF">obj</span> food = [[Engine Function:_createGlobalObjectAt|<span style="color:#FF0000;font-weight:bold">createGlobalObjectAt</span>]](0x09D3, place); | ||
<span style="color:#0000FF">if</span> ([[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](food)) | <span style="color:#0000FF">if</span> ([[Engine Function:_isValid|<span style="color:#FF0000;font-weight:bold">isValid</span>]](food)) |
Latest revision as of 20:44, 18 October 2018
inherits spelskil;
function int Q4JB(obj user, loc place) { int Q5NC = 0x00; loc Q4VS = getLocation(user); faceHere(user, getDirectionInternal(Q4VS, place)); list Q56N = 0x09D1, 0x09D3, 0x097D, 0x09EB, 0x097B, 0x09F2, 0x09B7, 0x09C0, 0x09D0, 0x09D2; int Q4Q5 = dice(0x01, 0x0A); obj food = createGlobalObjectAt(0x09D3, place); if (isValid(food)) { sfx(place, 0x01E2, 0x00); Q5NC = 0x01; } Q5UQ(this); return (Q5NC); }