Skip to content

[Share] Security System

Featured Replies

Hey guys , was bored so decided to code this shit, took me about 30 minutes

When you first log-in it will ask you to create a security code

93409105.png

When you log-in again with different ip than the last one you logged with

you will have to enter the code

99807626.png

If you typed the code wrong the client will close

If you closed the window you can't move or do anything

Once you enter the code you can

 

http://pastebin.com/u2Ee2ZjF

 

also excute this into db

CREATE TABLE `codes` (
  `name` text,
  `lastip` text,
  `code` text
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;

 

Coded by me

 

Interesting, you should add a deactivate command in case of a specific player dont want this on his char...

  • Author

Interesting, you should add a deactivate command in case of a specific player dont want this on his char...

thought of that but I just gave the idea and the code you can do what ever you want with it

  • Author

nice one marwan continue , lets make this section more life full :P

thanks , waiting for your next share :D

i need this script very mutch, but i can't put in frozen pack... can you edit it to frozen?

  • Author

i need this script very mutch, but i can't put in frozen pack... can you edit it to frozen?

I don't have frozen on my workspace, just try to add it and tell me if there is any problems

i have problem where to add scripts part in already existing java fail, because lines and code are diference...

  • Author

i have problem where to add scripts part in already existing java fail, because lines and code are diference...

then add it manually

if someone forgets the password?

  • Author

if someone forgets the password?

dunno , maybe contact admin , since all passwords are in db

can you explain me how to add manualy?

  • Author

Coyote guide

Chapter 7 - Applying/Reading L2J Patches

 

Patches are files that.. well, you can say that they include "java codes" that can be applied to your server. Creating a patch requires a little L2J Coding Knowledge, although applying one patch (adding a java code in your server) is nothing serious. Here is a guide by TheEnd, on how to apply such patches. Click on the following link: Guide.

 

Although, if you are bored to read looong guides, then I can tell you a few things.

To begin with, there is a function at eclipse, called "Apply Patch".

In this way you can get a diff/patch file, apply it, and apply every change/addon the patch includes.

Although, it will be hard to apply the patch normally, if the rev of the project you're using isn't the same, or even if at least one line is different.

In this case, you'll have to apply the patch "manually". What does that mean? You will have to read the patch and apply every change/addon by yourself. Let's see how you'll do that.

 

The "Index" of the patches, show you the class you need to use. If the Index shows you the direction clientpackets/EnterWorld.java, then you'll have to open the EnterWorld.java class.

The "@@" symbols show you which lines to visit. Although, since they are not accurate, you will sometimes have to find the proper place to add the lines, by yourself - rather easy if you have at least ~40 IQ  .

The "+" symbol shows you that you'll have to add the following line(s) of coding.

And last, but not least, the "-" symbol shows you that you'll have to remove the following line(s) of coding.

lines are diferent

...

 

  • Author

lines are diferent

...

 

add the pc instance part anywhere

but  enterworld out of the class instead of the thread starter code

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.