Jump to content
  • 0

[help] BAN list? possible


Question

11 answers to this question

Recommended Posts

  • 0
Posted

i use google chrome to. and here i can find it meby need other internet? leave country come to here and try?

 

Yeah, sure tomorrow I will fly to Netherlands only for try to connect to dragon-network. Stay there I will answer tomorrow !

  • 0
Posted

There is one part related to Java (custom //ban command), and a big part related to PHP.

 

To be simple, when you ban someone ingame, it write his name in a banlist table, with reason etc. PHP read your table "banlist", like it could read your table "heroes" if you had a "heroes" page.

 

----

 

THE FOLLOWING IS JUST A GUIDELINE. YOU HAVE TO MAKE THE IMPROVED COMMAND AND THE PHP PART OBVIOUSLY.

 

It could work with a command like

 

//ban characterName Duration ReasonofBan

 

It's an accurate command which need 3 parameters, but you can cut it to the CharacterName if you got a PHP administration panel (which mean more work for my part lol, so I prefer java).

 

The command kick and ban the guy ofc, but write a SQL command in a banlist table (table you improved/created if no exists).

 

Once you got your registered banned character, you have to code a PHP code in your website (make a page for it like your exemple...) to put in in format.

 

I invite you to search guides on this forum about "show heroes on website" and such things.

 

Dunno if I was rly clear lol, but just don't hope someone make it for you. It's rly not hard, but it asks some time if you want to do a clean thing.

 

I coded this thing myself (except the improved //ban command), so it's possible.

 

-----

 

Some more things :

 

- find the command //ban easily using the powerful "search" from eclipse. It's in admincommandhandlers, or whatever depending of your chronicle.

- search definitively a "heroe" or any guide which pick stats from database to call it on webpage. It's the easiest way to understand.

  • 0
Posted

There is one part related to Java (custom //ban command), and a big part related to PHP.

 

To be simple, when you ban someone ingame, it write his name in a banlist table, with reason etc. PHP read your table "banlist", like it could read your table "heroes" if you had a "heroes" page.

 

----

 

THE FOLLOWING IS JUST A GUIDELINE. YOU HAVE TO MAKE THE IMPROVED COMMAND AND THE PHP PART OBVIOUSLY.

 

It could work with a command like

 

//ban characterName Duration ReasonofBan

 

It's an accurate command which need 3 parameters, but you can cut it to the CharacterName if you got a PHP administration panel (which mean more work for my part lol, so I prefer java).

 

The command kick and ban the guy ofc, but write a SQL command in a banlist table (table you improved/created if no exists).

 

Once you got your registered banned character, you have to code a PHP code in your website (make a page for it like your exemple...) to put in in format.

 

I invite you to search guides on this forum about "show heroes on website" and such things.

 

Dunno if I was rly clear lol, but just don't hope someone make it for you. It's rly not hard, but it asks some time if you want to do a clean thing.

 

I coded this thing myself (except the improved //ban command), so it's possible.

 

-----

 

Some more things :

 

- find the command //ban easily using the powerful "search" from eclipse. It's in admincommandhandlers, or whatever depending of your chronicle.

- search definitively a "heroe" or any guide which pick stats from database to call it on webpage. It's the easiest way to understand.

 

Thank you for help me i will try this one! Thanks!

i use FREYA :)

 

Edit: mm lil to hard for me i will try find already shared meby a website or some one have tuts for it:D:)

if some one knows how edit or create it add me on msn laminota@hotmail.com

  • 0
Posted

As I'm insanely cute today, I will share you the mechanism of mine. Some things you must know :

 

- Do whatever you can/want with this source, I don't give any support, except the short explanation I will do right now.

- Clever people will find it usefull, lazy will find it useless. Your problem seriously lol.

- It's surely not the most optimized way to do it, and I really don't give a fock.

- It's made for IL, so try to adapt it if you need.

- In Epilogue++ you got a punishement system, no idea how far it's advanced.

- I used the veerrryyy old C3 website to make this feature (deutch words in it, I don't even know the translation, just suposed it).

 

First, a picture :

 

sanstitresxr.th.jpg

 

You can see my Navicat stuff, with a table named "site_eg". It's a table I specially created to stock all punishements features. It didn't existed at all before. When you open it you got many columns : id, reason, victim_name, etc.

 

In background, you got the formated result on my homemade/stocked website.

 

Now the source code, you can dl too at this address : http://www.4shared.com/file/NdQUBN_W/eg_online.html

 

		<?php 

			$verbindung=MYSQL_CONNECT($dbhost,$dbuser,$dbpass) or die ("mySQL database have a problem ; please come back later.");
			MYSQL_SELECT_DB($dbname) or die ("mySQL database have a problem ; please come back later.");

			$get_eg="SELECT * FROM site_eg ORDER by id DESC";
			$eg=MYSQL_QUERY($get_eg);

			//Initialisation pour une valeur de départ non null pour rentrer dans la boucle
			$row = "0";

			while ($row != null) 
			{
				$row = mysql_fetch_array($eg);

				if ($row["punishement"] == 1)		$row["punishement"]="Chatban";
				elseif ($row["punishement"] == 2)	$row["punishement"]="Jail";
				elseif ($row["punishement"] == 3)	$row["punishement"]="Delevel";
				elseif ($row["punishement"] == 4)	$row["punishement"]="Decreased enchant";
				elseif ($row["punishement"] == 5)	$row["punishement"]="Character ban";
				elseif ($row["punishement"] == 6)	$row["punishement"]="Account ban";

				if ( $row != null )
				{
					echo "<tr>";
						echo "<td>" .prettydatenews($row["postdate"]). "</td>";
						echo "<td>" .$row["victim_name"]. "</td>";
						echo "<td>".$row["punishement"]. "</td>";
						echo "<td>".$row["time"]. "</td>";
						echo "<td>".$row["reason"]. "</td>";
					echo "</tr>";
				}
			}
			echo "</table>";

			function prettydatenews($uglydate) 
			{
				//  Format de la date (DD-MM-YYYY pour les news de l'accueil).
				return date("d.m.Y", mktime(0,0,0,substr($uglydate, 5, 2),substr($uglydate, 8, 2),substr($uglydate, 0, 4)));
			}
		?>

 

Some explanations : we log to the db, with password W and login Y and we do a SQL request on it : SELECT * FROM site_eg ORDER by id DESC, which means basically : select all the damn data from my table "site_eg" and order it via their "id"

 

After it's a question of format... It creates a table, and do all the shit clean lol. For example, it renames the punishement, which is basically a system of 6 numbers per a "name". Punishement 1 = name1, punishement 2 = name2,...

 

There will have no graphics at all like mine. If you read my sources from the 4shared place, you can see clearly I used headers and footers in php where I do some calls to my .css stylesheet. As I didn't share my whole site (Maxcheaters will rip it in some months perhaps, if my server is launched a day, who know lol), you miss all graphical part, which isn't the issue in your problem, we agree :D.

 

---

 

Basically, it's all for the "read". Now you need the "write" code, aka java commandhandlers heavy modifications :D.

 

 

  • 0
Posted

this what iam looking for!!!!!

 

Very Thanksss really

 

/lock please

solved.

locked.

Guest
This topic is now closed to further replies.


  • Posts

    • I'll give you my wallet if you want, haha
    • To make up for some of the waiting time we’re hosting a 3v3 Tournament on open Beta, and this time we’re raising the stakes with a $1,300 prize pool 💰   🏆 PRIZE POOL BREAKDOWN (Over 2000$ Worth of prices total)   🥇 1st Place — $700 🥈 2nd Place —$300 🥉 3rd Place — $200 🏅 4th Place — $100  5th -6th Place - $100 in Gold Coins each    All Participating Teams: $50 in Gold!   All Prices will be Paid out instantly after the tour, no waiting time and conditions. This is not simply a marketing move, we want to give back to the community.   📅 Date: Wednesday 06.05.2026 ⏰ Time: 20:00 Central European Timezone (Berlin) 📍Format: 3v3   ⚔️Why join? Cash Prices for top 4 and rewards for all participants Payments to winners sent out straight after the tournament - No waiting time or rules that you have to play live server to obtain the reward. Clean format, smooth matches, and solid prize pool and a chance to experience our brand new files   📝How to join: Form your 3-player team Group Leader Sign up here: ⁠📍・3v3-tour-registration (Include Name of Group, Name of Group Leader)   Be ready on match day!     A separate post with rules for the tournament and class setups will follow shortly.   Tag your teammates, lock in your roster, and get ready to compete. We'll be happy to see you on the OBT!   💬 Questions? Ask in ⁠🎫・ticket or send us a message   See you on L2Dark! 😏   Discord: https://discord.gg/FAJwnFpb8M
    • You should check if that condition is supported by your current sources. You can find this in  DocumentBase#parsePlayerCondition If it isnt there and you want to follow the same pattern of the other item conditions, create a custom condition to parse the classId (or multiple class ids) (there are examples to copy the code). Alternatively, you can create your own condition handler. Your condition should look like this: <cond msgId="1518"> <player classId="ADVENTURER,PALADIN" /> </cond> or <cond msgId="1518"> <player classId="93,5" /> </cond>  
    • it's Interlude client forgot to mention
    • idk if acis have this option, but you can put inside item smth like that atleast on H5         <cond msgId="1518">             <player class_id_restriction="93, 101, 108, 117" /> <!-- Dagger Masters -->         </cond>
  • 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..