[Xaseco] Nouse Betting V1.8.1
Posted: 01 Nov 2009 17:45
- Nouse Betting v1.8.1
Changed back to original version for now.
Update/Bugfix: stolen coppers via donate. Pls test it
the hack for the play panel, by ant:
- solved the problem of stolen coppers
- added a chat message to let all players know if somebody tried to cheat. Also can be just a very slow player^^
you really should use this version, otherwhise your coppers could be gone.
- solved the double click bug now, same login is blocked for 5 seconds
- also some modifications for the chatcommands regarding the double command issue whcih may exist
- added new config "maxbet" which can be used to set a maximum allowed bet amount
due to the bug i recomment to use the actual version.
didn't had much time to test, so pls let me know if it's better now
specially the double click issue. i got it again and tested it now. you still can double click, but if same login nothing should happen, only one "bill popup" should appear, doesnt matter how often you click. same for the accept button as well. i even tried the combination of chat command and button, but i only got one time bill all the time.
- add stunt mode support (i hope)
- improve ( not solved) the double click problem ( i hope)
- added some configs for payback functions
you can now easy decide if coppers are refunded or not, and if, how much tax is deducted before transfer. you can let the server pay all nadeo taxes or player do. even possible to earn coppers.
for win payment you can do same.
this is made by a factor which decides how many times the nadeo tax will be deducted.
stunt mode is still not supported and won't in the near future.
didn't test it quite good, but it should work as before basicly.
pls let me know if it still works after xaseco is running a few days.
- betting panel appears after start round now.
- remod for rounds mode
i couldn't test it really good, so pls try it at your rounds server, it should work now for TA and Rounds.
For those running it on TA only, pls wait till this version is tested in both modes.
update to 1.0 without beta^^:
- fixed panel display off, if skip during timelimits
- fixed wrong payment for acceptors
- fixed some small style issues
i recommend to download the new version!
thanks to all for testing and using. hope it will be good now.
I'm sorry for the error my page had for IE users, FF displayed it still correct. i had an copy&paste mistake in source. Fixed.
Xaseco plugin to serve betting function. all bet participants are fighting for the
stake made by all of them. so it's all about beeing 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.
This is beta only, some server admins already installed and tested it. i tested everything in detail by myself, all was fine so far. but still no warranty for perfect function.
i would appreciate any server admin installing this plugin. pls let me know if all works well. post it here, even if there is something which could be improved. i tried to mind all the details and functions i would like to have with this plugin. but there no demand on beeing perfect here.
hope you all enjoy it.
- /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 theire bet stakes
- /betwin > to view a list of players and theire 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
At new challenge server coppers are checked, if below "minservercoppers" betting
will be disabled. It will also be disabled by admin command. With "betenabled" you
decide if betting is enabled/disabled with xaseco startup.
If nobody started bet during "timelimitbet" seconds, betting will be not allowed for
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 coppers.
The ingame message with coppers 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.
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.
all main positions can be adjusted via the config file.
if you want to edit the whole apperance, check out the manialink section somewhere below.
Same for colors and text of any chatmessage, check out the chat command section at bottom.
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.
Copy plugin.nouse.betting.php into plugins folder.
Copy nouse_betting_config.xml into xaseco root
Add "<plugin>plugin.nouse.betting.php</plugin> into plugins.xml
Configure to ur needs.
Fufi menu entries for betting by Knutselmaster:
Code: Select all
<entry caption='Bet' dependencies='plugin.nouse.betting.php' rights='TMUF' unique='bet'> <entry caption='Bet amount' unique='betamound'> <entry caption='20 Coppers' chatcmd='/bet 20' unique='bet20'/> <entry caption='50 Coppers' chatcmd='/bet 50' unique='bet50'/> <entry caption='100 Coppers' chatcmd='/bet 100' unique='bet100'/> <entry caption='250 Coppers' chatcmd='/bet 250' unique='bet250'/> <entry caption='500 Coppers' chatcmd='/bet 500' unique='bet500'/> <entry caption='1000 Coppers' chatcmd='/bet 1000' unique='bet1000'/> <entry caption='2500 Coppers' chatcmd='/bet 2500' unique='bet2500'/> <entry caption='5000 Coppers' chatcmd='/bet 5000' unique='bet5000'/> <entry caption='10000 Coppers' chatcmd='/bet 10000' unique='bet10000'/> <entry caption='25000 Coppers' chatcmd='/bet 25000' unique='bet25000'/> <entry caption='50000 Coppers' chatcmd='/bet 50000' unique='bet50000'/> </entry> <entry caption='Accept bet' chatcmd='/accept' unique='accept'/> <entry caption='Actual stake' chatcmd='/bettotalstake' unique='bettotalstake'/> <entry caption='Total stake' chatcmd='/betstake' unique='betstake'/> <entry caption='Bet topwins' chatcmd='/betwin' unique='betwin'/> </entry>