[ASECO2.x] Plugin | Lottery

This forum is dedicated to the Aseco/Rasp 2 server records and control script by Flo and Assembler Maniac. Announcements and issues can be discussed in this forum.

Moderators: Flo, Assembler Maniac, f*ckfish, TM-Patrol

Post Reply
User avatar
J-S
happy cruiser
happy cruiser
Posts: 149
Joined: 24 Apr 2008 18:20
Owned TM-games: TMN,TMUF,TMO,TMS
Manialink(s): shark
Location: Grenoble - France
Contact:

[ASECO2.x] Plugin | Lottery

Post by J-S » 15 Aug 2008 09:57

Lottery Beta

Works with ASECO2.x
Description: This is a Lottery Coppers, It take only TMU's players...

I'm not in favour to this kind of plugin, but Aseco misses plugin enormously contrary to other records's controllers. Many people announced their interest for this plugin. I thus decided to develop it to enrich the plugins's list present on Aseco


The plugin provide some Admin's commands :

Admin command :
- /lottery on : Run plugin
- /lottery off: Stop plugin
- /admin lotteryrestart: Reload Xml file


Lottery in chat :
Image


======================================

Installation :
- Put plugin in plugins directory.
- Edit plugins.xml and add this line :

Code: Select all

<plugin>plugin.lottery.php</plugin>
Edit xml files to change messages, change name's bot or change settings...

You can add colors in config.xml to personalise it ...

Code: Select all

    <colors>
      ...
      <lottery>$FD2</lottery>
      ...
    </colors>
The plugin store winners and their gift in aseco.log


Download v0.50b (zip contains xml files and plugin)(it's beta version ... Some bugs can appear! Don't hesitate to report them)



If you see suggestions or bugs, do not hesitate to communicate them.



=====================================
My others plugins :
Infoteam : here
QuizBot : here
JokeBot : here
Betting Forever : In dev and beta testing ...
Last edited by J-S on 16 Aug 2008 10:39, edited 2 times in total.

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: [ASECO2.x] Plugin | Lottery

Post by w1lla » 15 Aug 2008 12:38

Code: Select all

				$low = "{#lottery}Need at least {#highlite} $this->MinPlayers {#lottery} TMUF's players";	line 87.		$numberoftmuplayers = 1; // can be changeable.

Code: Select all

	<MinPlayers>1</MinPlayers> <!-- put a joke every 180 secondes-->
lottery.xml never leave old data standing. It may sound weird but its strange to see that.

Code: Select all

				$low = "{#lottery}Need at least {#highlite} $this->MinPlayers {#lottery} TMUF's players";
added a thing on line 170.

Code: Select all

			if( $numberoftmuplayers >= 1 ) // can be changeable.
as it says on line 99.

and i get a really strange error that i cant find in my logfile even with debug active. Will try to see that one coming again. But i think it has to do with the event onEndrace.

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

User avatar
J-S
happy cruiser
happy cruiser
Posts: 149
Joined: 24 Apr 2008 18:20
Owned TM-games: TMN,TMUF,TMO,TMS
Manialink(s): shark
Location: Grenoble - France
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by J-S » 15 Aug 2008 16:19

i added some config in xml file :thumbsup:
i fixed a bug when you active TopPlayers option
i think i have fix the beug with the old data standing ...

On the other hand, i haven't error with debug mode :? If you can provide me this error.

I send you the new version :D

User avatar
J-S
happy cruiser
happy cruiser
Posts: 149
Joined: 24 Apr 2008 18:20
Owned TM-games: TMN,TMUF,TMO,TMS
Manialink(s): shark
Location: Grenoble - France
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by J-S » 16 Aug 2008 10:40

You will be able to find the link of the beta in my first post :thumbsup:

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by Ant » 08 Mar 2009 08:20

will your plugins work with XAseco ??

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by Assembler Maniac » 08 Mar 2009 13:34

XXX-Ant wrote:will your plugins work with XAseco ??
No, it won't.

In his first post it explicitly says "ASECO 2.x".

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by Ant » 09 Mar 2009 00:13

Assembler Maniac wrote:
XXX-Ant wrote:will your plugins work with XAseco ??
No, it won't.

In his first post it explicitly says "ASECO 2.x".
Fair enough, even though I did see that, I thought maybe - just, maybe :wink:

So the only lottery for XAseco that I can find at the moment is in this thread and the zip is also linked here

So, does anyone know of any others ??

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by Assembler Maniac » 09 Mar 2009 04:06

In general, Flo & myself (and from what I remember, Xymph) don't support any of the lottery/betting plugins.

TrackMania is for racing, not betting or random awards.

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by Ant » 09 Mar 2009 05:38

Yeah - but its just an extra bit of fun - and you can make coppers out of it :wink:

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: [ASECO2.x] Plugin | Lottery

Post by w1lla » 09 Mar 2009 06:46

Assembler Maniac wrote:In general, Flo & myself (and from what I remember, Xymph) don't support any of the lottery/betting plugins.

TrackMania is for racing, not betting or random awards.
K but who came up with karma as it is a little about awarding a track?

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

TMN
smooth traffic navigator
smooth traffic navigator
Posts: 285
Joined: 16 Jul 2006 09:36
Owned TM-games: TMN, TMU
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by TMN » 09 Mar 2009 09:48

Trackmania is just as much about creativety as it is about driving, the coppers are a part of the game. And the intention from nadeo was that players should use them ??? So i dont see any reason not to make plugins like this, it only bring more fun to the game.

Shady.
>>--- Join us at Catch Gamer 100k server in NOR. ---<<
Image

Assembler Maniac
Pit Crew
Pit Crew
Posts: 1493
Joined: 03 Jun 2006 13:24
Owned TM-games: TMU
Contact:

Re: [ASECO2.x] Plugin | Lottery

Post by Assembler Maniac » 09 Mar 2009 11:11

w1lla wrote:
Assembler Maniac wrote:In general, Flo & myself (and from what I remember, Xymph) don't support any of the lottery/betting plugins.

TrackMania is for racing, not betting or random awards.
K but who came up with karma as it is a little about awarding a track?
"Awarding" a track is a lot different. It's primarily for getting rid of tracks that players don't like.

Post Reply