Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 20.07.2007, 03:28   #1
madar
Архивный участник
 
Join Date: Dec 2005
Posts: 156
Default [SHARE] retard boss lister

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>
madar is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:51.