![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Dec 2005
Posts: 156
|
its just a raidboss lister (alive or not), everyone can code it, but since someone just showed some weird code on irc here it is:
it would need 1-2 extra str_replace, example: Amber -> Ember Code:
<?PHP
$conn = mssql_connect('localhost','omg','meng');
$db_selected = mssql_select_db('lin2world', $conn);
$result = mssql_query("SELECT npc_db_name,alive FROM npc_boss");
?>
<table width="500" cellpadding="0" cellspacing="0" border="1">
<?PHP
while ($rezult = mssql_fetch_object($result) )
{
$rezult->npc_db_name = ucwords(str_replace("_"," ",$rezult->npc_db_name));
$rezult->alive = str_replace("1","Alive",$rezult->alive);
$rezult->alive = str_replace("0","Not Alive",$rezult->alive);
echo ('<tr>
<td width="50%" height="20">'.$rezult->npc_db_name.'</td>
<td width="50%" height="20" align="center">'.$rezult->alive.'<br>
</tr>');
}
?>
</table>
|
|
|
|
|
#2 | |
|
Архивный участник
Join Date: May 2006
Posts: 209
|
Lil "fix":
Quote:
If you want you can also add loc in a map. |
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Something like this ?
http://www.lineage2.es/info_raidboss.php?server=2 Maybe this array can help you... (part 1, fuck1ng characters limit >.<) PHP Code:
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Part 2.
PHP Code:
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
About the query... you will need to exclude non raid boss npcs from that table...
Code:
SELECT npc_db_name,time_low FROM npc_boss WHERE npc_db_name NOT LIKE 'sentinel_guard_%' AND npc_db_name NOT LIKE '%_siege_%' AND npc_db_name NOT LIKE '%b02_%' AND npc_db_name NOT LIKE 'tbb%' AND npc_db_name NOT LIKE 'tbf%' AND npc_db_name NOT LIKE 'nurka%' AND npc_db_name NOT LIKE 'devastated_%' ORDER by 1 if ($time_low == 0) ... is alive... else .... $time_low <--- When the raid died... |
|
|
|
|
#6 | |
|
Архивный участник
Join Date: Dec 2005
Posts: 156
|
Quote:
|
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jul 2007
Posts: 23
|
thanks for this fidow, helps quite alot
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
by retard boss list u mean raid boss status ?
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
Very useful, thanks for arrays
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: May 2006
Posts: 209
|
A lot of hours to do this he fidow? (xD).
Thanks and fidow you clan explain or give a link to see how to add loc in a map? |
|
|
|
|
#12 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
PHP rulz. About the map... is a script that work with GD library, extract the location from a database and write the point over the map, not a big deal. |
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Aug 2007
Posts: 38
|
|
|
|
|
|
#14 | |
|
Архивный участник
Join Date: Mar 2007
Posts: 118
|
Quote:
these aren't big changes but looks better ![]() PS: i forget to thanks for the script. |
|
|
|
|
|
#15 | |
|
Архивный участник
Join Date: Mar 2007
Posts: 118
|
Guyz here is the code for better raidboss list:
Quote:
|
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Dec 2005
Posts: 156
|
youre kewl meng, gud sher
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: May 2007
Posts: 23
|
Skye, maybe this is useful: http://www.w3schools.com/php/php_ref_filesystem.asp
Fidow, great share! I will create a RaidBoss section in my server's page soon Gracias!!
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Aug 2007
Posts: 38
|
Thanks Eru, ill take a look
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|