• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7)

    Compartir:

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    hola usuarios de tibiaface.


    bueno aqui le straigo el famoso Bounty Hunters  trata.

    Si yo Maya quiero ofrece 10cc por matar a un player abuser, y si lo matan supongamos el player "Vengador" a el le dan los 10cc.

    en pocas palabras el que mata al player hunteado obvio el que gana la frag gana los cc.

    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) Captur23

    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) Captur24

    en esta imagen si tengo pk red es porque yo mate a aquel personaje 3 veces injustas testeando el sistema jejejej lo siento no se asusten el sistema esta bien no da pk red.

    y como ven la recompensa es automatica.

    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) Captur26

    y aqui el resultado como se ve en la pagina.

    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) Captur27




    instalacion:
    En nuestra base de datos mysql ejecutamos esta tabla:

    Código:
    CREATE TABLE IF NOT EXISTS `bounty_hunters` (
    `id` int(11) NOT NULL auto_increment,
    `fp_id` int(11) NOT NULL,
    `sp_id` int(11) NOT NULL,
    `k_id` int(11) NOT NULL,
    `added` int(15) NOT NULL,
    `prize` bigint(20) NOT NULL,
    `killed` int(11) NOT NULL,
    `kill_time` int(15) NOT NULL,
    PRIMARY KEY (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

    Vamos a nuestra carpeta htdocs

    copiamos cualquier archivo html y renombramos por bounty-hunters.php y pegamos esto dentro


    Código:
       <?php
        @mysql_connect("127.0.0.1","root","contraseña");
        @mysql_select_db("nombre de base de datos");

        $main_content .= '<P ALIGN=CENTER>
            <br>
            <FONT SIZE=5 COLOR=#5A2800>
                Como usar el Player Hunt System...
            </FONT>
            <br>
            <br>
            <FONT SIZE=2 COLOR=#5A2800>
            * !hunt [precio],[nombre] :
                <FONT SIZE=1 COLOR=#5A2800>
                    Envia el anuncion con el nombre y el dinero Ofrecido.<br>
                    Ejemplo: !hunt 100,Maya
                </FONT><br>
            </FONT>
        </P>
        <br>
        <br>
            <center>
                <h1>
                    Bounty Hunters
                </h1>
            </center>
                <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
                    <TR BGCOLOR="#505050">
                        <TD CLASS=white width=30%>
                            <center><B>Hunteador</B></center>
                        </TD>
                        <TD CLASS=white width=30%>
                            <center><B>Recompensa</B></center>
                        </TD>
                        <TD CLASS=white width=30%>
                            <center><B>Hunteado</B></center>
                        </TD>
                        <TD CLASS=white width=10%>
                            <center><B>Vengador</B></center>
                        </TD>
                    </TR>';
         $inv = @mysql_query("SELECT * FROM `bounty_hunters` ORDER BY `added` DESC");
        $num = 0;
        $color=$config['site']['darkborder'];
        while($tab = @mysql_fetch_array($inv)){
        if($num%2 == 0){$color=$config['site']['darkborder'];}else{$color=$config['site']['lightborder'];}
        $pid = $tab['fp_id'];
        $sid = $tab['sp_id'];
        $kid = $tab['k_id'];
        $killed = $tab['killed'];
        $prize = $tab['prize']*1000;
        if($killed == 0){
        $kill = '<font color="red">Nobody!</font>';
        }else{
        $k = @mysql_query("SELECT * FROM `players` WHERE `id` = ".$kid."");
        $k1 = @mysql_fetch_array($k);
        $kill_name = $k1['name'];
        $kill = '<a href="index.php?subtopic=characters&name='.$kill_name.'">'.$kill_name.'</a>';
        }
        $f = @mysql_query("SELECT * FROM `players` WHERE `id` = ".$pid."");
        $f1 = @mysql_fetch_array($f);
        $s = @mysql_query("SELECT * FROM `players` WHERE `id` = ".$sid."");
        $s1 = @mysql_fetch_array($s);
        $fn = $f1['name'];
        $sn = $s1['name'];

        $main_content .= '
                <TR BGCOLOR="'.$color.'">
                    <TD>
                        <center>
                            <b>
                                <a href="index.php?subtopic=characters&name='.$fn.'">'.$fn.'</a>
                            </b>
                        </center>
                    </TD>
                    <TD>
                        <center>
                            <b>
                                '.$prize.' gp
                            </b>
                        </center>
                    </TD>
                    <TD>
                        <center>
                            <b>
                                <a href="index.php?subtopic=characters&name='.$sn.'">'.$sn.'</a>
                            </b>
                        </center>
                    </TD>
                    <TD>
                        <center>
                            <b>
                                '.$kill.'
                            </b>
                        </center>
                    </TD>
                </TR>';
        $num++;
        }
        if($num == 0){
                $main_content.='<TR BGCOLOR="'.$color.'">
                    <TD colspan=4>
                        <center>
                            Currently there are not any bounty hunter offer.
                        </center>
                    </TD>
                </TR>';
        }
                $main_content .='</TABLE><div align="right">Copyright <a href="http://www.tibiaface.com/">tibiaface</a></div>';
        ?>

    configurar:

    Código:
    mysql_connect("127.0.0.1","root","contraseña");

    mysql_select_db("nombre de base de datos");

    127.0.0.1: 127.0.0.1
    root: usuario de su phpadmin por lo general es root
    contraseña: contraseña de su phpadmin
    nombre de base de datos: nombre de su database creada

    Ahora abrimos el fichero "index.php" y agregamos esta linea (Este codigo esta para el layout de tibiacom)
    Código:
    case "bountyhunters";
            $topic = "Bounty Hunters";
            $subtopic = "bountyhunters";
            include("bounty-hunters.php");
        break;


    Abrimos el fichero layout.php de nuestro layout y agregamos esto

    Código:
    <a href='?subtopic=bountyhunters'>
      <div id='submenu_bounty' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
     
        <div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Player Hunt</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>

    Ahora nos vamos a:

    data\creaturescripts\scripts
    copiamos cualquier archivo y renombramos por bounty.lua y pegamos esto dentro:

    Código:
    function onKill(cid, target)
    if isPlayer(target) == TRUE then
    pid = cid
    pid2 = getPlayerGUID(target)
    local result_plr = db.getResult("SELECT * FROM `bounty_hunters` WHERE `sp_id` = "..pid2.." AND `killed` = 0;")
    if(result_plr:getID() ~= -1) then
    prize = tonumber(result_plr:getDataInt("prize"))
    bid = tonumber(result_plr:getDataInt("id"))
    result_plr:free()
    else
    prize = 0
    bid = 0
    end
    if (bid ~= 0 and prize ~= 0 and not(getTileInfo(getCreaturePosition(cid)).pvp)) then
    db.executeQuery("UPDATE `bounty_hunters` SET `killed` = 1, `k_id`="..getPlayerGUID(cid)..", `kill_time` = " .. os.time() .. " WHERE `id` = "..bid..";")
    doPlayerAddMoney(cid,prize)
    doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,"[Bounty System]: You killed "..getPlayerName(target).."! You gained the bounty that was put on his/her head!")
    doSendMagicEffect(getCreaturePosition(cid), 27)
    doBroadcastMessage("[Bounty System]: "..getPlayerName(cid).." killed "..getPlayerName(target).." and gained the bounty! ("..prize.." gold)", MESSAGE_EVENT_ADVANCE)
    end
    end
    return TRUE
    end


    En la misma carpeta buscamos el archivo login.lua y agregamos esta linea:

    Código:
    registerCreatureEvent(cid, "Bounty")

    ahora nos vamos a:

    data\creaturescripts\creaturescripts.xml
    y añadimos esta tag:

    Código:
    <event type="kill" name="Bounty" event="script" value="bounty.lua"/>


    Ahora nos vamos a:

    Data/talkactions/scripts
    copiamos cualquier archivo y renombramos por tbounty.lua y pegamos esto dentro:

    Código:
    function onSay(cid, words, param)
    if(param == "") then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: Usage: "!bounty [gold],[nick]" where gold is at least 10000.")
    return TRUE
    end
    local t = string.explode(param, ",")
    if(not t[2]) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: Usage: "!bounty [gold],[nick]" where gold is at least 10000.")
    return TRUE
    end

    local sp_id = getPlayerGUIDByName(t[2])
    if sp_id == nil then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: You cant put a bounty on imaginary people, your target doesn't exist.")
    return TRUE
    end local result_plr = db.getResult("SELECT * FROM `bounty_hunters` WHERE `sp_id` = "..sp_id.." AND `killed` = 0;")
    if(result_plr:getID() ~= -1) then
    is = tonumber(result_plr:getDataInt("sp_id"))
    result_plr:free()
    else
    is = 0
    end
    prize = tonumber(t[1])
    if(prize == nil or prize < 10000) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: Usage: "!bounty [gold],[nick]" where gold is at least 10000.")
    return TRUE
    end

    if(prize >= 999999999) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[Bounty System]: Sorry, bounty limit is at 999.9 million gold!")
    return TRUE
    end if is ~= 0 then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "[Bounty System]: "..t[2].." has already got a bounty on his/her head.")
    return TRUE
    end

    if doPlayerRemoveMoney(cid, prize) == TRUE then
    db.executeQuery("INSERT INTO `bounty_hunters` VALUES (NULL,"..getPlayerGUID(cid)..","..sp_id..",0," .. os.time() .. ","..prize..",0,0);")
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "[Bounty System]: Bounty on "..t[2].."s head has been added successfully!")
    doBroadcastMessage("[Bounty System]: A bounty of "..prize.." gold for "..t[2].."s head has been submitted by "..getPlayerName(cid)..". The first one to kill "..t[2].." will get the gold!", MESSAGE_EVENT_ADVANCE)
    else
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[Bounty System]: You dont have enough gold!")
    end


    return 1
    end


    Luego nos vamos a:

    Data/talkactions/talkactions.xml
    y añadimos esta tag:

    Código:
    <talkaction words="/bounty;!bounty;!hunt;/hunt" script="tbounty.lua" />


    Nota: la recompensa es automatica al momento de que el player mata al player huteado se le añadira la recompensa.


    Creditos: al creador del script:



    Última edición por [Admin] God Maya el Miér Abr 12, 2017 12:14 am, editado 1 vez



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    Zainox

    Zainox
    Miembro
    Miembro
    Excelente aporte, lo estaba esperando Very Happy

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.DovuX-Reloaded.com

    Hypnoz

    Hypnoz
    Donador User
    Donador User
    Funciona con tfs 1.2? @[Admin] God Maya

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    https://www.facebook.com/groups/273674655982865/

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Hypnoz escribió:Funciona con tfs 1.2? @[Admin] God Maya

    lamentablemente no



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    Simon Marin

    Simon Marin
    Miembro
    Miembro
    Sirve para server 8.6 ??

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Simón Marín escribió:Sirve para server 8.6 ??

    seeee



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    Simon Marin

    Simon Marin
    Miembro
    Miembro
    mi server no usa pagina web... que scripp es el que no devo agregar.

    1) es posible que envez de comandos se pueda con npc.
    2) y alado del npc un cuadro informativo, que en el momento de darle clik salen los nombre de las personas con hunt.

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Simón Marín escribió:mi server no usa pagina web... que scripp es el que no devo agregar.

    1) es posible que envez de comandos se pueda con npc.
    2) y alado del npc un cuadro informativo, que en el momento de darle clik salen los nombre de las personas con hunt.

    lamentablemente no



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    Kuzaro

    Kuzaro
    Miembro
    Miembro
    funciono perfecto Very Happy

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    Simon Marin

    Simon Marin
    Miembro
    Miembro
    God Maya... se que sirve para 8.60 pero yo no uso mysql por lo tanto tampoco web... me puedes decir que devo agregar para tener este sistema??

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Simón Marín escribió:God Maya... se que sirve para 8.60 pero yo no uso mysql por lo tanto tampoco web... me puedes decir que devo agregar para tener este sistema??

    solo esta para mysql no existepara sqlite



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    Humox

    Humox
    Miembro
    Miembro
    registerCreatureEvent(cid, "Bounty") en que lado va de login.lua se copia tal cual o se agrega asi
    Código:
    local events = {
        'ElementalSpheresOverlords',
        'BigfootBurdenVersperoth',
        'Razzagorn',
        'Shatterer',
        'Zamulosh',   
       'The Hunger',

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Humox escribió:registerCreatureEvent(cid, "Bounty") en que lado va de login.lua se copia tal cual o se agrega asi
    Código:
    local events = {
        'ElementalSpheresOverlords',
        'BigfootBurdenVersperoth',
        'Razzagorn',
        'Shatterer',
        'Zamulosh',   
       'The Hunger',


    este sistema no funciona para tfs 1.x en adelantes no alls protocolos basados en tfs 0.3.7



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    14[Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) Empty [Web] ayuda error index Jue Mayo 04, 2017 11:04 pm

    Miguel Albertto

    Miguel Albertto
    Miembro
    Miembro
    me sale este error :
    Código:

    Parse error: syntax error, unexpected 'case' (T_CASE) in C:\xampp\htdocs\index.php on line 36

    este es mi layout  :
    Código:
    <?php
    if(!defined('INITIALIZED'))
       exit;
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title><?PHP echo $title ?></title>
      <meta name="description" content="Tibia is a free massive multiplayer online role playing game (MMORPG)." />
      <meta name="author" content="Gesior" />
      <meta http-equiv="content-language" content="en" />
      <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
      <meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />
      <link rel="shortcut icon" href="<?PHP echo $layout_name; ?>/images/server.ico" type="image/x-icon">
      <link rel="icon" href="<?PHP echo $layout_name; ?>/images/server.ico" type="image/x-icon">
      <?PHP echo $layout_header; ?>
      <link href="<?PHP echo $layout_name; ?>/basic.css" rel="stylesheet" type="text/css">
      <script type='text/javascript'> var IMAGES=0; IMAGES='<?PHP echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
      <script type="text/javascript" src="<?PHP echo $layout_name; ?>/initialize.js"></script>
    </head>
    <body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">
     <a name="top"></a>
      <div id="ArtworkHelper" style="background-image:url(<?PHP echo $layout_name; ?>/images/header/background-world.jpg);" >
        <div style="width:1200px" id="Bodycontainer">
          <div id="ContentRow">
            <div id="MenuColumn">
              <div id="LeftArtwork">
                <img id="Statue_1" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />
                <img id="TibiaLogoArtworkTop" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-top.gif" onClick="window.location = '?subtopic=latestnews';" alt="logoartwork" />
                <img id="TibiaLogoArtworkBottom" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-bottom.gif" alt="logoartwork" />
                <img id="Statue_2" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />
              </div>
              
      <div id="Loginbox" >
        <div id="LoginTop" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif)" ></div>
        <div id="BorderLeft" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>
        <div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >
          <div id="LoginstatusText_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif)" ></div>
        </div>
        <div id="LoginButtonContainer" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >
          <div id="LoginButton" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif)" >
            <div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="Button" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif)" ></div>
              <div id="ButtonText" ></div>
            </div>
          </div>
        </div>
        <div style="clear:both" ></div>
        <div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >
          <div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" ><div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div><div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div></div>
        </div>
         <div id="BorderRight" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>
        <div id="LoginBottom" class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif)" ></div>
      </div>

    <div id='Menu'>
    <div id='MenuTop' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif);'></div>

    <div id='news' class='menuitem'>
    <span onClick="MenuItemAction('news')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='news_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='news_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-news.gif);'></div>
          <div id='news_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-news.gif);'></div>
          <div id='news_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    <div id='news_Submenu' class='Submenu'>
    <a href='?subtopic=latestnews'>
      <div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Latest News</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=archive'>
      <div id='submenu_archive' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_archive' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>News Archive</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    </div>
    </div>

    <a href='?subtopic=bountyhunters'>
      <div id='submenu_bounty' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
     
        <div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Player Hunt</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>

    <div id='account' class='menuitem'>
    <span onClick="MenuItemAction('account')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='account_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='account_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-account.gif);'></div>
          <div id='account_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-account.gif);'></div>
          <div id='account_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    <div id='account_Submenu' class='Submenu'>
    <a href='?subtopic=accountmanagement'>
      <div id='submenu_accountmanagement' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_accountmanagement' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Account Management</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=createaccount'>
      <div id='submenu_createaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_createaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Create Account</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=lostaccount'>
      <div id='submenu_lostaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_lostaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Lost Account?</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=tibiarules'>
      <div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Server Rules</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <?PHP
    if($config['site']['download_page'])
    echo "<a href='?subtopic=download'>
      <div id='submenu_download' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_download' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Downloads</div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    ?>
    </div>
    </div>

    <div id='community' class='menuitem'>
    <span onClick="MenuItemAction('community')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='community_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='community_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-community.gif);'></div>
          <div id='community_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-community.gif);'></div>
          <div id='community_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

        </div>
      </div>
    </span>
    <div id='community_Submenu' class='Submenu'>
    <a href='?subtopic=characters'>
      <div id='submenu_characters' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_characters' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Characters</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

      </div>
    </a>
    <a href='?subtopic=whoisonline'>
      <div id='submenu_whoisonline' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_whoisonline' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Who Is Online?</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=highscores'>
      <div id='submenu_highscores' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_highscores' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Highscores</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=houses'>
      <div id='submenu_houses' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_houses' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Houses</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=fraggers'>
      <div id='submenu_fraggers' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_fraggers' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Top Fraggers</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=killstatistics'>
      <div id='submenu_killstatistics' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_killstatistics' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Last Kills</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=guilds'>
      <div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

        <div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Guilds</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=team'>
      <div id='submenu_team' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_team' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Support List</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    </div>
    </div>

    <?PHP
    echo "<div id='forum' class='menuitem'>
             <span onClick=\"MenuItemAction('forum')\">
        <div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>
            <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>
                   <span id='forum_Lights' class='Lights'>
                    <div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                    <div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                    <div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                   </span>
                   <div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>
                   <div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>
                   <div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>
                 </div>
               </div>
              </span>
           <div id='forum_Submenu' class='Submenu'>
              <a href='?subtopic=forum'>
               <div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
                 <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
                 <div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
                 <div class='SubmenuitemLabel'>Server Forum</div>
                 <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
               </div>
              </a>
            </div>  
           </div>";
    ?>

    <div id='library' class='menuitem'>
    <span onClick="MenuItemAction('library')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='library_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='library_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-library.gif);'></div>
          <div id='library_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-library.gif);'></div>
          <div id='library_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    <div id='library_Submenu' class='Submenu'>
    <?PHP
    if($config['site']['serverinfo_page'])
    echo "<a href='?subtopic=serverinfo'>
      <div id='submenu_serverinfo' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_serverinfo' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Server Info</div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    ?>
    <a href='?subtopic=experiencetable'>
      <div id='submenu_experiencetable' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Experience Table</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    </div>
    </div>

    <?PHP
    if($config['site']['shop_system'])
    {
    echo "<div id='shops' class='menuitem'>
    <span onClick=\"MenuItemAction('shops')\">
      <div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>
          <span id='shops_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
          </span>
          <div id='shops_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-shops.gif);'></div>
          <div id='shops_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-shops.gif);'></div>
          <div id='shops_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    </div>
    <div id='shops_Submenu' class='Submenu'>
    <a href='?subtopic=buypoints'>
      <div id='submenu_buypoints' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_buypoints' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><div style=\"color: yellow;\">Buy Points</div></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=shopsystem'>
      <div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><div style=\"color: green;\">Shop Offer</div></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    if($logged)
    echo "<a href='?subtopic=shopsystem&action=show_history'>
      <div id='submenu_show_history' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_show_history' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Trans. History</div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
    echo "<a href='?subtopic=shopadmin'>
      <div id='submenu_shopadmin' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_shopadmin' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><font color=red>! Shop Admin !</font></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    echo "</div>";
    }
    ?>
    <div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>
    </div>
      <script type='text/javascript'>InitializePage();</script></div>
            <div id="ContentColumn">
              <div class="Content">
                <div id="ContentHelper">
        <div id="<?PHP echo $subtopic; ?>" class="Box">
        <div class="Corner-tl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tl.gif);"></div>
        <div class="Corner-tr" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tr.gif);"></div>
        <div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>
        <div class="BorderTitleText" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/title-background-green.gif);"></div>
        <div class="Border_2">
          <div class="Border_3">
            <div class="BoxContent" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/scroll.gif);">
       <?PHP echo $main_content; ?>
          </div>
          </div>
        </div>
        <div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

        <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-bl.gif);"></div></div>
        <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-br.gif);"></div></div>
      </div>
               </div>
              </div>
              <div id="Footer">
    <?PHP
    $time_end = microtime_float();
    $time = $time_end - $time_start;
    ?>
                Account Maker made by Gesior. Layout by CipSoft GmbH.<br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds, queries: <?PHP echo $SQL->queriesCount; ?>
              </div>
            </div>
            <div id="ThemeboxesColumn">
              <div id="RightArtwork">
                <img id="Monster" src="<?PHP echo $layout_name; ?>/images/hellhound.gif" alt="Monster of the Week" />
                <img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>
            <?PHP
            if(count($config['site']['worlds']) > 1)
               $whoisonlineworld = '?subtopic=whoisonline';
            else
               $whoisonlineworld = '?subtopic=whoisonline&world=0';
            ?>
                 <div id="PlayersOnline" onClick="window.location='<?PHP echo $whoisonlineworld; ?>'">

            <?PHP
             if($config['status']['serverStatus_online'] == 1)
                echo $config['status']['serverStatus_players'].'<br />Players Online';
             else
                echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
            ?></div>
            </div>

      <div id="Themeboxes">
              
      <div id="NewcomerBox" class="Themebox" style="background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/newcomer/newcomerbox.gif);">
        <div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif);"><div class="BigButtonOver" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif);"></div>
          <div class="ButtonText" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/_sbutton_jointibia.gif);"></div>
        </div>
        <div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>
      </div>

            </div>
          </div>
         </div>
        </div>
      </div>
    </body>
    </html>



    Última edición por Miguel Albertto el Jue Mayo 04, 2017 11:15 pm, editado 1 vez

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Miguel Albertto escribió:me sale este error :
    Código:

    Parse error: syntax error, unexpected 'case' (T_CASE) in C:\xampp\htdocs\index.php on line 36

    este es mi layout:
    Código:
    <?php
    if(!defined('INITIALIZED'))
       exit;
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title><?PHP echo $title ?></title>
      <meta name="description" content="Tibia is a free massive multiplayer online role playing game (MMORPG)." />
      <meta name="author" content="Gesior" />
      <meta http-equiv="content-language" content="en" />
      <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
      <meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />
      <link rel="shortcut icon" href="<?PHP echo $layout_name; ?>/images/server.ico" type="image/x-icon">
      <link rel="icon" href="<?PHP echo $layout_name; ?>/images/server.ico" type="image/x-icon">
      <?PHP echo $layout_header; ?>
      <link href="<?PHP echo $layout_name; ?>/basic.css" rel="stylesheet" type="text/css">
      <script type='text/javascript'> var IMAGES=0; IMAGES='<?PHP echo $layout_name; ?>/images'; var g_FormField='';  var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script>
      <script type="text/javascript" src="<?PHP echo $layout_name; ?>/initialize.js"></script>
    </head>
    <body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();">
     <a name="top"></a>
      <div id="ArtworkHelper" style="background-image:url(<?PHP echo $layout_name; ?>/images/header/background-world.jpg);" >
        <div style="width:1200px" id="Bodycontainer">
          <div id="ContentRow">
            <div id="MenuColumn">
              <div id="LeftArtwork">
                <img id="Statue_1" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />
                <img id="TibiaLogoArtworkTop" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-top.gif" onClick="window.location = '?subtopic=latestnews';" alt="logoartwork" />
                <img id="TibiaLogoArtworkBottom" src="<?PHP echo $layout_name; ?>/images/header/tibia-logo-artwork-bottom.gif" alt="logoartwork" />
                <img id="Statue_2" src="<?PHP echo $layout_name; ?>/images/header/animated-statue.gif" alt="logoartwork" />
              </div>
             
      <div id="Loginbox" >
        <div id="LoginTop" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif)" ></div>
        <div id="BorderLeft" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>
        <div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >
          <div id="LoginstatusText_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-you-are-not-logged-in.gif)" ></div>
        </div>
        <div id="LoginButtonContainer" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >
          <div id="LoginButton" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif)" >
            <div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="Button" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif)" ></div>
              <div id="ButtonText" ></div>
            </div>
          </div>
        </div>
        <div style="clear:both" ></div>
        <div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >
          <div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" ><div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div><div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div></div>
        </div>
        <div id="BorderRight" class="LoginBorder" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif)" ></div>
        <div id="LoginBottom" class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif)" ></div>
      </div>

    <div id='Menu'>
    <div id='MenuTop' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-top.gif);'></div>

    <div id='news' class='menuitem'>
    <span onClick="MenuItemAction('news')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='news_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>

            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='news_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-news.gif);'></div>
          <div id='news_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-news.gif);'></div>
          <div id='news_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    <div id='news_Submenu' class='Submenu'>
    <a href='?subtopic=latestnews'>
      <div id='submenu_latestnews' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_latestnews' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Latest News</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=archive'>
      <div id='submenu_archive' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_archive' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>News Archive</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    </div>
    </div>

    <a href='?subtopic=bountyhunters'>
      <div id='submenu_bounty' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
     
        <div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Player Hunt</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>

    <div id='account' class='menuitem'>
    <span onClick="MenuItemAction('account')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='account_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='account_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-account.gif);'></div>
          <div id='account_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-account.gif);'></div>
          <div id='account_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    <div id='account_Submenu' class='Submenu'>
    <a href='?subtopic=accountmanagement'>
      <div id='submenu_accountmanagement' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_accountmanagement' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Account Management</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=createaccount'>
      <div id='submenu_createaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_createaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Create Account</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=lostaccount'>
      <div id='submenu_lostaccount' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_lostaccount' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Lost Account?</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=tibiarules'>
      <div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Server Rules</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <?PHP
    if($config['site']['download_page'])
    echo "<a href='?subtopic=download'>
      <div id='submenu_download' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_download' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Downloads</div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    ?>
    </div>
    </div>

    <div id='community' class='menuitem'>
    <span onClick="MenuItemAction('community')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='community_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='community_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-community.gif);'></div>
          <div id='community_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-community.gif);'></div>
          <div id='community_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>

        </div>
      </div>
    </span>
    <div id='community_Submenu' class='Submenu'>
    <a href='?subtopic=characters'>
      <div id='submenu_characters' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_characters' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Characters</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

      </div>
    </a>
    <a href='?subtopic=whoisonline'>
      <div id='submenu_whoisonline' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_whoisonline' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Who Is Online?</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=highscores'>
      <div id='submenu_highscores' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_highscores' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Highscores</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=houses'>
      <div id='submenu_houses' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_houses' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Houses</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=fraggers'>
      <div id='submenu_fraggers' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_fraggers' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Top Fraggers</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=killstatistics'>
      <div id='submenu_killstatistics' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_killstatistics' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Last Kills</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=guilds'>
      <div id='submenu_guilds' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

        <div id='ActiveSubmenuItemIcon_guilds' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Guilds</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=team'>
      <div id='submenu_team' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_team' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Support List</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    </div>
    </div>

    <?PHP
    echo "<div id='forum' class='menuitem'>
            <span onClick="MenuItemAction('forum')">
        <div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>
           <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>
                  <span id='forum_Lights' class='Lights'>
                    <div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                    <div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                    <div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
                  </span>
                  <div id='forum_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-forum.gif);'></div>
                  <div id='forum_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-forum.gif);'></div>
                  <div id='forum_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>
                </div>
              </div>
              </span>
          <div id='forum_Submenu' class='Submenu'>
              <a href='?subtopic=forum'>
              <div id='submenu_forum' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
                <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
                <div id='ActiveSubmenuItemIcon_forum' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
                <div class='SubmenuitemLabel'>Server Forum</div>
                <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
              </div>
              </a>
            </div> 
          </div>";
    ?>

    <div id='library' class='menuitem'>
    <span onClick="MenuItemAction('library')">
      <div class='MenuButton' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/button-background-over.gif);'></div>
          <span id='library_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/green-light.gif);'></div>
          </span>
          <div id='library_Icon' class='Icon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-library.gif);'></div>
          <div id='library_Label' class='Label' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/label-library.gif);'></div>
          <div id='library_Extend' class='Extend' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    <div id='library_Submenu' class='Submenu'>
    <?PHP
    if($config['site']['serverinfo_page'])
    echo "<a href='?subtopic=serverinfo'>
      <div id='submenu_serverinfo' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_serverinfo' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Server Info</div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    ?>
    <a href='?subtopic=experiencetable'>
      <div id='submenu_experiencetable' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_experiencetable' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Experience Table</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
      </div>
    </a>
    </div>
    </div>

    <?PHP
    if($config['site']['shop_system'])
    {
    echo "<div id='shops' class='menuitem'>
    <span onClick="MenuItemAction('shops')">
      <div class='MenuButton' style='background-image:url(".$layout_name."/images/menu/button-background.gif);'>
        <div onMouseOver='MouseOverMenuItem(this);' onMouseOut='MouseOutMenuItem(this);'><div class='Button' style='background-image:url(".$layout_name."/images/menu/button-background-over.gif);'></div>
          <span id='shops_Lights' class='Lights'>
            <div class='light_lu' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
            <div class='light_ld' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
            <div class='light_ru' style='background-image:url(".$layout_name."/images/menu/green-light.gif);'></div>
          </span>
          <div id='shops_Icon' class='Icon' style='background-image:url(".$layout_name."/images/menu/icon-shops.gif);'></div>
          <div id='shops_Label' class='Label' style='background-image:url(".$layout_name."/images/menu/label-shops.gif);'></div>
          <div id='shops_Extend' class='Extend' style='background-image:url(".$layout_name."/images/general/plus.gif);'></div>
        </div>
      </div>
    </span>
    </div>
    <div id='shops_Submenu' class='Submenu'>
    <a href='?subtopic=buypoints'>
      <div id='submenu_buypoints' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_buypoints' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><div style="color: yellow;">Buy Points</div></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>
    <a href='?subtopic=shopsystem'>
      <div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><div style="color: green;">Shop Offer</div></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    if($logged)
    echo "<a href='?subtopic=shopsystem&action=show_history'>
      <div id='submenu_show_history' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_show_history' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Trans. History</div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
    echo "<a href='?subtopic=shopadmin'>
      <div id='submenu_shopadmin' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_shopadmin' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><font color=red>! Shop Admin !</font></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>";
    echo "</div>";
    }
    ?>
    <div id='MenuBottom' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);'></div>
    </div>
      <script type='text/javascript'>InitializePage();</script></div>
            <div id="ContentColumn">
              <div class="Content">
                <div id="ContentHelper">
        <div id="<?PHP echo $subtopic; ?>" class="Box">
        <div class="Corner-tl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tl.gif);"></div>
        <div class="Corner-tr" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-tr.gif);"></div>
        <div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>
        <div class="BorderTitleText" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/title-background-green.gif);"></div>
        <div class="Border_2">
          <div class="Border_3">
            <div class="BoxContent" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/scroll.gif);">
       <?PHP echo $main_content; ?>
          </div>
          </div>
        </div>
        <div class="Border_1" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/border-1.gif);"></div>

        <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-bl.gif);"></div></div>
        <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?PHP echo $layout_name; ?>/images/content/corner-br.gif);"></div></div>
      </div>
              </div>
              </div>
              <div id="Footer">
    <?PHP
    $time_end = microtime_float();
    $time = $time_end - $time_start;
    ?>
                Account Maker made by Gesior. Layout by CipSoft GmbH.<br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds, queries: <?PHP echo $SQL->queriesCount; ?>
              </div>
            </div>
            <div id="ThemeboxesColumn">
              <div id="RightArtwork">
                <img id="Monster" src="<?PHP echo $layout_name; ?>/images/hellhound.gif" alt="Monster of the Week" />
                <img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>
            <?PHP
            if(count($config['site']['worlds']) > 1)
               $whoisonlineworld = '?subtopic=whoisonline';
            else
               $whoisonlineworld = '?subtopic=whoisonline&world=0';
            ?>
                <div id="PlayersOnline" onClick="window.location='<?PHP echo $whoisonlineworld; ?>'">

            <?PHP
             if($config['status']['serverStatus_online'] == 1)
                echo $config['status']['serverStatus_players'].'<br />Players Online';
             else
                echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
            ?></div>
            </div>

      <div id="Themeboxes">
             
      <div id="NewcomerBox" class="Themebox" style="background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/newcomer/newcomerbox.gif);">
        <div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton.gif);"><div class="BigButtonOver" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/sbutton_over.gif);"></div>
          <div class="ButtonText" style="background-image:url(<?PHP echo $layout_name; ?>/images/buttons/_sbutton_jointibia.gif);"></div>
        </div>
        <div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);"></div>
      </div>

            </div>
          </div>
        </div>
        </div>
      </div>
    </body>
    </html>


    Código:
    <a href='?subtopic=bounty-hunters'>
      <div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'><div style=\"color: green;\">Shop Offer</div></div>
        <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
      </div>
    </a>

    y en la carpeta page colocar el php correspondiente al tema



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    Simon Marin

    Simon Marin
    Miembro
    Miembro
    Me sale el siguiente error
    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) Error_10

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Simon Marin escribió:Me sale el siguiente error
    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) Error_10

    alparecer no reconoce la consola este sigo !



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    Simon Marin

    Simon Marin
    Miembro
    Miembro
    eso significa que no puedo tener este sistema?

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    Simon Marin escribió:eso significa que no puedo tener este sistema?

    no hay que modificar la lineas



    [Sistema] Bounty Hunters (Compatible con OTx alls protocolos tfs 0.3.7) YNU5B25
    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes
    http://www.tibiaface.com

    wottens

    wottens
    Nuevo Miembro
    Nuevo Miembro
    Código:
    function onSay(cid, words, param)
    if(param == "") then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: Usage: \"!bounty [gold],[nick]\" where gold is at least 10000..")
    return TRUE
    end
    local t = string.explode(param, ",")
    if(not t[2]) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: Usage: \"!bounty [gold],[nick]\" where gold is at least 10000.")
    return TRUE
    end

    local sp_id = getPlayerGUIDByName(t[2])
    if sp_id == nil then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: You cant put a bounty on imaginary people, your target doesn't exist.")
    return TRUE
    end local result_plr = db.getResult("SELECT * FROM `bounty_hunters` WHERE `sp_id` = "..sp_id.." AND `killed` = 0;")
    if(result_plr:getID() ~= -1) then
    is = tonumber(result_plr:getDataInt("sp_id"))
    result_plr:free()
    else
    is = 0
    end
    prize = tonumber(t[1])
    if(prize == nil or prize < 10000) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Bounty System]: Usage: \"!bounty [gold],[nick]\" where gold is at least 10000.")
    return TRUE
    end

    if(prize >= 999999999) then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[Bounty System]: Sorry, bounty limit is at 999.9 million gold!")
    return TRUE
    end if is ~= 0 then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "[Bounty System]: "..t[2].." [Bounty System]: "..t[2].." has already got a bounty on his/her head.")
    return TRUE
    end

    if doPlayerRemoveMoney(cid, prize) == TRUE then
    db.executeQuery("INSERT INTO `bounty_hunters` VALUES (NULL,"..getPlayerGUID(cid)..","..sp_id..",0," .. os.time() .. ","..prize..",0,0);")
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "[Bounty System]: Bounty on "..t[2].."s head has been added successfully!")
    doBroadcastMessage("[Bounty System]: A bounty of "..prize.." gold for "..t[2].."s head has been submitted by "..getPlayerName(cid)..". The first one to kill "..t[2].." will get the gold!", MESSAGE_EVENT_ADVANCE)
    else
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[Bounty System]: You dont have enough gold!")
    end


    return 1
    end

    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    Contenido patrocinado


    +4
    Simon Marin
    Hypnoz
    Zainox
    [Admin] God Maya
    8 participantes

    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).