Jump to content
  • 0

[HELP] RaidBoss Status PhP Script?


Question

Posted

Does anyone know where i can get RaidBoss Status PhP Script? I searched the Forum and I didn't find anything relevant.... if anyone has this script or can post a link to download it i would be really greatful

 

Thank You,

Th3On3

9 answers to this question

Recommended Posts

  • 0
Posted

<html>
<head>
<title>
Raidboss info
</title>
</head>
<body>
<table>
<tr><td>Name</td><td>Status</td><td>Spawn</td></tr>
<?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,$respawn_time) = 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>';
}
}
}
?>
</table>
</body>
</html>

 

credits to hanwik

  • 0
Posted

when you right click on a webpage to see the source, (and this page have a final string with .php) then is NOT possible (yet) to see the php script inside that page ;D

  • 0
Posted

<html>
<head>
<title>
Raidboss info
</title>
</head>
<body>
<table>
<tr><td>Name</td><td>Status</td><td>Spawn</td></tr>
<?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,$respawn_time) = 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>';
}
}
}
?>
</table>
</body>
</html>

 

credits to hanwik

 

How i edit the raidboss name color ?

My website background is black and the raidbosses names too.

Guest
This topic is now closed to further replies.


  • Posts

    • Αν σε ενδιαφέρει ο κόσμος των κρυπτονομισμάτων και θέλεις να συζητάς, να μαθαίνεις, αλλά και να μοιράζεσαι γνώσεις με άλλους Έλληνες χρήστες, τότε σε προσκαλούμε στο νέο μας Telegram forum αποκλειστικά για την ελληνική crypto κοινότητα!   Συζητάμε για Bitcoin, altcoins, DeFi, trading, νέες τάσεις, NFTs, τεχνική ανάλυση και ό,τι άλλο αφορά τον κόσμο των crypto. Είτε είσαι αρχάριος είτε προχωρημένος, θα βρεις κάτι που σε ενδιαφέρει και μια παρέα που μιλάει τη γλώσσα σου – κυριολεκτικά!     Σύνδεσμος πρόσβασης:    https://t.me/investfuture_crypto_gr    ή   Scan QR Code:       Έλα να γίνουμε η πιο ενεργή ελληνική κοινότητα στο χώρο των crypto!
    • Αν σε ενδιαφέρει ο κόσμος των κρυπτονομισμάτων και θέλεις να συζητάς, να μαθαίνεις, αλλά και να μοιράζεσαι γνώσεις με άλλους Έλληνες χρήστες, τότε σε προσκαλούμε στο νέο μας Telegram forum αποκλειστικά για την ελληνική crypto κοινότητα!   Συζητάμε για Bitcoin, altcoins, DeFi, trading, νέες τάσεις, NFTs, τεχνική ανάλυση και ό,τι άλλο αφορά τον κόσμο των crypto. Είτε είσαι αρχάριος είτε προχωρημένος, θα βρεις κάτι που σε ενδιαφέρει και μια παρέα που μιλάει τη γλώσσα σου – κυριολεκτικά!     Σύνδεσμος πρόσβασης:    https://t.me/investfuture_crypto_gr    ή   Scan QR Code:       Έλα να γίνουμε η πιο ενεργή ελληνική κοινότητα στο χώρο των crypto!
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Good luck with your g/o!
  • Topics

×
×
  • Create New...