|
@@ -14,7 +14,7 @@
|
|
*/
|
|
*/
|
|
package com.l2jserver.gameserver.datatables;
|
|
package com.l2jserver.gameserver.datatables;
|
|
|
|
|
|
-import gnu.trove.TIntObjectHashMap;
|
|
|
|
|
|
+import gnu.trove.map.hash.TIntObjectHashMap;
|
|
|
|
|
|
import java.sql.Connection;
|
|
import java.sql.Connection;
|
|
import java.sql.PreparedStatement;
|
|
import java.sql.PreparedStatement;
|
|
@@ -738,7 +738,7 @@ public class NpcTable
|
|
// restore additional data from saved copy
|
|
// restore additional data from saved copy
|
|
L2NpcTemplate created = getTemplate(id);
|
|
L2NpcTemplate created = getTemplate(id);
|
|
|
|
|
|
- for (L2Skill skill : skills.getValues(new L2Skill[skills.size()]))
|
|
|
|
|
|
+ for (L2Skill skill : skills.values(new L2Skill[skills.size()]))
|
|
created.addSkill(skill);
|
|
created.addSkill(skill);
|
|
|
|
|
|
if (classIds != null)
|
|
if (classIds != null)
|
|
@@ -847,7 +847,7 @@ public class NpcTable
|
|
|
|
|
|
public L2NpcTemplate getTemplateByName(String name)
|
|
public L2NpcTemplate getTemplateByName(String name)
|
|
{
|
|
{
|
|
- for (Object npcTemplate : _npcs.getValues())
|
|
|
|
|
|
+ for (Object npcTemplate : _npcs.values())
|
|
if (((L2NpcTemplate)npcTemplate).name.equalsIgnoreCase(name))
|
|
if (((L2NpcTemplate)npcTemplate).name.equalsIgnoreCase(name))
|
|
return (L2NpcTemplate) npcTemplate;
|
|
return (L2NpcTemplate) npcTemplate;
|
|
|
|
|
|
@@ -858,7 +858,7 @@ public class NpcTable
|
|
{
|
|
{
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
|
|
|
|
- for (Object t : _npcs.getValues())
|
|
|
|
|
|
+ for (Object t : _npcs.values())
|
|
if (((L2NpcTemplate)t).level == lvl)
|
|
if (((L2NpcTemplate)t).level == lvl)
|
|
list.add((L2NpcTemplate) t);
|
|
list.add((L2NpcTemplate) t);
|
|
|
|
|
|
@@ -869,7 +869,7 @@ public class NpcTable
|
|
{
|
|
{
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
|
|
|
|
- for (Object t : _npcs.getValues())
|
|
|
|
|
|
+ for (Object t : _npcs.values())
|
|
if (((L2NpcTemplate)t).level == lvl && "L2Monster".equals(((L2NpcTemplate)t).type))
|
|
if (((L2NpcTemplate)t).level == lvl && "L2Monster".equals(((L2NpcTemplate)t).type))
|
|
list.add((L2NpcTemplate) t);
|
|
list.add((L2NpcTemplate) t);
|
|
|
|
|
|
@@ -880,7 +880,7 @@ public class NpcTable
|
|
{
|
|
{
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
|
|
|
|
- for (Object t : _npcs.getValues())
|
|
|
|
|
|
+ for (Object t : _npcs.values())
|
|
if (((L2NpcTemplate)t).name.startsWith(letter) && "L2Npc".equals(((L2NpcTemplate)t).type))
|
|
if (((L2NpcTemplate)t).name.startsWith(letter) && "L2Npc".equals(((L2NpcTemplate)t).type))
|
|
list.add((L2NpcTemplate) t);
|
|
list.add((L2NpcTemplate) t);
|
|
|
|
|
|
@@ -895,7 +895,7 @@ public class NpcTable
|
|
{
|
|
{
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
List<L2NpcTemplate> list = new FastList<L2NpcTemplate>();
|
|
|
|
|
|
- for (Object t : _npcs.getValues())
|
|
|
|
|
|
+ for (Object t : _npcs.values())
|
|
if (classType.equals(((L2NpcTemplate)t).type))
|
|
if (classType.equals(((L2NpcTemplate)t).type))
|
|
list.add((L2NpcTemplate) t);
|
|
list.add((L2NpcTemplate) t);
|
|
|
|
|