Bots Online Server Files & Client

Page 2 of 12 FirstFirst 12345678910 ... LastLast
Results 16 to 30 of 175
  1. #16
    I am n00b. baothai is offline
    MemberRank
    Apr 2011 Join Date
    USALocation
    481Posts

    Re: Bots Online Server Files & Client

    Quote Originally Posted by ThunderZ View Post
    hes good cause he can do a simple php script?

    anyways nice release.
    Jeez, sorry I am not good at knowing simple or easy php scripts..

  2. #17
    Apprentice alsair is offline
    MemberRank
    May 2012 Join Date
    23Posts

    Re: Bots Online Server Files & Client

    Quote Originally Posted by Masius View Post
    PHP Code:
    <?php

        $host 
    'localhost';
        
    $mysqlUser 'root'//Edit between the ' ' with your MySQL database connection username
        
    $mysqlPassword ''//Edit between the ' ' with your MySQL database connection password
        
    $mysqlDATABASE 'bots'//Edit between the ' ' with your BOTS ONLINE database name (default: bots_revolution)

            
    @mysql_connect($host$mysqlUser$mysqlPassword) or die(mysql_error()); // remove the @ to allow debug messages
            
    @mysql_select_db($mysqlDATABASE) or die(mysql_error()); // remove the @ to allow debug messages
    ?>

    <html>

    <head>

    <title> Bots registration </title>

    </head>
    <body>

    <center> Register<br>
    Registered users: <?php print $users mysql_num_rows(mysql_query("SELECT * FROM bout_users")); ?>

    <form method="post">
    Username: <input type="text" name="username" maxlength="16" /> </br>
    Password: <input type="password" name="password" maxlength="24" /></br>
    Email: <input type="text" name="email" /></br>
    <input type="submit" value="Register" name="submit" />

    <?php



            
    if(isset($_POST['submit'])) {

        
    $username mysql_real_escape_string($_POST['username']);
        
    $password mysql_real_escape_string(md5($_POST['password']));
        
    $email mysql_real_escape_string($_POST['email']);
        
    $ip $_SERVER['REMOTE_ADDR'];

            if(empty(
    $username) || empty($password) || empty($email)) {
        die(
    "<br>Please fill in all fields");

        }

        
    $check_username mysql_num_rows(mysql_query("SELECT * FROM bout_users WHERE username ='$username'"));
        
    $check_email mysql_num_rows(mysql_query("SELECT * FROM bout_users WHERE email ='$email'"));

            if(
    $check_username 0) {
        die(
    "Username already exists");
        }
            if(
    $check_email 0) {
        die(
    "Email already exists");
            } else {

        
    $do mysql_query("INSERT INTO bout_users(username, password, current_ip, last_ip, email) VALUES('$username','$password','$ip','$ip','$email')") OR die(mysql_error());
            if(
    $do) {
        print 
    "Registration sucessfull, you may now login.";
        }


        }


        }


    ?>
    simple registration script to whoever wants to create an account to try out the server.

    p.s.: not sure if there's an extra hash along md5, didn't see anything on the server files

    *edit

    PHP Code:
    <?php

        $host 
    'localhost';
        
    $mysqlUser 'root'//Edit between the ' ' with your MySQL database connection username
        
    $mysqlPassword ''//Edit between the ' ' with your MySQL database connection password
        
    $mysqlDATABASE 'bots'//Edit between the ' ' with your BOTS ONLINE database name (default: bots_revolution)

            
    @mysql_connect($host$mysqlUser$mysqlPassword) or die(mysql_error()); // remove the @ to allow debug messages
            
    @mysql_select_db($mysqlDATABASE) or die(mysql_error()); // remove the @ to allow debug messages
    ?>

    <html>
    <head>
    <title> Adding coins </title>
    </head>
    <body>

    <center>
    Adding coins to your account

    <form method="post">
    Account username: <input type="text" name="usernameCoins" /> <br>
    Coins quantity: <input type="text" name="quantityCoins" /> <br>
    <input type="submit" value="Add" name="submitCoins" /> <br>

    <?php

    if(isset($_POST['submitCoins'])) {
    $accountUsername mysql_real_escape_string($_POST['usernameCoins']);
    $quantityCoins mysql_real_escape_string($_POST['quantityCoins']);
    if(empty(
    $accountUsername) || empty($quantityCoins)) {
    die(
    "Fill in all fields");
    }

    $do mysql_query("UPDATE bout_users SET coins=coins+$quantityCoins WHERE username='$accountUsername'");
    if(
    $do) {
    print 
    "Coins added";
    }
    }
    ?>
    Adding coins script to purchase coins only equipment from the shop
    where did u got that ?

  3. #18
    Alpha Member Masius is offline
    MemberRank
    Dec 2007 Join Date
    1,580Posts

    Re: Bots Online Server Files & Client

    Quote Originally Posted by alsair View Post
    where did u got that ?
    I wrote it.

  4. #19
    Apprentice alsair is offline
    MemberRank
    May 2012 Join Date
    23Posts

    Re: Bots Online Server Files & Client

    did you try it ?

  5. #20
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Bots Online Server Files & Client

    Quote Originally Posted by baothai View Post
    Jeez, sorry I am not good at knowing simple or easy php scripts..
    Ignore me I'm just having a bad day

  6. #21
    Alpha Member Masius is offline
    MemberRank
    Dec 2007 Join Date
    1,580Posts

    Re: Bots Online Server Files & Client

    Quote Originally Posted by alsair View Post
    did you try it ?
    Yes.

    As for logging in, I still don't have the correct client so I can't say much. But it's supposed to work. If it doesn't, it's just a minor hash problem

  7. #22
    Apprentice alsair is offline
    MemberRank
    May 2012 Join Date
    23Posts

    Re: Bots Online Server Files & Client

    so i'll try it

    the client is 96% untill now it took about 10 hours looool idk why

    where should i use this code ?

  8. #23
    Alpha Member Masius is offline
    MemberRank
    Dec 2007 Join Date
    1,580Posts

    Re: Bots Online Server Files & Client

    On your web server.
    Copy it to notepad and save it as Whateveryouwant.php

    - Dont forget to edit it with your correct database information

  9. #24
    Apprentice alsair is offline
    MemberRank
    May 2012 Join Date
    23Posts

    Re: Bots Online Server Files & Client

    ok thanks i'll do that

    i just bought for new server and waiting my server acces

    and what about the other code for add coins ?

    ^^ GL dude

    message if u want any thing alsair4@hotmail.com

  10. #25
    Honest person, not nice.. shadow destroy is offline
    MemberRank
    Feb 2007 Join Date
    www.dedeno.netLocation
    218Posts

    Re: Bots Online Server Files & Client

    So, two pages of reactions but not a single person confirming it works....
    Can anyone ?

  11. #26
    Alpha Member Masius is offline
    MemberRank
    Dec 2007 Join Date
    1,580Posts

    Re: Bots Online Server Files & Client

    Making items buyable or not from the item shop ingame
    just click the button to SET it to the shop or TAKE IT from it.
    PHP Code:
    <?php

        $host 
    'localhost';
        
    $mysqlUser 'root'//Edit between the ' ' with your MySQL database connection username
        
    $mysqlPassword ''//Edit between the ' ' with your MySQL database connection password
        
    $mysqlDATABASE 'bots'//Edit between the ' ' with your BOTS ONLINE database name (default: bots_revolution)

            
    @mysql_connect($host$mysqlUser$mysqlPassword) or die(mysql_error()); // remove the @ to allow debug messages
            
    @mysql_select_db($mysqlDATABASE) or die(mysql_error()); // remove the @ to allow debug messages
    ?>

    <html>
    <head>

    <title>Setting/unsetting Buyable items</title>

    </head>


    <body>

    <center>
    Instructions: Click the "SET" button for the item to appear on the Item Shop. Clicking UNSET reverses it.

    <table border="1" style="text-align: center;">
    <tr style="font-style: bold;"><td>Item name</td><td>Req. Level</td><td>Buy price</td><td>Sell price</td><td>Coins price</td><td>Days sold for</td><td>Bot</td><td>Part</td><td>Bonus</td><td>Set to shop</td></tr>

    <?php

    $getItems 
    mysql_query("SELECT id, name, reqlevel, buyable, buy, sell, coins, days, bot, part, script FROM bout_items LIMIT 1000");
    while(
    $do mysql_fetch_array($getItems)) {
    print 
    "<tr>";
    $name $do['name'];
    print 
    "<td>".$name."</td>";
    print 
    "<td>".$do['reqlevel']."</td>";
    print 
    "<td>".$do['buy']."</td>";
    print 
    "<td>".$do['sell']."</td>";
    print 
    "<td>".$do['coins']."</td>";
    print 
    "<td>".$do['days']."</td>";

    $bot $do['bot'];
    switch(
    $bot) {
    case 
    1:
    $bot "Patch";
    break;
    case 
    2:
    $bot "Surge";
    break;
    case 
    3:
    $bot "Ram";
    break;
    }
    print 
    "<td>".$bot."</td>";
    $parts $do['part'];
    switch(
    $parts) {
    case 
    1:
    $parts "Head";
    break;
    case 
    2:
    $parts "Body";
    break;
    case 
    3:
    $parts "Arm";
    break;
    }
    print 
    "<td>".$parts."</td>";
    print 
    "<td>".$do['script']."</td>";

    $id $do['id'];
    $buyable $do['buyable'];
    switch(
    $buyable) {
    case 
    0:
    print 
    '<td><form method="post"><input type="submit" value="Set to shop" name="setItem'.$id.'">';
    if(isset(
    $_POST['setItem'.$id.''])) {

    $setItem mysql_query("UPDATE bout_items SET buyable = '1' WHERE name='$name'");
    $page $_SERVER['PHP_SELF'];
    header('location: '.$page);

    }
    print 
    '</td></form>';
    break;
    case 
    1:
    print 
    '<td><form method="post"><input type="submit" value="Take from shop" name="setItem'.$id.'">';
    if(isset(
    $_POST['setItem'.$id.''])) {

    $setItem mysql_query("UPDATE bout_items SET buyable = '0' WHERE name='$name'");
    $page $_SERVER['PHP_SELF'];
    header('location: '.$page);
    }
    print 
    '</form></td>';
    break;
    }
    print 
    "</tr>";
    }
    ?>



    </table>

  12. #27
    Die() Secured is offline
    MemberRank
    Sep 2011 Join Date
    /home/SDev/Location
    555Posts
    Note files aren't completely finished so do go trying to make a server from this.

    Sent from my LG-E739 using Tapatalk

  13. #28
    Apprentice alsair is offline
    MemberRank
    May 2012 Join Date
    23Posts

    Re: Bots Online Server Files & Client

    i'll try this too

  14. #29
    Novice undzieweb is offline
    MemberRank
    May 2012 Join Date
    1Posts

    Re: Bots Online Server Files & Client

    can this server run on linux?

  15. #30
    Apprentice alsair is offline
    MemberRank
    May 2012 Join Date
    23Posts

    Re: Bots Online Server Files & Client

    as i know

    if the game support Linux

    but windows better than linux



Page 2 of 12 FirstFirst 12345678910 ... LastLast

Advertisement