Find Jobs
Hire Freelancers

Script for game

€8-30 EUR

Closed
Posted almost 6 years ago

€8-30 EUR

Paid on delivery
hello guys, I don't think you need any crypto knoweldge for the job. I need someone to do a quick job for me, You have to do a script for [login to view URL] ( click on auto , then "add script") , i will tell you what i want it to do ... Here is an example of a script : var config = { bet: { value: 100, type: 'balance' }, basePayout: { value: 2, type: 'multiplier', label: 'base payout' }, stop: { value: 20, type: 'multiplier', label: 'stop if payout >' }, loss: { value: 'increase', type: 'radio', label: 'On Loss', options: { base: { type: 'noop', label: 'Return to base payout' }, increase: { value: 1, type: 'multiplier', label: 'Increase payout by +' }, } }, win: { value: 'base', type: 'radio', label: 'On Win', options: { base: { type: 'noop', label: 'Return to base payout' }, increase: { value: 1, type: 'multiplier', label: 'Increase payout by +' }, } } }; log('Script is running..'); var currentPayout = [login to view URL]; // Always try to bet when script is started [login to view URL]([login to view URL], currentPayout); [login to view URL]('GAME_STARTING', onGameStarted); [login to view URL]('GAME_ENDED', onGameEnded); function onGameStarted() { log('betting', [login to view URL]([login to view URL] / 100), 'at payout of', currentPayout, 'x') [login to view URL]([login to view URL], currentPayout); } function onGameEnded(info) { var lastGame = [login to view URL]() // If we wagered, it means we played if (![login to view URL]) { return; } // we won.. if ([login to view URL]) { if ([login to view URL] === 'base') { currentPayout = [login to view URL]; log('won, so resetting payout to', currentPayout) } else { [login to view URL]([login to view URL] === 'increase'); currentPayout += [login to view URL]; log('won, so increasing payout to', currentPayout) } } else { // damn, looks like we lost :( if ([login to view URL] === 'base') { currentPayout = [login to view URL]; log('lost, so resetting payout to', currentPayout) } else { [login to view URL]([login to view URL] === 'increase'); currentPayout += [login to view URL]; log('lost, so increasing payout', currentPayout) } } if (currentPayout > [login to view URL]) { log('Was about to bet with payout', currentPayout, 'which triggers the stop'); [login to view URL]('GAME_STARTING', onGameStarted); [login to view URL]('GAME_ENDED', onGameEnded); } }
Project ID: 16667663

About the project

5 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average €29 EUR for this job
User Avatar
Hello hiring member i am bhavika i can do it now so please give me chance to serve you thanks in advance :)
€39 EUR in 0 day
5.0 (81 reviews)
5.9
5.9
User Avatar
A proposal has not yet been provided
€19 EUR in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi Sir, I am a student in KAIST, top 30 university in the world and my major is Computer Science and Business and Technology Management. I have been working with java for 2 years and with python for a year, I have done many projects using python and java
€23 EUR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
€8 EUR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
€55 EUR in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of FRANCE
champigny sur marne, France
0.0
0
Member since Apr 3, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.