|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Nov 2007
Location: indiana
Age: 44
Posts: 52
|
BINGO (Event / Game)
by henry_r 02/01/08 Bingo is a game of chance in which randomly selected numbers are drawn and players match those numbers to those appearing on 5x5 matrices which are pre-printed in books named "Bingo Cards". The first person to have a card where the drawn numbers form a specified pattern is the winner and calls out the word "BINGO!" to alert others and inform the GameMaster of the win. The card must first be properly checked for accuracy before the "win" is officially confirmed at which time the prize is secured and a new game is begun. Description of the game Each bingo player is given a Bingo Card marked with a "grid" containing a unique combination of numbers and a book, "Bingo Called Numbers. The GameMaster notes the player's name and the card number issued in the "Player / Card Number" book (this will be used to easily verify winners later). The winning pattern to be formed on the card is announced before the game starts. On each turn, the GameMaster "randomly" selects a numbered "ball" from the "Bingo Number Bag" and announces the number to all the players. The ball is then set aside in the "Bingo Called Number Bag" so that it cannot be chosen again and the GameMaster notes the called number in the "Bingo Called Numbers" book. Each player searches his card for the called number, and if he finds it, notes it in his "Bingo Called Numbers" book. The element of skill in the game is the ability to search one's card for the called number in the short time before the next number is called. The GameMaster continues to select and announce numbers until the first player forms the agreed pattern (one line, two lines, full house) on their card and shouts out the name of the pattern or "BINGO!". The GameMaster verifies the player's card against the called numbers and declares the win. One of the most common patterns, called full card, blackout and cover-all simply consists of marking all the numbers on the card. Other common patterns are single line, two lines, the four corners, center cross, L, T, Y, postage stamp (2x2 and in a corner) inner square (4 × 4), roving square (3 × 3), and roving kite (a 3 × 3 diamond). Lines can be made horizontally, vertically, or diagonally. Inner and roving squares and kites must be completely filled; roving squares and kites may be made anywhere on the card. Bingo Cards Bingo Cards are books which contain 25 "squares" arranged in five vertical and five horizontal rows; Each space in the "grid" contains a number, except for the center square, which is considered filled. The highest number used is 75. The letters B, I, N, G, O are printed above the five vertical columns, with one letter appearing above each column. The center space is marked "F." The printed numbers on the card correspond to the following arrangement: 1 to 15 in the B column 16 to 30 in the I column 31 to 45 in the N column 46 to 60 in the G column 61 to 75 in the O column Installation Drag and Drop Bingo folder into your customs folder. BingoGameInfo.txt included in main folder for reference. There is one SMALL Distro edit in Scripts/Misc/CharacterCreation.cs on or around line 47; This edit MUST be done in order to use this package look for this line: Code:
private static void PlaceItemIn( Container parent, int x, int y, Item item ) Code:
public static void PlaceItemIn( Container parent, int x, int y, Item item ) Restart server. Useful In-Game Commands [Add BingoGame - adds a complete Bingo Game kit [Add BingoNumbersBag - adds a bag of Bingo Numbers: B1 - O75 [Add BingoCalledNumbersBag - adds a empty bag for holding called numbers [Add BingoCalledNumbers - adds a book for keeping track of called numbers [Add BingoCardBag - adds a bag of Bingo Cards: 1 - 18 [Add BingoCardMasterListBag - adds a bag of Bingo Cards: 1 - 18 / for GameMaster use [Add BingoPlayerCardRegister - adds a book for staff to keep track of player / issued card numbers [Add Bingo - brings up complete menu of Bingo game items Feel free to use this package as you see fit for your application. Enjoy henry_r Update 02/02/08 - removed a few lines on some of the scripts that were tossing warnings --------------------------------------------------
__________________
Scripts: Compiling C# scripts...done (0 errors, 0 warnings) WOOHOO Last edited by Henry_R; 02-02-2008 at 02:46 PM. Reason: update - fixed some warnings |
|
|
|
|
|
#2 (permalink) |
|
Newbie
Join Date: Nov 2007
Location: indiana
Age: 44
Posts: 52
|
hi...
If you have downloaded this package and receive the following: Code:
Warnings:
+ Customs/Bingo/Items/BingoCardBag.cs:
CS0168: Line 23: The variable 'cont' is declared but never used
+ Customs/Bingo/Items/BingoCardMasterListBag.cs:
CS0168: Line 23: The variable 'cont' is declared but never used
+ Customs/Bingo/Items/BingoNumbersBag.cs:
CS0168: Line 22: The variable 'cont' is declared but never used
+ Customs/Bingo/BingoGame.cs:
CS0168: Line 26: The variable 'cont' is declared but never used
I have updated the original post with a new .RAR file with the proper corrections. Make the noted changes yourself or re-download the file from original post. sorry ![]() henry_r
__________________
Scripts: Compiling C# scripts...done (0 errors, 0 warnings) WOOHOO |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
Join Date: Sep 2007
Location: Over there
Posts: 1,564
|
ah nice work on the game man. Looks like fun, well beings I like to go play Bingo on Mondays.
One option I would like to suggest, is for you to set the game up on your own custom designed gump. Maybe you can work that out for another version . But yah man looks like you did a nice job. Keep it up and maybe you can come out with a game for Uno or something lol. Thanks for this. |
|
|
|
|
|
#4 (permalink) |
|
Newbie
Join Date: Nov 2007
Location: indiana
Age: 44
Posts: 52
|
hi...
thanks... I would like to eventually upgrade to a system with 2 items - a main control (animated winch) and a bingo card. The main control would randomly select a bingo number every 10 seconds, highlight the respective number on it's gump and send a overhead message with the number selected. It would have GM controls on the gump to start, pause, resume and reset the game. Players would have access to the same gump, minus the controls and have a use range of 20 tiles. Bingo cards would be available for purchase on a vendor at the event location. The cards would randomly assign numbers in the grid when used the first time. The gump would allow players to select or de-select numbers in the grid, shout Bingo! in a overhead message, or de-select all the numbers (reset). I have come up with a beta design for the gumps (see pic below) but I'm very limited in C# right now... opened my first script about 2 months ago. I'll have to figure out how to make it all work in script form. So maybe in... hmmmm... 2 years? (possibly sooner if I spend a night at a Holiday Inn Express) ![]() thanks again, henry_r ps... if anyone wants to design the above system... please, knock yourself out! --------------------------------------------------------------------------
__________________
Scripts: Compiling C# scripts...done (0 errors, 0 warnings) WOOHOO Last edited by Henry_R; 02-02-2008 at 09:18 PM. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| bingo, event |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|