- 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/Monastery.java (modified) (9 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/Monastery.java
r8406 r8630 38 38 public class Monastery extends L2AttackableAIScript 39 39 { 40 static final int[] mobs1 = {22124, 22125, 22126, 22127, 22129}; 41 static final int[] mobs2 = {22134, 22135}; 40 private static final int[] mobs1 = 41 { 42 22124, 22125, 22126, 22127, 22129 43 }; 44 private static final int[] mobs2 = 45 { 46 22134, 22135 47 }; 42 48 43 static final NpcStringId[] messages = { 49 private static final NpcStringId[] messages = 50 { 44 51 NpcStringId.YOU_CANNOT_CARRY_A_WEAPON_WITHOUT_AUTHORIZATION, 45 52 NpcStringId.S1_WHY_WOULD_YOU_CHOOSE_THE_PATH_OF_DARKNESS, 46 53 NpcStringId.S1_HOW_DARE_YOU_DEFY_THE_WILL_OF_EINHASAD 47 54 }; 55 48 56 public Monastery(int questId, String name, String descr) 49 57 { … … 56 64 public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean isPet) 57 65 { 58 if (Util.contains(mobs1, npc.getNpcId()) && !npc.isInCombat() && npc.getTarget() == null)66 if (Util.contains(mobs1, npc.getNpcId()) && !npc.isInCombat() && npc.getTarget() == null) 59 67 { 60 68 if (player.getActiveWeaponInstance() != null) … … 67 75 case 22126: 68 76 { 69 L2Skill skill = SkillTable.getInstance().getInfo(4589, 8);77 L2Skill skill = SkillTable.getInstance().getInfo(4589, 8); 70 78 npc.doCast(skill); 71 79 break; … … 80 88 } 81 89 } 82 else if (((L2Attackable) npc).getMostHated() == null)90 else if (((L2Attackable) npc).getMostHated() == null) 83 91 return null; 84 92 } … … 89 97 public String onSkillSee(L2Npc npc, L2PcInstance caster, L2Skill skill, L2Object[] targets, boolean isPet) 90 98 { 91 if (Util.contains(mobs2, npc.getNpcId()))99 if (Util.contains(mobs2, npc.getNpcId())) 92 100 { 93 101 if (skill.getSkillType() == L2SkillType.AGGDAMAGE && targets.length != 0) … … 97 105 if (obj.equals(npc)) 98 106 { 99 NpcSay packet = new NpcSay(npc.getObjectId(), 0, npc.getNpcId(), messages[Rnd.get(2) +1]);107 NpcSay packet = new NpcSay(npc.getObjectId(), 0, npc.getNpcId(), messages[Rnd.get(2) + 1]); 100 108 packet.addStringParameter(caster.getName()); 101 109 npc.broadcastPacket(packet); … … 113 121 public String onSpawn(L2Npc npc) 114 122 { 115 if (Util.contains(mobs1, npc.getNpcId()))123 if (Util.contains(mobs1, npc.getNpcId())) 116 124 { 117 125 FastList<L2Playable> result = new FastList<L2Playable>(); … … 141 149 case 22127: 142 150 { 143 L2Skill skill = SkillTable.getInstance().getInfo(4589, 8);151 L2Skill skill = SkillTable.getInstance().getInfo(4589, 8); 144 152 npc.doCast(skill); 145 153 break; … … 163 171 public String onSpellFinished(L2Npc npc, L2PcInstance player, L2Skill skill) 164 172 { 165 if (Util.contains(mobs1, npc.getNpcId()) && skill.getId() == 4589)173 if (Util.contains(mobs1, npc.getNpcId()) && skill.getId() == 4589) 166 174 { 167 175 npc.setIsRunning(true);
Note: See TracChangeset
for help on using the changeset viewer.
