- Timestamp:
- Jan 16, 2012 7:56:19 AM (4 months ago)
- Location:
- trunk/L2J_DataPack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
dist/game/data/scripts/ai/group_template/DenOfEvil.java (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/L2J_DataPack
- Property svn:mergeinfo changed
/branches/unstable/L2J_DataPack_BETA merged: 8407-8426,8428-8480,8482-8491,8493-8588,8590-8629
- Property svn:mergeinfo changed
-
trunk/L2J_DataPack/dist/game/data/scripts/ai/group_template/DenOfEvil.java
r8406 r8630 19 19 import com.l2jserver.gameserver.instancemanager.ZoneManager; 20 20 import com.l2jserver.gameserver.model.L2Skill; 21 import com.l2jserver.gameserver.model.Location; 21 22 import com.l2jserver.gameserver.model.actor.L2Character; 22 23 import com.l2jserver.gameserver.model.actor.L2Npc; … … 41 42 private static final int _skill_id = 6150; // others +2 42 43 43 private static final int[][] _eye_spawn =44 { 45 { 71544, -129400, -3360, 16472 },46 { 70954, -128854, -3360, 16 },47 { 72145, -128847, -3368, 32832 },48 { 76147, -128372, -3144, 16152 },49 { 71573, -128309, -3360, 49152 },50 { 75211, -127441, -3152, 0 },51 { 77005, -127406, -3144, 32784 },52 { 75965, -126486, -3144, 49120 },53 { 70972, -126429, -3016, 19208 },54 { 69916, -125838, -3024, 2840 },55 { 71658, -125459, -3016, 35136 },56 { 70605, -124646, -3040, 52104 },57 { 67283, -123237, -2912, 12376 },58 { 68383, -122754, -2912, 27904 },59 { 74137, -122733, -3024, 13272 },60 { 66736, -122007, -2896, 60576 },61 { 73289, -121769, -3024, 1024 },62 { 67894, -121491, -2912, 43872 },63 { 75530, -121477, -3008, 34424 },64 { 74117, -120459, -3024, 52344 },65 { 69608, -119855, -2534, 17251 },66 { 71014, -119027, -2520, 31904 },67 { 68944, -118964, -2527, 59874 },68 { 62261, -118263, -3072, 12888 },69 { 70300, -117942, -2528, 46208 },70 { 74312, -117583, -2272, 15280 },71 { 63276, -117409, -3064, 24760 },72 { 68104, -117192, -2168, 15888 },73 { 73758, -116945, -2216, 0 },74 { 74944, -116858, -2220, 30892 },75 { 61715, -116623, -3064, 59888 },76 { 69140, -116464, -2168, 28952 },77 { 67311, -116374, -2152, 1280 },78 { 62459, -116370, -3064, 48624 },79 { 74475, -116260, -2216, 47456 },80 { 68333, -115015, -2168, 45136 },81 { 68280, -108129, -1160, 17992 },82 { 62983, -107259, -2384, 12552 },83 { 67062, -107125, -1144, 64008 },84 { 68893, -106954, -1160, 36704 },85 { 63848, -106771, -2384, 32784 },86 { 62372, -106514, -2384, 0 },87 { 67838, -106143, -1160, 51232 },88 { 62905, -106109, -2384, 51288 }44 private static final Location[] _eye_spawn = 45 { 46 new Location(71544, -129400, -3360, 16472), 47 new Location(70954, -128854, -3360, 16), 48 new Location(72145, -128847, -3368, 32832), 49 new Location(76147, -128372, -3144, 16152), 50 new Location(71573, -128309, -3360, 49152), 51 new Location(75211, -127441, -3152, 0), 52 new Location(77005, -127406, -3144, 32784), 53 new Location(75965, -126486, -3144, 49120), 54 new Location(70972, -126429, -3016, 19208), 55 new Location(69916, -125838, -3024, 2840), 56 new Location(71658, -125459, -3016, 35136), 57 new Location(70605, -124646, -3040, 52104), 58 new Location(67283, -123237, -2912, 12376), 59 new Location(68383, -122754, -2912, 27904), 60 new Location(74137, -122733, -3024, 13272), 61 new Location(66736, -122007, -2896, 60576), 62 new Location(73289, -121769, -3024, 1024), 63 new Location(67894, -121491, -2912, 43872), 64 new Location(75530, -121477, -3008, 34424), 65 new Location(74117, -120459, -3024, 52344), 66 new Location(69608, -119855, -2534, 17251), 67 new Location(71014, -119027, -2520, 31904), 68 new Location(68944, -118964, -2527, 59874), 69 new Location(62261, -118263, -3072, 12888), 70 new Location(70300, -117942, -2528, 46208), 71 new Location(74312, -117583, -2272, 15280), 72 new Location(63276, -117409, -3064, 24760), 73 new Location(68104, -117192, -2168, 15888), 74 new Location(73758, -116945, -2216, 0), 75 new Location(74944, -116858, -2220, 30892), 76 new Location(61715, -116623, -3064, 59888), 77 new Location(69140, -116464, -2168, 28952), 78 new Location(67311, -116374, -2152, 1280), 79 new Location(62459, -116370, -3064, 48624), 80 new Location(74475, -116260, -2216, 47456), 81 new Location(68333, -115015, -2168, 45136), 82 new Location(68280, -108129, -1160, 17992), 83 new Location(62983, -107259, -2384, 12552), 84 new Location(67062, -107125, -1144, 64008), 85 new Location(68893, -106954, -1160, 36704), 86 new Location(63848, -106771, -2384, 32784), 87 new Location(62372, -106514, -2384, 0), 88 new Location(67838, -106143, -1160, 51232), 89 new Location(62905, -106109, -2384, 51288) 89 90 }; 90 91 … … 142 143 if (Util.contains(_eye_ids, npc.getNpcId())) 143 144 { 144 ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.get X(), npc.getY(), npc.getZ(), npc.getHeading()), 15000);145 ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.getLocation()), 15000); 145 146 L2EffectZone zone = ZoneManager.getInstance().getZone(npc, L2EffectZone.class); 146 147 if (zone == null) … … 158 159 private void spawnEyes() 159 160 { 160 for( int[] _spawn: _eye_spawn)161 addSpawn(_eye_ids[Rnd.get( 0, _eye_ids.length-1)], _spawn[0], _spawn[1], _spawn[2], _spawn[3], false, 0);161 for(Location loc : _eye_spawn) 162 addSpawn(_eye_ids[Rnd.get(_eye_ids.length)], loc, false, 0); 162 163 } 163 164 164 165 private class RespawnNewEye implements Runnable 165 166 { 166 private final int _x, _y, _z, _h; 167 168 public RespawnNewEye(int x, int y, int z, int h) { 169 _x = x; 170 _y = y; 171 _z = z; 172 _h = h; 167 private final Location _loc; 168 169 public RespawnNewEye(Location loc) 170 { 171 _loc = loc; 173 172 } 174 173 … … 176 175 public void run() 177 176 { 178 addSpawn(_eye_ids[Rnd.get( 0, _eye_ids.length-1)], _x, _y, _z, _h, false, 0);177 addSpawn(_eye_ids[Rnd.get(_eye_ids.length)], _loc, false, 0); 179 178 } 180 179 } … … 189 188 } 190 189 191 /* (non-Javadoc)192 * @see java.lang.Runnable#run()193 */194 190 @Override 195 191 public void run() … … 226 222 L2Npc npc = (L2Npc) character; 227 223 if (Util.contains(_eye_ids, npc.getNpcId())) 228 ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.get X(), npc.getY(), npc.getZ(), npc.getHeading()), 15000);224 ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.getLocation()), 15000); 229 225 } 230 226 }
Note: See TracChangeset
for help on using the changeset viewer.
