Jump to content
  • 0

Requesting Help with Compile, i have an error


Question

Posted

I added a faction script to my build, i am using l2jofficial: http://svn.assembla.com/svn/L2jOfficial/branches/L2_Gracia_Final_T2.3

Evala ena faction script, exw l2jofficial: http://svn.assembla.com/svn/L2jOfficial/branches/L2_Gracia_Final_T2.3

Kai exw ena error me ta annotations, dn 3erw ti na kanw gia na to ftia3w.

And i have an error with annotations, i don't know what to do, to fix it.

 

Compile Error:

compile:
    [javac] Compiling 1385 source files to E:\Users\L2ParadiseWorldLjOff\L2_Gracia_Final_T2.3\lin2srv\build\classes
    [javac] E:\Users\L2ParadiseWorldLjOff\L2_Gracia_Final_T2.3\lin2srv\java\net\sf\l2j\gameserver\model\actor\instance\L2nvcInstance.java:273: onAction(net.sf.l2j.gameserver.model.actor.instance.L2PcInstance) in net.sf.l2j.gameserver.model.actor.instance.L2nvcInstance cannot override onAction(net.sf.l2j.gameserver.model.actor.instance.L2PcInstance) in net.sf.l2j.gameserver.model.L2Object; overridden method is final
    [javac] public void onAction(L2PcInstance player)
    [javac] ^
    [javac] 1 error

 

Edw einai to download link me ta .java arxeia L2Object, L2PcInstance, L2nvcInstance :

http://www.filedropper.com/3javafiles

Here is the download link with the .java files L2Object, L2PcInstance, L2nvcInstance :

http://www.filedropper.com/3javafiles

 

 

 

4 answers to this question

Recommended Posts

  • 0
Posted

...

 

the onAction method from nvcinstance overriden from L2Object is final method in the nvcinstance or in the L2Object...final modifier cant be overriden thats why its final...a modifier which makes your field or method or class a fixed value which is cant be changed

  • 0
Posted

...

 

the onAction method from nvcinstance overriden from L2Object is final method in the nvcinstance or in the L2Object...final modifier cant be overriden thats why its final...a modifier which makes your field or method or class a fixed value which is cant be changed

And how can i fix it? Someone help me to solve it...
  • 0
Posted

Actually you can override it, as long as you extend L2Npc and not L2Object.

I haven't looked @ the j# files,  upload them to pastebin and I'll take a look.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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