Page 1 of 1

YANBUFFER HELP

Posted: Mon Sep 09, 2013 1:23 am
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 ?

Re: YANBUFFER HELP

Posted: Mon Sep 09, 2013 2:06 am
by netvirus
Try to change not correct method getNpcId() to getId().

An example: npc.getId();

Re: YANBUFFER HELP

Posted: Wed Sep 11, 2013 11:37 am
by inetwiz
netvirus wrote:Try to change not correct method getNpcId() to getId().

An example: npc.getId();

Work fine... Thakyou