LCKB
Reborn System - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197)
+---- Forum: Website Releases (https://lckb.dev/forum/forumdisplay.php?fid=135)
+----- Forum: Ep1 Websites (https://lckb.dev/forum/forumdisplay.php?fid=185)
+----- Thread: Reborn System (/showthread.php?tid=1048)



- ReturnKratos - 08-25-2012


Hey Guys Today I'm Here For Show you a new custom reborn system remade by me

 

MaX Thanks For your Hold EP1 website (IT help me so much )

 

Here Are : (i will not give any supports learn php and fix it your self if fount some bugs )

 

// Check For Login
if( $User->LoggedIn == true )
{
echo'<center>
<br/><br/>
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tr>
<td width="15"><b><center>Rank</center></b></td>
<td width="20"><b><center>Class</center></b></td>
<td width="30"><b><center>Name</center></b></td>
<td width="30"><b><center>Level</center></b></td>
<td width="10"><b><center>SP</center></b></td>
<td width="10"><b><center>HP</center></b></td>
<td width="10"><b><center>MP</center></b></td>
<td width="10"><b><center>Reborn</center></b></td>
</tr>';

$lvl1 = "<form id='form1' name='form1' method='post' action=''>
<input name='lvl1' value='Reset LVL 1' type='submit' />
</form>";

$sp = "<form id='form2' name='form2' method='post' action=''>
<input name='sp' value='100k SP' type='submit' />
</form>";

$rbsys = "<form id='form1' name='form1' method='post' action=''>
<input name='reborn' value='Reborn' type='submit' />
</form>";
if( isset( $_GET['Class'] ) && $_GET['Class'] == 'Healer' )
{
$mysql75 = mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$query2b = "SELECT a_user_index, a_name, a_level, a_job, a_job2, a_skill_point, a_hp, a_mp FROM t_characters WHERE a_job = 2 AND a_user_index = ". $User->ID ." ORDER BY a_level desc LIMIT 4";
$Rank = 1;
$result22b = mysql_query ($query2b);
} else
if( isset( $_GET['Class'] ) && $_GET['Class'] == 'Sorcerer' )
{
$mysql75 = mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$query2b = "SELECT a_user_index, a_name, a_level, a_job, a_job2, a_skill_point, a_hp, a_mp FROM t_characters WHERE a_job = 5 AND a_user_index = ". $User->ID ." ORDER BY a_level desc LIMIT 4";
$Rank = 1;
$result22b = mysql_query ($query2b);
} else
if( isset( $_GET['Class'] ) && $_GET['Class'] == 'Rouge' )
{
$mysql75 = mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$query2b = "SELECT a_user_index, a_name, a_level, a_job, a_job2, a_skill_point, a_hp, a_mp FROM t_characters WHERE a_job = 4 AND a_user_index = ". $User->ID ." AND a_enable = 1 ORDER BY a_level desc LIMIT 4";
$Rank = 1;
$result22b = mysql_query ($query2b);
} else
if( isset( $_GET['Class'] ) && $_GET['Class'] == 'Mage' )
{
$mysql75 = mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$query2b = "SELECT a_user_index, a_name, a_level, a_job, a_job2, a_skill_point, a_hp, a_mp FROM t_characters WHERE a_job = 3 AND a_user_index = ". $User->ID ." AND a_enable = 1 ORDER BY a_level desc LIMIT 4";
$Rank = 1;
$result22b = mysql_query ($query2b);
} else
if( isset( $_GET['Class'] ) && $_GET['Class'] == 'Titan' )
{
$mysql75 = mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$query2b = "SELECT a_user_index, a_name, a_level, a_job, a_job2, a_skill_point, a_hp, a_mp FROM t_characters WHERE a_job = 0 AND a_user_index = ". $User->ID ." AND a_enable = 1 ORDER BY a_level desc LIMIT 4";
$Rank = 1;
$result22b = mysql_query ($query2b);
} else
if( isset( $_GET['Class'] ) && $_GET['Class'] == 'Knight' )
{
$mysql75 = mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$query2b = "SELECT a_user_index, a_name, a_level, a_job, a_job2, a_skill_point, a_hp, a_mp FROM t_characters WHERE a_job = 1 AND a_user_index = ". $User->ID ." AND a_enable = 1 ORDER BY a_level desc LIMIT 4";
$Rank = 1;
$result22b = mysql_query ($query2b);
} else {
$mysql75 = mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$query2b = "SELECT a_user_index, a_name, a_level, a_job, a_job2, a_skill_point, a_hp, a_mp FROM t_characters WHERE a_user_index = ". $User->ID ." AND a_enable = 1 ORDER BY a_level desc LIMIT 4";
$Rank = 1;
$result22b = mysql_query ($query2b);
}
while($list33b = mysql_fetch_array( $result22b ))
{
$Info = new Info();
$Info->ClassJob( $list33b['a_job'] , $list33b['a_job2'] );
$ClassImage = './Template/Img/' . $Info->Class . ".gif";
$Top100_rank = $Rank++;

mysql_select_db( $SiteSQL["config-database_site"] , $Site_sqlcon) or die( mysql_error() );
$reborn_settings = mysql_query("SELECT a_reborn_level, a_reborn_amount, a_reborn_enable FROM t_settings WHERE a_index = '1'");
while( $reborn_settings1 = mysql_fetch_array( $reborn_settings) )
{
$RB_level = $reborn_settings1["a_reborn_level"];
$RB_amount = $reborn_settings1["a_reborn_amount"];

if (($reborn_settings1['a_reborn_enable'] >= "Enable"))
{
if(isset($_POST['reborn'])) {

mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$chars_info = mysql_query("SELECT a_index, a_user_index, a_name, a_level, a_hp, a_str, a_dex, a_int, a_con, a_teach_complete, a_job, a_job2, a_reborn, a_exp, a_statpt_remain FROM t_characters WHERE a_user_index = ". $User->ID ."");

$r = 1;
$t = 1;
while( $row = mysql_fetch_array( $chars_info ) )
{
if (($row['a_level'] >= $RB_level) && ($row['a_reborn'] < $RB_amount))
{
$doreborn = mysql_query("UPDATE t_characters SET a_level=1, a_exp=0, a_reborn=(a_reborn+1),a_statpt_remain=(a_statpt_remain+500), a_hp=(a_hp+5000) WHERE a_name ='".$list33b['a_name']."' AND a_user_index = ". $User->ID .""); // Here Can Edit For Some Special gift in reborn sys ;D i added 5k hp each reborn ;D
echo '"<font color="gold">The reborn was a success! '. $list33b['a_name'] .' is now reborn <br/>Level 1, with your '. $RB_level .' stat points + 5000, Skills not reset.</font>"' ;
} else {
echo '<font color="red">Not met the requirements (Must be '. $RB_level .' + under '. $RB_amount .' reborns)</font>';
}
$r++;
$t++;
}
}
} else {
echo 'Reborn System Disabled !';
}
}

?>
<tr>
<td width="15"><b><center><?php print $Top100_rank; ?></center></b></td>
<td width="20"><span class="color"><center><img title="<?PHP print $Info->Class; ?>" src="<?php print $ClassImage; ?>" /></center></span></td>
<td width="50"><font color="#927D61" size="4"><center><?php print $list33b['a_name']; ?></center></font></td>
<td width="50"><font color="#e78282" size="4"><center><?php print $list33b['a_level']; ?></center></font></td>
<td width="10"><span class="color"><center><?php print $list33b['a_skill_point']; ?></center></span></td>
<td width="10"><span class="color"><center><?php print $list33b['a_hp']; ?></center></span></td>
<td width="10"><span class="color"><center><?php print $list33b['a_mp']; ?></center></span></td>
<td width="10"><span class="color"><center><?php print $rbsys; ?></center></span></td>
</tr>
<?php } ?>

<?php
}
else{
echo 'No Logged ! Please Login For Excange Online Time Points !' ;
}

 

it will show you all character you got on your account and for each character you can click "Reborn" button and it will reborn you to lvl 1 and some features ;D

 

All Credits to MaX For creating scipt

 

i only fix for new version of hes website ;D

 

Have Nice Night




- barroso - 08-25-2012

it give only 5k hp per reborn?


- barroso - 08-25-2012

what is needed to click in reborn button




- ReturnKratos - 08-26-2012


barroso if you click reborn button it will reborn your character with some features....you can give all thing you want just edit sql code and php code...i will not give any script for add any item ;D

 

if i can i will create a item mall for black version by max




- barroso - 08-26-2012

ok but what the condition the character need to have to click reborn




- ReturnKratos - 08-26-2012

have see in script it tell you learn php ;K




- barroso - 08-26-2012

but u can post the link of your database sites because need a_reborn?