Alt-Distro SpawnSystem

Made a small change or new addition to the Distro that makes a difference? You can post the changes here in .patch or .diff file format, for others to use or even added to the official Distro SVN!

Moderators: POL Developer, Distro Developer

Locked
gh0sterZA
Neophyte Poster
Posts: 35
Joined: Thu Nov 19, 2015 11:36 am
Location: Cape Town

Alt-Distro SpawnSystem

Post by gh0sterZA »

Hi
The SpawnSystem on the ALT-distro throws DataType errors to the logs due to an error in the ListStaticsAtLocation function in spawnerUtil.inc.

https://github.com/polserver/poldistro/ ... il.inc#L80

Code: Select all

foreach static in ( ListStaticsAtLocation( x, y, z, realm ))
according to https://docs.polserver.com/pol099/fullf ... AtLocation there should be a "flag"(integer) before the realm(string) parameter.

Small issue but can the line be updated to

Code: Select all

foreach static in ( ListStaticsAtLocation( x, y, z, 0, realm ))
This prevents the SpawnSystem spamming the logs.

regards
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Alt-Distro SpawnSystem

Post by Yukiko »

Sure and thanks. Not only will it prevent spamming the logs but it will also cause to script to work as in should :)
Locked