YANBUFFER HELP

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
inetwiz
Posts: 10
Joined: Thu Jun 23, 2011 10:19 pm

YANBUFFER HELP

Post by inetwiz »

L2J Revision Number:6152 (08/08/2013 17:44)
L2JDP Revision Number: 9903 (08/08/2013 17:21)

I m trying to intall YanBuffer

But I am getting the error bellow:
"

----------
1. ERROR in \YANModPack\YANBuffer\YANBuffer.java (at line 100)
return YANBufferData.GET_INSTANCE().getBufferNpc(npc.getNpcId());
^^^^^^^^
The method getNpcId() is undefined for the type L2Npc
----------
----------
2. ERROR in C:\L2JSRV\game\data\scripts\YANModPack\YANBuffer\YANBufferData.java (at line 440)
_bufferNpcs.put(npc.getNpcId(), new BufferNpc(npc, curElem));
^^^^^^^^
The method getNpcId() is undefined for the type L2NpcTemplate
----------
----------
3. ERROR in C:\L2JSRV\game\data\scripts\YANModPack\YANBuffer\NpcAI.java (at line 49)
String specificNpcHtml = npc.getNpcId() + ".html";
^^^^^^^^
The method getNpcId() is undefined for the type L2Npc
----------
3 problems (3 errors)The method getNpcId() is undefined for the type com.l2jserver.gameserver.model.actor.L2Npc
The method getNpcId() is undefined for the type com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate
The method getNpcId() is undefined for the type com.l2jserver.gameserver.model.actor.L2Npc
Failed executing script: C:\L2JSRV\game\data\scripts\YANModPack\YANBuffer\YANBuffer.java. See YANBuffer.java.error.log for details.

"

I create a Custom NPC using "Duplicate" line on mysql. I used data from NPC Shiela , its come in defaul Custom_npc table. . .

HOw to fix it.. any help ?
User avatar
netvirus
Advanced User
Advanced User
Posts: 408
Joined: Sun Aug 02, 2009 3:43 pm
Location: Russia
Contact:

Re: YANBUFFER HELP

Post by netvirus »

Try to change not correct method getNpcId() to getId().

An example: npc.getId();
FidoNet - iddqd
inetwiz
Posts: 10
Joined: Thu Jun 23, 2011 10:19 pm

Re: YANBUFFER HELP

Post by inetwiz »

netvirus wrote:Try to change not correct method getNpcId() to getId().

An example: npc.getId();

Work fine... Thakyou
Post Reply