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

    • Mate your server used to play with full of bots, from where you find that revenue? 
    • IAM one of customers of this project. Have anti cheat, have user panel everything is working. Blocking adrenaline trashy plans without any problems.  So just GL for all lin2 project. I get support every time I need it. 
    • ⚡ Key Features • One-click package conversion from old formats to new formats. • Create new packages in any supported format. • Lineage2Ver121 encryption support already integrated into the package system. • Safe editing workflow: work on copies, complete undo/redo history (Ctrl+Z / Ctrl+Shift+Z), and a single Save button. 💻 System Integration • Open .utx / .ugx files directly from Windows Explorer (file associations are registered automatically during installation). • Smart tab system: opened files are automatically added to the existing application window. • Multilingual interface: EN, RU, UK, ES, PT, EL, KO, VI, ZH. The language is automatically detected from system settings. 📦 Supported Formats Packages UTX UGX Textures RGBA8 DXT1 DXT3 DXT5 G16 P8 Resources GFX (Scaleform) 🛠 Requirements & Installation Requirements: Windows only. Java is not required — all required components are already included. Installation: Run La2Tools-3.0.2.exe. The installer will create shortcuts and register supported file types automatically. Portable Version: Also available for users who prefer running the application without installation. Fast, safe and simple package management tools for Lineage 2 developers.   https://la2.tools/files/La2Tools_3.0.3_setup.exe   https://la2.tools/files/La2Tools_3.0.3_portable.zip  - Portable version  
    • WHEN SAYING “YES” IS A MISTAKE Not every project is worth taking on, even if the client is ready to pay. Sometimes refusing isn’t about losing money — it’s about protecting your reputation and time. Over the years, we’ve learned to quickly spot the cases that are almost guaranteed to turn into problems. Here are the most common situations where we turn down work: ▪ The client wants it “like everyone else’s,” but with lots of custom changes and on a minimal budget ▪ There are no proper source materials, yet the deadlines are already burning and everything is needed “yesterday” ▪ Constant changes to requirements after the work has already started ▪ A task with a very low chance of success, but very high expectations ▪ The client isn’t willing to discuss the process and sees us as just an executor - A good result almost always starts when both sides have an honest understanding of the risks and real possibilities of the project. If you’re currently discussing a project and unsure whether to move forward — write to us. We’ll honestly and directly tell you whether it’s worth taking on or if it’s better to look for another solution. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #drawing #photoshop #refuse #cases
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..