Jump to content
  • 0

[problem]Anit bot compilation error


Question

Posted

Hello member i have a any 9 errors please help me :)

 

 

 

[javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1516: error: cannot find symbol
    [javac] 		if(getNpcId() == 10012 && (killer instanceof L2PcInstance) || (killer instanceof L2PetInstance) || (killer instanceof L2SummonInstance))
    [javac] 		                                                                                 ^
    [javac]   symbol:   class L2PetInstance
    [javac]   location: class L2Npc
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1516: error: cannot find symbol
    [javac] 		if(getNpcId() == 10012 && (killer instanceof L2PcInstance) || (killer instanceof L2PetInstance) || (killer instanceof L2SummonInstance))
    [javac] 		                                                                                                                      ^
    [javac]   symbol:   class L2SummonInstance
    [javac]   location: class L2Npc
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1519: error: cannot find symbol
    [javac] 		player.setKills(player.getKills() + 1);
    [javac] 		                      ^
    [javac]   symbol:   method getKills()
    [javac]   location: variable player of type L2PcInstance
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1522: error: cannot find symbol
    [javac] 		if(player.getKills() == 10 || player.getKills() == 0)
    [javac] 		         ^
    [javac]   symbol:   method getKills()
    [javac]   location: variable player of type L2PcInstance
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1522: error: cannot find symbol
    [javac] 		if(player.getKills() == 10 || player.getKills() == 0)
    [javac] 		                                    ^
    [javac]   symbol:   method getKills()
    [javac]   location: variable player of type L2PcInstance
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1542: error: cannot find symbol
    [javac] 		adminReply.setHtml("<html><title>Captcha Antibot System</title><body><center>Enter the 5-digits code below and click Confirm.<br><img src=\"Crest.crest_" + Config.SERVER_ID + "_" + imgId + "\" width=256 height=64><br><font color=\"888888\">(There are only english uppercase letters.)</font><br1><font color=\"FF0000\">Tries Left: " + player.getTries() +"</font><br><edit var=\"antibot\" width=110><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"><br>If you close by mistake this window,<br1>you can re-open it by typing \".captcha\" on Chat.<br1>You have 3 minutes to answer or you<br1>will get jailed.<br1>You have 3 tries, if you will<br1>answer wrong to all of them you<br1>will get punished.</center></body></html>");
    [javac] 		                                                                                                                                                                                                                                                                                                                                                    ^
    [javac]   symbol:   method getTries()
    [javac]   location: variable player of type L2PcInstance
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1544: error: cannot find symbol
    [javac] 		player.setCode(finalString);
    [javac] 		      ^
    [javac]   symbol:   method setCode(StringBuilder)
    [javac]   location: variable player of type L2PcInstance
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1545: error: cannot find symbol
    [javac] 		ThreadPoolManager.getInstance().scheduleGeneral(new CaptchaTimer(player), 180000);//180sec
    [javac] 		                                                    ^
    [javac]   symbol:   class CaptchaTimer
    [javac]   location: class L2Npc
    [javac] E:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\L2Npc.java:1546: error: cannot find symbol
    [javac] 		player.setCodeRight(false);
    [javac] 		      ^
    [javac]   symbol:   method setCodeRight(boolean)
    [javac]   location: variable player of type L2PcInstance
    [javac] 9 errors

BUILD FAILED
E:\SOURCE\trunk\Core\build.xml:59: Compile failed; see the compiler error output for details.

Total time: 38 seconds

 

This is my file L2Npc.java

http://speedy.sh/4kGph/L2Npc.java

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Answer this question...

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