• 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!

AAC Znote acc, monster loot help

dfs1

Member
Joined
Aug 27, 2011
Messages
82
Solutions
1
Reaction score
8
Could you guide me please, I'm putting loot monsters on my website, the .php of the monsters are displayed fine when they are in the root folder (www), when creating another folder to have all the monsters in that folder (www/bosses ). They do not work for me and it gives me an error, I show you some examples.

example root folder (www)











bosses folder example (www/bosses/)
Captura.png


I shared my .php of the monsters to see if they detect an error or could help me, thanks.

PHP:
<?php require_once 'engine/init.php';include 'layout/overall/header.php'; ?>
<div class="well feedContainer preventCollapse">
                        <!-- ALIMENTACIÓN PRINCIPAL -->

<tipo de estilo="texto/css">
   .page_rarityitems .leftPane ul {
      relleno-izquierda: 28px;
   }
   /* el silencio es oro */
</estilo>

 
   <h1>Recompensa: Boros, esencia de magma</h1>
   <img src="https://outfit-images.ots.me/1285_walk_animation/animoutfit.php?id=254&addons=3&head=60&body=102&legs=60&feet=41&mount=0&direction=3" alt="Imagen de boros">
 
   <h3>Información general:</h3>
   <ul>
      <li><strong>Salud:</strong> 92005</li>
      <li><strong>Experiencia:</strong> 9605</li>
      <li><strong>Ubicación:</strong> Arsina</li>
   </ul>

         <h3>Lista de botines:</h3>
      <tabla>
         <cabeza>
            <tr>
               <th>Imagen</th>
               <th>Nombre</th>
               <th>% de probabilidad</th>
               <th>Cantidad máxima</th>
            </tr>
         </thead>
         <tbody>
                        <tr>
               <td><img src="/images/store/64/2152.png" alt="Imagen del objeto de botín: moneda de oro"></td>
               <td>Moneda de platino</td>
               <td>% 100</td>
               <td>5</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/25858.png" alt="Imagen del objeto de botín: moneda de oro"></td>
               <td>Ficha de plata</td>
               <td>% 60,14</td>
               <td>3</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/25860.png" alt="Imagen del objeto de botín: moneda de oro"></td>
               <td>Ficha de oro</td>
               <td>% 56</td>
               <td>2</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/2155.png" alt="Image of loot item: gold coin"></td>
               <td>green gem</td>
               <td>% 70</td>
               <td>1</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/2156.png" alt="Image of loot item: plate shield"></td>
               <td>green gem</td>
               <td>% 70</td>
               <td>1</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/7757.png" alt="Image of loot item: plate shield"></td>
               <td>magma hammer</td>
               <td>% 25</td>
               <td>1</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/7753.png" alt="Image of loot item: plate shield"></td>
               <td>magma chopper</td>
               <td>% 25</td>
               <td>1</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/7746.png" alt="Image of loot item: plate shield"></td>
               <td>magma blade</td>
               <td>% 25</td>
               <td>1</td>
            </tr>
                        <tr>
               <td><img src="/images/store/64/7899.png" alt="Image of loot item: plate shield"></td>
               <td>magma coat</td>
               <td>% 50</td>
               <td>1</td>
            </tr>

                     </tbody>
      </table>
 
   
   <p><a href="../bosses.php">Back to Bestiary List</a></p>
 
<style type="text/css">
   .page_bestiary .leftPane h3 {
      margin-bottom: 0;
   }

   .grid-container {
      display: grid;
   }
   #bestiary-list {
      width: 100%;
      grid-template-columns: repeat(4, 22%);
      /*grid-auto-rows: minmax(250px, auto);*/
      grid-gap: 15px;
      justify-content: center;
   }
   #bestiary-list a {
      display: block;
      text-align: center;
      border:  1px solid;
      border-color: grey;
   }
   #bestiary-list a:hover {
      border-color: white;
   }
   #bestiary-list a .c-title {
      margin-bottom: 10px;
      height: 40px;
      vertical-align: middle;
   }
   #bestiary-list a .c-title .c-center {
      display: inline;
   }
   #bestiary-list a .c-title span {
      display: table-cell;
      height: 40px;
      vertical-align: middle;
   }
   #bestiary-list a .c-title h2 {
      font-size: 19px;
      line-height: 1;
      margin: 0;
   }
   #bestiary-list a p {
      m
</style>
   </div>
<?php include '/layout/overall/footer.php'; ?>

I hope you can help me, thanks community.
 
Last edited:
You need to change path, if you switch folder.

From this:
PHP:
<?php require_once 'engine/init.php';include 'layout/overall/header.php'; ?>

To this:
PHP:
<?php require_once '../engine/init.php';include '../layout/overall/header.php'; ?>
 
I also tried to change and I get an error, as if it did not find the address.

Captura.PNG

Lua:
<?php require_once '../engine/init.php';include '../layout/overall/header.php'; ?>
<div class="well feedContainer preventCollapse">
                                <!-- MAIN FEED -->

<style type="text/css">
    .page_rarityitems .leftPane ul {
        padding-left:  28px;
    }
    /* silence is golden */
</style>

    
    <h1>Reward: Boros, Magma Essence</h1>
    <img src="https://outfit-images.ots.me/1285_walk_animation/animoutfit.php?id=254&addons=3&head=60&body=102&legs=60&feet=41&mount=0&direction=3" alt="Image of boros">
    
    <h3>General Information:</h3>
    <ul>
        <li><strong>Health:</strong> 92005</li>
        <li><strong>Experience:</strong> 9605</li>
        <li><strong>Location:</strong> Arsina</li>
    </ul>

            <h3>Loot list:</h3>
        <table>
            <thead>
                <tr>
                    <th>Image</th>
                    <th>Name</th>
                    <th>% Chance</th>
                    <th>Max Qty</th>
                </tr>
            </thead>
            <tbody>
                                <tr>
                    <td><img src="../images/store/64/2152.png" alt="Image of loot item: gold coin"></td>
                    <td>Platinium coin</td>
                    <td>% 100</td>
                    <td>5</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/25858.png" alt="Image of loot item: gold coin"></td>
                    <td>Silver Token</td>
                    <td>% 60.14</td>
                    <td>3</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/25860.png" alt="Image of loot item: gold coin"></td>
                    <td>Gold Token</td>
                    <td>% 56</td>
                    <td>2</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/2155.png" alt="Image of loot item: gold coin"></td>
                    <td>green gem</td>
                    <td>% 70</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/2156.png" alt="Image of loot item: plate shield"></td>
                    <td>green gem</td>
                    <td>% 70</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7757.png" alt="Image of loot item: plate shield"></td>
                    <td>magma hammer</td>
                    <td>% 25</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7753.png" alt="Image of loot item: plate shield"></td>
                    <td>magma chopper</td>
                    <td>% 25</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7746.png" alt="Image of loot item: plate shield"></td>
                    <td>magma blade</td>
                    <td>% 25</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7899.png" alt="Image of loot item: plate shield"></td>
                    <td>magma coat</td>
                    <td>% 50</td>
                    <td>1</td>
                </tr>

                            </tbody>
        </table>
    
        
    <p><a href="../bosses.php">Back to Bestiary List</a></p>
    
<style type="text/css">
    .page_bestiary .leftPane h3 {
        margin-bottom: 0;
    }

    .grid-container {
        display: grid;
    }
    #bestiary-list {
        width: 100%;
        grid-template-columns: repeat(4, 22%);
        /*grid-auto-rows: minmax(250px, auto);*/
        grid-gap: 15px;
        justify-content: center;
    }
    #bestiary-list a {
        display: block;
        text-align: center;
        border:  1px solid;
        border-color: grey;
    }
    #bestiary-list a:hover {
        border-color: white;
    }
    #bestiary-list a .c-title {
        margin-bottom: 10px;
        height: 40px;
        vertical-align: middle;
    }
    #bestiary-list a .c-title .c-center {
        display: inline;
    }
    #bestiary-list a .c-title span {
        display: table-cell;
        height: 40px;
        vertical-align: middle;
    }
    #bestiary-list a .c-title h2 {
        font-size: 19px;
        line-height: 1;
        margin: 0;
    }
    #bestiary-list a p {
        m
</style>
    </div>
<?php include '/layout/overall/footer.php'; ?>
 
A HTTP 500 error means it's finding the correct file, but an internal error has occured. If it could not find the file, it would give you a 404 error instead.

You forgot to also change the path of the footer at the bottom of the file too, do the same thing as you did at the top.
 
If you are using UniServerZ, go into UniServerZ/core/apache2/logs/error.log and show the latest messages when you enter that url.

Did you change
PHP:
<?php include '/layout/overall/footer.php'; ?>

to
PHP:
<?php include '../layout/overall/footer.php'; ?>
?
 
I use ampps it is the same as xampp, but this marks me.
Captura.PNG

Lua:
<?php require_once '../engine/init.php';include '../layout/overall/header.php'; ?>

<div class="well feedContainer preventCollapse">
                                <!-- MAIN FEED -->

<style type="text/css">
    .page_rarityitems .leftPane ul {
        padding-left:  28px;
    }
    /* silence is golden */
</style>

    
    <h1>Reward: Boros, Magma Essence</h1>
    <img src="https://outfit-images.ots.me/1285_walk_animation/animoutfit.php?id=254&addons=3&head=60&body=102&legs=60&feet=41&mount=0&direction=3" alt="Image of boros">
    
    <h3>General Information:</h3>
    <ul>
        <li><strong>Health:</strong> 92005</li>
        <li><strong>Experience:</strong> 9605</li>
        <li><strong>Location:</strong> Arsina</li>
    </ul>

            <h3>Loot list:</h3>
        <table>
            <thead>
                <tr>
                    <th>Image</th>
                    <th>Name</th>
                    <th>% Chance</th>
                    <th>Max Qty</th>
                </tr>
            </thead>
            <tbody>
                                <tr>
                    <td><img src="../images/store/64/2152.png" alt="Image of loot item: gold coin"></td>
                    <td>Platinium coin</td>
                    <td>% 100</td>
                    <td>5</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/25858.png" alt="Image of loot item: gold coin"></td>
                    <td>Silver Token</td>
                    <td>% 60.14</td>
                    <td>3</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/25860.png" alt="Image of loot item: gold coin"></td>
                    <td>Gold Token</td>
                    <td>% 56</td>
                    <td>2</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/2155.png" alt="Image of loot item: gold coin"></td>
                    <td>green gem</td>
                    <td>% 70</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/2156.png" alt="Image of loot item: plate shield"></td>
                    <td>green gem</td>
                    <td>% 70</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7757.png" alt="Image of loot item: plate shield"></td>
                    <td>magma hammer</td>
                    <td>% 25</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7753.png" alt="Image of loot item: plate shield"></td>
                    <td>magma chopper</td>
                    <td>% 25</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7746.png" alt="Image of loot item: plate shield"></td>
                    <td>magma blade</td>
                    <td>% 25</td>
                    <td>1</td>
                </tr>
                                <tr>
                    <td><img src="../images/store/64/7899.png" alt="Image of loot item: plate shield"></td>
                    <td>magma coat</td>
                    <td>% 50</td>
                    <td>1</td>
                </tr>

                            </tbody>
        </table>
    
        
    <p><a href="../bosses.php">Back to Bestiary List</a></p>
    
<style type="text/css">
    .page_bestiary .leftPane h3 {
        margin-bottom: 0;
    }

    .grid-container {
        display: grid;
    }
    #bestiary-list {
        width: 100%;
        grid-template-columns: repeat(4, 22%);
        /*grid-auto-rows: minmax(250px, auto);*/
        grid-gap: 15px;
        justify-content: center;
    }
    #bestiary-list a {
        display: block;
        text-align: center;
        border:  1px solid;
        border-color: grey;
    }
    #bestiary-list a:hover {
        border-color: white;
    }
    #bestiary-list a .c-title {
        margin-bottom: 10px;
        height: 40px;
        vertical-align: middle;
    }
    #bestiary-list a .c-title .c-center {
        display: inline;
    }
    #bestiary-list a .c-title span {
        display: table-cell;
        height: 40px;
        vertical-align: middle;
    }
    #bestiary-list a .c-title h2 {
        font-size: 19px;
        line-height: 1;
        margin: 0;
    }
    #bestiary-list a p {
        m
</style>
    </div>
?>
<?php include '../layout/overall/footer.php'; ?>
 
Hmm, the includes doesn't support dynamic pathing.

The quick and dirty approach, copy the folders: engine and layout and put them in your subfolder www/bosses/.
Also copy config.php to www\bosses
So you have a copy www/bosses/engine/ and www/bosses/layout/, www/bosses/config.php

And you might have to edit links in www/bosses/layout/ to go back one layer ../ so main menu etc works. (or use relative path).
 
Back
Top