[phpBB Debug] PHP Warning: in file /home/polserve/docs.polserver.com/pol099/singlefunc.php on line 6: include_once(<!DOCTYPE html> <html dir="ltr" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="keywords" content="ultima online, ultima online emulator, uo, emu, server, packet, emulator, pol, penultima, custom client" /> <meta name="author" content="POL Development Team" /> <meta name="description" content="Penultima Online Emulator for private Ultima Online Server Software" /> <meta name="revisit-after" content="1 day"/> <meta name="robots" content="index, follow" /> <META name="y_key" content="2429576fcce7a2e4" /> <title>PenUltima Online ( POL )</title> <link href="https://www.polserver.com/style.css?v=20240802.1" rel="stylesheet" type="text/css" media="all" /> <link rel="shortcut icon" href="https://www.polserver.com/favicon.ico" type="image/x-icon"> <script type="text/javascript"> function ExpandContract(s) { var bulletE = document.getElementById("bullet_"+s); var spanE = document.getElementById("span_"+s); var Expanded = bulletE.innerHTML; if(Expanded == '[+]') { spanE.style.display = 'block'; bulletE.innerHTML = '[-]'; } else { spanE.style.display = 'none'; bulletE.innerHTML = '[+]'; } } function SwapVis(s) { var spanA = document.getElementById("span_"+s+"_a"); var spanB = document.getElementById("span_"+s+"_b"); if(spanA.style.display == 'block') { spanB.style.display = 'block'; spanA.style.display = 'none'; } else { spanA.style.display = 'block'; spanB.style.display = 'none'; } } function CheckLength(frm_, elm_, maxchars) { var thing = document.forms[""+frm_].elements[""+elm_]; var len = thing.value.length; if(len > maxchars) { alert('Too much data in the text box! Please remove '+ (len - maxchars)+ ' characters'); return false; } return true; } </script> </head> <body> <div id="header"> <div class="container"> <div id="logo"> <img src="https://www.polserver.com/images/title.png" alt="PenUltima Online" width=460 height=102 /> </div> <div id="navigation"> <ul id="navigate"> <li><a href="https://www.polserver.com/history/">History</a></li> <li><a href="https://www.polserver.com/irc.php">Chat</a></li> <li><a href="https://github.com/polserver/polserver/issues">Bugs</a></li> <li><a href="https://github.com/polserver/polserver">Source Code</a></li> <li><a href="https://docs.polserver.com">Docs</a></li> <li><a href="https://www.polserver.com/shards.php">Shards</a></li> <li><a href="https://downloads.polserver.com">Downloads</a></li> <li><a href="https://forums.polserver.com">Forums</a></li> <li><a href="https://www.polserver.com">Home</a></li> </ul> </div> </div> </div> <div id="mini-header"> <div class="container"> <div id="mini-nav"> Welcome to PenUltima Online. Click to <a href="https://forums.polserver.com/ucp.php?mode=login">login</a> or <a href="https://forums.polserver.com/ucp.php?mode=register">register</a>. </div> <div id="search-box"> <form action="https://www.polserver.com/search.php" method="get"> <input type="text" name="q" id="q" /><br /> <div id="opts"><br /><input type="radio" name="search_opt" value="forums" checked />Forums&nbsp;&nbsp;&nbsp;<input type="radio" name="search_opt" value="scripts" DISABLED/>Scripts</div> <input type="image" src="https://www.polserver.com/images/search.png" value="Search" onclick="this.parentNode.submit(); return false;" id="search" name="search" /> </form> </div> </div> </div> <div id="main"> <div class="container"> ): failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file /home/polserve/docs.polserver.com/pol099/singlefunc.php on line 6: include_once(): Failed opening '<!DOCTYPE html> <html dir="ltr" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="keywords" content="ultima online, ultima online emulator, uo, emu, server, packet, emulator, pol, penultima, custom client" /> <meta name="author" content="POL Development Team" /> <meta name="description" content="Penultima Online Emulator for private Ultima Online Server Software" /> <meta name="revisit-after" content="1 day"/> <meta name="robots" content="index, follow" /> <META name="y_key" content="2429576fcce7a2e4" /> <title>PenUltima Online ( POL )</title> <link href="https://www.polserver.com/style.css?v=20240802.1" rel="stylesheet" type="text/css" media="all" /> <link rel="shortcut icon" href="https://www.polserver.com/favicon.ico" type="image/x-icon"> <script type="text/javascript"> function ExpandContract(s) { var bulletE = document.getElementById("bullet_"+s); var spanE = document.getElementById("span_"+s); var Expanded = bulletE.innerHTML; if(Expanded == '[+]') { spanE.style.display = 'block'; bulletE.innerHTML = '[-]'; } else { spanE.style.display = 'none'; bulletE.innerHTML = '[+]'; } } function SwapVis(s) { var spanA = document.getElementById("span_"+s+"_a"); var spanB = document.getElementById("span_"+s+"_b"); if(spanA.style.display == 'block') { spanB.style.display = 'block'; spanA.style.display = 'none'; } else { spanA.style.display = 'block'; spanB.style.display = 'none'; } } function CheckLength(frm_, elm_, maxchars) { var thing = document.forms[""+frm_].elements[""+elm_]; var len = thing.value.length; if(len > maxchars) { alert('Too much data in the text box! Please remove '+ (len - maxchars)+ ' characters'); return false; } return true; } </script> </head> <body> <div id="header"> <div class="container"> <div id="logo"> <img src="https://www.polserver.com/images/title.png" alt="PenUltima Online" width=460 height=102 /> </div> <div id="navigation"> <ul id="navigate"> <li><a href="https://www.polserver.com/history/">History</a></li> <li><a href="https://www.polserver.com/irc.php">Chat</a></li> <li><a href="https://github.com/polserver/polserver/issues">Bugs</a></li> <li><a href="https://github.com/polserver/polserver">Source Code</a></li> <li><a href="https://docs.polserver.com">Docs</a></li> <li><a href="https://www.polserver.com/shards.php">Shards</a></li> <li><a href="https://downloads.polserver.com">Downloads</a></li> <li><a href="https://forums.polserver.com">Forums</a></li> <li><a href="https://www.polserver.com">Home</a></li> </ul> </div> </div> </div> <div id="mini-header"> <div class="container"> <div id="mini-nav"> Welcome to PenUltima Online. Click to <a href="https://forums.polserver.com/ucp.php?mode=login">login</a> or <a href="https://forums.polserver.com/ucp.php?mode=register">register</a>. </div> <div id="search-box"> <form action="https://www.polserver.com/search.php" method="get"> <input type="text" name="q" id="q" /><br /> <div id="opts"><br /><input type="radio" name="search_opt" value="forums" checked />Forums&nbsp;&nbsp;&nbsp;<input type="radio" name="search_opt" value="scripts" DISABLED/>Scripts</div> <input type="image" src="https://www.polserver.com/images/search.png" value="Search" onclick="this.parentNode.submit(); return false;" id="search" name="search" /> </form> </div> </div> </div> <div id="main"> <div class="container"> ' for inclusion (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear')

Modules:

RunAwayFromLocation( x, y )
Parameters:
Name Type
x Integer World Coordinate
y Integer World Coordinate
Explanation
Runs away from the given coordinates one tile. Puts the script to sleep for a period of time proportional to the NPC's run_speed (or dexterity if not defined).
Note also, walking in range of your opponent may cause you to attack.
See the NPC members run_speed and use_adjustments. If use_adjustments is 1 the NPC will adjust the direction of the move to attempt to avoid small obsticles. Also, this function will always return true as a result. If it is 0, the NPC will not attempt to adjust the move, and the function will return false.
The success of this function is affected by the NPC's anchor point. See SetAnchor().
In the future, this function will activate a pathfinding system.
Return values
Boolean for move success
Errors
"Invalid parameter type"
"Invalid Coordinates for Realm"
Related
NPC