Need help to fix those errors

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
gtitanikos
Posts: 20
Joined: Tue Sep 23, 2014 12:11 pm

Need help to fix those errors

Post by gtitanikos »

After I start server I face 2 errors.Can someone help in here plz?I would appreciate that.

Code: Select all

Starting L2J Game Server. ----------1. ERROR in \custom\NpcBuffer\NpcBuffer.java (at line 1667)        if (st.getQuestItemsCount(skill.getItemConsumeId()) < skill.getItemConsume())                                                                    ^^^^^^^^^^^^^^The method getItemConsume() is undefined for the type Skill----------2. ERROR in \custom\NpcBuffer\NpcBuffer.java (at line 1669)        return showText(st, "Sorry", "You don't have the enough items:<br>You need: <font color=LEVEL>" + skill.getItemConsume() + " " + getItemNameHtml(st, skill.getItemConsumeId()) + "!", false, "0", "0");                                 ^^^^^^^^^^^^^^The method getItemConsume() is undefined for the type Skill----------2 problems (2 errors)The method getItemConsume() is undefined for the type com.l2jserver.gameserver.model.skills.SkillThe method getItemConsume() is undefined for the type com.l2jserver.gameserver.model.skills.Skill.....[17/10 19:31:33] Bandit StrongHold siege scheduled for: Tue Oct 21 12:00:00 EEST 2014 
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Need help to fix those errors

Post by Sdw »

open file \custom\NpcBuffer\NpcBuffer.java

search for : getItemConsume

replace with : getItemConsumeId
gtitanikos
Posts: 20
Joined: Tue Sep 23, 2014 12:11 pm

Re: Need help to fix those errors

Post by gtitanikos »

Thx a lot man.Fixed it.But now It doesnt buff me.I will look over forums,but till then any help would be much obliged.
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Need help to fix those errors

Post by u3games »

Sdw wrote:open file \custom\NpcBuffer\NpcBuffer.java

search for : getItemConsume

replace with : getItemConsumeId
this fix is wrong!

getItemConsume replace --> getItemConsumeCount
Image
gtitanikos
Posts: 20
Joined: Tue Sep 23, 2014 12:11 pm

Re: Need help to fix those errors

Post by gtitanikos »

I did what Sdw said and I dont have errors.When I do what u3games recommended I get errors.The fact is that I cant get buffs even if i dont get no errors in login screen.Im still lookin in forums to get the answer.
Post Reply