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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

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