What's new

Z Gęsior Acc do Znote Acc

sempele

Active User
Joined
Nov 19, 2010
Messages
107
Reaction score
3
Cześć. Używam najnowszego Znote Acc. Przeniosłem się z Gęsiora bo uważam, że Znote jest lepszy ponieważ jest ciągle update. Pomoże mi ktoś lub też wytłumaczy mi jak mam zamienić funkcję itd, żeby skrypt działał na znote ?
PHP:
<style>
    .bounty_hunter_header {
        font-size: 16px;
    }
    .bounty_hunter_text {
        font-size: 15px;
        color: black;
        text-align: left;
        padding: 4px;
    }
    .bounty_hunter_table_header {
        font-size: 14px;
        color: white;
        background-color: #505050;
        text-align: center;
    }
    .lightRow {
        font-size: 14px;
        color: black;
        background-color: #F1E0C6;
        text-align: center;
    }
   .darkRow {
        font-size: 14px;
        color: black;
        background-color: #D4C0A1;
        text-align: center;
    }

</style>
<?php
////////////// CONFIG START /////////////////////////
$customCurrency = ''; // If you are using a custom currency add the name here
$imgPath = 'http://outfit-images.ots.me/animatedOutfits1090/animoutfit.php'; // Path to your images (default is Gesior 10.90 animated outfit images)
////////////// CONFIG END /////////////////////////
$main_content .= '
<center><h2>Bounty Hunters System</h2>
<table border="2" cellpadding="4" cellspacing="1" width="100%">
<tr class="bounty_hunter_table_header">
        <td class="bounty_hunter_header" colspan="2">General Information</td>
    </tr>
    <div>
 <img src="images/bounty.png" alt="myPic" />
 </div>
    <tr class="lightRow">
        <td><strong>Command:</strong></td>
        <td>!hunt playerName, points/gold'. (($customCurrency != '') ? '/'. $customCurrency.'' : '') . ', amount</td>
    </tr>
    <tr class="darkRow">
        <td colspan="2"><strong>Examples</strong></td>
    </tr>
    <tr class="lightRow">
        <td><strong>Add by points</strong></td>
        <td><strong>!hunt John, points, 10</strong><br/>Add bounty on player named John worth 10 points.<strong><br/>Min = 10<br/>Max = 500</strong></td>
    </tr>
    <tr class="darkRow">
        <td><strong>Add by gold</strong></td>
        <td><strong>!hunt John, gold, 100000</strong><br/>Add bounty on player named John worth 100,000 gold coins.<strong><br/>Min = 10cc<br/>Max = 100cc</strong></td>
    </tr>
    ';
    if ($customCurrency != '') {
        $main_content .= '
        <tr class="lightRow">
            <td><strong>Add by '.$customCurrency.'</strong></td>
            <td><strong>!hunt John, '.$customCurrency.', 20</strong><br/>Add bounty on player named John worth 20 '.$customCurrency.'.</td>
        </tr>
        ';   
    }
$main_content .= '
</table>
<br/>
';

$main_content .= '
<table border="2" cellpadding="4" cellspacing="1" width="100%">
    <tr class="bounty_hunter_table_header">
        <td>Hunted by</td>
        <td>Reward</td>
        <td>Player Hunted</td>
        <td>Outfit</td>
        <td>Killed by</td>
    </tr>';
$num = 0;
$bountys = $SQL->query('SELECT A.* , B.name AS hunted_by, C.name AS player_hunted, D.name AS killed_by
                        FROM bounty_hunter_system AS A
                        LEFT JOIN players AS B ON A.hunter_id = B.id
                        LEFT JOIN players AS C ON A.target_id = C.id
                        LEFT JOIN players AS D ON A.killer_id = D.id
                        ORDER BY A.killed,A.prize DESC');
if ($bountys->rowCount() > 0) {
    foreach($bountys as $bounty)
    {
        if ($bounty['killed_by']){
            $killed_by = '<a href="?subtopic=characters&name='.$bounty['killed_by'].'">'.$bounty['killed_by'].'</a>';
        } else {
            $killed_by = 'still alive';
        }
        $skill = $SQL->query('SELECT * FROM '.$SQL->tableName('players').' WHERE '.$SQL->fieldName('id').' = '.$bounty['target_id'].'')->fetch();
        $main_content .= '
            <TR class="'.(($num % 2 == 0) ? "lightRow" : "darkRow").'">
                <TD><center><b><a href="?subtopic=characters&name='.$bounty['hunted_by'].'">'.$bounty['hunted_by'].'</a></b></center></td>
                <TD><center><b>'.$bounty['prize'].' '.$bounty['currencyType'].'</b></center></td>
                <TD><center><b><a href="?subtopic=characters&name='.$bounty['player_hunted'].'">'.$bounty['player_hunted'].'</a></b></center></td>
                <TD><div style="position: relative; width: 32px; height: 32px;"><div style="background-image: url(\''.$imgPath.'?id='.$skill['looktype'].'&addons='.$skill['lookaddons'].'&head='.$skill['lookhead'].'&body='.$skill['lookbody'].'&legs='.$skill['looklegs'].'&feet='.$skill['lookfeet'].'\'); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: 0px; bottom: 0px;"></div></div></td>
                <TD><center><b>'.$killed_by.'</b></center></td>
            </TR>';
        $num++;
    }
} else {
    $main_content.='<TR class="lightRow"><TD colspan=5><center>Currently there are not any bounty hunter offers.</center></td></TR>';
}
$main_content .='</table>';
?>
 
Top