Ignore:
Timestamp:
Jan 16, 2012 7:56:19 AM (4 months ago)
Author:
MELERIX
Message:

STABLE: Sync with BETA [8629]

Location:
trunk/L2J_DataPack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/L2J_DataPack

  • trunk/L2J_DataPack/dist/game/data/scripts/ai/group_template/DenOfEvil.java

    r8406 r8630  
    1919import com.l2jserver.gameserver.instancemanager.ZoneManager; 
    2020import com.l2jserver.gameserver.model.L2Skill; 
     21import com.l2jserver.gameserver.model.Location; 
    2122import com.l2jserver.gameserver.model.actor.L2Character; 
    2223import com.l2jserver.gameserver.model.actor.L2Npc; 
     
    4142        private static final int _skill_id = 6150; // others +2 
    4243         
    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) 
    8990        }; 
    9091         
     
    142143                if (Util.contains(_eye_ids, npc.getNpcId())) 
    143144                { 
    144                         ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.getX(), npc.getY(), npc.getZ(), npc.getHeading()), 15000); 
     145                        ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.getLocation()), 15000); 
    145146                        L2EffectZone zone = ZoneManager.getInstance().getZone(npc, L2EffectZone.class); 
    146147                        if (zone == null) 
     
    158159        private void spawnEyes() 
    159160        { 
    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); 
    162163        } 
    163164         
    164165        private class RespawnNewEye implements Runnable 
    165166        { 
    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; 
    173172                } 
    174173                 
     
    176175                public void run() 
    177176                { 
    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); 
    179178                } 
    180179        } 
     
    189188                } 
    190189                 
    191                 /* (non-Javadoc) 
    192                  * @see java.lang.Runnable#run() 
    193                  */ 
    194190                @Override 
    195191                public void run() 
     
    226222                                                        L2Npc npc = (L2Npc) character; 
    227223                                                        if (Util.contains(_eye_ids, npc.getNpcId())) 
    228                                                                 ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.getX(), npc.getY(), npc.getZ(), npc.getHeading()), 15000); 
     224                                                                ThreadPoolManager.getInstance().scheduleAi(new RespawnNewEye(npc.getLocation()), 15000); 
    229225                                                } 
    230226                                        } 
Note: See TracChangeset for help on using the changeset viewer.