chrcoe01
|
|
October 10, 2012, 01:29:23 PM |
|
I posted that and I KNEW someone would quote just that part
|
"You may delay, but time will not, and lost time is never found again." -Benjamin Franklin
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1333
|
|
October 11, 2012, 04:12:12 AM |
|
I posted that and I KNEW someone would quote just that part
I tried not to, but something compelled me to do it.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
dstruct2k
Newbie
Offline
Activity: 48
Merit: 0
|
|
January 19, 2013, 08:05:10 PM |
|
A PowerShell Version: --snipped-- If someone thinks this is worth a donation... 1J66vZHf1oFPHFhjFBtbEqxkJahdF3vetu Thanks payb.tc for your nice PHP Script :0) Donation on the way I've made a few changes to the PowerShell script just to make it a bit nicer on the end-user, all the configurable variables are in the first chunk of code. I also bet on a different payout rate, but that's configurable too. http://pastebin.com/dS1FqjpA1LFuotBujG44YeLskhivdy9MbpMyuCnCoA and 1J66vZHf1oFPHFhjFBtbEqxkJahdF3vetu if this helped you make some decent coin.
|
|
|
|
constitution
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 26, 2013, 12:48:30 AM |
|
Awesome!
|
|
|
|
Sovereign108
Newbie
Offline
Activity: 56
Merit: 0
|
|
January 26, 2013, 01:55:29 PM |
|
This is the best way to go bankrupt!
;(
|
|
|
|
frozenkai
Member
Offline
Activity: 86
Merit: 10
|
|
January 26, 2013, 08:12:06 PM |
|
How would I set this up?
|
My hard drive died and I lost all my bitcoins, help me out? 19BsFvdjtVDPHhdcYqBUi1bZ9xRopzbRjC
|
|
|
fcmatt
Legendary
Offline
Activity: 2072
Merit: 1001
|
|
January 26, 2013, 08:56:16 PM |
|
How would I set this up?
Download the script then burn your usd or send bitcoins to a bad address to be lost forever. That is the end result if you play long enough with this system. Mathematically proven to lose over time due to a run of bad luck.
|
|
|
|
zvs
Legendary
Offline
Activity: 1680
Merit: 1000
https://web.archive.org/web/*/nogleg.com
|
|
January 28, 2013, 12:45:31 AM |
|
How would I set this up?
I guess that'd depend on your OS
|
|
|
|
frozenkai
Member
Offline
Activity: 86
Merit: 10
|
|
January 28, 2013, 09:24:20 PM |
|
How would I set this up?
I guess that'd depend on your OS Windows 7
|
My hard drive died and I lost all my bitcoins, help me out? 19BsFvdjtVDPHhdcYqBUi1bZ9xRopzbRjC
|
|
|
|
tribalmind
Newbie
Offline
Activity: 9
Merit: 0
|
|
February 02, 2013, 01:24:48 AM |
|
I am no coder, but would like some advice in modding the phpbot to allow for a fraction of balance as MIN_BET and for it to recalculate after any win, same for MAX bet, also if MAX_BET reached start over
i did try to modify the script by myself to allow this but received
Object of class jsonRPCClient could not be converted to int in XXXXX/bot2.php on line 14
Or
PHP Notice: Object of class jsonRPCClient could not be converted to int in XXXXX/bot2.php on line 10
Or
PHP Fatal error: Can't use method return value in write context in XXXXX/bot2.php on line 10
Any Advice would be appreciated
|
|
|
|
payb.tc (OP)
|
|
February 02, 2013, 01:49:57 AM |
|
I am no coder, but would like some advice in modding the phpbot to allow for a fraction of balance as MIN_BET and for it to recalculate after any win, same for MAX bet, also if MAX_BET reached start over
i did try to modify the script by myself to allow this but received
Object of class jsonRPCClient could not be converted to int in XXXXX/bot2.php on line 14
Or
PHP Notice: Object of class jsonRPCClient could not be converted to int in XXXXX/bot2.php on line 10
Or
PHP Fatal error: Can't use method return value in write context in XXXXX/bot2.php on line 10
Any Advice would be appreciated
maybe show us lines 10 & 14 in bot2.php, or paste the whole thing
|
|
|
|
tribalmind
Newbie
Offline
Activity: 9
Merit: 0
|
|
February 02, 2013, 02:13:16 AM |
|
<?php require_once('jsonRPCClient.php'); /** BITCOIN **/ $btcu = array("user" => "xxx", // RPC Username "pass" => "xxx", // RPC Password "host" => "localhost", // RPC Hostname/IP "port" => 8332); // RPC Port $b = new jsonRPCClient("http://{$btcu['user']}:{$btcu['pass']}@{$btcu['host']}:{$btcu['port']}");
define('MIN_BET', 0.0633399); define('MAX_BET', 2); define('ADDRESS', '1dicec9k7KpmQaA8Uc8aCCxfWnwEWzpXE');
$bet = MIN_BET; $total_fees = 0; $count = 0; $count_won = 0; while (($bet <= MAX_BET) && ($count_won < 300)) { $balance_a = $b->getbalance('*', 0); if (!isset($starting_balance)) $starting_balance = $balance_a; if($b->getbalance('*', 1) < $bet) { // If we don't have enough confirmed bitcoins to send to satoshi dice... echo "Waiting for confirmed balance"; while($b->getbalance('*', 1) < $bet) { echo "."; sleep(60); // Wait a full minute before checking the balance again. } echo "\n"; } try // Wrapped in a try catch block just incase we run out of cash. { $b->sendtoaddress(ADDRESS, (float) $bet); } catch(Exception $e) { echo "Have: " . $b->getbalance('*', 1) . " Needed: " . $bet . "\n"; die("Ran out of money?\n"); } $balance_b = $b->getbalance('*', 0); $count++; $fee = $balance_a - $balance_b - $bet; $total_fees += $fee; $total_fees = number_format($total_fees,8,'.','')+0
the errors came with 3 different attempts at modifieng the bet amount for it to be a fraction of the balance,
|
|
|
|
KJTetc
Newbie
Offline
Activity: 24
Merit: 0
|
|
February 03, 2013, 03:58:21 AM |
|
So I've got a good understanding of PHP but never heard of JSON. I've got everything you said. How do I make it work?
|
|
|
|
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
Offline
Activity: 1316
Merit: 1043
👻
|
|
February 03, 2013, 04:13:03 AM |
|
So I've got a good understanding of PHP but never heard of JSON. I've got everything you said. How do I make it work? Download jsonRPCClient.php, place it in same directory. But don't try martingale. I lost 100BTC
|
|
|
|
KJTetc
Newbie
Offline
Activity: 24
Merit: 0
|
|
February 03, 2013, 04:16:28 AM |
|
What do I have near the top as the ip address? I get this error right now :
Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\jsonRPCClient.php on line 86
|
|
|
|
KJTetc
Newbie
Offline
Activity: 24
Merit: 0
|
|
February 03, 2013, 04:19:13 AM |
|
That website is down so I downloaded a different version off of github... Guessing that will mess it up.. (Check post above) So I've got a good understanding of PHP but never heard of JSON. I've got everything you said. How do I make it work? Download jsonRPCClient.php, place it in same directory. But don't try martingale. I lost 100BTC
|
|
|
|
tribalmind
Newbie
Offline
Activity: 9
Merit: 0
|
|
February 03, 2013, 09:28:47 PM |
|
BTC2 Bounty for Modding the php bot to: - Make the MIN_BET and MAX_BET a percentage/fraction of the current balance
- If LOSE! use this same amount multiplied until WIN! OR MAX_BET reached
- If WIN! send a fraction of win amount to "1XYZ1" address
- If MAX_BET Reached, start over
- Stop after X amount sent to "1XYZ1" address
- OR count_won grater than XYZ2
- OR after a WIN! and the ratio of win loses is grater than XYZ3 and a minimum of XYZ bets have been played
Always wait for confirmed balance to avoid the larger fees.(no rush to lose everything)
|
|
|
|
fcmatt
Legendary
Offline
Activity: 2072
Merit: 1001
|
|
February 03, 2013, 09:43:35 PM |
|
What do I have near the top as the ip address? I get this error right now :
Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\jsonRPCClient.php on line 86
Your bitcoin client prob need to be in server mode and listening on 127.0.0.1 which is local loopback ip addy.
|
|
|
|
KJTetc
Newbie
Offline
Activity: 24
Merit: 0
|
|
February 03, 2013, 11:34:03 PM |
|
What do I have near the top as the ip address? I get this error right now :
Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\jsonRPCClient.php on line 86
Your bitcoin client prob need to be in server mode and listening on 127.0.0.1 which is local loopback ip addy. How do I start it in server mode? I think I saw a script a while ago on it but I can't remember...
|
|
|
|
|