[Release] Super Rebirth Rings
Hi I am Kojowolf510, someone hacked my other account so I am releasing on this one. And Yes I have released this earlier. So, I am quiting my server, AngelStory, and I am going to release the php scripts of Super Rebirth.
Please note that my server was V55, so I am not sure if it works with any other version, but it should work.
So basically this is what SRB does, it happens after you have 30k Stat(s), like Str,Dex,Int,and luk, and exchanges the 30k+ stat for a 30k stat ring.
For Example:
Quote:
I have 30,000 Luk and I want a Luk ring which is 30k. So I....
1. Must have 1st slot of EQUIPMENT inventory open then log out of character
2. Go to website and type in the info required and choose the Stat you have 30k+ for and click Super Rebirth
My character
3. Log back in your character and there you go.(you can have 4 rings max)
You can change things if neccesary
Please if you do post this some where else, give credits to the right people.
If you do flame, check out what the script is and think " can I do this?"
And yes this is a PHP script, it would be nice if you can get a working npc like this.
NOTE
When you do the DB password REMEMBER IF YOU HAVE A PASSWORD CHANGE IT, IF YOU DON'T MAKE THE PART WHERE IT SAYS HereIAm BLANK.
For Example:
Quote:
$host['3'] = 'hereIam '; // my database password
change it to
Quote:
$host['3'] = ' '; // my database password
if you do not have a password
srb.php
Quote:
<html><head><title>AngelStory</title></head><body><?php
session_start();
$_SESSION['verification'] = "asdsadhfoi209318290jdsa";
?>
<font face="Arial, Helvetica, sans-serif">
<h1><font color="red">New tests show that SRB's dont work with Internet Explorer. <br>Please use Firefox or Chrome instead.</font></h1>
<br>(Note: Studies performed on IE 7)<br>
<table cellspacing=1 cellpadding=5>
<tr>
<td colspan=2><strong>AngelStory SuperRebirths</strong></td>
</tr>
<form action="srb_do.php" method="POST">
<tr><td class=list align=right>Account Username:</td><td class=list><input type=text name=name maxlength="12"></td></tr>
<tr><td class=list align=right>Account Password:</td><td class=list><input type=password name=pass maxlength="12"></td></tr>
<tr><td class=list align=right>Character Name:</td><td class=list><input type=text name=char maxlength="12"></td></tr>
<tr><td class=list colspan="2">Please choose the type of SRB you want.</td></tr>
<tr><td class=list align=right>STR</td><td class=list><input type=radio name=stat value="a"></td></tr>
<tr><td class=list align=right>DEX</td><td class=list><input type=radio name=stat value="b"></td></tr>
<tr><td class=list align=right>INT</td><td class=list><input type=radio name=stat value="c"></td></tr>
<tr><td class=list align=right>LUK</td><td class=list><input type=radio name=stat value="d"></td></tr>
<tr><td class=listtitle align=right colspan=2><input type=submit name=submit value='Super Rebirth my Character!'></td></tr>
</form>
</table>
For more information regarding SuperRebirths look <a href="http://z10.invisionfree.com/AngelStory/index.php?showtopic=170">here</a>.<br /><br />
NOTICE : You need to have the <b>1st</b> slot of your <b>Equipment</b> inventory empty!<br /><br />
You cannot have more than 4 SRB Rings. You need to be logged out before you SRB.<br>
<?php
/* DB INFO */
$host['1'] = 'localhost'; // my host
$host['2'] = 'root'; // my database username
$host['3'] = 'hereIam '; // my database password
$host['4'] = 'odinms'; // my database name
$db = mysql_connect($host['1'], $host['2'], $host['3']) OR die ('Cant connect to the database');
mysql_select_db($host['4'], $db);
$sql = "select itemid from inventoryitems where itemid = 1112000 && characterid != 32820";
$result = mysql_query($sql) or die ("error");
$num = mysql_num_rows($result);
echo "Number of Super Rebirths given so far : <font color = 'blue'>$num</font>";
?>
<br><br>
<h1>IMPORTANT!! READ THESE GUIDELINES FIRST BEFORE SRBING</h1>
<br>This is very important: NEVER NEVER NEVER... do a SRB while the server is offline.
<br>Even after a Server Check, wait at least 10 minutes for a SRB.
<br>After server checks, the database link is unstable, so your SRB may fail and your stats may be stolen.
<br><br>Also, REMEMBER TO LOG OUT!!
<br>Our system tries to catch you when you're still logged in, but it doesn't always work.
<br>And.. dont press "back" on your browser just because the srb is taking some time.
<br>Its not a problem with your internet, or the server. Its because the SRB naturally takes alot of time to do when its automatic, so be patient.<br><br>
I hope this helps<br>-echicken<br><br>Some more notes: <br>If your SRB isn't working and your stats aren't getting killed either, log out, and wait for 2 minutes before doing an srb.
</font>
</body>
</html>
srb_do.php
Quote:
<title>AngelStory SRB</title><?php
session_start();
if (@$_SESSION['verification'] != asdsadhfoi209318290jdsa){
header("Location:srb.php");
}
/* DB INFO */
$host['1'] = 'localhost'; // my host
$host['2'] = 'root'; // my database username
$host['3'] = 'hereIam '; // my database password
$host['4'] = 'odinms'; // my database name
$username = mysql_escape_string(trim($_POST['name']));
$password = mysql_escape_string(trim($_POST['pass']));
$char = mysql_escape_string(trim($_POST['char']));
$type = mysql_escape_string(trim($_POST['stat']));
if ($type != "a" && $type != "b" && $type != "c" && $type != "d" && $type != ""){
header("Location:srb.php");
}
$db = mysql_connect($host['1'], $host['2'], $host['3']) OR die ('Cant connect to the database');
mysql_select_db($host['4'], $db);
if ($username == ""){
die ("No username submitted<br><a href='srb.php'>Go back</a>");
return;
}
if ($password == ""){
die ("No password submitted<br><a href='srb.php'>Go back</a>");
return;
}
if ($char == ""){
die ("No character submitted<br><a href='srb.php'>Go back</a>");
return;
}
if ($type == ""){
die ("No Type Submitted<br><a href='srb.php'>Go back</a>");
return;
} return;
$sql = "SELECT * FROM accounts WHERE name = '$username'";
$result = mysql_query($sql);
$ainfo = mysql_fetch_assoc($result);
if (hash('sha512', $password.$ainfo['salt']) != $ainfo['password']) {
die ("The Username and Password you submitted is NOT valid.<br><a href='srb.php'>Go back</a>");
return;
}
$sql = "SELECT * FROM characters WHERE name = '$char'";
$result = mysql_query($sql);
$cinfo = mysql_fetch_assoc($result);
$cname = $cinfo['name'];
$aname = $ainfo['name'];
$cid = $cinfo['id'];
$aid = $ainfo['id'];
$sql = "SELECT * FROM characters WHERE name = '$char' && accountid = '$aid'";
$test1 = mysql_num_rows(mysql_query($sql));
if ($test1 != 1){
die ("The Character could not be found on the account.<br><a href='srb.php'>Go back</a>");
return;
}
$aloggedin = $ainfo['loggedin'];
if ($aloggedin != 0){
die ("You are currently logged into MapleStory. Please log out and try again.<br><a href='srb.php'>Go back</a>");
return;
}
$cannotdo = 0;
switch($type)
{
case a :
if ($cinfo['str'] < 30004){
$cannotdo = 1;
echo "Your STR needs to be at least 30004. Your Current STR is {$cinfo['str']}.<br><a href='srb.php'>Go back</a>";
}
break;
case b :
if ($cinfo['dex'] < 30004){
$cannotdo = 1;
echo "Your DEX needs to be at least 30004. Your Current DEX is {$cinfo['dex']}.<br><a href='srb.php'>Go back</a>";
}
break;
case c :
if ($cinfo['int'] < 30004){
$cannotdo = 1;
echo "Your INT needs to be at least 30004. Your Current INT is {$cinfo['int']}.<br><a href='srb.php'>Go back</a>";
}
break;
case d :
if ($cinfo['luk'] < 30004){
$cannotdo = 1;
echo "Your LUK needs to be at least 30004. Your Current LUK is {$cinfo['luk']}.<br><a href='srb.php'>Go back</a>";
}
break;
default :
echo "ERROR in fetching Stat Choice<br><a href='srb.php'>Go back</a>";
break;
}
if ($cannotdo == 1){
return;
}
$sql = "select * from inventoryitems where inventorytype = 1 && position = 1 && characterid = '$cid'";
$test2 = mysql_num_rows(mysql_query($sql));
if ($test2 != 0){
die ("ERROR: You must move the <b>first<b> item in your Equipment Inventory.<br><a href='srb.php'>Go back</a>");
return;
}
$sql = "select * from inventoryitems where itemid = 1112000 && characterid = '$cid'";
$test2 = mysql_num_rows(mysql_query($sql));
if ($test2 >= 4){
die ("ERROR: You have reached the maximum number of Super Rebirths.<br>Go do something else.<br><a href='srb.php'>Go back</a>");
return;
}
/* SRB the character
Things that need to be done
-Ring created
-Stat subtracted
*/
$query = "insert into srb (cid) values ('$cid')";
$result = mysql_query($query) or die ("The SRB stopped. Please try again.");
$rstr = 0;
$rdex = 0;
$rint = 0;
$rluk = 0;
switch($type)
{
case a :
$rstr = '30000';
$usql = "update characters set `str` = `str`-30000 where name = '$cname';";
break;
case b :
$rdex = '30000';
$usql = "update characters set `dex` = `dex`-30000 where name = '$cname';";
break;
case c :
$rint = '30000';
$usql = "update characters set `int` = `int`-30000 where name = '$cname';";
break;
case d :
$rluk = '30000';
$usql = "update characters set `luk` = `luk`-30000 where name = '$cname';";
break;
}
$result = mysql_query($usql) or die ("Error updating character information<br><a href='srb.php'>Go back</a>.");
$sql = "";
$result = mysql_query($sql) or die ("Error inserting ring into inventory.<br><a href='srb.php'>Go back</a>");
$sql = "select * from inventoryitems where characterid = '$cid' && position = '1' && inventorytype = '1'";
$result = mysql_query($sql) or die ("Could not retrieve item info.<br><a href='srb.php'>Go back</a>");
$iteminfo = mysql_fetch_assoc($result);
$invitemid = $iteminfo['inventoryitemid'];
$sql = "";die();
$result = mysql_query($sql) or die ("Could not edit item stats.<br><a href='srb.php'>Go back</a>");
echo "Success! <font color=\"green\">$cname</font> has been given a Super Rebirth!<br>You may now login.";
?>
Screen Shots:
http://img522.imageshack.us/img522/9...0410571je9.jpg
http://img515.imageshack.us/img515/8...0410573qs7.jpg
http://img176.imageshack.us/img176/3...0411234rc1.jpg
Download:
http://www.mediafire.com/download.php?d2mmztxzwdj
Quote:
Credits:
Me for providing the server
Echicken for making the script
If you do not know how to get this to work, I will try to help.
Re: [Release] Super Rebirth Rings
Great release for high rate servers.
But why not just make a NPC o___o
Re: [Release] Super Rebirth Rings
Quote:
Originally Posted by
Chinese
Great release for high rate servers.
But why not just make a NPC o___o
Semi- Tried that. Thought php would be easier.
Re: [Release] Super Rebirth Rings
I will try the NPC but mine will be a rebirth type of method. Love this release though.
Re: [Release] Super Rebirth Rings
Good Job ! Nice release ! made it into a npc will be more easier for us =):thumbup:
Re: [Release] Super Rebirth Rings
Like always, Ronald and his developers make leet ideas and code em. :D
Re: [Release] Super Rebirth Rings
Quote:
Originally Posted by
Intensetay
I will try the NPC but mine will be a rebirth type of method. Love this release though.
Just a little tip, if you make an npc like this, you will need to it to give the ring in 30k stat form.
Re: [Release] Super Rebirth Rings
Quote:
Originally Posted by
Ambiguous
Just a little tip, if you make an npc like this, you will need to it to give the ring in 30k stat form.
no duh... i already have that function...
Re: [Release] Super Rebirth Rings
Well we are going to try and make it like a Super Rebirth but you need XX amount of rebirths and stats to do it and it will just give and item with 30k stats on it. or something like that.
Re: [Release] Super Rebirth Rings
If you already did, then this is the day that ruins your server's unique-ness.
Re: [Release] Super Rebirth Rings
Quote:
Originally Posted by
megoesrawr
no duh... i already have that function...
Mhmm, now for you to give 30k + stat for a ring and maybe a fake relog and it might be done I guess.
Re: [Release] Super Rebirth Rings
Or this function could be done a different way instead of PHP.
Re: [Release] Super Rebirth Rings
Quote:
Originally Posted by
New User
Or this function could be done a different way instead of PHP.
Yes we have figured that out. In Java.
Re: [Release] Super Rebirth Rings
Can this be done in HTML?
Re: [Release] Super Rebirth Rings
Quote:
Originally Posted by
New User
Can this be done in HTML?
You wanna try? Anything is possible.