Jump to content
  • 0

Question

Posted (edited)

Hello, I recently added this code, which I adapted for aCis 382.

I compile and run the gameserver without any error. I added the configs and I also tried without configs but by directly adding the rep value or item Id in the code. But once I press the item in game nothing occurs in both situations. 

With some searching I did on the forum I found that it's an issue from registering the handler and adding it to the items XML. I think I've done those though.

I've added these in ItemHandler :

import net.sf.l2j.gameserver.handler.itemhandlers.Calculator;
+import net.sf.l2j.gameserver.handler.itemhandlers.ClanRepsItem;

 

registerHandler(new Calculator());
+registerHandler(new ClanRepsItem());

 

 Added this in the XML of Festival Adena :

<set name="is_stackable" val="true" />
+<set name="handler" val="ClanRepsItem" />

 

Does anyone know what could cause this? Thanks in advance.

 

Edit : Added the code I use. https://pastebin.com/xTeZt9Jf

Edited by Hann1bal

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Delete lines 78 - 86 and put @Override at the useItem that you have the code. Like this:

 

Quote

 @Override
	public void useItem(Playable playable, ItemInstance item, boolean forceUse)

 

 

Edited by @IcathiaLord
  • 0
Posted
2 hours ago, @IcathiaLord said:

Delete lines 78 - 86 and put @Override at the useItem that you have the code. Like this:

 

 

When I do that I get as possible fix " Create useItem()'in super type IItemHandler' " on that line of the code. 

If I make that fix I get errors on all other classes of ItemHandlers.

Guest
This topic is now closed to further replies.


  • Posts

    • The community keeps growing every day, more than 350 master accounts created with new players joining to experience Lineage II Classic 2.5 Remastered. Gameplay moved to Stage 2: 1.3 version Rising Tide, where you can do quest for Moon Armor set, farm faster in Alligator Island, Enchanted Valley as newcomer, Outlaw Forest also added where you can do the Daily Quest after Lv.51.    Think of it as a blend of C1, C2, and C3, but more challenging, with improved gameplay, better balance, and enhanced graphics thanks to the Classic client introduced around 2014–2015.   On top of that, all the new features we've added make the experience even more enjoyable while preserving the true Classic feeling.   If you're an Interlude player, it may feel unfamiliar at first but not completely different. It's a more hardcore experience that focuses primarily on developing your main character, rather than rushing to subclasses, Noblesse, and similar endgame goals.
    • I would like to share with you my pack from old L2Pride, based on aCis with latest updates and everything tha needs to run correct and smoothly on every needs. No error consoles ready to use live, ready economy, reworked mobs, skills balance, class balanced, ready events such as TVT/DM/CTF. The pack comes also with essence interface full workable. (Data Pack + Source Included)  The price is negotiable, so let me know in pm. Dont waste my time if you dont really want and only ask for price. https://prnt.sc/LRCRQyUxaxB5 https://prnt.sc/6I95YMy-WR6q https://prnt.sc/jjTm69gUGN7e https://prnt.sc/C7GLQKJXqDdw https://prnt.sc/Pnp7f_USCLar https://prnt.sc/8snRTbznlYEW
    • Longest 24 hours in my life. Also you find nothing on google about his "JewStor Service", neither on telegram besides on maxcheaters. Typical case of scamming.
    • You nid to use the alpha channel in Photoshop
    • "I am creating some buttons for the community, but I want to make their background transparent. Since my general background is a non-flat texture like clouds, if I don't have a transparent background, it doesn't look good. Could you please help me and tell me how I should go about generating the texture in UE2? Currently, I have the TGA texture with a transparent background in Photoshop."
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..