Jump to content

Recommended Posts

Posted

this script shows all clanhalls (Name,Location,Lease,Paid until), if clanhall is free, in column paid until will shows "Free"

 

Screen

1009287_clanhalls.png

 

Script

<?php
$username = "root"; //your mysql username
$password = "root"; //your mysql password
$host = "localhost"; //your mysql host
$database = "l2jdb"; //your mysql/lineage database

mysql_connect($host,$username,$password) or die(mysql_error()); 

mysql_select_db($database) or die(mysql_error());

$query = mysql_query("SELECT name,location,lease,paidUntil FROM clanhall ORDER BY location ASC");

  print "<table>";

  print "<tr bgcolor='#707070' style='color:#ffffff;'><th>Name</th><th>Location</th><th>Lease</th><th>Paid until</th></tr>";


$i=1;  


  while($row=mysql_fetch_array($query)){
if($i%2==0){
	$bgcolor='#e3e3e3';
}else{
	$bgcolor='#a6a6a6';
}
if($row[paidUntil]==0){
	$paiduntil="Free";
}else{$paiduntil=$row[paidUntil];}



    print "<tr bgcolor='" . $bgcolor . "'><td>" . $row[name] . "</td><td>" . $row[location] . "</td><td>" . $row[lease] . "</td><td>" . $paiduntil . "</td></tr>";  

$i++;

  }

  print "</table>";

?>

 

Credits: Me (DarkKnight / DarkKnightCZ)

 

 

but cant guarantee paid until (dont have syntax of that table), if someone sends me syntax of paidUntil (in clanhalls table in database), i will update it

 

and if you wanna script for showing free clanhalls only or if you wanna add some collumn (like owner), just tell :)

Posted

Very Nice man thanks .... keep it up...

so i can understand is this like a npc? a command? only for admins?

Its for Site side... its shows
(Name,Location,Lease,Paid until), if clanhall is free, in column paid until will shows "Free"

........Btw .my question is... can i use this one ... for ucoz template... ?

Posted

HouLiGaN : no, it is for website :)

crazynoodle: i think it would work, but i dont know, how ucoz works, so if you send me it, i can modify it and post here guide :)

 

//edit

 

Leki: but if you have apache server with mod_php, it will work :)

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

    • Where's the proof? I can tell you're a scammer.
    • Where was I called a scammer? Is there any proof, etc.? There are a lot of reviews about our store online, etc. https://zhyk.org/forum/showthread.php?t=1108673
    • U was reported as scammer in your previos topic why u create new topic?
    • 🔍 Inventory 1.0 is a next-generation inventory system that stands out with its special minimal clothing system. Carefully designed and prepared according to the highest standards of your server, it not only enhances your gaming experience but also contributes to your server's infrastructure. ⚙️ Supported: QB-CORE Features: ✅ Instant Delivery: All products you purchase will be instantly assigned to your account as soon as your payment is completed. ✅ Clothing System: With the special animated clothing configurations in your inventory, you will be able to change outfits with ease. Experience a unique roleplaying experience with high-quality animations and customizable clothing options. ✅ Minimalist Inventory System: This inventory system, with its visuals, animations, and mechanics, offers maximum efficiency without overwhelming your screen and limiting your roleplaying experience. It’s designed to be user-friendly while enhancing your roleplaying experience. ✅ Continuous Updates: The content in the inventory is regularly updated with innovative features added. New animations, additional clothing options, and cutting-edge features ensure a fresh and dynamic experience. ✅ Easy Setup and Compatibility: Compatible with QB-CORE, this system is easy to install and optimized for quick integration into your server. It works seamlessly with a simple drag-and-drop method. ✅ Performance Optimization: The system is optimized to avoid low FPS and performance drops. All features of the inventory run smoothly without affecting your server’s performance. ✅ Multilingual Support: With support for different languages, you can cater to an international player base and build a larger community on your server. ✅ Flexible Customization Options: You can fully customize the inventory according to your needs and server rules. Choose between different outfits and animations to create a unique gaming experience. ✅ Comprehensive Help and Support: With 24/7 support, you can quickly resolve any issues you encounter. Our technical support and user guides are always here to assist you. Shop Now! Take your game to the next level with Inventory 1.0  and enjoy its unique features. Get ready to make a real difference in your roleplaying experience!   --------------------------TEBEX: https://matza.tebex.io/package/7174862 --------------------------
  • 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