Xaseco2 plugin to serve betting function. All bet participants are fighting for the
stake made by all of them. It's all about beeing in front of others again.
There are several manialink buttons to serve the chatcommands.
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 xaseco 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 splitted. half is payed by server, half is payed by winner. This system will avoid the server losing too much 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.
- - bet[n] bet any amount of planets above the minbet limit
- - acceptaccept the started bet with given stake
- - betstakeview a list of players and theire bet stakes
- - betwinview a list of players and theire bet wins
- - bettotalstakeview list of all participants
- - betstate[on/off] enable/disable betting at new challenge
All main positions as well as all parameters can be adjusted in config.xml .
If you want to edit the whole apperance, check out the manialink section in plugin.nouse.betting.php .
For colors and texts check out the chat command section.
The plugin will create a new table betting in your database, this is necessary to save the betting data like player, nickname, stake, win, wincount.
No need to modify any other existing file.
Installation:Copy plugin.nouse.betting.php into plugins folder.
Copy nouse_betting_config.xml into xaseco root.
Add to plugins.xml :
Configure to your needs.
|Name||Version||Size||Last Change||Downloads||Last Download|
|plugin.nouse.betting.zip||1.0.1||9.8 KB||2012/02/28||1014||2019/01/15 04:23|