RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

CEOTurboSlots V1.0

CEO

Sorceror
CEOTurboSlots V1.0a

/*
Package Name: CEOTurboSlots
Author: CEO
Version: 1.0
Public Release: 12/22/05
Purpose: Real Casino style slots. 14 different themes and progressive jackpots.

Description: This package allows you to add casino style slots to your shard. You can choose
* from 14 different themes that all give different symbols, pay outs, and unique options. You can
* also link slots together for progressive jackpots. Some slots can be configured to give item
* rewards. Special "Casino Club" cards are given out to big jackpot winners allowing you to configure
* some slots just for those players. A top ten board is included that will show recent jackpot
* winners as well as give overall shardwide stats for GMs and above.
*
* Themes:

* Classic, ClassicII, ClassicIII: Modeled after real Las Vegas slots!
* FarmerFaceoff: "Nickle" slots with a farm theme.
* GruesomeGambling: Creepy. Bleeds player now and then and throws out bones. Top prize
* Hooded Shroud of Shadows. More deadly in Fel.
* Holiday1: Christmas themed slot.
* LadyLuck: Gives out luck items, sashe, cloak, or robe.
* MinerMadness: The original minermadness with exploit removed, streamlined bonus round gump,
* and is NOT a gold farm slot!
* OffToTheRaces: Inexpensive slot with a racing theme.
* Pirates: Arr mateys. 10gp slot with a priate ship model as top prize.
* PowerScrolls: Very colorful slot, that changes symbols (and top prize) every 4 hours.
* StatScrolls: The harrower! Watchout this one bites, more deadly in Fel.
* TailorTreats: Barbed kits as top prize.
* TrophyHunter: Uses the animal trophy mounts as symbols.
*
* Slots that give rewards have values assigned to the rewards. I spent many hours profiling and simulating
* these slots, the text file, allodds.txt, shows the statistical odds and simulated odds over many spins.
* Over alot of spins, they *will* remove gold from the economy. Some may seem to payout more
* often, but overall players will have fun while losing their shirts. :)

* In general the different odds are as such:
*
* Loose: 96%-98%
* Normal: 93%-96%
* Tight: 89%-92%
* Extremely Tight: 85%-88%
* Casino Cheats: 79%-84% (Not really cheating. The preferred setting for progressive groups.)
* Random: The machine will randomly bounce around from Loose-CasioCheats every 15 minutes.
* This setting can make a slot appear "hot", but then go "cold" after awhile.
*
* The odds tables are pretty accurate for each machine. They use odds distribution tables like real
* casinos with each reel having it's own symbol distribution/odds table.
*
* Note: A player's luck can also affect odds, though it'll be random and reevaluted every 10-15 minutes
* simular to the Random setting. The player will never know whether their luck helped or not. If the "roll" favors
* the player, the machine's odds will be bumped up by one favorable level, maxing out of course at Loose.
*
* The Percentage is basically the payback. For instance, a slot with a 95% payback odds means that
* for every 100gp played 95gp will be returned to the player.
* So over time and alot of spins/plays the casino's take will be 5%.
*
* Progressive Jackpots:
*
* With progressive jackpots you can link groups of machines together. As people play these slots
* a percentage of the gold played is added to what's called a progressive jackpot. This jackpot
* continues to grow until someone hits the "big one" on a linked machine. Progressive jackpots can
* get to be over several million gp and cause a playing "frenzy" as they grow. Because the odds of
* a machine can be dramtically affected, you should only link machines together that cost the same amount
* to play. IE. do not link a 5gp machine to a 100gp progresssive pool as the 5gp machine WILL become
* a gold farm. It's also recommended that progressive machine's odds are setup to be either Extremely
* Tight or Casino Cheats as over time the statistical payout will increase, and may even go over 100%.
* With Normal and Loose odds the machines have the potentional to be gold farms. Even in Extremely/CasinoCheats
* modes odds may go over 100%, odds like that are normal though, and only the machine that "hits" will
* be temporarily in the red and appear to be a gold farm.
*
* To setup a progressive pool, first set one slot machine's properties to ProgIsMaster = true. Then
* point other machine's property of ProgSlotMaster toward the "Master" slot machine. The more
* you link together the faster the jackpot will rise (as people play those machines).
*
* Other Options:
*
* Active(false): Determins whether a slot is available for play. A new slot will default to the
* Classic theme and Active=false allowing you to configure it before putting it
* online.
*
* AnnounceJackpots(True): Does a shardwide annoucement when someone hits a big jackpot.
* CardClubOnly(False): Only players holding a Casino Membership card may play this slot.
* CreditATMIncrements(10000):Amount to add to credit from bank gold in ATM transfer.
* CreditATMLimits:Varies with theme. The maximum amount that can be withdrawn from bank to machines credit.
* CreditCashOutAt:The maximum amount allowed on a machine before a bank check is put in player's backpack.
*
* ErrorCode: For determining the cause of a slot machine failure.
*
* JackpotRewards: Values are None (no item rewards), RewardOnly(jackpot gives items only), or
* RewardAndCash(jackpot gives rewards AND cash). This value only applies to those
* themes that give item rewards.
*
* MembershipCard(True):Issues a Casino membership card to jackpot winners over 500k.
* See CardClubOnly above. Also makes for a useful "bragging" trophy.
*
* PlayerSounds:Usually defaults to true. These slots are noisy! Designed to attract attention like
* real slots.
*
* ProgPercent(5%): The amount of gp played to be put into a progressive jackpot. See above for configuring
* progressive jackpot pools.
*
* Random Max/Min: The amount of time a Random machine stays on one odds table. Used also for when a
* player's luck has affected the odds table.
*
* ResetTotals: Used to reset the slots totals. Usually not recommended as you'll lose your stats.
*
* ShowPayback(false):Not recommended, but will show the slot's current payback amount to players. Note: GMs
* or higher will always be able to see this figure on the slot.
*
* SlotTheme: The current slot's theme. See Above.
*
* TotalCollected: Total amount collected by this slot.
* TotalNetProfit: The Casino's "Take".
* TotalSpins: The number of times the slot has been played.
* TotalWon: The amount of gp payed out to players.
*
* w_Percentage: Statistical odds of the machine.
* WinningPercentage: Real "current" odds of the machine.
*
* zJackpotStats0-S2: The # of times a particular jackpot has been hit. Jackpot 0 is the
* top line, S1 and S2 are scatter counters.
* zReelOne,ReelTwo,ReelThree: The current symbol line.
*
*
* Profiling/Creating your own machine.
*
* While there are already 14 themes to choose from, you might find yourself bored one day
* and decide to create your own unique machine. This can be as simple as changing the symbols
* and odds table to as complex as creating new rewards. To start you will need to remove the comments on
* the line "#define PROFILE". This option will present you with additional properties and let you
* put the machine into "test" mode. This IS NOT recommended for live shards as it has the potentional
* to be abused and turn your slots into a gold farmers dream or admin's nightmare!
*
* Building a new theme can also be quite complicated the first time, but after a few times you
* can usually create an all new theme in under an hour. I won't go over all the details on doing
* this, you're on your own except for any posts/info I may give in the script's thread. You should
* have a good grasp of how the slots work and especially what payback odds mean as well as generating
* profiling data to verify you're not creating a gold farm.
*
* Using Arte Gordon's XMLSPAWNER? If so leave "#define XMLSPAWNER" below as is.
* If you do not have XMLSPAWNER installed comment out the line. All this does is
* give you a larger property gump to view the slot's properties.
*/
#define XMLSPAWNER
/*
Acknowledgements: Thanks to RoninGT for the original miner madness slot.

Installation: Unzip turboslot1.zip and turboslot2 into your custom script folder and restart.

Usage: ]add TurboSlot
*/

FYI: You don't need to get allodds.zip, this is a file that contains a profile of all the current
themes with their payback odds for the different tables. It IS useful though to understand what the payback odds are for the slots you put on your shard.

Also, turboslot1.zip and turboslot2.zip are required and contain the package. Had to split them up due to 39kb limit of attachments.
 

Attachments

  • turboslot2.zip
    13.2 KB · Views: 985
  • AllOdds.zip
    15.5 KB · Views: 847
  • turboslot1.zip
    30.3 KB · Views: 990

CEO

Sorceror
* -------------------------------------------------------------------
* Top Ten Board.
*
* I've also included a nice litte message board that players can click on to see a list of
* players that have recently won jackpots and encourage play. Put them at your banks and/or casino.
* GMs and above will also have an extra icon that takes you to a shard-wide information gump that
* will display all slots and totals/etc of your casino. Very helpful for an overall view of the
* slots and how much gold they have removed from your economy. It also allows you to get properties of
* a slot machine and zip quickly to a slot machine. You can also set a slot's Active (offline/online)
* property from this gump.
*
* ]add TurboSlotStats
* -------------------------------------------------------------------
* Casino Tokens.
*
* This item allows a player to play the slots for free up until uses remaining hits 0, which it
* then self deletes. A nice way to get people playing your slots is to drop one of these in their
* backpacks while online, or include it your new player startup pack. Defaults to 10 uses, but can
* be setup to do more then that.
*
* ]add CasinoToken {uses} {hue}
* -------------------------------------------------------------------
 

Tannis

Knight
Absolutely wonderful! We have a large casino on our shard, and these will be perfect! Care to come out with a poker game next? ;)
 

Pyro-Tech

Knight
This system is awesome, and it works!!! I have a building set up that act's as an auction house and pub, where on the pub level i have these set up. All the slots work wonderfully, and my players love them.

If you had run the old miner madness slot where it was exploited or alot of players got rich from it (case on my shard) this will fix that really quick....one of my players made over 2 mill on the old slot before i figured it out and removed it, but once i placed these, he has said he lost most of his fortune.


And it is neat that luck has a slight effect on it

Kudos to you CEO, and hope to see some new themes come out.

Question, if someone does a theme, can it be submitted and easily added to another person's slot? One thing a few people have complained about is not having a slot for smiths like the tailor treat's one....so i think i may try that first, and if possible, submit it

again thanks CEO ;):)
 

etherkye

Wanderer
hmm, i'm getting 2 errors


- Error: Scripts\Custom\turboslot\turboslot.cs: CS0246: (line 1086, column 35)
The type or namespace name 'XmlPropertiesGump' could not be found (are you missi
ng a using directive or an assembly reference?)
- Error: Scripts\Custom\turboslot\turboslotstatsgump.cs: CS0246: (line 285, col
umn 39) The type or namespace name 'XmlPropertiesGump' could not be found (are y
ou missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 

Ceksu

Wanderer
Haa, so you finally got your slots wrap up, good for you :)

I am still very much incredulous about slots but I am sure that many people will like your turboslots :)

Keep up the good work!
 

CEO

Sorceror
Pyro-Tech said:
Question, if someone does a theme, can it be submitted and easily added to another person's slot? One thing a few people have complained about is not having a slot for smiths like the tailor treat's one....so i think i may try that first, and if possible, submit it

again thanks CEO ;):)
For now, please do not repost my stuff. If you create a new theme you can post the odd tables and setup code/diffs I guess, but I'd rather not have alot of versions floating around. Feel free to do anything on your local shard.

Yeah... I kind of put off the smithy one. Mostly because after working on this for several weeks it really pissed me off when the first person I talked to asked for something else! Kind of rude, it's like I'm giving out a cadillac and rather then being satisfied with it, they ask for a better radio! lol.. Oh well, I'm used to the "gimmes" crowd from all the other stuff I've release on other forums. I'll probably do a smithy one, but not really sure what the rewards at the top line would be since there are so many runics. Maybe a random runic? Or? I'm open to suggestions for themes, though don't expect them to get done immediately. While someone could add themes for their own shards, it's probably easier if I do them or consolidate them into the released version....

Tannis said:
Absolutely wonderful! We have a large casino on our shard, and these will be perfect! Care to come out with a poker game next? ;)
I'm about 80%-90% done with video Keno, so that'll be next. :)
 

CEO

Sorceror
etherkye said:
hmm, i'm getting 2 errors


- Error: Scripts\Custom\turboslot\turboslot.cs: CS0246: (line 1086, column 35)
The type or namespace name 'XmlPropertiesGump' could not be found (are you missi
ng a using directive or an assembly reference?)
- Error: Scripts\Custom\turboslot\turboslotstatsgump.cs: CS0246: (line 285, col
umn 39) The type or namespace name 'XmlPropertiesGump' could not be found (are y
ou missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
Please read the instructions. Specifically related to #define XMLSPAWNER that I clearly state what to do with it.
 

Tintamar

Sorceror
Awesome job CEO






This is the best Sig I have seen on here.
Wish everyone would live by that!
Code:
CEO
If you're not a moderator, don't moderate.
If you don't have anything positive to say, shut up.
ArteGordon's Sig says it best: "Be respectful of others. "
 

Pyro-Tech

Knight
CEO said:
For now, please do not repost my stuff. If you create a new theme you can post the odd tables and setup code/diffs I guess, but I'd rather not have alot of versions floating around. Feel free to do anything on your local shard.

Yeah... I kind of put off the smithy one. Mostly because after working on this for several weeks it really pissed me off when the first person I talked to asked for something else! Kind of rude, it's like I'm giving out a cadillac and rather then being satisfied with it, they ask for a better radio! lol.. Oh well, I'm used to the "gimmes" crowd from all the other stuff I've release on other forums. I'll probably do a smithy one, but not really sure what the rewards at the top line would be since there are so many runics. Maybe a random runic? Or? I'm open to suggestions for themes, though don't expect them to get done immediately. While someone could add themes for their own shards, it's probably easier if I do them or consolidate them into the released version....

as i said, i wasn't sure how you had them in there...haven't had a chance to look that closely at it...and was wondering if there was a way and what not...but i completly understand that and would plan on reposting stuff if it was part of the original script

no offense was meant to be givven on that so i appologize :eek:

it is awesome though
 

CEO

Sorceror
Pyro-Tech, that wasn't directed at you at all. Sorry if you read it like that. It was from an experience I had when I first installed this on my shard. After a few hours, the first page that came in was from your run-of-the-mill shard troublemaker asking "Can you do an xxxx theme slot" without so much as a "thanks". Those types of people annoy the hell out of me. So it wasn't directed at you at all, you were very helpful testing it out. BTW, I never did get a reply on the client you were using that was crashing on the OffToTheRaces theme. I suspect older clients without the symbols needed in their mul might have some issues, but I'd expect the symbol to just not show up in the pay table.

abramelin said:
CEO can you add some screenshots?
Hmm, 14 themes = lots of screen shots. It'd be easier to install it. :)
 
This is awesome CEO!
Now I need a script that drags my wife away from them ....:D

I can not wait to see what you come up with next!
Keep up the great work
 

Pyro-Tech

Knight
CEO said:
Pyro-Tech, that wasn't directed at you at all. Sorry if you read it like that. It was from an experience I had when I first installed this on my shard. After a few hours, the first page that came in was from your run-of-the-mill shard troublemaker asking "Can you do an xxxx theme slot" without so much as a "thanks". Those types of people annoy the hell out of me. So it wasn't directed at you at all, you were very helpful testing it out. BTW, I never did get a reply on the client you were using that was crashing on the OffToTheRaces theme. I suspect older clients without the symbols needed in their mul might have some issues, but I'd expect the symbol to just not show up in the pay table.

Hmm, 14 themes = lots of screen shots. It'd be easier to install it. :)

well i appreciate you taking the time to clear that up here :)

the crash hasn't happened yet, i had a mess up when i was updating my client once, and it stopped updating so i think that broke it...i actually haven't re-done the races one. Prolly when christmas passes, ill replace the holiday one with the races one....

i am interested in attempting to make some custom themes....and can't wait for keno :D hehe....mabey you did find your niche though :)

keep up the good work CEO
 
Top