Jump to content

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


Recommended Posts

Posted

can you show what changes you have made to make it work? :)

 

It works as it is.... Im using it on my own pack... Its high five l2jserver almost last rev ....!

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.



×
×
  • Create New...