PDA

View Full Version : StormDICE - site dice command


St0rm
02-10-2004, 04:29 PM
This is a site dice command so people can gamble credits.
If you guys like it, I'll make a whole casino of it :D
So please post any comments/bugs/requests/etc.

Enjoy!

Edit: Download this script at http://www.ioftpd.com/scripts/

Storm-

mr_F_2
02-10-2004, 08:08 PM
i'd like to see No Limit Texas Hold 'em :D

good job

... an idea though:
-make ini option to have user unable to go into minus credits


also i had a user with 0 credits, and ran site dice 1 50000 ... go tthis:


[19:20:15] 200- +----------------------------+
[19:20:15] 200- | You are a lucky guy! |
[19:20:15] 200- | Guessed: 1 |
[19:20:15] 200- | Thrown: 1 |
[19:20:15] 200- | You won 150000 credits! |
[19:20:15] 200- +----------------------------+

[19:21:36] 226- [UL: 5.47MB] [DL: 0.00MB] [Speed: 295638.59K/s] [Free: 38.30GB]
[19:21:36] 226- [Section: upload] [Credits: 153600000.00MB] [Ratio: 1:3]

.... that doesn't make sense, user with 0 credits can get up to 153600000 in 1 shot without having any creds to start off with...credits to gamle with should not exceed current credit count

hot_pit
02-10-2004, 09:15 PM
are you sure the credit part of TransferComplete is in MB and isnt on KB ???? ... and storm forget to get user credits before start dice :p

St0rm
02-11-2004, 03:02 AM
Oops.. will fix those bugs tonite.

St0rm
02-11-2004, 11:00 AM
New release out, fixed the bugs you guys found :rolleyes:
Reget from first post.

V1.1

+ Users can't get into negative credits anymore
+ Users with leech can't gamble anymore

See readme.txt for upgrade/installation instructions.

Oh, and, any ideas for new games? Please post them ;)

mr_F_2
02-11-2004, 11:15 AM
[10:14:37] site dice 5 14
[10:14:40] 200-Exception EConvertError in module stormdice.exe at 00006FAE.
[10:14:40] 200-'' is not a valid integer value.

user has 0 credits.

tried
site dice 5 1 when user had 1mb credit.
same thing

St0rm
02-11-2004, 11:27 AM
Did you add the environment variables as stated in the readme.txt?


[R] site dice 5 1
[R] 200- +--------------------------------+
[R] 200- | You do not have enough credits |
[R] 200- +----------------[ StormDICE ]---+
[R] 200 Command successful.

Working fine here :confused:

mr_F_2
02-11-2004, 12:46 PM
yeah i did, but the readme had
RATIO=%[ratio]

so i changed it to assuming it was right:
RATIO=%[$ratio]

and i have
CREDIT=%[credits(mega)(section)]

...no luck :(

St0rm
02-11-2004, 12:50 PM
they're supposed to be:

CREDIT=%.[credits(mega)(section)]
RATIO=%[ratio]

change them so they look like this and it should work.

Sersen
02-11-2004, 01:44 PM
what about a black jack table ;)

dunno if possible because user must interact with the ftp for getting a new card hmmm

would be funny stuff to add

bye

mr_F_2
02-11-2004, 05:54 PM
works now... but:


[16:51:57] 226-.-================================================== =====-.
[16:51:57] 226- [UL: 10.96MB] [DL: 0.00MB] [Speed: 0.00K/s] [Free: 38.34GB]
[16:51:57] 226- [Section: root] [Credits: 16.49MB] [Ratio: 1:3]
[16:51:57] 226-'-================================================== =====-'
[16:51:57] List Complete: 868 bytes in 0.12 (0.85 KBps)
[16:52:09] site dice 2 15
[16:52:09] 200- +--------------------------------+
[16:52:09] 200- | You do not have enough credits |
[16:52:09] 200- +----------------[ StormDICE ]---+
[16:52:09] 200 Command successful.

yes i do. i understand this works with multiplier, but user doesn't know that and might just assume site dice is broken.

can u change it to allow user to bet all their credits? not just their credits divided by ratio?

St0rm
02-11-2004, 05:58 PM
Will do tomorrow.

_rage_ thegod
02-15-2004, 01:45 PM
2/15/2004 1:57:36 PM DICELOSE: "test" "iND" "1"
2/15/2004 1:57:37 PM DICEWIN: "test" "iND" "3"
02-15-2004 13:57:36 LOGIN: "FTP_Service" "xxx" "xxxxxxxx" "" "x@x"


notice the different format the date is written to the log?
any way to change it since the bot doesnt announce it this way (for me atleast).

St0rm
02-15-2004, 03:09 PM
Fixed.

Reget at first post.

_rage_ thegod
02-15-2004, 03:16 PM
nice, thanks ;)

edit: one more thing :p


02-15-2004 3:06:29 PM DICELOSE: "test" "iND" "10"
02-15-2004 15:06:29 INVITE: "xx" "xxx" "xxxxxxx"


notice the PM? and the time format? still doesnt want to announce.
can we say 1.2a? heh :)

BlkSupraTT
02-15-2004, 04:07 PM
black jack would be cool too :D

St0rm
02-15-2004, 04:08 PM
02-15-2004 22:05:46 DICELOSE: "ioFTPD" "ioftpd" "1000"
Looks fine here. Maybe it's a time setting in windows that's messing it up. Else i wouldn't know.

And for the blackjack part, I'm working on a gamble script atm which will feature a lot of different games :D

BlkSupraTT
02-15-2004, 04:10 PM
can't wait Storm! and great job! :banana:

odd
02-15-2004, 04:23 PM
yeah I script with all-in-one games :)
Sounds great

_rage_ thegod
02-15-2004, 05:46 PM
weird, all the other scripts dont use AM/PM, they all log using the 24h date format.

you have some kind of "dynamic" date stuff, that changes based on the setting in windows, so that if its set to AM/PM, the script will also use AM/PM rather than 24h?

i wondered since the box is set to AM/PM. anything you could do to hard code it to stick with the 24h date format?

St0rm
02-15-2004, 06:03 PM
Try this one. If that doesn't work, I'll do some research tomorrow ;)

Edit: Download this script at http://www.ioftpd.com/scripts/

_rage_ thegod
02-16-2004, 01:56 AM
works like a charm, thanks :)

St0rm
02-16-2004, 08:56 AM
Good. And for the upcoming casino/gamble script, I would like to hear some suggestions for different games.. and the site command that's used for those games on glftpd sites. Thx.