Jump to content
  • 0

Problem with code adaption Captch on latest l2jaCis


Question

Posted

Hello everyone!!

I find this code "captcha" u see above. I checkout latest version of l2jaCis and i apply the patch!

Everything was ok until i find that some lines are wrong for this version so i try (with my low knowledge) to adapt it correctly but i still cant fix the error in BotPreventionManager.Java and in Captcha.java. i Post you the "error" so if someone knows what i must do exactly or what i must change in order to work properly i ll be very very thankfull!

public void updatecounter(L2Character killer2, L2Character l2Character)
	{
		if ((killer2 instanceof Player) && (l2Character instanceof Monster))
		{
			Player killer = (Player) killer2;
			
			if (_validation.get(killer.getObjectId()) != null)

Player and monster cannot be resolved and is with red line under! 

The code has import for instance.Player but thats doesnt exist on that rev of aCis so i change it to L2PcInstance. and has import for Character that i change to L2Character cause that also doesnt exist on this rev!

anyway maybe i was do it wrong and maybe need something else in order to adapt on the latest rev correctly! (Im new to java coding so be easy on me.) 

 

2 answers to this question

Recommended Posts

  • 0
Posted
25 minutes ago, Lostre95 said:

L2Character to Creature

L2PCInstasnce to Player

Sorry but u are not so specific! where i must change the L2Character i have problem in Player no Character and btw if i change L2 Character to Creature messed up worst + L2PcInstance i think its already as Player! 

i told you new to java! 

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