Any idea no? its probably a noob question.... but i cant find the fix for it
the code that is getting the error
public static boolean startParticipation()
{
final int npcc = Config.TVT_EVENT_PARTICIPATION_TIME * 1000 * 60;
try
{
final NpcTemplate template = NpcData.getInstance().getTemplate(Config.TVT_EVENT_PARTICIPATION_NPC_ID);
System.out.println("Template: " + template);
final L2Spawn spawn = new L2Spawn(template);
spawn.setLoc(Config.TVT_EVENT_PARTICIPATION_NPC_COORDINATES[0], Config.TVT_EVENT_PARTICIPATION_NPC_COORDINATES[1], Config.TVT_EVENT_PARTICIPATION_NPC_COORDINATES[2], 0);
System.out.println("Spawn: " + spawn);
SpawnTable.getInstance().addNewSpawn(spawn, false);
final Npc npc = spawn.doSpawn(true);
System.out.println("npc: " + npc);
npc.scheduleDespawn(npcc);
npc.broadcastPacket(new MagicSkillUse(npc, npc, 1034, 1, 1, 1));
}
catch (Exception e)
{
System.out.println("TvTEventEngine[TvTEvent.startParticipation()]: exception: " + e.getMessage());
return false;
}
setState(EventState.PARTICIPATING);
return true;
}