Jump to content

Recommended Posts

Posted

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

 

Posted

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

Posted

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

Posted

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.

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