Jump to content

Would it be possible to script a function that automatically deposits "X" amount into the vault??


Jamiekson

Recommended Posts

I know on other sites it is possible to run scripts that auto-withdrawal and/or auto-invest, was hoping to do the same here...

Link to comment
Share on other sites

  • 1 month later...

youl can theoretically make a script do anything you can do manually, in this base it would likely be a series of button clicks to open dialogs and such.  I wrote a script that automatically refreshed my client seed after so many losses on limbo, for instance.  (it didn't do a damn bit of good for winning though)

Link to comment
Share on other sites

@Skele Would it be difficult for you to create a script that stops on a certain profit, reset the seed, and start it again to repeat that process?? I paid for a strategy from someone and it looks extremely solid, but requires change seed on every profit hit.  Just takes forever.

Link to comment
Share on other sites

@atribiano not it wouldn't be that hard, i have one that resets the see after a streak of 5 losses and restarts betting.  But that would actually tanked me harder than any others i have done with 16 losses in a row. What game would you be using this script for.

 

Link to comment
Share on other sites

@Jamieksonso i actually think this is a good idea so if you want i will wrote one that does this for you. I will take a look and if its easy probably do it today if not well then it could be a few weeks before i have time to get to it.  I am on call this coming week for work and that recently has been a round the clock struggle for the person on call.

Link to comment
Share on other sites

var theCoin = 'BCD';
var theAmount = 2;

fetch("https://bc.game/api/vault/amount/recharge/", {
    "headers": {
        "accept": "application/json, text/plain, */*",
        "accept-language": "en-US,en;q=0.9",
        "content-type": "application/json",
        "sec-fetch-dest": "empty",
        "sec-fetch-mode": "cors",
        "sec-fetch-site": "same-origin",
        "sec-gpc": "1"
    },
    "referrer": "https://bc.game/wallet/vault",
    "referrerPolicy": "strict-origin-when-cross-origin",
    "body": `{\"currencyName\":\"${theCoin}\",\"amount\":${theAmount}}`,
    "method": "POST",
    "mode": "cors",
    "credentials": "include"
})
    .then(r => r.json())
    .then(r => {
		if(r.code) console.log(r);
	})
    .catch(error => {
		console.log(error);
	});

 

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

On 2/20/2022 at 12:25 PM, Skele said:

@Jamieksonso i actually think this is a good idea so if you want i will wrote one that does this for you. I will take a look and if its easy probably do it today if not well then it could be a few weeks before i have time to get to it.  I am on call this coming week for work and that recently has been a round the clock struggle for the person on call.

Yes if the offer still stands!! I'd want to use it in Crash or Hashdice or both.

Link to comment
Share on other sites

On 3/1/2022 at 5:40 PM, ][NT3L][G3NC][ said:
var theCoin = 'BCD';
var theAmount = 2;

fetch("https://bc.game/api/vault/amount/recharge/", {
    "headers": {
        "accept": "application/json, text/plain, */*",
        "accept-language": "en-US,en;q=0.9",
        "content-type": "application/json",
        "sec-fetch-dest": "empty",
        "sec-fetch-mode": "cors",
        "sec-fetch-site": "same-origin",
        "sec-gpc": "1"
    },
    "referrer": "https://bc.game/wallet/vault",
    "referrerPolicy": "strict-origin-when-cross-origin",
    "body": `{\"currencyName\":\"${theCoin}\",\"amount\":${theAmount}}`,
    "method": "POST",
    "mode": "cors",
    "credentials": "include"
})
    .then(r => r.json())
    .then(r => {
		if(r.code) console.log(r);
	})
    .catch(error => {
		console.log(error);
	});

 

This is beyond me. I'm scared to test it so I'm going to have to do some digging into whats happening here.

Thank you so much though!!
If you aren't a Scam-Andy then you just saved me so much f**king time. Thanks again.

 

Link to comment
Share on other sites

its just calling a rest end point it looks like  to trigger a deposit  it should be good for deposit.   

Link to comment
Share on other sites

Yup it seems to be working fine!

Thanks again!! I will send a tip from what I make in a week or two. 

 

Link to comment
Share on other sites

  • 2 weeks later...

LOL Scam-Andy, Thank You I needed that Laugh 🤜👌🤛

@Jamiekson 

im curious , have you added/edited that code snippet at all?  It could/should be exchanged ion and made far more useful.

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

On 2/17/2022 at 7:16 PM, Skele said:

youl can theoretically make a script do anything you can do manually, in this base it would likely be a series of button clicks to open dialogs and such.  I wrote a script that automatically refreshed my client seed after so many losses on limbo, for instance.  (it didn't do a damn bit of good for winning though)

How can I do a script like you said?

 

Link to comment
Share on other sites

On 3/20/2022 at 9:27 PM, Hopp said:

How can I do a script like you said?

 

Not fully sure why, but  the 2nd Request for changing seeds errors. So it would need to be changed via Clicking Buttons. here is a very rough script that will do it. as far as logic goes it just counts losses and not streaks.

 

(function() {
    'use strict';

    let changeLoss = 5; // Loss Amount To Change Seed

    let totalLoss = 0; // DO Not Change This
    let theInterval;

    function firstClick() {
        clearInterval(theInterval);
        try {
            document.querySelector('#set_seed').click();
            setTimeout(secondClick,3000);
        } catch(errorShit) {
            setTimeout(firstClick,1000);
        }
    }

    function secondClick() {
        clearInterval(theInterval);
        try {
            document.querySelector('.submit').children[0].click();
        }catch(errorShit) {
            theInterval = setInterval(secondClick,1000);
        }
    }

    let mutationObserver = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            if(mutation.target.className == 'recent-list') {
                if(mutation.addedNodes.length == 1) {
                    if(mutation.addedNodes[0].children[0].className.includes('is-lose')) {
                        ++totalLoss;
                        if(totalLoss >= changeLoss) {
                            totalLoss = 0;
                            theInterval = setInterval(firstClick,100);

                        }

                    }
                }
            }
        });
    });

    mutationObserver.observe($('.recent-list'), {
        attributes: false,
        characterData: false,
        childList: true,
        subtree: true,
        attributeOldValue: false,
        characterDataOldValue: false
    })

})();

 

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

  • 2 weeks later...
On 3/22/2022 at 4:11 AM, ][NT3L][G3NC][ said:

Not fully sure why, but  the 2nd Request for changing seeds errors. So it would need to be changed via Clicking Buttons. here is a very rough script that will do it. as far as logic goes it just counts losses and not streaks.

 

(function() {
    'use strict';

    let changeLoss = 5; // Loss Amount To Change Seed

    let totalLoss = 0; // DO Not Change This
    let theInterval;

    function firstClick() {
        clearInterval(theInterval);
        try {
            document.querySelector('#set_seed').click();
            setTimeout(secondClick,3000);
        } catch(errorShit) {
            setTimeout(firstClick,1000);
        }
    }

    function secondClick() {
        clearInterval(theInterval);
        try {
            document.querySelector('.submit').children[0].click();
        }catch(errorShit) {
            theInterval = setInterval(secondClick,1000);
        }
    }

    let mutationObserver = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            if(mutation.target.className == 'recent-list') {
                if(mutation.addedNodes.length == 1) {
                    if(mutation.addedNodes[0].children[0].className.includes('is-lose')) {
                        ++totalLoss;
                        if(totalLoss >= changeLoss) {
                            totalLoss = 0;
                            theInterval = setInterval(firstClick,100);

                        }

                    }
                }
            }
        });
    });

    mutationObserver.observe($('.recent-list'), {
        attributes: false,
        characterData: false,
        childList: true,
        subtree: true,
        attributeOldValue: false,
        characterDataOldValue: false
    })

})();

 

image.png.10589e6ab17b50326df8ec4a9fff5571.pngI got this error

Link to comment
Share on other sites

On 3/31/2022 at 10:53 PM, Hopp said:

image.png.10589e6ab17b50326df8ec4a9fff5571.pngI got this error

yeah it will never run in that. there is no way to change seed from within the advanced script section

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

i haven't been seeing the change see webservice call fail at all. the code i am running is in the thread here

 

I don't know your webservice call but my guess is that you probably aren't passing in the parameters from the first webservice call that is required to make the second one work because i have not had it fail on me.

Link to comment
Share on other sites

@][NT3L][G3NC][is that the same as your username in the casino?? I havent had a chance to implement it successfully yet, but I still want to keep my word and send a tip your way. 

@Skele Same question to you. lol

Link to comment
Share on other sites

Mine is indeed the same but i do not need a tip as i didn't do anything with this.  But feel free to keep in touch if you ever have any questions or anything.  I may or may not have an answer or time to look for one, but if i do i will always help.

Link to comment
Share on other sites

On 2/18/2022 at 8:40 AM, Atrobiano said:

@Skele Would it be difficult for you to create a script that stops on a certain profit, reset the seed, and start it again to repeat that process?? I paid for a strategy from someone and it looks extremely solid, but requires change seed on every profit hit.  Just takes forever.

Have you managed to find the right script for the task? 

On 3/4/2022 at 3:47 AM, Jamiekson said:

This is beyond me. I'm scared to test it so I'm going to have to do some digging into whats happening here.

Thank you so much though!!
If you aren't a Scam-Andy then you just saved me so much f**king time. Thanks again.

 

How do you run this? Do you run it in the scripts as a script or do you add it to an existing script? 

Link to comment
Share on other sites

6 hours ago, Money_Magnet said:

Have you managed to find the right script for the task? 

How do you run this? Do you run it in the scripts as a script or do you add it to an existing script? 

You add it into an existing script. And no I havent really been able to implement it successfully yet, but havent really had a chance to try it with all my scripts.


To be clear, it dooes work and it will deposit coins into your vault if you write it correctly, I just havent tried it with enough of my scripts to know which will work best. So far, every time I've tried it, I eventuallu bust with about 80% of my starting balance making it back into the vault before busting.. There have been a few times that I busted and my vault was balance was higher than my starting balance.  

Deposit-scripts are a lot more common than I realized on other sites, so I'm positive there is a way to use it successfully and consistently.

Link to comment
Share on other sites

Another thing I want to eventually figure out is how to change the deposit amount based on the amount won, or the amount won since the last deposit.
So far, its only worked for me when 'theAmount' is defined as a set amount like:

var theAmount = 2var theAmount = 

I tried doing something like this,


var runningBalance = currency.amount;
var originalBalance = currency.amount;

var amountWon = (runningBalance - originalBalance);

var theCoin = 'BTC';

var theAmount = amountWon;


 

Then obviously after every bet:

    - runningBalance -= currentBet;

and after a win: 
    - var netWin = (currentBet*currentPayout);

    - runningBalance += netWin;

Then after X number of wins, or after X amount of profit, I wanted it to find the amountWon by subtracting original balance from running balance, yet it kept returning an error message. Can't remember exactly which one, but it was something to do with "theAmount" not being defined correctly, and basically only works for me if the depo amount is a set number.  


My next idea was to maybe define 'theAmount' as a function to get a new number every time, I have seen people use a getNumber(); function before, so maybe something like this would work:


var theAmount = getNumber();


function getNumber() {

    var returnValue = 0;
    var amountWon = (runningBalance - originalBalance);

    returnValue = amountWon;

    return returnValue;
}

I'm sure there is a simple way to make it work, but I didnt know anything about code 12 months ago and I'm still very ignorant to a lot of it.  Other than the helpful few in here, I've had to teach myself everything, so if there is an obvious mistake I'm making, or an obvious solution I'm missing, then any and all advice is appreciated.


 

 

Link to comment
Share on other sites

Okay so I tried that and couldn't get it to work. I beleive its because 'theAmount' is being called as a const.

But I dont know enough about code to know if I'm right or if there is a way to fix it.

 

Link to comment
Share on other sites

Sorry for spamming this post, but I did find a work-around.  I just made the deposit amount smaller like 0.1, and then it will deposite that much any time the runningbalance > (originalBalance+0.1) and then subtract that amount from running balance.

I really just wanted to change the exact amount that gets deposited after a win, because sometimes my profit is 0.001 and sometimes its 10+ and I want it all to go to the vault, so to work around that I did this:

 

if (runningBalalnce >= (originalBalance + 0.1)) {
    var theCoin = 'BCD';
    var theAmount = 0.1;
    runningBalalnce -= 0.1;
   
    fetch("https://bc.game/api/vault/amount/recharge/", {
        "headers": {
            "accept": "application/json, text/plain, */*",
            "accept-language": "en-US,en;q=0.9",
            "content-type": "application/json",
            "sec-fetch-dest": "empty",
            "sec-fetch-mode": "cors",
            "sec-fetch-site": "same-origin",
            "sec-gpc": "1"
        },
        "referrer": "https://bc.game/wallet/vault",
        "referrerPolicy": "strict-origin-when-cross-origin",
        "body": `{\"currencyName\":\"${theCoin}\",\"amount\":${theAmount}}`,
        "method": "POST",
        "mode": "cors",
        "credentials": "include"
    })
   
    .then(r => r.json())
    .then(r => {
        if(r.code) console.log(r);
    })
    .catch(error => {
        console.log(error);
    });
}


So basically if my profit is at 0.52 after a win, instead of figuring out how to deposit 0.52 once, it will deposit 0.1 5 times in a row until the running balance returns to the original balance.
Its not perfect, but it does accomplish exactly what I wanted.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...