Jump to content

Recommended Posts

Posted

Since GodOfAden ain't update his topic, here you go,

<?

$imagesfolder = "images/7signs/";

// db config
$CONFIG['worlddbname'] = "lin2world";           // Database Name
$CONFIG['dbaddress'] = "";        // MSSQL IP
$CONFIG['dbuser'] = "";                       // MSSQL User
$CONFIG['dbpass'] = "";     // MSSQL Password

// db connection!
$dbconnect = @mssql_connect ($CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
@mssql_select_db ($CONFIG['worlddbname'], $dbconnect) or die (mysql_error());

DEFINE("SSQ","USE lin2world EXEC lin_GetSSQStatus");
$result = @mssql_query(SSQ);

$round_number = @mssql_result($result, 0, 0);
$dawn_points = @mssql_result($result, 0, 1);
$dusk_points = @mssql_result($result, 0, 2);
$seal1 = @mssql_result($result, 0, 3);
$seal2 = @mssql_result($result, 0, 4);
$seal3 = @mssql_result($result, 0, 5);
$time = @mssql_result($result, 0, 10);
$status = @mssql_result($result, 0, 11);

$fecha_actual = date('d/m/Y G:i', $time);

// Linkando variables PHP con variables JAVASCRIPT
$ntdDay = date("w",$time);

$hora = date('G', $time);
if ($hora < 18) $ntdDay--;

//if ($ntDay == 0) $ntdDay = 7;

$currTime = $fecha_actual;
$ssStatus = $status;
$dawnPoint = $dawn_points;
$twilPoint = $dusk_points;
$maxPointWidth = 150;

?>

<script language="JavaScript" type="text/javascript">
  var nthDay = <?=$ntdDay; ?>;
  var currTime = '<?=$currTime; ?>';
  var ssStatus = <?=$ssStatus; ?>;
  var dawnPoint = <?=$dawnPoint; ?>;
  var twilPoint = <?=$twilPoint; ?>;
  var maxPointWidth = <?=$maxPointWidth; ?>;
  var seal1 = <?=$seal1; ?>;
  var seal2 = <?=$seal2; ?>;
  var seal3 = <?=$seal3; ?>;
</script>

<table border="0" cellpadding="0" cellspacing="0" style="MARGIN-TOP:5px; width:569px; overflow:hidden; margin-left:5px;">
  <tbody>
    <tr valign="top">

      <td style="BACKGROUND: url(<?=$imagesfolder?>ssqViewBg.jpg)" height="225">
         
         
          <table>
          <tbody>
            <tr valign="top">
              <td><table style="MARGIN: 18px 0px 0px 54px" cellspacing="0" cellpadding="0" border="0" width="141">
                  <tbody>
                    <tr align="middle" height="26">
                      <td style="BACKGROUND: url(<?=$imagesfolder?>ssqViewimg1.gif); COLOR:#fff; font-size:11px;">
                      <script language="JavaScript" type="text/javascript">
                        if (0 == ssStatus) document.write('Preparacion');
                        else if (1 == ssStatus) document.write('Competicion <b style="color:#E10000"> Dia ' + nthDay + '</b>');
                        else if (2 == ssStatus) document.write('Calculando');
                        else if (3 == ssStatus) document.write('Sellado <b style="color:#E10000"> Dia ' + nthDay + '</b>');
                      </script>
                      </td>
                    </tr>
                </tbody>
                </table>
                <table style="MARGIN: 3px 0px 0px 10px" cellspacing="0" cellpadding="0" width="141" border="0">
                  <tbody>
                    <tr>
                      <td></td>

                      <td><img height="16" src="<?=$imagesfolder?>timeBox1.jpg" width="140" border="0" /></td>
                      <td></td>
                    </tr>
                    <tr>
                      <td valign="bottom" rowspan="2"><img height="125" src="<?=$imagesfolder?>timeBox2.jpg" width="45" border="0" /></td>
                      <td><!-- Clock Image Start
                                                                -->
                      <script language="JavaScript" type="text/javascript">
                            var timeImage;
                            var tempImageNum;
                   
                            if (1 == ssStatus) {
                                    tempImageNum = nthDay;
                            }
                            else if (0 == ssStatus) {
                                    tempImageNum = 0;
                            }
                            else if (3 == ssStatus || 2 == ssStatus) {
                                    tempImageNum = nthDay + 7;   <!-- Adding one week to show img with seal effect -->
                            }
                            timeImage = 'time'+tempImageNum+'.jpg';
                            document.write('<img src="<?=$imagesfolder?>'+ timeImage +'" width="140" height="139" border="0">');                                   
                    </script><!--
                                                                        Clock Image E n d --></td>
                      <td valign="bottom" rowspan="2"><img height="125" src="<?=$imagesfolder?>timeBox3.jpg" width="66" border="0" /></td>

                    </tr>
                    <tr>
                      <td><img height="12" src="<?=$imagesfolder?>timeBox4.jpg" width="140" border="0" /></td>
                    </tr>
                  </tbody>
              </table></td>
              <td><table style="MARGIN: 27px 0px 0px 22px" cellspacing="0" cellpadding="0" width="200" border="0">
                  <tbody>
                    <tr align="middle" bgcolor="#606d6f" height="17">

                      <td style="COLOR:#fff; font-size:11px;">
                        <script language="JavaScript" type="text/javascript">

                                        document.write (currTime);

                    </script>
                      </td>
                    </tr>
                </tbody>
                </table>
                <table style="MARGIN: 21px 0px 0px 22px" cellspacing="0" cellpadding="0" border="0">
                  <colgroup>

                  <col width="74" />
                  <col width="*" />
                  </colgroup>
                  <tbody>
                    <tr>
                      <td style="font-size:11px; color:#000;"><img style="MARGIN: 0px 6px 5px 0px" height="1" src="<?=$imagesfolder?>dot.gif" width="1" border="0" />Dawn</td>
                      <td style="COLOR: #000; font-size:11px;">
                      <script language="JavaScript" type="text/javascript">
                        var twilPointWidth = ( maxPointWidth * twilPoint ) / ( dawnPoint + twilPoint );
                        document.write('<img src="<?=$imagesfolder?>ssqbar2.gif" width="' + twilPointWidth + '" height="9" border="0"> ' + twilPoint);
                      </script>

                      </td>
                    </tr>
                    <tr>
                      <td colspan="2" height="7"></td>
                    </tr>
                    <tr>
                      <td style="font-size:11px; color:#000;"><img style="MARGIN: 0px 6px 5px 0px" height="1" src="<?=$imagesfolder?>dot.gif" width="1" border="0" />Dusk</td>
                      <td style="COLOR: #000; font-size:11px;"><!-- Dawn Bar Graph Start -->

                        <script language="JavaScript" type="text/javascript">

                        var dawnPointWidth = ( maxPointWidth * dawnPoint ) / ( dawnPoint + twilPoint );
                        document.write('<img src="<?=$imagesfolder?>ssqbar1.gif" width="' + dawnPointWidth + '" height="9" border="0"> ' + dawnPoint);

                </script>
                      </td>
                    </tr>
                  </tbody>
                </table>
                <table cellspacing="0" cellpadding="0" border="0" align="center">
                  <tbody>
                    <tr valign="bottom" align="middle" height="95">

                      <td><!-- It not 3 then seal must be shown as grey.Seal Status 0 = closed, 1 or 2 = opened  -->
                        <!-- Seal #1 -->
                        <script language="JavaScript" type="text/javascript">
                        if (3 == ssStatus) {
                          if (0 == seal1) document.write('<img src="<?=$imagesfolder?>bongin1close.gif" width="85" height="86" border="0">');
                          else document.write('<img src="<?=$imagesfolder?>bongin1open.gif" width="85" height="86" border="0">');
                        }   
                        else document.write('<img src="<?=$imagesfolder?>bongin1.gif" width="85" height="86" border="0">');
                </script>                                              </td>
                      <td><!-- Seal #2 -->
                        <script language="JavaScript" type="text/javascript">
                        if (3 == ssStatus) {
                          if (0 == seal2) document.write('<img src="<?=$imagesfolder?>bongin2close.gif" width="85" height="86" border="0">');
                          else document.write('<img src="<?=$imagesfolder?>bongin2open.gif" width="85" height="86" border="0">');
                        }   
                        else document.write('<img src="<?=$imagesfolder?>bongin2.gif" width="85" height="86" border="0">');
                      </script>
                      </td>
                      <td><!-- Seal #3 -->
                        <script language="JavaScript" type="text/javascript">
                        if (3 == ssStatus) {
                          if (0 == seal3) document.write('<img src="<?=$imagesfolder?>bongin3close.gif" width="85" height="86" border="0">');
                          else document.write('<img src="<?=$imagesfolder?>bongin3open.gif" width="85" height="86" border="0">');
                        }   
                        else document.write('<img src="<?=$imagesfolder?>bongin3.gif" width="85" height="86" border="0">');
                </script>                                              </td>
                    </tr>
                    <tr>
                      <td colspan="3"><div align="center" style="margin-left:10px;"><img height="16" src="<?=$imagesfolder?>bonginName.gif" width="258" border="0" /> </div></td>
                    </tr>
                  </tbody>
              </table></td>
            </tr>
        </tbody>
      </table></td>
    </tr>
  </tbody>
</table>

 

 

Download images = Images

  • 4 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...
Posted

thank you is just what I look

 

 

you might just be me, I'm looking for php scripts for my website

 

PM thank you if you have any script has to offer me, I use l2jfree thx

  • 1 month later...
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Posts

    • You should buy it then I’ll make a discount  
    • Hi everyone,   In 2014, I completely stepped away from developing L2 servers and doing L2J-related work. Since then, I’ve only opened this server about once a year and helped a few servers and individuals for free. I haven’t taken on any paid L2J work since then.   LINEAGE2.GOLD is a project that has reached about Season 6. The first season launched at the end of 2020 and was a fully rebuilt Gold-style server on the Classic client (protocol 110). It featured many custom systems and enhancements. After several seasons, I decided to abandon the Mobius-based project and move to Lucera, as my goal was to get as close as possible to Interlude PTS behavior while still staying on the L2J platform.   The current project was once again completely rebuilt, this time on the Essence client (protocol 306), and is based on Lucera. Because of that, acquiring a license from Deazer is required.   My Lucera extender includes, but is not limited to: Formulas.java Basic anti-bot detection, which proved quite effective, we caught most Adrenaline users using relatively simple server-side logic, logged them, and took staff action. Simple admin account lookup commands based on IP, HWID, and similar identifiers. In-game Captcha via https://lineage2.gold/code, protected by Cloudflare, including admin commands for blacklisting based on aggression levels and whitelisting. Additional admin tools such as Auto-Play status checks, Enchanted Hero Weapon live sync, force add/remove clans from castle sieges, item listeners for live item monitoring, and more. A fully rewritten Auto-Play system with support for ExAutoPlaySetting, while still using the Auto-Play UI wheel, featuring: Debuff Efficiency Party Leader Assist Respectful Hunting Healer AI Target Mode Range Mode Summoner buff support Dwarf mechanics Reworked EffectDispelEffects to restore buffs after Cancellation. Raid Bomb item support. Reworked CronZoneSwitcher. Prime Time Raid Respawn Service. Community Board features such as Top rankings and RB/Epic status. Custom systems for Noblesse, Subclasses, support-class rewards, and much more.   Depending on the deal, the project can include: The lineage2.gold domain The website built on the Laravel PHP framework The server’s Discord Client Interface source Server files and extender source The server database (excluding private data such as emails and passwords)   I’m primarily looking for a serious team to continue the project, as it would be a shame to see this work abandoned. This is not cheap. You can DM me with offers. If you’re wondering why I’m doing this: I’ve felt a clear lack of appreciation from the L2 community, and I’m not interested in doing charity work for people who don’t deserve it. I’m simply not someone who tolerates BS. Server Info: https://lineage2.gold/info Server for test: https://lineage2.gold/download Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock