Offi Files Rebirth script (work)

Initiate Mage
Joined
Sep 25, 2008
Messages
3
Reaction score
1
This script still needs abit of work!

Me and Raniko were working abit on a Rebirth script, and wanted to release this alpha stage of it in public :) it still needs some fixing but atleast you guys have a base ;)

Code:
<?php
    $MD5Code = "kikugalanet";        // Your Neuz MD5 Code
    $dbAddr = 'Your SQL Express Here';        // Your MSSQL Host IP
    $dbUser = 'sa';            // Your Database user
    $dbPass = 'Your DB Pass';        // Your Database User password
    $dbName = "CHARACTER_01_DBF";        // Your Account Database
    $server_name = "Flyff";    // Define your Servername here
    $reg_allow = 1;            // To turn on registering a write "1"
    if(!extension_loaded("mssql")) {
        echo "The required module is not enabled on your MSSQL server. Please enable it.";
        exit();
    }
    
    $link = mssql_connect($dbAddr, $dbUser, $dbPass) or die ("Could not connect to the database. Please check your settings.");
    mssql_select_db($dbName, $link);
?>
<table width="500" border="0" class="tables2">
  <tr>
    <td align="center" height="18"></td>
  </tr>
  <tr>
    <td align="left" class="Estilo3"></td>
  </tr>
  <tr>
    <td align="center" class="estilo3"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        
	<td align="center">
<?php
if ($act == 'reborn')
      {
         $id = $_GET["id"];
         $matchrows = mssql_query("SELECT * FROM characters AS c INNER JOIN accounts AS a ON a.username = c.accountname WHERE c.id = $id AND a.username = '$user'");
         $checkrows = mssql_num_rows($matchrows);
         if ($checkrows != 0)
         {
            $id = $_GET["id"];
            $query = mssql_query("SELECT * FROM characters WHERE id = $id");
            $get = mssql_fetch_array($query);
            $class = $get['class'];
            $lvl = $get['level'];
            $rebirths = $get['rebirths'];
            
            if (($lvl == 121) && ($class >= 24) && ($class <= 31) && ($rebirths < $maxrebirths) && ($penya >= $rebirthcost))
            {
               if ($class == 24) { mssql_query("UPDATE characters SET class = 16 WHERE id = $id"); }
               if ($class == 25) { mssql_query("UPDATE characters SET class = 17 WHERE id = $id"); }
               if ($class == 26) { mssql_query("UPDATE characters SET class = 18 WHERE id = $id"); }
               if ($class == 27) { mssql_query("UPDATE characters SET class = 19 WHERE id = $id"); }
               if ($class == 28) { mssql_query("UPDATE characters SET class = 20 WHERE id = $id"); }
               if ($class == 29) { mssql_query("UPDATE characters SET class = 21 WHERE id = $id"); }
               if ($class == 30) { mssql_query("UPDATE characters SET class = 22 WHERE id = $id"); }
               if ($class == 31) { mssql_query("UPDATE characters SET class = 23 WHERE id = $id"); }
               
               mssql_query("UPDATE characters SET level = 60 WHERE id = $id");
               mssql_query("UPDATE characters SET world = 1 WHERE id = $id");
               mssql_query("UPDATE characters SET posx = 6973 WHERE id = $id");
               mssql_query("UPDATE characters SET posy = 10 WHERE id = $id");
               mssql_query("UPDATE characters SET posz = 3328 WHERE id = $id");
               mssql_query("UPDATE characters SET rebirths = rebirths + 1 WHERE id = $id");
			   mssql_query("UPDATE characters SET penya = $penya - $rebirthcost WHERE id = $id");
               
               if (mssql_affected_rows() != 0)
			   {
                  echo "<center><h3>Character has successfully been rebirth!</h3></center>";
               }
               else
               {
                  echo "<center><h3>An error has occured, please try again.</h3></center>";
               }
            }
            else
            {
               echo "<center><h3>Your character can not yet be rebirth. You must be level 120 HERO and get 20000000 of penya.</h3></center>";
            }
        }
    }
?>

Cheers, Shihen & Raniko
 
This script still needs abit of work!

Me and Raniko were working abit on a Rebirth script, and wanted to release this alpha stage of it in public :) it still needs some fixing but atleast you guys have a base ;)

Code:
<?php
    $MD5Code = "kikugalanet";        // Your Neuz MD5 Code
    $dbAddr = 'Your SQL Express Here';        // Your MSSQL Host IP
    $dbUser = 'sa';            // Your Database user
    $dbPass = 'Your DB Pass';        // Your Database User password
    $dbName = "CHARACTER_01_DBF";        // Your Account Database
    $server_name = "Flyff";    // Define your Servername here
    $reg_allow = 1;            // To turn on registering a write "1"
    if(!extension_loaded("mssql")) {
        echo "The required module is not enabled on your MSSQL server. Please enable it.";
        exit();
    }
    
    $link = mssql_connect($dbAddr, $dbUser, $dbPass) or die ("Could not connect to the database. Please check your settings.");
    mssql_select_db($dbName, $link);
?>
<table width="500" border="0" class="tables2">
  <tr>
    <td align="center" height="18"></td>
  </tr>
  <tr>
    <td align="left" class="Estilo3"></td>
  </tr>
  <tr>
    <td align="center" class="estilo3"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        
	<td align="center">
<?php
if ($act == 'reborn')
      {
         $id = $_GET["id"];
         $matchrows = mssql_query("SELECT * FROM characters AS c INNER JOIN accounts AS a ON a.username = c.accountname WHERE c.id = $id AND a.username = '$user'");
         $checkrows = mssql_num_rows($matchrows);
         if ($checkrows != 0)
         {
            $id = $_GET["id"];
            $query = mssql_query("SELECT * FROM characters WHERE id = $id");
            $get = mssql_fetch_array($query);
            $class = $get['class'];
            $lvl = $get['level'];
            $rebirths = $get['rebirths'];
            
            if (($lvl == 121) && ($class >= 24) && ($class <= 31) && ($rebirths < $maxrebirths) && ($penya >= $rebirthcost))
            {
               if ($class == 24) { mssql_query("UPDATE characters SET class = 16 WHERE id = $id"); }
               if ($class == 25) { mssql_query("UPDATE characters SET class = 17 WHERE id = $id"); }
               if ($class == 26) { mssql_query("UPDATE characters SET class = 18 WHERE id = $id"); }
               if ($class == 27) { mssql_query("UPDATE characters SET class = 19 WHERE id = $id"); }
               if ($class == 28) { mssql_query("UPDATE characters SET class = 20 WHERE id = $id"); }
               if ($class == 29) { mssql_query("UPDATE characters SET class = 21 WHERE id = $id"); }
               if ($class == 30) { mssql_query("UPDATE characters SET class = 22 WHERE id = $id"); }
               if ($class == 31) { mssql_query("UPDATE characters SET class = 23 WHERE id = $id"); }
               
               mssql_query("UPDATE characters SET level = 60 WHERE id = $id");
               mssql_query("UPDATE characters SET world = 1 WHERE id = $id");
               mssql_query("UPDATE characters SET posx = 6973 WHERE id = $id");
               mssql_query("UPDATE characters SET posy = 10 WHERE id = $id");
               mssql_query("UPDATE characters SET posz = 3328 WHERE id = $id");
               mssql_query("UPDATE characters SET rebirths = rebirths + 1 WHERE id = $id");
			   mssql_query("UPDATE characters SET penya = $penya - $rebirthcost WHERE id = $id");
               
               if (mssql_affected_rows() != 0)
			   {
                  echo "<center><h3>Character has successfully been rebirth!</h3></center>";
               }
               else
               {
                  echo "<center><h3>An error has occured, please try again.</h3></center>";
               }
            }
            else
            {
               echo "<center><h3>Your character can not yet be rebirth. You must be level 120 HERO and get 20000000 of penya.</h3></center>";
            }
        }
    }
?>

Cheers, Shihen & Raniko
Wow thank you I wanted to start making this today lol well i will use your base then lesser work and i could learn from it since im just learning php :thumbup1:
 
Last edited:
Shihen
u using some Control Painel and sending then to the rebirth page right?
can u release the login page, cuz,
if still saying undefined Variable: act
and...
all other ;D
thx
 
Well, short of the long thing is, we kinda fucked up the login page :X it dissapeared in like some sort of computer fire, if ya know what i mean ? (deleted by accident)
 
wow just figured out, a part of that is actually a part of a reg page :3

Code:
<?php
    $MD5Code = "kikugalanet";        // Your Neuz MD5 Code
    $dbAddr = 'Your SQL Express Here';        // Your MSSQL Host IP
    $dbUser = 'sa';            // Your Database user
    $dbPass = 'Your DB Pass';        // Your Database User password
    $dbName = "CHARACTER_01_DBF";        // Your Account Database
    $server_name = "Flyff";    // Define your Servername here
    $reg_allow = 1;            // To turn on registering a write "1"
    if(!extension_loaded("mssql")) {
        echo "The required module is not enabled on your MSSQL server. Please enable it.";
        exit();
    }
    
    $link = mssql_connect($dbAddr, $dbUser, $dbPass) or die ("Could not connect to the database. Please check your settings.");
    mssql_select_db($dbName, $link);
?>
 
Well, this is my script-.-''

This isn't going to work, the only thing you made it's change mysql for mssql and add a small part on header. And this isn't going to work, if you see the selections, inserts and updates, it's for caali DB...

Too you put $rebirthcost variable, but you didn't defined.

The only thing you made is copy and steal codes from another people.
 
Well, this is my script-.-''

This isn't going to work, the only thing you made it's change mysql for mssql and add a small part on header. And this isn't going to work, if you see the selections, inserts and updates, it's for caali DB...

Too you put $rebirthcost variable, but you didn't defined.

The only thing you made is copy and steal codes from another people.

I knew something isnt right.

When i saw the mssql part from someones script i was like WTH? And he said he made it -.-''
 
Im curious, you are just lerning with this script right?

I mean, you saw what caja said ....

I'am learning php :O
not this thing just checking i learned how to connect to mssql now :O
$servername = 'QUGET-LAPTOP\SQLEXPRESS';
mssql_connect ($servername,'xamp','test');
;P
 
I'am learning php :O
not this thing just checking i learned how to connect to mssql now :O
$servername = 'QUGET-LAPTOP\SQLEXPRESS';
mssql_connect ($servername,'xamp','test');
;P

i see ^^

good luck :thumbup1:

just curious, where are you working now? iFlyff(mica's) insanityFlyff?
 
i see ^^

good luck :thumbup1:

just curious, where are you working now? iFlyff(mica's) insanityFlyff?

Im not working just chilling

iFlyff is gone :(: thats sucks :'(
now i'm around insanityFlyff but they don't seem to be a good server ... its a mess there. Well lets hope iflyff gets back who knows :wink:

weeeeeeeeeeeeeeeeee~
 
Rawr i luled when i saw the code xDDDDD MK work on meh server :O oh and if you tweak this like ALOT!!!! it actually works. not gonna implement it cuz rebirth is kinda ghey but give it some elbow grease and you blood sweat and tears, it will work for ya ^_~
 
Rawr i luled when i saw the code xDDDDD MK work on meh server :O oh and if you tweak this like ALOT!!!! it actually works. not gonna implement it cuz rebirth is kinda ghey but give it some elbow grease and you blood sweat and tears, it will work for ya ^_~

Omg, it doesn't works. If you want to works with official files you'll need to change about the 90% of the code.

This code it's usseles...
 
Back