[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')

Functions:

Modules:

GetRegionString( resource, x, y, propertyname, realm := _DEFAULT_REALM )
Parameters:
Name Type
resource string
x Integer world coordinates
y Integer world coordinates
realm String - case-sensitive name of the realm
propertyname string
Explanation
Allows you to look up custom properties within a resource region entry.
"resource" is a string that matches a resource type in regions/resource.cfg, i.e. "ore". x,y is the coordinate to look up in the regions defined in resources/ore.cfg (or the filename matching the supplied resource).
"property_name" is the _custom_ property to match (i.e. UnitsPerArea, SecondsPerRegrow, Capacity, Range are NOT matched) in the found region.
Example: in regions/resource.cfg there exists a ResourceType "ore". In ore.cfg 
         there exists a region:
Region Outer Covetous 
{ 
    UnitsPerArea        15 
    SecondsPerRegrow    300 
    Capacity            20000 
    Range        2299 784 2635 967 
    Prop         value_string    -- this is a custom property not used by the core
} 
GetRegionString("ore",2299,785,"Prop"); would return "value_string"
Return values
String value of "propertyname" on success
Errors
"Invalid parameter"
"Realm not found"
"Invalid Coordinates for Realm"
"No resource by that name" if "resource" not found in regions/resource.cfg
"No resource region at that location" if the given x,y is not defined inside any of the regions in regions/[resource string].cfg
"Property not found" if "propertyname" was not found in the matching region.
Related Configs
regions.cfg