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.



  • Posts

    • This update resaves 25_25 from the original (with sounds) (without the cave below) Some emitter fixes (removed waterfalls with high-poly meshes) The geodata is old, but it works Everything else is unchanged Download P.S. The effect files are taken from the high client for Interlude, so if you're experiencing critical skills, use the default ones for your Version.  
    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock