Browse Source

update for skills, thx kerb

janiii 16 years ago
parent
commit
87911dfc18
1 changed files with 16 additions and 1 deletions
  1. 16 1
      L2_GameServer/java/net/sf/l2j/gameserver/model/L2Skill.java

+ 16 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/L2Skill.java

@@ -236,7 +236,7 @@ public abstract class L2Skill implements IChanceSkillTrigger
     private final int _armorsAllowed;
 
     private final int _minPledgeClass;
-
+    private final int[] _teleportCoords;
     private final boolean _isOffensive;
     private final int _requiredCharges;
     private final int _maxCharges;
@@ -322,6 +322,16 @@ public abstract class L2Skill implements IChanceSkillTrigger
         _afterEffectId = set.getInteger("afterEffectId", 0);
         _afterEffectLvl = set.getInteger("afterEffectLvl", 1);
         _isCubic    = set.getBool("isCubic", false);
+        String coords = set.getString("teleCoords", null);
+        if (coords != null)
+        {
+            String[] valuesSplit = coords.split(",");
+            _teleportCoords = new int[valuesSplit.length];
+    		for (int i = 0; i < valuesSplit.length;i++)
+    			_teleportCoords[i] = Integer.valueOf(valuesSplit[i]);
+        }
+        else
+        	_teleportCoords = null;
 
          _isAdvancedFlag = set.getBool("isAdvancedFlag", false);
         _activationtime= set.getInteger("activationtime", 8);
@@ -3142,4 +3152,9 @@ public abstract class L2Skill implements IChanceSkillTrigger
 	{
 		return _useShield;
 	}
+	
+	public int[] getTeleportCoords()
+	{
+		return _teleportCoords;
+	}
 }