Jump to content

[Share] Captcha Antibot System [Updated 17.6.2011, Version 2] [Please LOCK IT .]


Recommended Posts

Posted

I get this error, and im using Latest revision of High Five... :(

compile:
    [javac] Compiling 1585 source files to C:\Workspace_L2server\L2J_Server_BETA\build\classes
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15274: code is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		           String code;
    [javac] 		                  ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15278: setCode(java.lang.StringBuilder) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setCode(StringBuilder finalString)
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15282: getCode() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public String getCode()
    [javac] 		                             ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15286: codeRight is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               private boolean codeRight = true;
    [javac] 		                               ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15287: setCodeRight(boolean) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setCodeRight(boolean code){
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15290: isCodeRight() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public boolean isCodeRight()
    [javac] 		                              ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15294: Kills is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               private int Kills = -1;
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15295: setKills(int) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setKills(int AntiBotKills)
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15299: getKills() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public int getKills()
    [javac] 		                          ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15303: Tries is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               private int Tries = 3;
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15304: setTries(int) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setTries(int AntiBotTries)
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15308: getTries() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public int getTries()
    [javac] 		                          ^
    [javac] 12 errors

BUILD FAILED
C:\Workspace_L2server\L2J_Server_BETA\build.xml:72: Compile failed; see the compiler error output for details.

Total time: 6 seconds

Posted

I get this error, and im using Latest revision of High Five... :(

compile:
    [javac] Compiling 1585 source files to C:\Workspace_L2server\L2J_Server_BETA\build\classes
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15274: code is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		           String code;
    [javac] 		                  ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15278: setCode(java.lang.StringBuilder) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setCode(StringBuilder finalString)
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15282: getCode() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public String getCode()
    [javac] 		                             ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15286: codeRight is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               private boolean codeRight = true;
    [javac] 		                               ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15287: setCodeRight(boolean) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setCodeRight(boolean code){
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15290: isCodeRight() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public boolean isCodeRight()
    [javac] 		                              ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15294: Kills is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               private int Kills = -1;
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15295: setKills(int) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setKills(int AntiBotKills)
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15299: getKills() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public int getKills()
    [javac] 		                          ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15303: Tries is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               private int Tries = 3;
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15304: setTries(int) is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public void setTries(int AntiBotTries)
    [javac] 		                           ^
    [javac] C:\Workspace_L2server\L2J_Server_BETA\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:15308: getTries() is already defined in com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 		               public int getTries()
    [javac] 		                          ^
    [javac] 12 errors

BUILD FAILED
C:\Workspace_L2server\L2J_Server_BETA\build.xml:72: Compile failed; see the compiler error output for details.

Total time: 6 seconds

 

code is already defined in blablabla errors

You have already added the code and you are trying to re-add? X) X)

Posted

No, i did not add it multiple times ;)

 

...So you would recommend me to delete it all and try again?

Yes, try first of all add it on a clean L2JServer last rev project ... Im almost sure that it will be added without errors. Good luck.

Posted

btw, you updated with Disorder25's fixes? or they are not needed? :)

 

 

EDIT: Ok, i made it work with Disorder25's fixes (it was some codes in L2PcInstance witch was allready there) and then i had to make a little change on an import.. Ty for share!! :D

  • 2 weeks later...
Posted

I cant seem to make it work and i dont get any error on console any help guys? i still see a black image

ps: on console i only get a "0" no matter what i type or dont type in the box...not sure if it suppose to be that way

  • 4 weeks later...
Posted

ok also for me it dont pop up i changed the 50 to Config.CaptchaCheck

 

and did it in config to 5 so donno what happend

 

errormq.png

 

this error i get everytime if i install in l2attackable or l2npc.java

 

To resolved this problem go to ai group_template and search DenofEvil.java

in this java search the line:

 

destroyZone(); and make it  //destroyZone();

 

than search the line:

 

private void destroyZone() and make it  //private void destroyZone()

 

and last but not least search the line:

 

if (character.doDie(null)) // mobs die  and make it 

//if (character.doDie(null)) // mobs die

 

by me its working and i dont have problems.

 

But my Server is PvP Server and i dont need the Quest!!!!

 

P.S. Sorry for my English :)

Posted

im getting this error?

 

Exception in thread "AISTPool-4" java.lang.NullPointerException

        at com.l2jserver.gameserver.model.actor.L2Npc.doDie(L2Npc.java:1524)

        at com.l2jserver.gameserver.model.actor.L2Attackable.doDie(L2Attackable.

java:534)

        at com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance.doDie

(L2MonsterInstance.java:161)

        at ai.group_template.DenOfEvil$KashaDestruction.destroyZone(DenOfEvil.ja

va:221)

        at ai.group_template.DenOfEvil$KashaDestruction.run(DenOfEvil.java:202)

        at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(Thread

PoolManager.java:86)

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

        at java.util.concurrent.FutureTask.run(Unknown Source)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

access$201(Unknown Source)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

run(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

 

 

using freya , without H5

Posted

 

 

When you have a PvP Server you dont need this Quest!!

 

Try this,by me its working fine.

 

To resolved this problem go to ai group_template and search DenofEvil.java

in this java search the line:

 

destroyZone(); and make it  //destroyZone();

 

than search the line:

 

private void destroyZone() and make it  //private void destroyZone()

 

and last but not least search the line:

 

if (character.doDie(null)) // mobs die  and make it

//if (character.doDie(null)) // mobs die

 

by me its working and i dont have problems.

 

But my Server is PvP Server and i dont need the Quest!!!!

 

P.S. Sorry for my English :)

 

 

Posted

i found anther bug, if a player doesnt enter anything, its suppose to jail as-well, and the timer is set to 3 minutes, but noting happens after 3 minutes, i noticed there is no variable to designate hour, min, sec..

 

NVM i see in threadpoolmanager is variable

 

ok the bug must be were i placed the code in L2Npc.java, the last part of the code does not match up with the current version of l2j, the working copy number 183 must be from another project, and is not lining up, the bug, is that it wont jail the player after 3 minutes with no response...

 

i have tried moving the code around:

//3 Mins Counter and the event that happens

class CaptchaTimer implements Runnable{

L2PcInstance activeChar;

public CaptchaTimer(L2PcInstance player){

activeChar = player;

}

public void run(){

//here will be code that will run after 1 min

if(!activeChar.isCodeRight()){

activeChar.setTries(3);

//here will run method with jailing player after 1 min

activeChar.stopAbnormalEffect(AbnormalEffect.REAL_TARGET);

NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0);

npcHtmlMessage.setHtml("<html><title>Captcha Antibot System</title><body><center><font color=\"FF0000\">3 minutes passed.<br><br></font><font color=\"66FF00\"><center></font><font color=\"FF0000\">You will be jailed.</font><br><button value=\"Exit\" action=\"bypass -h npc_%objectId%_Quest\" width=45 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>");

if (activeChar.isFlyingMounted())

activeChar.untransform();

activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 180);

activeChar.setIsInvul(false);

activeChar.setIsParalyzed(false);

activeChar.sendPacket(npcHtmlMessage);

activeChar.setCodeRight(true);

}

}

}

 

i cannot find:

193.        {

194.                return this._hidedName;

195.        }

 

 

only thing i have similiar to this is:

 

public void setHideName(boolean val)

{

_isHideName = val;

}

 

public boolean isHideName()

{

return _isHideName;

}

 

Guest
This topic is now closed to further replies.



  • Posts

    • Only 3 days left and we'll start with some events, you can check our Discord for more info!
    • Tired of frantically switching between windows trying to find that specific Warlock who should be casting saves? Forgot which server you left your Warsmith on? This mod solves these problems! What it does: Turns the boring window title into an information panel: Server Name - Character Name [Class] Real-life examples: - ServerName - HardcoreFarm [Spoilerr] (who's been spoiling for 3 months already) - ServerName - ClericHelper [Buffer] (eternal buffer on standby) - ServerName - MainChar [Gladiator] (main character who's always AFK) Why you need this: For multiboxers - to avoid confusing where the DD is and where the healer is For the forgetful - if your memory is like a goldfish For streamers - viewers immediately see who's on screen For adults - when playing at work and need to quickly hide the window DLL only - no Interface files needed Installation (more complicated than making tea): 1. Download the DLL 2. Drop it into the System folder 3. Launch the client 4. Be amazed how you lived without this before! Purchase Conditions: Price: 100$ Payment Method: USDT. How to Buy: Contact me on Telegram: @kiselevwv for a quick response. I will answer all your questions and provide additional information if needed. I guarantee functionality at the moment of sale and prompt assistance with setup after purchase.
    • I agree, l2damage crap to compare to l2java which was the father of pvp servers and till this days people playing there for good time.
    • 📝 Registration — Account Registration Creating a new player account. Usually includes: login password password confirmation email Result: a new record is created in the accounts table (loginserver). 🔑 Change Password — Password Change The player changes the password knowing the current one. Required: current password new password new password confirmation Result: the password field is updated in the accounts table. ♻️ Password Recovery — Password Reset If the player forgot the password. Implementation only via email: the player enters their login, email the system sends an email with a link or code the player opens the link / enters the code sets a new password Result: the password is updated in the accounts table.   All fields are validated (required, format, length, uniqueness, security checks).   Price: 80$   and i can rewrite script for PTS server.   Contacts:   Telegram Discord
  • 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..