Difference between revisions of "Script Function: Q4K2"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4K2(<span style="color:#0000FF">obj</span> me, <span style="color:#0000FF">obj</span> pla...") |
|||
Line 2: | Line 2: | ||
{ | { | ||
[[Script_Function:_Q5Z2|<span style="color:#2B91AF">Q5Z2</span>]](player, Q4OG); | [[Script_Function:_Q5Z2|<span style="color:#2B91AF">Q5Z2</span>]](player, Q4OG); | ||
− | <span style="color:#0000FF">if</span> ([[ | + | <span style="color:#0000FF">if</span> ([[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](player, Q4OG)) |
{ | { | ||
sfx([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](player), 0x01FE, 0x00); | sfx([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](player), 0x01FE, 0x00); |
Latest revision as of 07:42, 19 October 2018
function int Q4K2(obj me, obj player) { Q5Z2(player, Q4OG); if (teleport(player, Q4OG)) { sfx(getLocation(player), 0x01FE, 0x00); return (0x01); } return (0x00); }