A betting plugin to guess who wins
Plugin to serve betting function. All bet participants are fighting for the stake made by all of them. so it's all about being in front of others again. There are several manialink buttons to serve the chatcommands.
This plugin is tested only in TA mode, but should also work in Rounds.
At every new challenge server planets are checked, if below "minserverplanets" betting will be disabled. It can also be disabled by admin command. With "betenabled" you decide if betting is enabled/disabled with xaseco2 startup.
If nobody started a bet during "timelimitbet" seconds, betting will be not allowed for actual round. If bet started but nobody accepted in "timelimitbet" seconds, bet starter get back his/her stake. Nadeo tax will be deducted.
If bet started and accepted by players but nobody won, stake can be refund or not, depending on "paybacknowin" option. Nadeo tax will be deducted before. Bet participants must have finished the track to be able to win. There are two options ("winneronly") for winning conditions. One is Winner only can win the bet, second is, bet winner need to be in front of other bet participants.
If there is a bet winner he/she will get the stake, in this case Nadeo tax is divided: half is paid by server, half is paid by winner. This system will avoid the server losing too many planets. The ingame message with planets and winmessage could take a while.The time is not influenced by the plugin.
There are 4 different manialink windows:
- bet panel, serving the start panel with 5 buttons to bet different amounts. The amount can be configured via betting_config.xml .
- accept panel, serving the accept button and display the stake.
- win panel, giving only a message of who win and how much, cause chat message only is not enough at end of race.
- state panel, displays the total stake, click it to see a list of all bet participants.
Chatcommands/bet "n" bet any amount of coppers above the "minbet" limit (n = coppers)
/accept to accept the started bet with given stake
/betstake to view a list of players and their bet stakes
/betwin to view a list of players and their bet wins (coppers and count)
/bettotalstake to view list of all participants
MasterAdmin and Admin only:
/betstate ON/OFF to enable/disable betting from next new challenge
Installation1. unzip the script to xaseco2 base directory
2. edit xaseco2's plugins.xml and include the following line:Code:<plugin>plugin.nouse.betting.php</plugin>3. restart xaseco2
SettingsSetting up the plugin is done via xml file nouse_betting_config.xml in the xaseco base directory.
NoteThe plugin will create a new table "betting" in your database, this is necessary to save the betting data like player, nickname, stake, win, wincount.
Changes in v1.0.1- add support for Third-Party Plugins UpToDate
File Version Date Size Downloads nouse_betting2(1.0.1).zip 1.0.1 2012-02-28 9.87 KB 1485 nouse_betting2(1.0).zip 1.0 2012-02-27 9.79 KB 1337