Thread: Please Read !

Results 1 to 3 of 3
  1. #1 Please Read ! 
    Registered Member
    Join Date
    Jun 2012
    Posts
    63
    Thanks given
    5
    Thanks received
    1
    Rep Power
    20
    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}
    };
    }
    Reply With Quote  
     

  2. #2  
    Member
    Join Date
    Sep 2012
    Age
    27
    Posts
    172
    Thanks given
    22
    Thanks received
    7
    Rep Power
    0
    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.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2013
    Posts
    273
    Thanks given
    45
    Thanks received
    50
    Rep Power
    45
    Second: Use code tags

    It's easier on the eyes

    "[code] [/code" Put a bracket in to end it
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Palidino Please read
    By Zelion29 in forum RS 503+ Client & Server
    Replies: 19
    Last Post: 09-18-2008, 10:37 PM
  2. An idea - Pali please read.
    By Damien in forum RS 503+ Client & Server
    Replies: 11
    Last Post: 09-12-2008, 03:15 PM
  3. Oh my god please read
    By novalye in forum Chat
    Replies: 17
    Last Post: 06-02-2008, 11:50 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •