Skip to content

Help H5

Featured Replies

tin perases kai sou vgazei kapoio error ? 

It's NpcData, not NpcTable.

 

 

NpcData.getInstance().getTemplate(npcId)
  • Author

exei 8ema meta import  gt einai auta 

 

package YANModPack.YANBuffer;

 
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
 
import YANModPack.YANBuffer.YANBufferData.Buff;
import YANModPack.YANBuffer.YANBufferData.BuffCategory;
import YANModPack.YANBuffer.YANBufferData.Buffer;
import YANModPack.YANBuffer.YANBufferData.VoicedBuffer;
import YANModPack.util.ItemRequirement;
import YANModPack.util.htmltmpls.HTMLTemplateParser;
import YANModPack.util.htmltmpls.HTMLTemplatePlaceholder;
import YANModPack.util.htmltmpls.funcs.ChildsCountFunc;
import YANModPack.util.htmltmpls.funcs.ExistsFunc;
import YANModPack.util.htmltmpls.funcs.ForeachFunc;
import YANModPack.util.htmltmpls.funcs.IfChildsFunc;
import YANModPack.util.htmltmpls.funcs.IfFunc;
import YANModPack.util.htmltmpls.funcs.IncludeFunc;
 
import com.l2jserver.gameserver.handler.VoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.L2Playable;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.gameserver.network.serverpackets.ShowBoard;

 

 

kai den uparxoun mesa sto eclipse mimpos exetai kamia buffer h prepi na katso na ta peraso?

  • Author

μου βγαζει σε αυτα προβλημα τα χρωματιζω κοκκινα εκει που μου βγαζι την γραμμη

 

YanBufferData.java 

 

import com.l2jserver.gameserver.datatables.NpcTable;
import com.l2jserver.gameserver.datatables.SkillTable;
import com.l2jserver.gameserver.model.skills.L2Skill;
 
 
protected final L2Skill skill;
 
 
protected Buff(String ident, L2Skill skill, Element elem)
{
 
this.skill = skill;
 
L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLevel);
 
L2NpcTemplate npc = NpcTable.getInstance().getTemplate(npcId);
 
_bufferNpcs.put(npc.getNpcId(), new BufferNpc(npc, curElem));
 
 
package YANModPack.YANBuffer; File NpcAI
 
String specificNpcHtml = npc.getNpcId() + ".html";
 
YanBuffer.java
 
return YANBufferData.GET_INSTANCE().getBufferNpc(npc.getNpcId());
 
activeChar.clearBypass();
 
activeChar.addBypass2(html.substring(start, finish2).trim());
}
else
{
activeChar.addBypass(html.substring(start, finish).trim());
 
Long amount = items.get(item.getValue().item.getItemId());
 
items.put(item.getValue().item.getItemId(), amount + item.getValue().amount);
 
buff.skill.getEffects(playable, playable);
 
 
 
 
 
 

 

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.