[XAseco] Lottery Plugin

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Dr. Kaputnik
cyclist
cyclist
Posts: 49
Joined: 24 Sep 2007 21:05
Owned TM-games: TMO, TMS, TMNF, TMUF

Re: [XAseco] Lottery Plugin

Post by Dr. Kaputnik » 28 Jul 2009 21:24

@raszkolnyikov:
if you don't want to pay more than 30 coppers, just set the <maxwin> to 30.

@Panther107th:
The message is shown to all players - if the lottery pays. TMNF players can't win coppers, so there will be no message then.

Panther107th
wheelbarrow operator
wheelbarrow operator
Posts: 19
Joined: 26 Nov 2008 12:29
Owned TM-games: TMU
Manialink(s): SkinMania
Location: Zutphen, NL
Contact:

Re: [XAseco] Lottery Plugin

Post by Panther107th » 29 Jul 2009 07:17

Dr. Kaputnik wrote:@Panther107th:
The message is shown to all players - if the lottery pays. TMNF players can't win coppers, so there will be no message then.
but I see in the last lines of your script something saying "FOREVER ONLY"

Should it be possible to change that to something like this so there will be a message to all players that the player has won but that the lottery wont pay because he's tmf? I want this message to appear because I get lots of uestion of people asking why the lottery isnt working because they dont see any messages ... :roflol:

Code: Select all

$message = $aseco->getChatMessage('FOREVER_ONLY');
				$aseco->client->query('ChatSendServerMessageToLogin', $aseco->formatColors($message), $player->login);
				$aseco->addCall("ChatSendServerMessage", array("\$ff0>> \$F0FLottery: \$FFF$nickname\$z\$F0F\$s won but has no TMUF account, no pay)"));
Image

Dr. Kaputnik
cyclist
cyclist
Posts: 49
Joined: 24 Sep 2007 21:05
Owned TM-games: TMO, TMS, TMNF, TMUF

Re: [XAseco] Lottery Plugin

Post by Dr. Kaputnik » 29 Jul 2009 08:49

The code you qoute is not from my script, that's obviously a modification which does exactly what you want: showing a message to all users ;) So you just need to replace these lines in the script on your server.

I actually didn't care about TMNF players because I just have a TMUF server and so couldn't check for TMNF players :oops:

Panther107th
wheelbarrow operator
wheelbarrow operator
Posts: 19
Joined: 26 Nov 2008 12:29
Owned TM-games: TMU
Manialink(s): SkinMania
Location: Zutphen, NL
Contact:

Re: [XAseco] Lottery Plugin

Post by Panther107th » 29 Jul 2009 10:04

hehehe, no problem :1

plugin works fine and if I am right it should display messages to all players no matter who wins TMUF or TMF ...

I took the last few lines of your plugin code and added one line for displaying the messages in case a TMF player wins ... since you actually did a check if the winner is a TMF player I think this message should do the trick, can't test right now but will see tonight :roflol:
Image

raszkolnyikov
cyclist
cyclist
Posts: 31
Joined: 20 Mar 2009 22:44
Owned TM-games: 2x TMU, TMUF, TM2

Re: [XAseco] Lottery Plugin

Post by raszkolnyikov » 29 Jul 2009 18:38

OK I try to be VERY clear this time^^

I want the plugin to pay between 10 and 30! But I cant set such a low percentage because i have 20000 coppers on my server.

once more the code:

Code: Select all

<winpercentage>2</winpercentage>
	<maxwin>30</maxwin>
	<minwin>10</minwin>
	<payalways>2000</payalways>
	<pay50chance>1000</pay50chance>
	<finishminplayers>16</finishminplayers>
	<onlineminplayers>4</onlineminplayers>
	<ignoredplayers>
		<ignoredlogin>player1</ignoredlogin>
		<ignoredlogin>player2</ignoredlogin>
		<ignoredlogin>playerx</ignoredlogin>
	</ignoredplayers>
	<ignoredretries>5</ignoredretries>
What should be changed to pay as I want (between 10 and 30) ?


I hope I'm clear this time :lol:

Dr. Kaputnik
cyclist
cyclist
Posts: 49
Joined: 24 Sep 2007 21:05
Owned TM-games: TMO, TMS, TMNF, TMUF

Re: [XAseco] Lottery Plugin

Post by Dr. Kaputnik » 29 Jul 2009 20:13

Ok, what you need is obviously something like a <winpermille> setting instead of <winpercentage>, or even better: my script should support float values instead of integers only, so you can use values like 0.1 or even lower :roll: . Maybe I'll do that in a future release, for now I can't help you.

But I don't understand why you want to pay something between 10 and 30 coppers when you have so much coppers on your server. 30 is already very low, you could be more generous :wink:

raszkolnyikov
cyclist
cyclist
Posts: 31
Joined: 20 Mar 2009 22:44
Owned TM-games: 2x TMU, TMUF, TM2

Re: [XAseco] Lottery Plugin

Post by raszkolnyikov » 30 Jul 2009 00:03

I solved the problem but im looking forward to use the updated version^^

I cant be that generous cause the server hardly gathering any :scene:

anyways thx

2.0 ftw^^



PS. winpermille is a joke or is it serious?

User avatar
Mistral
Pit Crew
Pit Crew
Posts: 1304
Joined: 02 May 2006 15:13
Owned TM-games: tmuf
Contact:

Re: [XAseco] Lottery Plugin

Post by Mistral » 30 Jul 2009 05:01

Your "problem" somehow doesnt make sense.

1. You have 22000 coppers
2. You have maxwin set to 30 because you want to pay between 10-30
3. You cannot be that generous therefor you want to set the percentage <1%

2. and 3. contradict.

Solution: If 1 percent is already too much for you ... just lower maxwin.

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: [XAseco] Lottery Plugin

Post by Ant » 13 Jan 2010 02:37

This is working very nicely for me, cheers mate :thumbsup:

Fill
pedestrian
pedestrian
Posts: 10
Joined: 21 Aug 2009 01:59
Owned TM-games: TMUF

Re: [XAseco] Lottery Plugin

Post by Fill » 20 Jan 2010 23:09

Hi

Thanks for the plugin, i'm using it now for over 3 months and it worked great ... till the 2nd of januari and it stopt paying out. i have over 20k coppers on the server. ingame it's saying that it pays-out. but nobody seems to recieve the coppers anymore. and yes they have a united account.

Please can some-one help me with this problem ... i changed nothing before and after the 2nd of januari. i only restarted xaseco. but no change.

Many thanks in advance

Fill

User avatar
sbone
happy cruiser
happy cruiser
Posts: 181
Joined: 13 Sep 2007 18:11
Owned TM-games: TMUF, TM2
Location: In the sky...
Contact:

Re: [XAseco] Lottery Plugin

Post by sbone » 23 Feb 2010 14:57

Fill wrote:Hi

Thanks for the plugin, i'm using it now for over 3 months and it worked great ... till the 2nd of januari and it stopt paying out. i have over 20k coppers on the server. ingame it's saying that it pays-out. but nobody seems to recieve the coppers anymore. and yes they have a united account.

Please can some-one help me with this problem ... i changed nothing before and after the 2nd of januari. i only restarted xaseco. but no change.

Many thanks in advance

Fill
Same problem for me.
Enough copper, well displayed message to the winner but the winner don't receive the coppers.
The correct amount of copper left from the server but goes to nobody.
-- SbOne --
Public CSb1 portal : http://csb1.sbone.fr -/- Team CSb1 : http://sbone.fr

Dr. Kaputnik
cyclist
cyclist
Posts: 49
Joined: 24 Sep 2007 21:05
Owned TM-games: TMO, TMS, TMNF, TMUF

Re: [XAseco] Lottery Plugin

Post by Dr. Kaputnik » 23 Feb 2010 22:33

I need more information:

Which Xaseco version is installed?
Do you use the original (unmodified) version of my script?
Do the players still get the ingame message of having won coppers?
On which servers (login) is the script used?
Did you try a Xaseco restart?

User avatar
sbone
happy cruiser
happy cruiser
Posts: 181
Joined: 13 Sep 2007 18:11
Owned TM-games: TMUF, TM2
Location: In the sky...
Contact:

Re: [XAseco] Lottery Plugin

Post by sbone » 24 Feb 2010 13:09

Dr. Kaputnik wrote:I need more information:

Which Xaseco version is installed?
Do you use the original (unmodified) version of my script?
Do the players still get the ingame message of having won coppers?
On which servers (login) is the script used?
Did you try a Xaseco restart?
Last version of xaseco : 1.10
Im using your original script
Players still get wining copper message
Im using this scripts on 2 different server and same problem.
Restart of Xaseco don't change anything
Any idea ?
-- SbOne --
Public CSb1 portal : http://csb1.sbone.fr -/- Team CSb1 : http://sbone.fr

Dr. Kaputnik
cyclist
cyclist
Posts: 49
Joined: 24 Sep 2007 21:05
Owned TM-games: TMO, TMS, TMNF, TMUF

Re: [XAseco] Lottery Plugin

Post by Dr. Kaputnik » 24 Feb 2010 19:59

If they receive the message they should also receive the coppers. Maybe there's a problem with their account?

User avatar
sbone
happy cruiser
happy cruiser
Posts: 181
Joined: 13 Sep 2007 18:11
Owned TM-games: TMUF, TM2
Location: In the sky...
Contact:

Re: [XAseco] Lottery Plugin

Post by sbone » 24 Feb 2010 20:43

Dr. Kaputnik wrote:If they receive the message they should also receive the coppers. Maybe there's a problem with their account?
nope, same for my united forever account
-- SbOne --
Public CSb1 portal : http://csb1.sbone.fr -/- Team CSb1 : http://sbone.fr

Post Reply