Thread: Items Not Dropping In wildy

Results 1 to 2 of 2
  1. #1 Items Not Dropping In wildy 
    Registered Member
    Join Date
    Jun 2015
    Posts
    21
    Thanks given
    0
    Thanks received
    0
    Rep Power
    12
    hey guys i need help, when u kill a player in wildy nothing drops and they keep all there items, and if u die in some places like some bosses u keep ur items but some other bosses you dont? like i am really confused i need herlp here is my code

    Code:
            public void giveLife() {
                    c.isDead = false;
                    c.faceUpdate(-1);
                    c.freezeTimer = 0;
                   
                    if(c.playerRights == 3) {
                    for (int i = 0; i < 20; i++) {
                            c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
                            c.getPA().refreshSkill(i);
                    }
                    c.getCombat().resetPrayers();
     
                    c.teleportToX = 3087;
                    c.teleportToY = 3497;
    PlayerSave.saveGame(c);
    c.getPA().resetTzhaar();
    requestUpdates();
    return;
                   
                    }
    		if(c.playerRights >= 3) {
    		for (int i = 0; i < 20; i++) {
    			c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
    			c.getPA().refreshSkill(i);
    		}
    		c.getCombat().resetPrayers();
    
    		c.teleportToX = 3211;
    		c.teleportToY = 3422;
    PlayerSave.saveGame(c);
    requestUpdates();
    return;
    		
    		}
    		if (c.InDung()) {
    			c.getPA().moveDung();
    			}
    		if(c.duelStatus <= 4 && !c.getPA().inPitsWait()) { // if we are not in a duel we must be in wildy so remove items
    			if (!c.inPits && !c.inFightCaves() && !c.inDT() && !c.inPcGame() && !c.inFunPk()) {
    					c.getItems().resetKeepItems();
    				if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS)) {
    					if(!c.isSkulled && !c.isInArd()) {	// 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);
    					}
    					if (c.trade11 < 1 && !c.isInFala() && !c.isInArd() && c.inWild()) {
    					c.getItems().dropAllItems(); // drop all items
    					c.getItems().deleteAllItems(); // delete all items
    					}
    					if(!c.isSkulled && !c.isInArd()) { // 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();
    						} else if (c.inBarbDef) {
    			Server.barbDefence.endGame(c, false);
    			} else if (c.inPits) {
    				Server.fightPits.removePlayerFromPits(c.playerId);
    				c.pitsStatus = 1;
                                                                                         c.duelStatus = 0;
    			}
    		}
    		c.getCombat().resetPrayers();
    		for (int i = 0; i < 25; i++) {
    			c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
    			c.getPA().refreshSkill(i);
    		}
    		if (c.playerEquipment[c.playerRing] == 2570) {
    			if (c.playerLevel[3] > 0 && c.playerLevel[3] <= c.getLevelForXP(c.playerXP[3]) / 10 && c.underAttackBy > 0) {
    				int wildlvl = (((c.absY - 3520) / 8) + 1);
    				if (wildlvl < 20) {
    					c.getItems().deleteEquipment(2570, c.playerRing);
    			c.getPA().startTeleport(2831, 2973, 0, "modern");
    			}
    		}
    	}
    		if (c.pitsStatus == 1) {
    			movePlayer(2399, 5173, 0);
                                                                    c.pitsStatus = 0;
    		} else if (c.duelStatus <= 4) { // if we are not in a duel repawn to
    
    										// wildy
    			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.inDT()) {
                            c.getPA().resetDominion();
            
    		} else { // we are in a duel, respawn outside of arena
    			Client o = (Client) Server.playerHandler.players[c.duelingWith];
    			if (o != null) {
    				o.getPA().createPlayerHints(10, -1);
    				if (o.duelStatus == 6) {
    					o.getTradeAndDuel().duelVictory();
    					o.getPA().writeTabs();
    				}
    			}
    			/*movePlayer(
    					Config.DUELING_RESPAWN_X
    							+ (Misc.random(Config.RANDOM_DUELING_RESPAWN)),
    					Config.DUELING_RESPAWN_Y OLD ONE
    							+ (Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);*/
    										c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);
    			o.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();
    		resetAnimation();
    		c.startAnimation(-1);
    		frame1();
    		resetTb();
    		c.isSkulled = false;
    		c.attackedPlayers.clear();
    		c.headIconPk = -1;
    		c.skullTimer = -1;
    		c.damageTaken = new int[Config.MAX_PLAYERS];
    		c.getPA().requestUpdates();
    		removeAllWindows();
    		c.tradeResetNeeded = true;	
    
    
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    _Ali's Avatar
    Join Date
    Apr 2014
    Posts
    382
    Thanks given
    67
    Thanks received
    147
    Rep Power
    252
    Show me this method:

    dropAllItems(); // drop all items
    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. Replies: 3
    Last Post: 05-06-2012, 03:19 AM
  2. Items not dropping
    By Incipio in forum Help
    Replies: 9
    Last Post: 08-21-2011, 01:46 AM
  3. Making this command not work in wildy
    By jordan641 in forum Requests
    Replies: 0
    Last Post: 12-27-2010, 10:48 PM
  4. [pi] items not weilding in the right spot [pi]
    By disasterscape in forum Help
    Replies: 0
    Last Post: 12-08-2010, 12:57 PM
  5. making commands not work in wildy
    By Jared1220 in forum Requests
    Replies: 9
    Last Post: 11-10-2008, 06:37 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
  •