Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. package com.runescape.model.players.pvp;
  2.  
  3. import com.runescape.model.player.Client;
  4.  
  5. public class PvPHandler {
  6.  
  7. private Client c;
  8.  
  9. public PvPHandler(Client c) {
  10. this.c = c;
  11. }
  12.  
  13. /*
  14. * Variables
  15. */
  16. public int lowLevel;
  17. public int highLevel;
  18.  
  19. /*
  20. * Handles Showing of Correct PvP Levels
  21. */
  22. public void pvpLevels() {
  23. if (c.combatLevel < 15) {
  24. int lowLevel = 3;
  25. int highLevel = c.combatLevel + 12;
  26. if(c.inPvP()) {
  27. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21302);
  28. } else if(c.inSafeZone() && c.safeTimer <= 0) {
  29. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21202);
  30. } else if(c.inSafeZone() && c.safeTimer > 0){
  31. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21402);
  32. }
  33. }
  34. if (c.combatLevel > 15 && c.combatLevel < 114) {
  35. int lowLevel = c.combatLevel - 12;
  36. int highLevel = c.combatLevel + 12;
  37. if(c.inPvP()) {
  38. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21302);
  39. } else if(c.inSafeZone() && c.safeTimer <= 0) {
  40. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21202);
  41. } else if(c.inSafeZone() && c.safeTimer > 0){
  42. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21402);
  43. }
  44. }
  45. if (c.combatLevel > 114) {
  46. int lowLevel = c.combatLevel - 12;
  47. int highLevel = 126;
  48. if(c.inPvP()) {
  49. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21302);
  50. } else if(c.inSafeZone() && c.safeTimer <= 0) {
  51. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21202);
  52. } else if(c.inSafeZone() && c.safeTimer > 0){
  53. c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21402);
  54. }
  55. }
  56. }
  57.  
  58. public static int[][] pvpPointsNeeded = {
  59. {11694, 30}, {11696, 15}, {11698, 15}, {11700, 15},
  60. {13362, 50}, {13358, 50}, {13360, 50}, {13355, 50},
  61. {13354, 50}, {13352, 50}, {13350, 50}, {13348, 50},
  62. {13346, 50}, {14484, 30}, {18335, 15}, {18349, 60},
  63. {18351, 60}, {18353, 60}, {18355, 60}, {18357, 60},
  64. {19669, 15}, {15486, 30}, {13858, 30}, {13861, 30},
  65. {13864, 30}, {13867, 30}, {13870, 30}, {13873, 30},
  66. {13876, 30}, {13884, 30}, {13887, 30}, {13890, 30},
  67. {13893, 30}, {13896, 30}, {13899, 30}, {13902, 30}
  68. };
  69.  
  70. public static int[][] pvpKillsNeeded = {
  71. {11718, 15}, {11720, 15}, {11722, 15},{11724, 15}, {11726, 15}
  72. };
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement