Jump to content

Recommended Posts

Posted

Well, hello everybody.

Here I am with a new share, which is a kind of "adaption".

 

Let me remind what Intrepid once said:

The only way to give sense to Interlude, is to apply Gracia Features in it.

 

So, I thought to take the punishment system from Gracia Epilogue, and change it to support Interlude.

 

If you are interested in adding it, follow the patch step by step.

It has NO compile errors, since I tested it on a clear Interlude pack, taken from L2j Server's branches.

 

So, here you are:

Link

 

 

Don't forget to add the server (sql) part!

Go at characters.sql, and:

 

Delete these:

in_jail decimal(1,0) DEFAULT 0,
 jail_timer decimal(20,0) DEFAULT 0,

 

And instead of them, add these:

punish_level TINYINT UNSIGNED NOT NULL DEFAULT 0,
 punish_timer INT UNSIGNED NOT NULL DEFAULT 0,

 

It has been tested and it works.

Have Fun using it!

 

Best Regards,

Coyote™.

Posted

nice :). So bad donator members cannot karma people

 

Actually it is good.

You know, most users aren't like you.

What I mean is that, since most of the members don't know how to use the priv properly, there is chaos in mxc because of the abuses =P

 

Thank you very much, by the way! :)

Posted

Can you explain what it does?I am out of date really.

Gracia final has that as a default feature?

 

It's epilogue, but final has the same feature too.

Remember the old boring chatban and jail system?

 

Where the durations and actions were standard and boring.

Now it is advanced:

 

There are a few types of punishments, such as jail, chat, acc, etc.

 

You can easily set your own duration and kind of punishment in an easier and better way than before.

 

 

Add it and you'll find out more by yourself.

Posted

It's epilogue, but final has the same feature too.

Remember the old boring chatban and jail system?

 

Where the durations and actions were standard and boring.

Now it is advanced:

 

There are a few types of punishments, such as jail, chat, acc, etc.

 

You can easily set your own duration and kind of punishment in an easier and better way than before.

 

 

Add it and you'll find out more by yourself.

I get it now.

Damn me,I have to read about the new features.

Thanks for sharing that with us.Will help shitlude lovers :P

Posted

Coyote™, I found a mistake ..

I did a littel patch

 

Index: gameserver.handler.admincommandhandlers.AdminBan

private void jailOfflinePlayer(L2PcInstance activeChar, String name, int delay)
{
	Connection con = null;
	try
	{
		con = L2DatabaseFactory.getInstance().getConnection();

-			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, in_jail=?, jail_timer=? WHERE char_name=?");
+			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, punish_level=?, punish_timer=? WHERE char_name=?");
@@
private void unjailOfflinePlayer(L2PcInstance activeChar, String name)
{
	Connection con = null;
	try
	{
		con = L2DatabaseFactory.getInstance().getConnection();
-			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, in_jail=?, jail_timer=? WHERE char_name=?");
+			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, punish_level=?, punish_timer=? WHERE char_name=?");
		statement.setInt(1, 17836);

Posted

Coyote™, I found a mistake ..

I did a littel patch

 

Index: gameserver.handler.admincommandhandlers.AdminBan

private void jailOfflinePlayer(L2PcInstance activeChar, String name, int delay)
{
	Connection con = null;
	try
	{
		con = L2DatabaseFactory.getInstance().getConnection();

-			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, in_jail=?, jail_timer=? WHERE char_name=?");
+			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, punish_level=?, punish_timer=? WHERE char_name=?");
@@
private void unjailOfflinePlayer(L2PcInstance activeChar, String name)
{
	Connection con = null;
	try
	{
		con = L2DatabaseFactory.getInstance().getConnection();
-			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, in_jail=?, jail_timer=? WHERE char_name=?");
+			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, punish_level=?, punish_timer=? WHERE char_name=?");
		statement.setInt(1, 17836);

 

so, where's the mistake? =P

Posted

You forgot to change  punish_level=?, punish_timer=?

 

Why to change it? o.O

This is what I added..

I still can't get you..

 

EDIT: I just saw the "Index" at your post..

The patch was not normal, so I didn't see it xD

Gonna fix it, sec.

Posted

You`ve got it at last

 

yea, I didn't notice the class you were mentioning, since the patch was handmade ;p

 

> Tested and Working <

 

Thanks for providing feedback.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...