[SHARE] HairStyle & Bright pts. Reset

Results 1 to 13 of 13
  1. #1
    Account Upgraded | Title Enabled! bk2483 is offline
    MemberRank
    Jan 2008 Join Date
    somewhereLocation
    473Posts

    [SHARE] HairStyle & Bright pts. Reset

    Hair Change

    PHP Code:
    <?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>&nbsp;<Font size=2><strong>Name</strong></font></td>
    <td width=25% bgcolor=#FFFFFF>&nbsp;<Font size=2><strong>Gold</strong></font></td>
    <td width=20% bgcolor=#FFFFFF>&nbsp;<Font size=2><strong>HairStyle#</strong></font></td>
    <td width=15% bgcolor=#FFFFFF>&nbsp;<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>&nbsp;$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>
        &nbsp;&nbsp;
        <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 Code:
    <?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>&nbsp;<Font size=2><strong>Name</strong></font></td>
    <td width=25% bgcolor=#FFFFFF>&nbsp;<Font size=2><strong>Gold</strong></font></td>
    <td width=20% bgcolor=#FFFFFF>&nbsp;<Font size=2><strong>BrightPoints</strong></font></td>
    <td width=15% bgcolor=#FFFFFF>&nbsp;<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>&nbsp;$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 
    "
        
        &nbsp;&nbsp;
        <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^^
    Attached Thumbnails Attached Thumbnails hair.bmp  
    Attached Files Attached Files
    Last edited by bk2483; 05-02-08 at 01:09 AM.


  2. #2
    YouEatShit! mike915 is offline
    MemberRank
    Aug 2007 Join Date
    Ran OnlineLocation
    381Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    thank u for this script..

  3. #3
    Account Upgraded | Title Enabled! kevinmejica123 is offline
    MemberRank
    Nov 2006 Join Date
    253Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    waw i very need this one for my player who very like to PK :)
    ty very much :)
    This Is Very Easy To Fix :) Tnx

  4. #4
    Account Upgraded | Title Enabled! kevinmejica123 is offline
    MemberRank
    Nov 2006 Join Date
    253Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    why it doesnt pop up in the control panel
    nothing happened??

  5. #5
    Quit lourence8 is offline
    MemberRank
    Oct 2006 Join Date
    PHILIPPINESLocation
    1,662Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    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

  6. #6
    Account Upgraded | Title Enabled! kevinmejica123 is offline
    MemberRank
    Nov 2006 Join Date
    253Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    maybe u forget to edit ur address
    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>

  7. #7
    Quit lourence8 is offline
    MemberRank
    Oct 2006 Join Date
    PHILIPPINESLocation
    1,662Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    ^
    ^
    its only for hair....

  8. #8
    Account Upgraded | Title Enabled! kevinmejica123 is offline
    MemberRank
    Nov 2006 Join Date
    253Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    @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

  9. #9
    Account Upgraded | Title Enabled! bk2483 is offline
    MemberRank
    Jan 2008 Join Date
    somewhereLocation
    473Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    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();
    Attached Thumbnails Attached Thumbnails hairc.jpg  

  10. #10
    Quit lourence8 is offline
    MemberRank
    Oct 2006 Join Date
    PHILIPPINESLocation
    1,662Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    @bk2483
    tnx...

    i only need bright bcoz i have hair style in my NPC...

  11. #11
    Account Upgraded | Title Enabled! evilcyberx28 is offline
    MemberRank
    Aug 2007 Join Date
    463Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    can you share your hairstye in npc sir. lourence8?

  12. #12
    Quit lourence8 is offline
    MemberRank
    Oct 2006 Join Date
    PHILIPPINESLocation
    1,662Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    ^
    ^
    if i share... we have different item.isf sir... result is bug

  13. #13
    Account Upgraded | Title Enabled! edilon09 is offline
    MemberRank
    Apr 2007 Join Date
    SoMewHere dOwN tHE rOaDLocation
    811Posts

    Re: [SHARE] HairStyle & Bright pts. Reset

    i wish someone will create at php script for hair color exchange since we have to hair color card



Advertisement