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.

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