Thread: help with something

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 help with something 
    Banned

    Join Date
    Jul 2010
    Age
    34
    Posts
    773
    Thanks given
    39
    Thanks received
    83
    Rep Power
    0
    ok when pking the dieing persons items dont show up for the winner, they show up for the person that died.

    how do i fix this.

    ive replaced the givelife, applydead and dropallitems methods and its still doing it.
    Reply With Quote  
     

  2. #2  
    PokeNation! Xaves's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    3,476
    Thanks given
    356
    Thanks received
    788
    Rep Power
    646
    debug son, debug.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jul 2010
    Age
    34
    Posts
    773
    Thanks given
    39
    Thanks received
    83
    Rep Power
    0
    omg i just a fix, dont post useless shit on here.

    a debug wont do shit cause the items are getting dropped...
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Oct 2011
    Posts
    860
    Thanks given
    371
    Thanks received
    214
    Rep Power
    0
    Quote Originally Posted by oldschoolgaming View Post
    omg i just a fix, dont post useless shit on here.

    a debug wont do shit cause the items are getting dropped...
    Make the items appear for "o." not "c."
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jul 2010
    Age
    34
    Posts
    773
    Thanks given
    39
    Thanks received
    83
    Rep Power
    0
    it is set for the items to appear for o
    Reply With Quote  
     

  6. #6  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    Make sure that 'o' is defined as the killer. But if you want anymore help you will have to post the drop method(s) for player killing.

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2010
    Age
    34
    Posts
    773
    Thanks given
    39
    Thanks received
    83
    Rep Power
    0
    Spoiler for applydead:
    public void applyDead() {
    c.respawnTimer = 15;
    c.isDead = false;
    if (c.duelStatus != 6 && c.inDuelArena()) {
    // c.killerId = c.getCombat().getKillerId(c.playerId);
    c.killerId = c.getPA().findKiller();
    Client o = (Client) PlayerHandler.players[c.killerId];
    Client y = (Client) PlayerHandler.players[c.duelingWith];
    y.sendMessage("You won the duel, and will be able to claim the rewards in a second.");
    if (o != null) {
    if (c.killerId != c.playerId)
    c.playerKilled = c.playerId;
    if (o.duelStatus == 5) {
    o.duelStatus++;

    }
    }
    }
    Client o = (Client) PlayerHandler.players[c.killerId];
    int weapon = c.playerEquipment[c.playerWeapon];
    int weaponOther = o.playerEquipment[c.playerWeapon];
    if (o != null && c.killerId != c.playerId) {
    if (c.connectedFrom.equals(o.connectedFrom)) {
    if (weapon == CastleWars.SARA_BANNER || weapon == CastleWars.ZAMMY_BANNER || weaponOther == CastleWars.SARA_BANNER || weaponOther == CastleWars.ZAMMY_BANNER) {
    c.getItems().removeItem(weapon, 3);
    c.getItems().deleteItem2(weapon, 1);
    CastleWars.dropFlag(c, weapon);
    }
    o.sendMessage("You are killing someone from the same IP address as you.");
    return;
    } else {
    if(!PlayerKilling.hostOnList(o, c.connectedFrom)) {
    PlayerKilling.addHostToList(o, c.connectedFrom);
    o.pkPoints+=2;
    //c.DC++;
    //o.KC++;
    o.sendMessage("You have received a point, you now have "+o.pkPoints+" pk points.");
    } else {
    o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points.");
    }
    }
    }



    c.faceUpdate(0);
    c.npcIndex = 0;
    c.playerIndex = 0;
    c.stopMovement();
    if (c.duelStatus <= 4) {
    c.sendMessage(Config.DEATH_MESSAGE);
    //killMyNpcs();
    } else if (c.duelStatus != 6) {
    c.sendMessage("You have lost the duel!");
    }
    c.getPA().resetDamageDone();
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.lastVeng = 0;
    c.vengOn = false;
    c.getPA().resetFollowers();
    c.attackTimer = 10;
    c.getPA().removeAllWindows();
    c.tradeResetNeeded = true;
    }




    Spoiler for givelife:
    public void giveLife() {
    c.isDead = false;
    c.faceUpdate(-1);
    c.freezeTimer = 0;
    if (c.duelStatus <= 4 && !c.getPA().inPitsWait()) {
    if (!c.inPits && !c.inFightCaves() && c.inWild()) {
    c.getItems().resetKeepItems();
    if ((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS)
    || c.playerRights != 2) {
    if (!c.isSkulled) {
    c.getItems().keepItem(0, true);
    c.getItems().keepItem(1, true);
    c.getItems().keepItem(2, true);
    }



    if (c.prayerActive[10]
    || c.isInArd()
    && System.currentTimeMillis() - c.lastProtItem > 700) {
    c.getItems().keepItem(3, true);
    }
    c.getItems().dropAllItems();
    c.getItems().deleteAllItems();

    if (c.inDuelArena()) {
    c.sendMessage("Print: No Drop");
    }

    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] || c.isInArd()) { // if we have
    // protect items
    if (c.itemKeptId[3] > 0) {
    c.getItems().addItem(c.itemKeptId[3], 1);
    }
    }
    }
    c.getItems().resetKeepItems();
    }
    }
    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.inPits) {
    Server.fightPits.removePlayerFromPits(c.playerId);
    c.pitsStatus = 1;
    c.headIconPk = -1;
    } 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.inFunPk()) {
    c.getPA().movePlayer(3304, 3123, 0);*/
    } else if (c.inFightCaves()) {
    c.getPA().resetTzhaar();
    /*} else if (inPestGame()) {
    c.getPA().movePlayer(2658, 2612, 0);*/
    } 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 iXplicity Point 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();
    }
    }
    // PlayerSaving.getSingleton().requestSave(c.playerId );
    PlayerSave.saveGame(c);
    c.getCombat().resetPlayerAttack();
    c.getPA().resetAnimation();
    c.startAnimation(65535);
    c.getPA().frame1();
    c.getPA().resetTb();
    c.isSkulled = false;
    c.attackedPlayers.clear();
    c.headIconPk = -1;
    c.skullTimer = -1;
    c.damageTaken = new int[Config.MAX_PLAYERS];
    c.getPA().requestUpdates();
    c.getPA().removeAllWindows();
    c.tradeResetNeeded = true;
    }



    Spoiler for dropallitems:
    public void dropAllItems() {
    Client o = (Client) Server.playerHandler.players[c.killerId];
    if (c.playerRights == 3/*|| c.isInArd() || c.isInFala()*/){
    return;
    }
    for(int i = 0; i < c.playerItems.length; i++) {
    if(o != null) {
    if (tradeable(c.playerItems[i] - 1)) {
    Server.itemHandler.createGroundItem(o, c.playerItems[i] -1, c.getX(), c.getY(), c.playerItemsN[i], c.killerId);
    } else {
    if (specialCase(c.playerItems[i] - 1))
    Server.itemHandler.createGroundItem(o, 995, c.getX(), c.getY(), getUntradePrice(c.playerItems[i]-1), c.killerId);
    Server.itemHandler.createGroundItem(c, c.playerItems[i] -1, c.getX(), c.getY(), c.playerItemsN[i], c.playerId);
    }
    } else {
    Server.itemHandler.createGroundItem(c, c.playerItems[i] -1, c.getX(), c.getY(), c.playerItemsN[i], c.playerId);
    }
    }
    for(int e = 0; e < c.playerEquipment.length; e++) {
    if(o != null) {
    if (tradeable(c.playerEquipment[e])) {
    Server.itemHandler.createGroundItem(o, c.playerEquipment[e], c.getX(), c.getY(), c.playerEquipmentN[e], c.killerId);
    } else {
    if (specialCase(c.playerEquipment[e]))
    Server.itemHandler.createGroundItem(o, 995, c.getX(), c.getY(), getUntradePrice(c.playerEquipment[e]), c.killerId);
    Server.itemHandler.createGroundItem(c, c.playerEquipment[e], c.getX(), c.getY(), c.playerEquipmentN[e], c.playerId);
    }
    } else {
    Server.itemHandler.createGroundItem(c, c.playerEquipment[e], c.getX(), c.getY(), c.playerEquipmentN[e], c.playerId);
    }
    }
    if(o != null) {
    Server.itemHandler.createGroundItem(o, 526, c.getX(), c.getY(), 1, c.killerId);
    }
    }
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jul 2010
    Age
    34
    Posts
    773
    Thanks given
    39
    Thanks received
    83
    Rep Power
    0
    still need a fix
    Reply With Quote  
     

  9. #9  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    Those are the same methods I have O-o What have you added recently?

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    Reply With Quote  
     

  10. #10  
    Registered Member
    Freezia's Avatar
    Join Date
    Feb 2011
    Posts
    6,013
    Thanks given
    1,147
    Thanks received
    758
    Rep Power
    1311
    Have you added KDR toplist? That had an effect on one of my client's source's...


    Host your RUNESCAPE PRIVATE SERVER on the cheapest and flagship provider on Rune-Server! Now equipped with DDOS Protection!.


    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •