[SHARE] HairStyle & Bright pts. Reset

Status
Not open for further replies.
Junior Spellweaver
Joined
Jan 3, 2008
Messages
182
Reaction score
179
Hair Change

PHP:
<?php
//
echopage('header', 'Hair Changer');

$CNum = $_POST['kode'];
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_NUMBER,$CNum));
$rows=mssql_num_rows($result);
if ($rows>0) {
    $rows=mssql_fetch_assoc($result); 
    extract($rows);
    $Gold = ($ChaMoney);
    $CNum = ($ChaNum);
}

echo '
<script>
function checkform() {
}
</script>
';

$User = $_COOKIE['user'];
$Hair = $_POST['expoint'];
$Total = 2000000;
$CNum = $_POST['kode'];

if($Gold >= $Total) {

    if($_POST['hair']=='Tukar') {

        connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
        mssql_query(sprintf(GOLD_DECREASE, $Total, $CNum));

        connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
        mssql_query(sprintf(HAIR_CHANGE, $Hair, $CNum));

        echo '
        <div align=center>
        <font size=2 color=green><strong>Hair Change Success!</strong></font><p>
        </div>
        ';

        $user = $_COOKIE['user'];
        connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
        $result = mssql_query(sprintf(SELECT_USER_PASS,$user));
        $rows=mssql_num_rows($result);
        if ($rows>0) {
            $rows=mssql_fetch_assoc($result); 
            extract($rows);
            $UNum = ($UserNum);
            $Point = ($UserPoint);
        }
    }
} else {
        echo '
        <div align=center>
        <font size=2 color=orange><strong>Sorry you do not have enough gold!</strong></font><p>
        </div>
        ';
}

$user = $_COOKIE['user'];
connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_USER_PASS,$user));
$rows=mssql_num_rows($result);
if ($rows>0) {
    $rows=mssql_fetch_assoc($result); 
    extract($rows);
    $UNum = ($UserNum);
    $Point = ($UserPoint);
}

echo "
<table width=676><tr><td align=center>
    <font size=2 color=orange></strong><br>
    2 Million Ran Gold to Change Hair.<br>
</td></tr></table><br>
<center><table width=500><tr><td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Name</strong></font></td>
<td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Gold</strong></font></td>
<td width=20% bgcolor=#FFFFFF> <Font size=2><strong>HairStyle#</strong></font></td>
<td width=15% bgcolor=#FFFFFF> <Font size=2><strong>Code</strong></font></td></tr><tr>
";

connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER2,$UNum));
if ($rows == 0) {
        echo '
        <div align=center>
        <font size=2 color=orange><strong>No Character!</strong></font><p>
        </div>
        ';
} else {
    while ($line = mssql_fetch_assoc($result)) {
        foreach ($line as $display_index => $col_value) {
                if ($display_index == 1) {
                    $col_value = determine_chaclass($col_value);
                }
                echo "<td valign=top> $col_value</td>";
        }
        echo "</tr><tr>";
    }
}
echo "</tr></table></center><br>
<center><table width=500><tr><td><br>
<form name='hairchange' action='home.php?page=hairchange' method='post' onsubmit='return checkform()' autocomplete='off'>
    <font size=2 color=orange>Code : </font>
    <select name=kode>
";

$UserNum = ($UserNum);
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_CODE,$UserNum));
while ($line = mssql_fetch_assoc($result)) {
    foreach ($line as $display_index => $col_value) {
        echo"
            <option value=$col_value>$col_value
        ";
    }
}

echo "
    </select>
    </td><td><font size=2 color=orange>amount point you want to change : </font>
    <select name=expoint>
        <option value=1>1
        <option value=2>2
        <option value=3>3
        <option value=4>4
        <option value=5>5
        <option value=6>6
        <option value=7>7
        <option value=8>8
        <option value=9>9
        <option value=10>10
        <option value=11>11
        <option value=12>12


    </select>
      
    <input type=hidden name=hair value='Tukar'>
    <input type=submit name=submit value='Change'></td></tr></table>
</form>
<a href=http://24.180.32.219/ran/home.php?page=brightpt><img src=img/stat.jpg border=0></a>
";

echopage('footer', '');
?>
Bright pt Reset

PHP:
<?php
//
echopage('header', 'Bright pts. Reset');

$CNum = $_POST['kode'];
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_NUMBER,$CNum));
$rows=mssql_num_rows($result);
if ($rows>0) {
    $rows=mssql_fetch_assoc($result); 
    extract($rows);
    $Gold = ($ChaMoney);
    $CNum = ($ChaNum);
}

echo '
<script>
function checkform() {
}
</script>
';

$User = $_COOKIE['user'];
$Reset = $_POST['expoint'];
$Total = 2000000;
$CNum = $_POST['kode'];

if($Gold >= $Total) {

    if($_POST['bright']=='Tukar') {

        connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
        mssql_query(sprintf(GOLD_DECREASE, $Total, $CNum));

        connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
        mssql_query(sprintf(BRIGHT_CHANGE, $CNum));

        echo '
        <div align=center>
        <font size=3 color=green><strong>Bright Point Reset Success!</strong></font><p>
        </div>
        ';

        $user = $_COOKIE['user'];
        connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
        $result = mssql_query(sprintf(SELECT_USER_PASS,$user));
        $rows=mssql_num_rows($result);
        if ($rows>0) {
            $rows=mssql_fetch_assoc($result); 
            extract($rows);
            $UNum = ($UserNum);
            $Point = ($UserPoint);
        }
    }
} else {
        echo '
        <div align=center>
        <font size=2 color=orange><strong>Sorry you do not have enough gold!</strong></font><p>
        </div>
        ';
}

$user = $_COOKIE['user'];
connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_USER_PASS,$user));
$rows=mssql_num_rows($result);
if ($rows>0) {
    $rows=mssql_fetch_assoc($result); 
    extract($rows);
    $UNum = ($UserNum);
    $Point = ($UserPoint);
}

echo "
<table width=676><tr><td align=center>
    <font size=4 color=yellow></strong><br>
    1 Million Ran Gold to reset Bright pts..<br>
</td></tr></table><br>
<center><table width=500><tr><td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Name</strong></font></td>
<td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Gold</strong></font></td>
<td width=20% bgcolor=#FFFFFF> <Font size=2><strong>BrightPoints</strong></font></td>
<td width=15% bgcolor=#FFFFFF> <Font size=2><strong>Code</strong></font></td></tr><tr>
";

connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER3,$UNum));
if ($rows == 0) {
        echo '
        <div align=center>
        <font size=2 color=orange><strong>No Character!</strong></font><p>
        </div>
        ';
} else {
    while ($line = mssql_fetch_assoc($result)) {
        foreach ($line as $display_index => $col_value) {
                if ($display_index == 1) {
                    $col_value = determine_chaclass($col_value);
                }
                echo "<td valign=top> $col_value</td>";
        }
        echo "</tr><tr>";
    }
}
echo "</tr></table></center><br>
<center><table width=500><tr><td><br>
<form name='brightpt' action='home.php?page=brightpt' method='post' onsubmit='return checkform()' autocomplete='off'>
    <font size=2 color=orange>Code : </font>
    <select name=kode>
";

$UserNum = ($UserNum);
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_CODE,$UserNum));
while ($line = mssql_fetch_assoc($result)) {
    foreach ($line as $display_index => $col_value) {
        echo"
            <option value=$col_value>$col_value
        ";
    }
}

echo "
    
      
    <input type=hidden name=bright value='Tukar'>
    <input type=submit name=submit value='Reset'></td></tr></table>
</form>
";

echopage('footer', '');
?>
Just Change the red in the line in hairchange.php
<a href=http://xx.xx.xx.xx/ran/home.php?page=brightpt><img src=img/stat.jpg border=0></a>

Cost per Hairstyle..Find this line in hairchange.php

$User = $_COOKIE['user'];
$Hair = $_POST['expoint'];
$Total = 2000000; //how much hair change is worth.
$CNum = $_POST['kode'];


If you have any question just post it here^^
 

Attachments

Last edited:
whta is this problem?


Warning: mssql_query(): message: Could not find stored procedure 'SELECT_CHARACTER3'. (severity 16) in C:\Program Files\Abyss Web Server\htdocs\bsnran\page\bright.php on line 86

Warning: mssql_query(): Query failed in C:\Program Files\Abyss Web Server\htdocs\bsnran\page\bright.php on line 86

Warning: mssql_fetch_assoc(): supplied argument is not a valid MS SQL-result resource in C:\Program Files\Abyss Web Server\htdocs\bsnran\page\bright.php on line 94
 
Upvote 0
@lourence
ok ok ok ....
@the one who share this
th hair style & bright reset doesnt added in my CP but no error occured...
how to fix this??
help help help please please please tnx
 
Upvote 0
Warning: mssql_query(): message: Could not find stored procedure 'SELECT_CHARACTER3'. (severity 16) in C:\Program Files\Abyss Web Server\htdocs\bsnran\page\bright.php on line 86

Warning: mssql_query(): Query failed in C:\Program Files\Abyss Web Server\htdocs\bsnran\page\bright.php on line 86

Warning: mssql_fetch_assoc(): supplied argument is not a valid MS SQL-result resource in C:\Program Files\Abyss Web Server\htdocs\bsnran\page\bright.php on line 94
Just add this line in your Query.php

DEFINE("SELECT_CHARACTER3", "SELECT ChaName, ChaLevel, ChaMoney, ChaBright, ChaNum FROM ChaInfo WHERE UserNum = '%s' AND ChaOnline = 0");


@lourence
ok ok ok ....
@the one who share this
th hair style & bright reset doesnt added in my CP but no error occured...
how to fix this??
help help help please please please tnx
Download the image and put it in you img folder in your cp.

then copy and paste this line in your home.php

stm_aix("p0i4","p0i3",[2,"","img/hairc.jpg","img/hairc.jpg",0,0,0,"home.php?page=hairchange"]);


ex.

stm_aix("p3i0","p0i2",[2,"","img/rank-qigong.jpg","img/rank-qigong1.jpg",0,0,0,"home.php?page=rank-qigong","_self","","","","",0,0,0,"","",0,0,0,0,0]);
stm_ep(); // paste it after this line
stm_aix("p0i4","p0i3",[2,"","img/hairc.jpg","img/hairc.jpg",0,0,0,"home.php?page=hairchange"]);
stm_aix("p0i4","p0i3",[2,"","img/logout.jpg","img/logout1.jpg",0,0,0,"logout.php"]);
stm_em();
 

Attachments

  • hairc - [SHARE] HairStyle & Bright pts. Reset - RaGEZONE Forums
    hairc.webp
    1.6 KB · Views: 52
Upvote 0
Status
Not open for further replies.
Back