gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 December 03, 2024, 04:49:49 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  Bingo
gfx
gfxgfx
 

Author Topic: Bingo  (Read 4188 times)

0 Members and 1 Guest are viewing this topic.

Offline gypsyroadhog

  • Forum Member
Bingo
« on: June 21, 2009, 10:46:05 pm »
Hi
I have recently done a little script for bingo, which gives the winner a £500 win, just to add a bit more fun
It also records all winners and updates their total winnings.
What i would like to know....IS it possible to make the winnings random....e.g. £500, £1000, £1500 etc
so no one knows what the jackpot is, untill end of the game....Here's what i did anyways....Hope i can be done

<out type="push" extdata="string">%NAME%</out>
<out type="push" extdata="name"><operator type="strleft" lvalue="%NAME%" rvalue="5"/></out>
<out type="push" extdata="currentwinners"><operator type="readfile" nvalue="C:\Program Files\Metis 2.6\Add-Ons\$name$bingo.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="newcount"><operator type="+" lvalue="$currentwinners$" rvalue="500"/></out>
<out type="file" mode="t" extdata="C:\Program Files\Metis 2.6\Add-Ons\$name$bingo.txt">$newcount$</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c12#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</out>
<out type="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c2#%NAME% #c6#You #c2#Won #c6#£500</out>
<out type="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c6#You #c2#Have #c6#Now #c2#Won #c6#£$newcount$ #c2#At #c6#Bingo</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c12#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</out>

Offline F£¥è®

  • Forum Member
Re: Bingo
« Reply #1 on: June 22, 2009, 01:32:07 pm »
Hi gypsy,
I've not tested this but it should work ok.

Code: [Select]
<out type = "push" extdata = "amount"><operator type = "%" lvalue = "%TICKCOUNT%" rvalue = "5"/></out>
<out type = "push" extdata = "amount"><operator type = "+" lvalue = "$amount$" rvalue = "1"/></out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "1">£250</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "2">£500</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "3">£1000</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "4">£1500</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "5">£2000</out>

<out type="push" extdata="string">%NAME%</out>
<out type="push" extdata="name"><operator type="strleft" lvalue="%NAME%" rvalue="5"/></out>
<out type="push" extdata="currentwinners"><operator type="readfile" nvalue="C:\Program Files\Metis 2.6\Add-Ons\$name$bingo.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="newcount"><operator type="+" lvalue="$currentwinners$" rvalue="$pot$"/></out>
<out type="file" mode="t" extdata="C:\Program Files\Metis 2.6\Add-Ons\$name$bingo.txt">$newcount$</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c12#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</out>
<out type="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c2#%NAME% #c6#You #c2#Won #c6#£500</out>
<out type="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c6#You #c2#Have #c6#Now #c2#Won #c6#£$newcount$ #c2#At #c6#Bingo</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c12#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</out>

Hope this helps  F£¥è®
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Bingo
« Reply #2 on: June 22, 2009, 01:56:53 pm »
Thanks Flyer for the quick reply and for what youve done, i will try this out later
Thanks again for your help  :-D

Offline gypsyroadhog

  • Forum Member
Re: Bingo
« Reply #3 on: June 22, 2009, 06:24:05 pm »
Hi
Been playing a few games but its not quite right
1st i replace £500 with $pot$....that gives different cash wins at end of game....brill
But it is not adding winnings up E.G.

<Timer>       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<Timer>       gypsyroadhog You Won £250
<Timer>       You Have Now Won £0 At Bingo
<Timer>       
<Timer>       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

hope this can be fixed...my heads not quite with it today

Offline gypsyroadhog

  • Forum Member
Re: Bingo
« Reply #4 on: June 22, 2009, 06:28:34 pm »
It is making a folder   C:\Program Files\Metis 2.6\Add-Ons\gypsybingo
But when its open its says 0

Offline F£¥è®

  • Forum Member
Re: Bingo
« Reply #5 on: June 22, 2009, 09:23:26 pm »
Hi Gypsy,
I've tried this in a test room and it works fine,I think the problem was the £ sign in the random numbers.

Code: [Select]
<config>
<command type = "script">
<in>!testcount</in>
<out type = "push" extdata = "amount"><operator type = "%" lvalue = "%TICKCOUNT%" rvalue = "5"/></out>
<out type = "push" extdata = "amount"><operator type = "+" lvalue = "$amount$" rvalue = "1"/></out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "1">250</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "2">500</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "3">1000</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "4">1500</out>
<out type = "push" extdata = "pot" condition = "1" lvalue = "$amount$" rvalue = "5">2000</out>

<out type="push" extdata="name"><operator type="strleft" lvalue="%NAME%" rvalue="5"/></out>
<out type = "push" extdata = "total">J:\Program Files\Metis 2.8\Plugins\$name$bingo.txt</out>
<out type="push" extdata="currentwinners"><operator type="readfile" nvalue="$total$" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="newcount"><operator type="+" lvalue="$currentwinners$" rvalue="$pot$"/></out>
<out type="file" mode="t" extdata="$total$">$newcount$</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c12#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</out>
<out type="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c2#%NAME% #c6#You #c2#Won #c6#£$pot$</out>
<out type="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c6#You #c2#Have #c6#Now #c2#Won #c6#£$newcount$ #c2#At #c6#Bingo</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</out>
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c12#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</out>
</command>
</config>

This should sort it for you.

Regards F£¥è®
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Bingo
« Reply #6 on: June 22, 2009, 10:10:16 pm »
Thanks for quick reply again Flyer
do i keep <in>!testcount</in>
in the script....sorry if i seem a little dum lol

Offline F£¥è®

  • Forum Member
Re: Bingo
« Reply #7 on: June 22, 2009, 10:34:03 pm »
Hi gypsy,
No that was just for me to test it out, just copy and paste from the randomnumber part to the
<out>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c12#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</out> and paste it into the bingo script
or alternatively just remove the £ signs in the random numbers from the first script I posted,it should then work fine.
Hopefully one of these options will get it sorted for you.

Regards F£¥è®
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline gypsyroadhog

  • Forum Member
Re: Bingo
« Reply #8 on: June 22, 2009, 10:54:49 pm »
Trying again mate, will get back...thanks  :-D

Offline gypsyroadhog

  • Forum Member
Re: Bingo
« Reply #9 on: June 23, 2009, 02:25:57 pm »
Works fantastic
Thanks Flyer for all your time
only thing i had to change was J:   to C:
THANKS AGAIN :))

Offline F£¥è®

  • Forum Member
Re: Bingo
« Reply #10 on: June 23, 2009, 06:33:15 pm »
Glad to be of help Gypsy,
anytime F£¥è®
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  Bingo
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.008 seconds with 20 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!