Jump to content

Recommended Posts

Posted

Hello Guys Today i share Online Players Scripts + Face Pcs. for example in your servers is 30 players online and you set 20 to php config. script will shows 50 players (30 + 20).

 

First Create config.php

and write

 

<?php
$L2JBS_config["mysql_host"]="localhost";	// MySQL Host 	["localhost"]
$L2JBS_config["mysql_port"]="3306";		// MySQL Port			["3306"]
$L2JBS_config["mysql_db"]="l2jdb";		// MySQL Database	["l2jdb"]
$L2JBS_config["mysql_login"]="root";		// MySQL User			["root"]	
$L2JBS_config["mysql_password"]="master";	// MySQL Password			

["root"]
$facepcs="20";					// Count of Face PCs
include("_config_procs.php");
error_reporting(0);
?>

 

now create _config_procs.php and write

 

<?php
  $link = mysql_connect($L2JBS_config['mysql_host'].":".$L2JBS_config['mysql_port'], $L2JBS_config['mysql_login'], $L2JBS_config['mysql_password']);
  if (!$link)
die("Couldn't connect to MySQL");
  @mysql_select_db($L2JBS_config['mysql_db'], $link);
error_reporting(0);

?>

 

Finaly Create and write <?php 
require("Config.php");
$activity = mysql_query("SELECT count(*) FROM characters WHERE online = 1");
$tmp = $activity + ($facepcs) - 4;

{
print 'Online players: <em>'.$tmp.'<em>';
}
?>

 

Finish.

 

Credits to me

Posted

thank you!

i was searching for something like that!

thank you!

i was searching for something like that!

stop making double post's dude :)


btw the online players php are shared a lot of times :)

Posted

Finaly Create and write <?php 
require("Config.php");
$activity = mysql_query("SELECT count(*) FROM characters WHERE online = 1");
$tmp = $activity + ($facepcs) - 4;

{
print 'Online players: <em>'.$tmp.'<em>';
}
?>

 

Finish.

 

Credits to me

 

How do I call?

 

I tried to put it in _config_procs but error

 

Parse error: syntax error, unexpected '[' in / var/www/test/test2/config.php on line 8

 

Warning: mysql_connect () [function.mysql-connect]: Access denied for user 'www-data' @ 'localhost' (using password: NO) in / var/www/test/test2/_config_procs.php on line 2

Could not connect to MySQL

 

works on gracia epilogue?

Posted

Man write a simple php script.

 

<?php

 

$MySQL_Connection = mysql_connect("localhost", "root", root");

 

if($MySQL_Connection) {

    if(mysql_select_db("l2jdb", $MySQL_Connection)) {

              $MySQL_Action = "SELECT online FROM character WHERE online = 1";

              $MySQL_Query = mysql_query($MySQL_Action, $MySQL_Connection);

              $Number_of_rows = mysql_num_rows($MySQL_Query);

              echo("Online players: $Number_of_rows);

     }

     else {

            echo("Wrong");

     }

}

else {

     echo("Wrong");

}

 

?>

 

 

A very simple online player script!!!!

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


  • Posts

    • There is a ready-made option and the possibility to work according to "Wishlist"
    • Contact me, Discord: xbaus
    • WTB GRACIA FINAL INTERFACE
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

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