Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. Index: dist/game/data/scripts/quests/Q00177_SplitDestiny/Q00177_SplitDestiny.java
  2. ===================================================================
  3. --- dist/game/data/scripts/quests/Q00177_SplitDestiny/Q00177_SplitDestiny.java (revision 3502)
  4. +++ dist/game/data/scripts/quests/Q00177_SplitDestiny/Q00177_SplitDestiny.java (working copy)
  5. @@ -31,7 +31,7 @@
  6. import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
  7.  
  8. /**
  9. - * Split of Destiny (177)
  10. + * Split Destiny (177)
  11. * @author Sdw
  12. */
  13. public final class Q00177_SplitDestiny extends Quest
  14. @@ -39,14 +39,7 @@
  15. // NPCs
  16. private static final int HADEL = 33344;
  17. private static final int ISHUMA = 32615;
  18. - private static final int[] GIANTS_HAND_MONSTERS =
  19. - {
  20. - 21549, // Corrupted Guard
  21. - 21550, // Corrupted Guard
  22. - 21547, // Corrupted Knight
  23. - 21548, // Resurrected Knight
  24. - 21587, // Vampire Warrior
  25. - };
  26. + private static final int VAMPIRICE_BERISE = 27530;
  27. private static final int[] GIANTS_FOOT_MONSTERS =
  28. {
  29. 22257, // Island Guardian
  30. @@ -70,7 +63,7 @@
  31. super(177);
  32. addStartNpc(HADEL);
  33. addTalkId(HADEL, ISHUMA);
  34. - addKillId(GIANTS_HAND_MONSTERS);
  35. + addKillId(VAMPIRICE_BERISE);
  36. addKillId(GIANTS_FOOT_MONSTERS);
  37. registerQuestItems(PETRIFIED_GIANTS_HAND.getId(), PETRIFIED_GIANTS_FOOT.getId(), PETRIFIED_GIANTS_HAND_PIECE, PETRIFIED_GIANTS_FOOT_PIECE);
  38. }
  39. @@ -322,7 +315,7 @@
  40. {
  41. case 1:
  42. {
  43. - if (CommonUtil.contains(GIANTS_HAND_MONSTERS, npc.getId()))
  44. + if (npc.getId() == VAMPIRICE_BERISE)
  45. {
  46. giveItems(killer, PETRIFIED_GIANTS_HAND_PIECE, 1);
  47. qs.setCond(2, true);
  48. @@ -331,7 +324,7 @@
  49. }
  50. case 2:
  51. {
  52. - if (CommonUtil.contains(GIANTS_HAND_MONSTERS, npc.getId()))
  53. + if (npc.getId() == VAMPIRICE_BERISE)
  54. {
  55. if (giveItemRandomly(killer, npc, PETRIFIED_GIANTS_HAND_PIECE, 1, 10, 1.0, true))
  56. {
  57. @@ -364,4 +357,4 @@
  58. }
  59. return super.onKill(npc, killer, isSummon);
  60. }
  61. -}
  62. +}
  63. \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement