Thread: comon help me 3th time i ask ans still not solved :/[giving rep++and thanks]

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 comon help me 3th time i ask ans still not solved :/[giving rep++and thanks] 
    Registered Member
    Join Date
    Nov 2012
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    When i kill another player in pvp he doesn't lose hes items
    and its not becouse he or i am a admin i tryed it with new chars.
    Reply With Quote  
     

  2. #2  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Post your applyDead method.


    You need to pay attention to what you type, look at the title...

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2012
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    its the second time u say that and the second time i ask where i can find it..?
    Reply With Quote  
     

  4. #4  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Client.java, playerassistant.java, or player.java


    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2012
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    i found it:

    public static void applyDead(final Client c) {
    c.respawnTimer = 15;
    c.isDead = false;
    Client o = (Client) PlayerHandler.players[c.killerId];
    if (c.duelStatus != 6) {
    c.killerId = c.getCombat().getKillerId(c.playerId);
    //c.killerId = c.getPA().findKiller();
    }
    if (o != null) {
    if (!(c.npcIndex > 0) && c.inPits == false) {
    }
    if (c.killerId != c.playerId) {
    o.sendMessage("You have defeated "
    + Misc.optimizeText(c.playerName) + "!");
    o.pkPoints++;
    }

    c.playerKilled = c.playerId;
    if (o.duelStatus == 5) {
    o.duelStatus++;
    }
    }
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2012
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    bump still need help......
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Nov 2011
    Posts
    491
    Thanks given
    23
    Thanks received
    66
    Rep Power
    86
    I think that
    Code:
    public void giveLife() {
    is right method for this. You can find it from playerAssitant post it here please.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Nov 2012
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    its in my death.java folder

    public static void giveLife(Client c) {
    c.isDead = false;
    c.faceUpdate(-1);
    c.freezeTimer = 0;
    if (c.duelStatus <= 4) { // if we are not in a duel we must be in wildy
    // so remove items
    if (!c.inFightCaves()) {
    c.getItems().resetKeepItems();
    if ((c.playerRights != 2 && !Config.ADMIN_DROP_ITEMS)) {
    if (!c.isSkulled) { // what items to keep
    c.getItems().keepItem(0, true);
    c.getItems().keepItem(1, true);
    c.getItems().keepItem(2, true);
    }
    if (c.prayerActive[10]
    || c.curseActive[0]
    && System.currentTimeMillis() - c.lastProtItem > 700) {
    c.getItems().keepItem(3, true);
    //c.getItems().dropAllItemsPVP();
    }
    if (c.trade11 < 1 && !c.inRFD() && !c.isInFala()
    && !c.isInArd() && c.inTower()) {
    c.getItems().dropAllItems(); // drop all items
    c.getItems().deleteAllItems(); // delete all items
    //TODO: so the problem is the dro all items method..
    //c.sendMessage("Hey super ur in the tower.");
    }
    if (c.inRFD()) {
    c.getItems().deleteAllItems(); // delete all items
    }
    c.getPA().ResetGWKC();

    if (!c.isSkulled) { // add the kept items once we finish
    // deleting and dropping them
    for (int i1 = 0; i1 < 3; i1++) {
    if (c.itemKeptId[i1] > 0) {
    c.getItems().addItem(c.itemKeptId[i1], 1);
    }
    }
    }
    if (c.prayerActive[10]) { // if we have protect items
    if (c.itemKeptId[3] > 0) {
    c.getItems().addItem(c.itemKeptId[3], 1);
    }
    }
    }
    c.getItems().resetKeepItems();
    } else if (c.inPits) {
    Server.fightPits.removePlayerFromPits(c.playerId);
    c.pitsStatus = 1;
    }
    }
    c.getCombat().resetPrayers();
    for (int i = 0; i < 20; i++) {
    c.playerLevel[i] = c.getPA().getLevelForXP(c.playerXP[i]);
    c.getPA().refreshSkill(i);
    }
    if (c.pitsStatus == 1) {
    c.getPA().movePlayer(2399, 5173, 0);
    } else if (c.duelStatus <= 4) { // if we are not in a duel repawn to
    // wildy
    c.getPA().movePlayer(Config.RESPAWN_X, Config.RESPAWN_Y, 0);
    c.isSkulled = false;
    c.skullTimer = 0;
    c.attackedPlayers.clear();
    } else if (c.inFightCaves()) {
    c.getPA().resetTzhaar();
    } else if (c.inRFD()) {
    c.getPA().resetRFD();
    } else { // we are in a duel, respawn outside of arena
    Client o = (Client) PlayerHandler.players[c.duelingWith];
    if (o != null) {
    o.getPA().createPlayerHints(10, -1);
    if (o.duelStatus == 6) {
    o.getTradeAndDuel().duelVictory();
    // o.pcPoints += 1;
    // o.sendMessage("You have gained 1 Soul Split Points for winning a duel");
    }
    }
    c.getPA().movePlayer(Config.DUELING_RESPAWN_X + (Misc.random(Config.RANDOM_DUELING_RESPAWN)),
    Config.DUELING_RESPAWN_Y
    + (Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);
    if (c.duelStatus != 6) { // if we have won but have died, don't
    // reset the duel status.
    c.getTradeAndDuel().resetDuel();
    }
    }
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Nov 2011
    Posts
    491
    Thanks given
    23
    Thanks received
    66
    Rep Power
    86
    Code:
    //c.getItems().dropAllItemsPVP();
    to

    Code:
    c.getItems().dropAllItemsPVP();
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2012
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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. Making certain area's pvp ans safe spots
    By 4ces0fsp4des in forum Help
    Replies: 3
    Last Post: 06-29-2011, 04:25 AM
  2. Wtf, comon help!
    By Jerkin in forum Help
    Replies: 3
    Last Post: 06-10-2010, 09:02 PM
  3. skill cape ans+gfx's
    By i suffer i in forum Help
    Replies: 1
    Last Post: 12-04-2009, 08:32 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •