lol
no one has them to work ok here is wht i got from the npc.class fiel
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov Date: 04/07/2004 08:16:48
// Home Page :
To view the content, you need to sign in or register
- Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: NpcTable.java
package net.sf.l2j.gameserver;
import java.io.*;
import java.util.HashMap;
import java.util.StringTokenizer;
import net.sf.l2j.gameserver.templates.L2Npc;
public class NpcTable
{
public static NpcTable getInstance()
{
if(_instance == null)
_instance = new NpcTable();
return _instance;
**
private NpcTable()
{
_npcs = new HashMap();
LineNumberReader lnr = null;
try
{
File skillData = new File("data/npc.csv");
lnr = new LineNumberReader(new BufferedReader(new FileReader(skillData)));
for(String line = null; (line = lnr.readLine()) != null
if(line.trim().length() != 0 && !line.startsWith("#"))
{
L2Npc npc = parseList(line);
_npcs.put(new Integer(npc.getNpcId()), npc);
**
System.out.println("created " + _npcs.size() + " NPC templates");
**
catch(FileNotFoundException e)
{
System.out.println("npc.csv is missing in data folder");
**
catch(Exception e)
{
System.out.println("error while creating npc table " + e);
**
finally
{
try
{
lnr.close();
**
catch(Exception e1) { **
**
**
private L2Npc parseList(String line)
{
StringTokenizer st = new StringTokenizer(line, ";");
L2Npc npc = new L2Npc();
int id = Integer.parseInt(st.nextToken());
if(id > 0xf4240)
id -= 0xf4240;
npc.setNpcId(id);
npc.setName(st.nextToken());
npc.setType(st.nextToken());
npc.setRadius(Double.parseDouble(st.nextToken()));
npc.setHeight(Double.parseDouble(st.nextToken()));
return npc;
**
public L2Npc getTemplate(int id)
{
return (L2Npc)_npcs.get(new Integer(id));
**
private static NpcTable _instance;
private HashMap _npcs;
**
thats all of it if you read through even if you dont understand java shoudl get it
i dont even know java and i understand most of it
like this roe
if(id > 0xf4240)
id -= 0xf4240;
npc.setNpcId(id);
that is if id more than 0xf4240 ( which is 1000000 ) and id = 0xf4240 then so on
see, all npc r linked just one mistake somewere they make the error for the rest
hope that helps