Jump to content

Question

Posted

HI all! mengz how i can add raid boss status to my website(diskw)?can you give me any script...

and one more i dont need status for all rb only for some what i need.

thx

============================================

Gia sas! pos mporo na kano add raid boss status sto site mou(diskw)?an mporite doste m kana script gia afto...

a kai kati allo egw 8elo stat mono gia rb pou xriazoume,oxi gia ola.

thx

 

Ps egw exw ena script ala dn doulevi kanonika...dld m dixni ola ta rb kai otan einai dead m leei alive...

 

[move]plz help.[/move]

 

<?php

if(empty($mw))

{

 header ("Location: ..");

 exit;

}

?>

 

<?php

$hostname = "localhost"; // your database location

$database = "l2jdb";

$user = "root"; // your database user

$pass = ""; // your database password

 

$connect = @mysql_connect($hostname, $user, $pass);

@mysql_select_db($database, $connect);

 

if(!$connect)

echo 'Can\'t connect to the database';

else

{

$raidspawn = mysql_query("SELECT boss_id,respawn_time FROM raidboss_spawnlist ORDER BY respawn_time DESC");

while(list($boss_id) = mysql_fetch_row($raidspawn))

{

$raidnames = mysql_query("SELECT name FROM npc WHERE id = $boss_id");

$text = '<font color="00FF00">alive</font>';

$respawn = '<font color="0000FF">spawned</font>';

if($respawn_time > 0)

{

$respawntime = date('r',($respawn_time / 1000));

$text = '<font color="FF0000">dead</font>';

$respawn = '<font color="FF0000">Will respawn '.$respawntime.'</font>';

}

 

while(list($raidname) = mysql_fetch_row($raidnames))

{

echo '<tr><td>'.$raidname.'</td><td>'.$text.'</td><td>'.$respawn.'</td></tr>';

}

}

}

?>

 

</body>

</html>

3 answers to this question

Recommended Posts

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


×
×
  • 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..