Working Rebirth PHP Script [UPDATED]

Results 1 to 3 of 3
  1. #1
    Apprentice Asianguy is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    19Posts

    Post Working Rebirth PHP Script [UPDATED]

    I know there are a lot of release on this already, but i though i never find one that can increase the stats as you rebirth the 2nd, 3rd time etc....

    Here is how mine works:
    - First rebirth, Set lvl to 10, Reset all stats to 4, with 300 extra AP, all SP to 0, 1500 HP/MP =)
    - Second rebirth, Set lvl to 10, Reset all stats to 4, with 600 extra AP, all SP to 0, 3000 HP/MP
    .
    .
    .
    and so on... (you can change it to w/e you want)



    Little tut on how to get it to work. (I'm currently using KakaCMS v.3)

    1) You got to add a "rebirth" column in your database XD
    Execute this into MySQL:
    Code:
    ALTER TABLE `characters` ADD COLUMN `rebirth` INTEGER UNSIGNED NOT NULL DEFAULT 0 AFTER `name`;
    2) Download the attachment =)

    3) Extract it and change the rebirth to PHP file

    4) Put that file under "page" (in KakaCMS) dunno what you guys are using

    5) Make a new PHP script and put it outside of "page"
    Script:
    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <?php require ("./inc/info.inc.php"); ?>
    <title><?=$config['server_name']?></title>
    <link rel=stylesheet href="style.css" type="text/css">



    <body class="thrColFixHdr">
    <br />
    <br />
    <br />
    <div id="container">
    <?php include ("header.php"); ?>
    <?php 
    include ("navigation.php"); ?>
    <?php 
    include ("status.php"); ?>
    <?php 
    include ("page/rebirth.php"); ?>
    <!-- do not remove-->
    <br class="clearfloat" />
    <?php include ("footer.php"); ?>
    </div>
    <!-- end #container -->
    <Br />
    <br />
    <Br />
    </body>
    </html>
    6) Make sure you add a new link in your "navigation"
    Add:
    Code:
    <li><a href="rebirth.php"  >REBIRTH</a><li>
    under
    Code:
    <li><a href="mapfix.php"  >Unstuck</a><li>
    7) Save and your done =)


    I base it on rebirth, the more times you rebirth, the stronger you get.....
    You have to add the rebirth colum first, else it won't work..


    Credits:
    - Myself...
    - Everyone who released rebirth script, for me to look at all of them
    - fccfcc for the fixes =)

    I am not really good with PHP lol just html and xhtml haha
    Attached Files Attached Files
    Last edited by Asianguy; 04-07-08 at 06:26 AM. Reason: Upload new file


  2. #2
    Member fccfcc is offline
    MemberRank
    Apr 2008 Join Date
    98Posts

    Re: [Release] Working Rebirth PHP Script

    (There's a bug where it won't set your INT = = I'll have to maunally do that for now)
    FIX
    Change
    Code:
    mysql_query("UPDATE characters SET int = 4 WHERE name='$character'");
    To
    Code:
    mysql_query("UPDATE characters SET `int` = 4 WHERE name='$character'");
    Reset skills:
    After
    Code:
    $level = trim($_POST['level']);
    Add
    Code:
    $idchar = trim($_POST['id']);
    after
    Code:
    $result = mysql_query("SELECT level FROM characters WHERE name = '$character'");
    list($level) = mysql_fetch_row($result);
    Add
    Code:
    $result = mysql_query("SELECT id FROM characters WHERE name = '$character'");
    list($idchar) = mysql_fetch_row($result);
    And after
    Code:
    mysql_query("UPDATE characters SET rebirth = rebirth + 1 WHERE name='$character'");
    add
    Code:
    mysql_query("DELETE FROM skills WHERE characterid=$idchar");

  3. #3
    Apprentice Asianguy is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    19Posts

    Re: [Release] Working Rebirth PHP Script

    oh wow Thank you for all those =) sry i'm not really good at it...

    I uploaded the new one that's Fixed



Advertisement