Advertisement
Fabbian

Untitled

Nov 6th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. L2Attacker adicionar acima desta linha -> // Get the AggroInfo of the attacker L2Character from the _aggroList of
  2.  
  3. if (Config.LIST_FLAG_NPC.contains(getTemplate().getNpcId()))
  4. {
  5. if (attacker instanceof L2PcInstance)
  6. {
  7. ((L2PcInstance) attacker).startPvPFlag();
  8. }
  9. }
  10.  
  11. Config preciso nem falar onde por né?
  12.  
  13.  
  14. public static List<Integer> LIST_FLAG_NPC = new ArrayList<>();
  15. public static String FLAG_NPC_SYSTEM;
  16.  
  17. FLAG_NPC_SYSTEM = p.getProperty("ListFlagNpc", "30827");
  18. LIST_FLAG_NPC = new ArrayList<>();
  19.  
  20. for (String id : FLAG_NPC_SYSTEM.split(","))
  21. {
  22. LIST_FLAG_NPC.add(Integer.parseInt(id));
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement