private void addTaskToNPC(final int idx){
  final String state=points.get(idx);
  final SpeakerNPC npc=npcs.get(state);
  npc.add(ConversationStates.ATTENDING,Arrays.asList("paper","chase","paperchase"),new SystemPropertyCondition("stendhal.minetown"),ConversationStates.ATTENDING,null,new PaperChasePoint(idx));
  if (NPC_IDLE.contains(state)) {
    npc.add(ConversationStates.ANY,Arrays.asList("paper","chase","paperchase"),new SystemPropertyCondition("stendhal.minetown"),ConversationStates.ANY,null,new PaperChasePoint(idx));
  }
}

private void addTaskToNPC ( final int idx ) { final String state = points . get ( idx ) ; final SpeakerNPC npc = npcs . get ( state ) ; npc . add ( ConversationStates . ATTENDING , Arrays . asList ( "paper" , "chase" , "paperchase" ) , new SystemPropertyCondition ( "stendhal.minetown" ) , ConversationStates . ATTENDING , null , new PaperChasePoint ( idx ) ) ; if ( NPC_IDLE . contains ( state ) ) { npc . add ( ConversationStates . ANY , Arrays . asList ( "paper" , "chase" , "paperchase" ) , new SystemPropertyCondition ( "stendhal.minetown" ) , ConversationStates . ANY , null , new PaperChasePoint ( idx ) ) ; } }
adds the task to the specified npc . note that the start and end of this quest have to be coded specially .
