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

When the ban handler is called a record is added in database. With php you can take the data from database and print it on the website.

 

- xAddytzu

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


×
×
  • Create New...