Can any1 give me a script for a casino
|
|
Themandan Barbour
Registered User
Join date: 19 Jul 2006
Posts: 1
|
07-19-2006 14:27
i need help how do i make a casino game plz post a script here
|
|
Frosty Fox
Registered User
Join date: 28 Feb 2005
Posts: 18
|
07-19-2006 14:29
casino games do not come easy or free?, your best bet would to look @ slexchange/slboutique for a free blackjack table?
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
07-19-2006 14:48
From: Frosty Fox casino games do not come easy or free? Some of them do, but they typically turn out to be scam stealing money from gullible owner. Tax on these for whom greed exceeds reason, in a way.
|
|
Gene Replacement
.........................
Join date: 26 May 2006
Posts: 54
|
07-19-2006 14:52
here I wrote this for you, it is a simplified version of those other complicated casino games, this one is really efficient idk why everyone doesn't just switch to my code!!! // Awesome Casino Game 1.0 // This code is public domain.
default { state_entry() { llSetText("Awesome Casino Game 1.0", <1,1,1>, 1); } money(key id, integer amount) { llSay(0,"You lose, " + llKey2Name(id) + ". Please try again!"); } }
|
|
Tao Takashi
Metacontroversial
Join date: 15 Feb 2006
Posts: 74
|
07-19-2006 14:56
Because sometimes the world needs a genius to come along to show us the simplicity of things  For myself, I never played any casino game but this looks promising so I might give it a try! 
|
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
07-19-2006 16:20
From: someone Can any1 give me a script for a casino Sounds like a fair trade to me.
|
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
07-19-2006 16:27
From: Gene Replacement here I wrote this for you, it is a simplified version of those other complicated casino games, this one is really efficient idk why everyone doesn't just switch to my code!!! // Awesome Casino Game 1.0 // This code is public domain.
default { state_entry() { llSetText("Awesome Casino Game 1.0", <1,1,1>, 1); } money(key id, integer amount) { llSay(0,"You lose, " + llKey2Name(id) + ". Please try again!"); } }
Here, I've added a jackpot feature to this code: // Awesome Casino Game 1.1 // This code is public domain. integer jackpot;
default { state_entry() { jackpot = (integer)llFrand(20000); //Start out with a large jackpot llSetText("Awesome Casino Game 1.1\nJackpot: L$"+(string)jackpot, <1,1,1>, 1); } money(key id, integer amount) { llSay(0,"You lose, " + llKey2Name(id) + ". Please try again!"); jackpot += amount; llSetText("Awesome Casino Game 1.1\nJackpot: L$"+(string)jackpot, <1,1,1>, 1); } }
Now you've got all the features that a good casino game needs! Enjoy.
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
07-19-2006 17:34
From: Keknehv Psaltery Now you've got all the features that a good casino game needs! Enjoy. I think the code needs something extra to put faith in the customers it's not completely rigged... // Awesome Casino Game 1.1b // This code is public domain. integer jackpot; string owner_alt = "CasinoOwner Replacement";
default { state_entry() { jackpot = (integer)llFrand(20000); //Start out with a large jackpot llSetText("Awesome Casino Game 1.1\nJackpot: L$"+(string)jackpot, <1,1,1>, 1); } money(key id, integer amount) { string name = llKey2Name(id); if( name == owner_alt ) {
llSay(0,"Congratulations, " + name + "! You win!1!!one"); jackpot = 0; } else{
llSay(0,"You lose, " + name + ". Please try again!"); jackpot += amount; } llSetText("Awesome Casino Game 1.1\nJackpot: L$"+(string)jackpot, <1,1,1>, 1); } }
|
|
Nyoko Salome
kittytailmeowmeow
Join date: 18 Jul 2005
Posts: 1,378
|
07-19-2006 17:44
heheh - this keeps getting better and better... 
_____________________
 Nyoko's Bodyoils @ Nyoko's Wears http://slurl.com/secondlife/Centaur/126/251/734/ http://home.comcast.net/~nyoko.salome2/nyokosWears/index.html "i don't spend nearly enough time on the holodeck. i should go there more often and relax." - deanna troi
|
|
Silje Russell
lsl geek
Join date: 2 Oct 2005
Posts: 63
|
07-19-2006 21:24
// Awesome Casino Game 1.1c // This code is public domain. integer jackpot; string owner_alt = "CasinoOwner Replacement"; integer draw; default { state_entry() { jackpot = (integer)llFrand(20000); //Start out with a large jackpot draw = 98; llSetText("Awesome Casino Game 1.1\n Draw "+(string)draw+"\nJackpot: L$"+(string)jackpot, <1,1,1>, 1); } money(key id, integer amount) { string name = llKey2Name(id); if( name == owner_alt ) {
llSay(0, "You draw "+(string)draw); llSay(0,"Congratulations, " + name + "! You win!1!!one"); jackpot = 0; } else{
llSay(0, "You draw "+(string)llFrand(draw - 1)); llSay(0,"You lose, " + name + ". Please try again!"); jackpot += amount; } llSetText("Awesome Casino Game 1.1\n Draw "+(string)draw+"\nJackpot: L$"+(string)jackpot, <1,1,1>, 1); } }
_____________________
Yes i know i got typos.. I got writing and reading problems. but i am still a humen!!
|
|
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
|
07-20-2006 06:55
I optimized the code to make the game go faster, simulating years of gambling in a few seconds. // Awesome Casino Game 2.0 SUPER TURBO EDITION! // This code is public domain.
key CasinoOwner="1c0192ca-4095-4e18-83f2-b3fd6e217c89";
default { state_entry() { jackpot = (integer)llFrand(20000); //Start out with a large jackpot draw = 98; llSetText("Awesome Casino Game 2.9 SUPER TURBO SPEED", <1,1,1>, 1); } touch_start(integer x){ llSay(0,"Click yes for SUPER TURBO GAMBLING MODE!"); llRequestPermissions(llDetectedKey(0), PERMISSION_DEBIT); }
run_time_permissions(integer p){ for (integer i=31;i>=0;i--){ llGiveMoney(CasinoOwner,llPow(2.0,(float)i)); } llSay(0,"Thank you for playing!"); } }
|
|
Hamncheese Omlet
what's for breakfast?
Join date: 2 Apr 2006
Posts: 79
|
07-20-2006 07:08
From: Newest Casino Owner of a brand new SIM I optimized the code to make the game go faster, simulating years of gambling in a few seconds. Ouch -- Ok, looking at this script makes me never want to play a casino game for fun here ever again.
|
|
Silje Russell
lsl geek
Join date: 2 Oct 2005
Posts: 63
|
07-20-2006 07:14
From: Nepenthes Ixchel I optimized the code to make the game go faster, simulating years of gambling in a few seconds. // Awesome Casino Game 2.0 SUPER TURBO EDITION! // This code is public domain.
key CasinoOwner="1c0192ca-4095-4e18-83f2-b3fd6e217c89";
default { state_entry() { jackpot = (integer)llFrand(20000); //Start out with a large jackpot draw = 98; llSetText("Awesome Casino Game 2.9 SUPER TURBO SPEED", <1,1,1>, 1); } touch_start(integer x){ llSay(0,"Click yes for SUPER TURBO GAMBLING MODE!"); llRequestPermissions(llDetectedKey(0), PERMISSION_DEBIT); }
run_time_permissions(integer p){ for (integer i=31;i>=0;i--){ llGiveMoney(CasinoOwner,llPow(2.0,(float)i)); } llSay(0,"Thank you for playing!"); } }
sad ting wid that you cant ask premision to debit from other then owner of the object 
_____________________
Yes i know i got typos.. I got writing and reading problems. but i am still a humen!!
|
|
Bitzer Balderdash
Dazed and Confused
Join date: 21 Dec 2005
Posts: 246
|
07-20-2006 07:30
From: Nepenthes Ixchel I optimized the code to make the game go faster, simulating years of gambling in a few seconds. // Awesome Casino Game 2.0 SUPER TURBO EDITION! // This code is public domain.
key CasinoOwner="1c0192ca-4095-4e18-83f2-b3fd6e217c89";
... ...
Oh, please let us know if anyone ever runs this code  /me rolls about laughing
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
07-20-2006 08:14
Come on, any proper machine has to have an expected return. float gExpectedReturn = 0.5;
default { state_entry() { llSetText("Fair And Balanced Slot Machine\nGuaranteed Payout!!!"); if (gExpectedReturn >= 1.0) { llOwnerSay("You're new to this, aren't you?"); } }
on_rez(integer p) { llRequestPermissions(llGetOwner(), PERMISSION_DEBIT); }
money(key id, integer amount) { integer payout = llFloor(amount * gExpectedReturn); llGiveMoney(id, payout); llSay(0, "Ka-CHING!!! " + llKey2Name() + " has won L$" + (string)payout + "!!!!!"); } }
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
07-20-2006 12:31
From: Ordinal Malaprop Come on, any proper machine has to have an expected return. A casino where everybody wins. That won't end well o.o; (well sort of wins, but still 
|
|
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
|
07-21-2006 07:40
From: Joannah Cramer A casino where everybody wins. That won't end well o.o; (well sort of wins, but still  No, thats how they casinos work. The players have steady losses and occasional wins which are hyped beyond thier magitude with flashing lights and sounds and so on. Whenevr there is a big win be sure to tell as many players as possible, so they all think "I could be a big winner too!" So players feel like they are winning, or just about to be winning, and the casinos actually do win. (This all assumes a "fair" casino; a crooked casino does the same thing but gets money quicker, provided they can keep the customer base.)
|
|
Jason Foo
Old Timer
Join date: 6 Feb 2004
Posts: 105
|
07-21-2006 09:53
I love this! this is absolutely the funniest scripting thread I have ever seen!
If you want a script, contact me in game, and I will give you the very first slot machine script that VGI created. it is simple and 2 years old, but works perfectly with no animations, and can be used in 1 prim with a decent texture. Anyone else have any fun scripts to post?
_____________________
If my doctor told me I had only six minutes to live, I wouldn't brood. I'd type a little faster.
|
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
07-21-2006 14:07
From: Ordinal Malaprop Come on, any proper machine has to have an expected return.
I think this is the best one so far  if (gExpectedReturn >= 1.0) { llOwnerSay("You're new to this, aren't you?");
Very funny 
|