Latest code as of 08/07/09:
Main problem is that quests still seem to be a problem. Rank is updated but quests stay the same.Code:<?PHP $sql_server = "localhost"; //<-- MSSQL server address/ip $sql_user = "sa"; //<-- MSSQL username $sql_pass = "sa"; //<-- MSSQL password $sql_data = "cabaldb"; //<-- MSSQL database $conn=mssql_connect($sql_server,$sql_user,$sql_pass); $xadb = mssql_select_db($sql_data,$conn); $Data = '<html>Your Character Name: <br><form action=bypassrankcabal.php method=post><input type=text name=charname><br><br><input type=submit name=submit value="Submit"></form></html>'; $char = $_POST['charname']; if (isset($_POST['charname'])){ if(preg_match('%[a-zA-Z0-9[\]]%', $char)){ $findcharrank = mssql_query("select * from DBO.cabal_character_table where round(((((([Style] % (67108864)) % (131072)) % (8192)) % (256)) / 8 ),1) = 11 and name = '$char'"); $total = mssql_fetch_array($findcharrank); if ($total[0] == 1){ mssql_query("update dbo.cabal_character_table set [Style]=[Style]+8 where round(((((([Style] % (67108864)) % (131072)) % (8192)) % (256)) / 8 ),1) = 11 and name = '$char'"); echo '<b>', $char, ' is now Rank 12!<p></b>'; } else { echo '<b>Character is either not rank 11, or can not be found.</b><p>';} } else { echo '<b>Invalid character used!<p></b>'; } } echo $Data; ?>


Reply With Quote


