Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 02-23-2004, 06:52 AM   #1 (permalink)
Forum Novice
 
Join Date: Sep 2002
Location: Calgary, AB Canada
Age: 45
Posts: 310
Send a message via ICQ to Zulu
Default Slot Machine 02/24

Summary:
We have been running this slotmachine on our shard for a couple of weeks. This version is cleaned up, removed a bunch of the images and balanced the odds so players could win more often.

If you get 3 magic hats, then you get a magic show bonus. You can win a bunch of different items and cash.

This is based on actual Las Vegas algorithms and the jackpot, can't be won multi-times a day.

This is based on a partially working script that was posted to this forum, I have lost the person's name who posted it.

*****
Coders
*****
Please becareful when editing the script, the modifier is adjustable (32,64,128,256,512), but you need ot change the virtual wheel locations or you will get errors.

******
Updates
******
This version does not support the custom verdata graphics. I will release another version when this had been tested for a few more weeks.

Description:


Installation:
Download and copy to your custom folder.
Attached Files
File Type: zip SlotMachine.zip (4.2 KB, 1916 views)
Zulu is offline   Reply With Quote
Old 02-23-2004, 07:13 AM   #2 (permalink)
RunUO Core Developer
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 26
Posts: 1,685
Default

nice thank you for sharing i love gamber system but i got 1 question, why are there 6 warnings coming up every time i get errors?
__________________
Ravenal
RunUO - Core Developer
Connect UO - Web Developer
Genesis 2 - Creator

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO


Ravenal is offline   Reply With Quote
Old 02-23-2004, 09:04 AM   #3 (permalink)
Forum Novice
 
Join Date: Sep 2002
Location: Calgary, AB Canada
Age: 45
Posts: 310
Send a message via ICQ to Zulu
Default

Quote:
Originally Posted by awakenlands
nice thank you for sharing i love gambler system but i got 1 question, why are there 6 warnings coming up every time i get errors?
The reason you get errors on the gambler system: It's the way I made the custom card bool. The warnings will not cause any problems and in the new version of gambler that is fixed.
Zulu is offline   Reply With Quote
Old 02-23-2004, 10:19 AM   #4 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
Default

Thanks yet again
Tru is offline   Reply With Quote
Old 02-23-2004, 01:59 PM   #5 (permalink)
RunUO Core Developer
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 26
Posts: 1,685
Default

Quote:
Originally Posted by Zulu
The reason you get errors on the gambler system: It's the way I made the custom card bool. The warnings will not cause any problems and in the new version of gambler that is fixed.
*sigh* is it submitted? If so I'll search :P
__________________
Ravenal
RunUO - Core Developer
Connect UO - Web Developer
Genesis 2 - Creator

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO


Ravenal is offline   Reply With Quote
Old 02-23-2004, 02:05 PM   #6 (permalink)
Forum Expert
 
Join Date: Sep 2002
Age: 27
Posts: 3,855
Send a message via ICQ to Phantom
Talking

__________________
Phantom is offline   Reply With Quote
Old 02-23-2004, 02:13 PM   #7 (permalink)
RunUO Core Developer
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 26
Posts: 1,685
Default

ohh ho someones happy today

Now I just saw that gambler,
__________________
Ravenal
RunUO - Core Developer
Connect UO - Web Developer
Genesis 2 - Creator

Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO


Ravenal is offline   Reply With Quote
Old 02-23-2004, 02:27 PM   #8 (permalink)
Account Terminated
 
Icon's Avatar
 
Join Date: Aug 2003
Location: North Carolina
Age: 37
Posts: 390
Send a message via MSN to Icon
Default

Nice work


Hk
Icon is offline   Reply With Quote
Old 02-23-2004, 08:30 PM   #9 (permalink)
Forum Novice
 
joshw's Avatar
 
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 847
Default

OK now where is the roulette wheel and craps table lol
__________________
To walk among the few of understanding
Admin of Geia Adventures A dead Shard no longer in existsance
joshw is offline   Reply With Quote
Old 02-23-2004, 08:56 PM   #10 (permalink)
Account Terminated
 
Join Date: Jul 2003
Age: 22
Posts: 122
Default

A Little bug: you can open the gump and go play anywhere...
Thiago X is offline   Reply With Quote
Old 02-23-2004, 10:05 PM   #11 (permalink)
Forum Novice
 
Join Date: Sep 2002
Location: Calgary, AB Canada
Age: 45
Posts: 310
Send a message via ICQ to Zulu
Default

Quote:
Originally Posted by Thiago X
A Little bug: you can open the gump and go play anywhere...
I have fixed the zip file, but here is the change...

at line 120 add
if ( !from.InRange( machine.Location, 4 ) )
return;

after
if (!from.Alive)
return;

*******************
should look like

if (!from.Alive)
return;

if ( !from.InRange( machine.Location, 4 ) )
return;
Zulu is offline   Reply With Quote
Old 02-23-2004, 11:36 PM   #12 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 112
Default

Zulu,

Looking good, but I never seem to win. I get lots of doubles, but it never pays me 1000 gold, per:

Match any two:
1 Thousand Gold
TomC is offline   Reply With Quote
Old 02-23-2004, 11:39 PM   #13 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 112
Default

Just a heads up on this one. There doesn't seem to be any consistency on when I win or not.

For example, one time I got

blue potion/red potion/blue potion

Won nothing, another time I got it I won 2500.

Another time I got blue pot/ blue pot/ blue pot and I got 2500.

Weird...


TomC
TomC is offline   Reply With Quote
Old 02-24-2004, 12:38 AM   #14 (permalink)
Forum Novice
 
Join Date: Sep 2002
Location: Calgary, AB Canada
Age: 45
Posts: 310
Send a message via ICQ to Zulu
Default

If you match, the background goes grey.

$2500 - match any 3 blue potions OR match any 3 red potions. I tried to put different potions in the view.

$1000 - match 2 crystal balls OR match 2 burners.
-the any 2 means any 2 spots.

Is that clear as mud?

I have updated the instructions to see if that makes things more clear.
Zulu is offline   Reply With Quote
Old 02-24-2004, 12:43 AM   #15 (permalink)
Forum Novice
 
Join Date: Sep 2002
Location: Calgary, AB Canada
Age: 45
Posts: 310
Send a message via ICQ to Zulu
Default

Quote:
Originally Posted by TomC
Looking good, but I never seem to win.
The odds are for the house

If the slot machine would pay on double on everything the odds would in favor of players.

The magic bonus show, players can win custom armor.
Zulu is offline   Reply With Quote
Old 02-24-2004, 09:35 AM   #16 (permalink)
Forum Novice
 
Fury's Avatar
 
Join Date: Feb 2003
Location: NewYork
Age: 33
Posts: 579
Default

works great, very nice work.
Fury is offline   Reply With Quote
Old 02-24-2004, 09:44 AM   #17 (permalink)
Forum Novice
 
Join Date: Dec 2002
Posts: 585
Send a message via ICQ to bleis
Default

Well I have testet the slotmachine with razor......it turns out that if you like me put 60k in your bag, no matter how long I try the player (me) never gets the backpack emptyed for monny, but alwayes seem to get more and more gold insteed.....
__________________
Founder of...
www.Abyss-Centurian.tk
Finaly opened,
www.NordicMyth.dk
bleis is offline   Reply With Quote
Old 02-24-2004, 09:47 AM   #18 (permalink)
Forum Novice
 
Fury's Avatar
 
Join Date: Feb 2003
Location: NewYork
Age: 33
Posts: 579
Default

really, i tried with 100k and won quite a few but in the end the house always won.. seems pretty close to an actual casino slot from what i saw.
Fury is offline   Reply With Quote
Old 02-24-2004, 09:51 AM   #19 (permalink)
Forum Novice
 
Join Date: Dec 2002
Posts: 585
Send a message via ICQ to bleis
Default

Another thing is, no player can hold the large amount of monny won, they drop to the ground unless your staff
__________________
Founder of...
www.Abyss-Centurian.tk
Finaly opened,
www.NordicMyth.dk
bleis is offline   Reply With Quote
Old 02-24-2004, 12:02 PM   #20 (permalink)
Lurker
 
Join Date: Dec 2003
Posts: 1
Default

Ok, so I'm a complete RunUO noob. I was able to add 1 script add-on cause it was just dropping a file.

First, the custom directory doesnt exist, so I created it in the scripts folder.

Second, once I restart the server, I can't seem to find the command to place the slot machine. I know how to add items, but I dont know the item id for the slot machine.

Any help would be appriciated.

Thanks
__________________
Paul Hendryx
mordred is offline   Reply With Quote
Old 02-24-2004, 01:01 PM   #21 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 112
Default

Well, I was able to lose 60K gold in about 5 minutes, and I tested this 5 times. One 60K session, I won 5K a few times, and I won something from the magical hats, but that money was gone quickly as well.

It is a great gold sink, that is for sure, but I think most players will end up avoiding it, once they realize what it does.... steals your gold.

They are the true test. As staff testing goes, works great, looks great.


TomC
TomC is offline   Reply With Quote
Old 02-24-2004, 01:08 PM   #22 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
Default

Quote:
Originally Posted by mordred
Ok, so I'm a complete RunUO noob. I was able to add 1 script add-on cause it was just dropping a file.

First, the custom directory doesnt exist, so I created it in the scripts folder.

Second, once I restart the server, I can't seem to find the command to place the slot machine. I know how to add items, but I dont know the item id for the slot machine.

Any help would be appriciated.

Thanks
[add slotmachine
Tru is offline   Reply With Quote
Old 02-24-2004, 02:25 PM   #23 (permalink)
Forum Novice
 
Join Date: Dec 2002
Posts: 585
Send a message via ICQ to bleis
Default

Quote:
Originally Posted by mordred
Ok, so I'm a complete RunUO noob. I was able to add 1 script add-on cause it was just dropping a file.

First, the custom directory doesnt exist, so I created it in the scripts folder.

Second, once I restart the server, I can't seem to find the command to place the slot machine. I know how to add items, but I dont know the item id for the slot machine.

Any help would be appriciated.

Thanks
Its rather easy to find in any script what you gotta say to add the item look here

Code:
//slotmachine by zulu, updated Feb 2004
using System;
using Server.Items;
using Server.Gumps;
using Server.Network;

namespace Server.Items
{
   public class SlotMachine : Item  <---- THERE YOU GOT THE NAME
   {
         private int Slot1Graphic = 3823;
         private int Slot2Graphic = 3823;
         private int Slot3Graphic = 3823;

         private int Slot1_x = 108;
now you found the name just say [add slotmachine
__________________
Founder of...
www.Abyss-Centurian.tk
Finaly opened,
www.NordicMyth.dk
bleis is offline   Reply With Quote
Old 02-24-2004, 10:31 PM   #24 (permalink)
Forum Novice
 
Join Date: Jan 2004
Posts: 112
Default

The sequence for when you win 1000 gold on the "match any two" is seemingly random. It is always a pair of items, but which pair varies. Sometimes you get a pair and win nothing. Since this is the most common winnings, it will frustrate players that are unable to see any patterns at all. It is this issue that makes the game an excessive gold sink. Money goes quickly, because half of your 1K winnings are never registered.

Again, great script, but due to the winnings for pairs being all screwy, players will get turned off quickly to this great gambling game.

Hope all this research on this script helps some.


TomC
TomC is offline   Reply With Quote
Old 02-24-2004, 10:56 PM   #25 (permalink)
Forum Novice
 
Join Date: Sep 2002
Location: Calgary, AB Canada
Age: 45
Posts: 310
Send a message via ICQ to Zulu
Default

Quote:
Originally Posted by TomC
The sequence for when you win 1000 gold on the "match any two" is seemingly random. It is always a pair of items, but which pair varies. Sometimes you get a pair and win nothing. Since this is the most common winnings, it will frustrate players that are unable to see any patterns at all. It is this issue that makes the game an excessive gold sink. Money goes quickly, because half of your 1K winnings are never registered.

Again, great script, but due to the winnings for pairs being all screwy, players will get turned off quickly to this great gambling game.
I have found a bug in the script and I posted an update.

the fix is on line 242
if (Slot2 == 4 || Slot2 == 5) // crystal ball, burner
Zulu is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5