Lottery-plugin for Xaseco
v1.0

Original by Mistral
modified and tweaked by Dr. Kaputnik


Install:
- add <plugin>plugin.lotto.php</plugin> after all other plugins in your pluginxaseco\plugins.xml
- copy lotto_config.xml to your pluginxaseco directory
- copy plugin.lotto.php to your pluginxaseco\plugins directory


Configuration:

<servername>SERVERNAME</servername>
Enter the name of your server here. It's the name used for the ingame-mail that will be sent to the lucky winner of your lottery.
	
<winpercentage>2</winpercentage>
Determines how much percent(%) of your server coppers can be won each race. Values from 0 to 100 should be used here^^.

<maxwin>100</maxwin>
You can limit the amount of coppers that can be won each race.

<minwin>30</minwin>
Yan can also set a minimum amount. 

<payalways>2000</payalways>
If your server has enough coppers available, the lottery will be paid after every race.
This setting will determine from which server coppers amount the lottery will always pay.

<pay50chance>1000</pay50chance>
If the coppers are getting low, there will be a 50% chance for the lottery to pay. If it's getting even lower, the chance will decrease to 25%.
50% chance will take effect when your server coppers amount is between the values for <payalways> and <pay50chance>.
25% chance will take effect below the <pay50chance> value.

<finishminplayers>16</finishminplayers>
This will set the minimum number of finishes needed for the lottery to pay. During a race a player finishes more than once, often up to four times or more, depending on the time limit or the number of rounds (and the map of course).
Use higher values here if you want the players to work harder for their coppers ;)
Players finishing more often during a race will have a higher change of winning the lottery.

<onlineminplayers>4</onlineminplayers>
Set the minimum number of players that need to be on your server for the lottery to pay.

<ignoredplayers>
	<ignoredlogin>login_1</ignoredlogin>
	<ignoredlogin>login_2</ignoredlogin>
	<ignoredlogin>login_x</ignoredlogin>
</ignoredplayers>
Enter logins of the players that should not be paid by the lottery. Useful if you are admin and don't want to win at your own lottery.
Every time one of these ignored players "wins", a message will appear saying that the player is too rich and won't be paid.

<ignoredretries>1</ignoredretries>
Lottery always searches for possible winners. If the winner is one of the ignored players, it will search for another player if you set this value higher than 0 (max. 10).
