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 ?
YANBUFFER HELP
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- netvirus
- Advanced User
- Posts: 408
- Joined: Sun Aug 02, 2009 3:43 pm
- Location: Russia
- Contact:
Re: YANBUFFER HELP
Try to change not correct method getNpcId() to getId().
An example: npc.getId();
An example: npc.getId();
FidoNet - iddqd
-
- Posts: 10
- Joined: Thu Jun 23, 2011 10:19 pm
Re: YANBUFFER HELP
netvirus wrote:Try to change not correct method getNpcId() to getId().
An example: npc.getId();
Work fine... Thakyou