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

Post Reply
gh0sterZA
New User
Posts: 22
Joined: Thu Nov 19, 2015 11:36 am

Alt-Distro SpawnSystem

Post by gh0sterZA » Thu Jun 15, 2017 5:24 am

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: 2039
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Alt-Distro SpawnSystem

Post by Yukiko » Sun Jun 18, 2017 1:29 am

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

I would tell you a UDP joke but you might not get it.

Titus 2:13

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest