• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Gesior AAC] Outfit Shower

Pening

Pingwin :P
Joined
Nov 25, 2008
Messages
152
Reaction score
6
Location
Poland/Płock
How it work?
So script shows which outfit or addon player wear ;)

Just past this script in characters.php. After Account Status (~ line 128) or somewhere you want ;D

Code:
$main_content .= '<table width=100%><tr><td align=center WIDTH=25%>';
                    //Outfit shower by Pening
            $id = $player->getCustomField("id");

            $main_content .= '<table with=100% style="border: solid 1px #888888;" CELLSPACING="3"><TR>';        
                        $listaddon = array('128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','158','159','251','252','268','269','270','273','278','279','288','289','324','325'); 
                        $lookadd = array('0','1','2','3');
                        foreach ($listaddon as $pid => $name)
                        foreach ($lookadd as $addo => $name) {
                        $addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$id.' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch();

                           if($addon1[looktype] == true ) {
                  

                        $finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;
            $main_content .= '<TD with=50% style="background-color: '.$config['site']['darkborder'].'"><img src="images/addons/'.$finaddon.'.gif"/></TD>';
            }


            }
                 $main_content .= '</tr>';
                              $main_content .= '</TABLE></td>';

Extract folder addons to folder images
 

Attachments

I added table, God/CM outfit and yalaharian Outfit, Addons ;)

57 downloads and only 2 rep ;/

Code:
//Outfit shower by Pening
            $id = $player->getCustomField("id");

            $main_content .= '<td align=center><br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1 WIDTH=10%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD align="left" COLSPAN=1 CLASS=white><B>Wear</B></TD></TD align="left"></TD></TR>';        
                        $listaddon = array('128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','158','159','251','252','268','269','270','273','278','279','288','289','302','324','325'); 
                        $lookadd = array('0','1','2','3');
                        foreach ($listaddon as $pid => $name)
                        foreach ($lookadd as $addo => $name) {
                        $addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$id.' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch();

                           if($addon1[looktype] == true ) {
                  

                        $finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;
            $main_content .= '<TD with=50% style="background-color: '.$config['site']['darkborder'].'"><img src="images/addons/'.$finaddon.'.gif"/></TD>';
            }


            }
                 $main_content .= '</tr>';
                              $main_content .= '</TABLE></td>';
 

Attachments

Sure, there.

outfits.png
 
Back
Top