Bitcoin Forum
May 28, 2024, 03:37:31 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 »
41  Economy / Gambling / Re: Selling BTClottery.info on: July 20, 2011, 03:14:23 AM
since there are no other offers, I'll offer 0.2 lol.
Angry
Fine, I'll raise you to 0.3!
42  Economy / Gambling / Re: BTCLotto! TWO DIFFERENT LOTTERY GAMES! on: July 20, 2011, 01:36:59 AM
Bump! Come on guys give it a go!
43  Economy / Gambling / Re: Selling BTClottery.info on: July 19, 2011, 11:15:35 PM
since there are no other offers, I'll offer 0.2 lol.
44  Economy / Investor-based games / Re: Bitcoin Pyramid [alpha-stage, 0.01 btc for first newcomers!] on: July 18, 2011, 07:58:44 PM
What is with this...
http://bitcoinpyramid.com/member/104
45  Economy / Gambling / Re: Selling BTClottery.info on: July 18, 2011, 07:57:36 PM
Why not just use it?
46  Economy / Investor-based games / Re: 1.7 X Your Entry [OPEN] on: July 18, 2011, 03:36:16 AM
Entered. Going to be real mad if I don't get my money back Sad

EDIT: How many confirmations does this require?
One, but im about to go to sleep lol i am on my ipod an its all manual so dont be afraid if its not on the site rightaway

Why do you do it all manually, just have a system to do it automatically...
47  Economy / Gambling / BTC-BOT! on: July 17, 2011, 09:02:13 PM
Well, I threw a gambling part into an IRC bot, it works as follows:
The bot is located in ##btcbot on freenode.
You can play online at: http://webchat.freenode.net/?channels=##btcbot

THE BOT IS NOW OPEN SOURCE AND HAS A GITHUB AT https://github.com/bool-/btcbot

Current Roulette Wager: 0.1

Commands:
+ident - Identifies you with the bot, you must be identifiedwith NickServ in order for it to identify you.
+deposit - Supplies a bitcoin address where you can deposit funds.
+withdraw <sendtoaddress> <amount=all> - Withdraws your funds to the address specified.
+balance - Gives you your current balance.
+roulette <chamber> -
    Bets whatever the wager is at the time on a simple game.
    You have five bullets in a six round revolver and specify which chamber is blank.
    If you get shot, the wager goes directly to the pot.
    If you don't get shot you take 85% of the current pot.
    The pot keeps 15% to keep it up!
+raffle <tickets=1> -
    Buys tickets in a fast-paced raffle game.
    Each ticket is 0.05 BTC and when twenty tickets are purchased it selects a winner and pays them.

    YOU KEEP THE FULL 1 BTC!

Winners:
To be added...
48  Economy / Investor-based games / Re: Bitcoin Pyramid [alpha-stage, 0.01 btc for first newcomers!] on: July 17, 2011, 09:00:33 PM
Joined and deposited 0.95 BTC Tongue
49  Economy / Marketplace / Re: BTCLotto, IRC-style! on: June 20, 2011, 04:43:04 AM
So, is this just for fun? How do we fund our rolls?

There is a !btclotto newaddress and then you send money to the generated address (which is then linked to your hostname).
Once there is one confirmation it will show up in !btclotto balance, then you can do !btclotto roll <wager>.

Once you are done playing you can do !btclotto withdraw <sendtoaddress> [amount], amount being optional, if left blank it will send all of your money to you.
50  Economy / Marketplace / Re: BTCLotto, IRC-style! on: June 20, 2011, 04:36:48 AM
Oops, meant to edit code.
Bump anyways...
51  Bitcoin / Bitcoin Discussion / Re: [BOUNTY] lulzSec secure, private exchange on: June 20, 2011, 01:16:13 AM
LulzSec is nothing more than a bunch of dumb teenagers using entry-level penetration testing tools.
52  Bitcoin / Project Development / Re: Bitcoin IRC Bot on: June 18, 2011, 05:08:01 AM
How do we verify the bot? Will it list all transactions so we can see if it matches what is expected?

Uhm, right now you can't, I'd be able to add it in the future though if it's needed.
53  Economy / Marketplace / BTCLotto, IRC-style! on: June 16, 2011, 05:14:12 AM
Well, I threw a gambling part into my IRC bot, it works as follows:
You get a random number from 1-100 and where:
1-50 loses to the bank
51-89 wins 150% of the wager
90-99 wins 220% of the wager
100 wins the jackpot, you get 90% of it, the system gets 5% and 5% stays.

Every bid, jackpot gets 10% and system gets 5% of the wager.


Minimum bid is is 0.05, although in order to be eligible to win the jackpot, you have to wager 0.1 or more, otherwise if you roll 100 it will just do the standard 220%.


Anyways, if you wanted to give it a shot you can find him in #btcbot on irc.freenode.net.
It is host based, as long as your host doesn't change your balance will remain yours.
If you don't know how to use IRC, use this http://webchat.freenode.net/?channels=#btcbot

Code:
	case "roll":
if(!$args[2]) {
$bot->message($chan, $who[0] . ", use !btclotto roll <wager>");
return 0;
}
if(!is_numeric($args[2])) {
$bot->message($chan, $who[0] . ", number values only!");
return 0;
}
$wager = floatval($args[2]);
if($bitcoin->getbalance($who[2], 1) < $wager || $wager < 0.05) {
$bot->message($chan, $who[0] . ", you cannot wager that amount!!! it must be lower than your balance and at least 0.05");
return 0;
}
$num = rand(1,100);
$amount_won = 0.0;
$jackpot = false;
$winner = false;
$system_fee = $wager * 0.05;
if($num > 50 && $num < 90) {
$amount_won = $wager * 1.5;
$winner = true;
} elseif($num >= 90 && $num < 100) {
$amount_won = $wager * 2.2;
$winner = true;
} elseif($num == 100) {
if($wager > 0.1) {
$amount_won = $pot_balance * 0.90;
$system_fee = $system_fee + ($pot_balance * 0.05);
$jackpot = true;
} else {
$amount_won = $wager * 2.2;
$winner = true;
}
}
if($amount_won > $balance && $jackpot == false) {
$bot->message($chan, $who[0] . ", You rolled a " . $num . " and won more than the bank can pay out, bet lower or have bool_ transfer some spare funds.");
return 0;
}
if($winner) {
$bot->message($chan, $who[0] . ", You rolled a " . $num . " and won, " . $amount_won . " BTC has been sent to your balance.");
$bitcoin->move("bank", $who[2], $amount_won, 0);
} elseif($jackpot) {
$bot->message($chan, $who[0] . ", You rolled a 100 and won the jackpot, " . $amount_won . " BTC has been sent to your balance.");
$bitcoin->move("pot", $who[2], $amount_won, 0);
} else {
$bot->message($chan, $who[0] . ", You rolled a " . $num . " and lost, " . $wager . " BTC has been sent to the bank.");
}
$bitcoin->move($who[2], "bank", $wager, 0);
$jackpot_fee = $wager * 0.1;
$bitcoin->move("bank", "donations", $system_fee, 0);
$bitcoin->move("bank", "pot", $jackpot_fee, 0);
break;
54  Bitcoin / Project Development / Bitcoin IRC Bot on: June 15, 2011, 01:14:11 PM
Anyways, basically I have been working on my bitcoin bot all night, it does this right now like !btcstats and !mktstats <market_symbol>.

It's unique feature at the moment is it's gambling feature, it follows a very similar design to the bitcoinlotto posted earlier where:
1-50 loses to the pot
51-89 wins 170% of the wager
90-100 wins 220% of the wager

If you submit over 0.1 BTC as a wager, you have a chance to win 75% of the pot, the other 25% is reserved for fees and such.


Anyways, if you wanted to give it a shot you can find him in #btcbot on irc.freenode.net.

Here is the source for the gambling feature:
Code:
$bitcoin = new jsonRPCClient('');
$balance = floatval($bitcoin->getbalance("pot", 1));

switch($args[1]) {
case "pot_balance":
$bot->message($chan, $who[0] . ", Pot balance is: " . $balance);
break;
case "balance":
$bot->message($chan, $who[0] . ", Your balance is: " . $bitcoin->getbalance($who[0], 1));
break;
case "newaddress":
$bot->message($chan, $who[0] . ", Your new address is: " . $bitcoin->getnewaddress($who[0]));
break;
case "withdraw":
if(!$args[2]) {
$bot->message($chan, $who[0] . ", use !btcdouble withdraw <sendtoaddress>");
return 0;
}
$balance_you = $bitcoin->getbalance($who[0], 1);
$bot->message($chan, $who[0] . ", You have been sent: " . $balance_you);
$bitcoin->sendfrom("pot", $args[2], $balance_you, 1);
break;

case "roll":
if(!$args[2]) {
$bot->message($chan, $who[0] . ", use !btcdouble roll <wager>");
return 0;
}
$wager = floatval($args[2]);
if($bitcoin->getbalance($who[0], 1) < $wager || $wager < 0) {
$bot->message($chan, $who[0] . ", you cannot wager that amount!!!");
return 0;
}
$num = rand(1,100);
if ($num <= 50) {
$bitcoin->move($who[0], "pot", $wager, 0);
$bot->message($chan, $who[0] . ", You rolled a  " . $num . ", " . $wager . " BTC has been sent to the pot");
} elseif($num > 50 && $num < 90) {
$bitcoin->move($who[0], "pot", $wager, 0);
if(($balance + 0.0005) < $wager*1.7) {
$myFile = "debt";
$fh = fopen($myFile, 'a');
$stringData = "Owe " .$wager*1.7. " to " . $who[0] . "\n";
fwrite($fh, $stringData);
fclose($fh);
$bot->message($chan, $who[0] . ", You rolled a  " . $num . " but the pot is unable to pay you off at the moment, contact bool_ and tell him to send you your winnings.");
return 0;
}
$bitcoin->move("pot", $who[0], $wager*1.7, 0);
$bot->message($chan, $who[0] . ", You rolled a  " . $num . ", " . ($wager*1.7) . " BTC has been sent to your balance");
} else {
$bitcoin->move($who[0], "pot", $wager, 0);
if(($balance + 0.0005) < $wager*2.2) {
$myFile = "debt";
$fh = fopen($myFile, 'a');
$stringData = "Owe " .$wager*2.2. " to " . $who[0] . "\n";
fwrite($fh, $stringData);
fclose($fh);
$bot->message($chan, $who[0] . ", You rolled a  " . $num . " but the pot is unable to pay you off at the moment, contact bool_ and tell him to send you your winnings.");
return 0;
}
$bitcoin->move("pot", $who[0], $wager*2.2, 0);
$bot->message($chan, $who[0] . ", You rolled a  " . $num . ", " . ($wager*2.2) . " BTC has been sent to your balance");
}
break;
default:
$bot->message($chan, $who[0] . ", use !btcdouble <roll|withdraw|newaddress|balance|pot_balance>");
break;
}
55  Bitcoin / Project Development / Re: Auto BTC sending PHP script on: June 15, 2011, 09:09:28 AM
Yeah, I've been trying to win the jackpot but no luck so far Sad
56  Bitcoin / Project Development / Re: Auto BTC sending PHP script on: June 15, 2011, 08:25:53 AM
Code:
<?php
while(1) {
$bitcoind_path '"%ProgramFiles(x86)%\Bitcoin\daemon\bitcoind"';
$sendtoaddress 'fdasfad';
$tax 0.0005;
$betamount 0.1;
$minimumbalance 0.0;
$strbalance =  exec($bitcoind_path.' getbalance');
$balance floatval($strbalance);
if($balance >= $betamount $tax && $balance - ($betamount $tax) > $minimumbalance) {
echo exec($bitcoind_path.' sendtoaddress '$sendtoaddress ' ' $betamount) . '\n';
echo 'sent!';
} else {
die();
}
}
?>

Changed your sleep() to die(). I can't see any point in retrying the loop if there isn't enough money.

It loops over and over again until there is money then it sends it.
57  Bitcoin / Project Development / Re: The Bitcoin Lottery on: June 15, 2011, 04:25:31 AM
I am addicted! I just keep losing. Sad
58  Bitcoin / Project Development / Auto BTC sending PHP script on: June 15, 2011, 04:13:34 AM
Code:
<?php
while(1) {
$bitcoind_path '"%ProgramFiles(x86)%\Bitcoin\daemon\bitcoind"';
$sendtoaddress 'fdasfad';
$tax 0.0005;
$betamount 0.1;
$minimumbalance 0.0;
$strbalance =  exec($bitcoind_path.' getbalance');
$balance floatval($strbalance);
if($balance >= $betamount $tax && $balance - ($betamount $tax) > $minimumbalance) {
echo exec($bitcoind_path.' sendtoaddress '$sendtoaddress ' ' $betamount) . '\n';
echo 'sent!';
} else {
sleep(10);
}
}
?>

I use it for sites like bitcoin lottery and such so I can continue to waste my mining earnings Cheesy

I will add JSON-RPC support in the future, this was just a test script.

If you like it consider donating a small amount to 17kKVg1NP8ciHG3qKoZirc7UP3NE1AFQC6
59  Other / Beginners & Help / Re: Introduce yourself :) on: June 15, 2011, 04:10:53 AM
I've been on for over 14 hours and have over 5 posts and I am still a Newbie, anyways...

I'm Anthony a now Junior in high-school and I enjoy programming. Currently, I know a fair bit of Haskell, Scala, Common Lisp, Clojure, Java, PHP, Python, C, and x86 assembly (specifically masm). I spent most of my time finding/writing game hacks before I stumbled upon bitcoin, now I spend most of my time betting them and mining them.
60  Other / Beginners & Help / Re: Predictions after tomorrow's difficulty increase? on: June 15, 2011, 04:06:51 AM
i am hoping it jumps back up to $30-40 each

At least.

Yeah, I would be happy with $30-40 but like $50+ would be ideal.
Pages: « 1 2 [3] 4 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!