First: use an IDE.
And what you need to do is make the class PvPHandler at server.model.players.pvp and paste the code in it.
|
Hello ! I'm working with a project called "Brutalx" I need help what he means with this : I don't understand what i should do :L
Create a new package server.models.players.pvp; and in it add:
Code:
package server.model.players.pvp;
import server.model.players.Client;
public class PvPHandler {
private Client c;
public PvPHandler(Client c) {
this.c = c;
}
/*
* Variables
*/
public int lowLevel;
public int highLevel;
/*
* Handles Showing of Correct PvP Levels
*/
public void pvpLevels() {
if (c.combatLevel < 15) {
int lowLevel = 3;
int highLevel = c.combatLevel + 12;
if(c.inPvP()) {
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21302);
} else if(c.inSafeZone() && c.safeTimer <= 0) {
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21202);
} else if(c.inSafeZone() && c.safeTimer > 0){
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21402);
}
}
if (c.combatLevel > 15 && c.combatLevel < 114) {
int lowLevel = c.combatLevel - 12;
int highLevel = c.combatLevel + 12;
if(c.inPvP()) {
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21302);
} else if(c.inSafeZone() && c.safeTimer <= 0) {
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21202);
} else if(c.inSafeZone() && c.safeTimer > 0){
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21402);
}
}
if (c.combatLevel > 114) {
int lowLevel = c.combatLevel - 12;
int highLevel = 126;
if(c.inPvP()) {
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21302);
} else if(c.inSafeZone() && c.safeTimer <= 0) {
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21202);
} else if(c.inSafeZone() && c.safeTimer > 0){
c.getPA().sendFrame126(lowLevel + " - " + highLevel, 21402);
}
}
}
public static int[][] pvpPointsNeeded = {
{11694, 30}, {11696, 15}, {11698, 15}, {11700, 15},
{13362, 50}, {13358, 50}, {13360, 50}, {13355, 50},
{13354, 50}, {13352, 50}, {13350, 50}, {13348, 50},
{13346, 50}, {14484, 30}, {18335, 15}, {18349, 60},
{18351, 60}, {18353, 60}, {18355, 60}, {18357, 60},
{19669, 15}, {15486, 30}, {13858, 30}, {13861, 30},
{13864, 30}, {13867, 30}, {13870, 30}, {13873, 30},
{13876, 30}, {13884, 30}, {13887, 30}, {13890, 30},
{13893, 30}, {13896, 30}, {13899, 30}, {13902, 30}
};
public static int[][] pvpKillsNeeded = {
{11718, 15}, {11720, 15}, {11722, 15},{11724, 15}, {11726, 15}
};
}
First: use an IDE.
And what you need to do is make the class PvPHandler at server.model.players.pvp and paste the code in it.
Second: Use code tags
It's easier on the eyes
"[code] [/code" Put a bracket in to end it
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |