Thread: 667/704 drops on death

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 667/704 drops on death 
    Registered Member
    Join Date
    Oct 2010
    Posts
    359
    Thanks given
    152
    Thanks received
    17
    Rep Power
    11
    how do i make it so you drop items on death outside of wild, currently you dont drop anything.

    thanks.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2011
    Posts
    808
    Thanks given
    448
    Thanks received
    250
    Rep Power
    126
    ur really stupid.. saying on mopar ppl shud stop leeching but u also leech.. so nty to help ya
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2010
    Posts
    359
    Thanks given
    152
    Thanks received
    17
    Rep Power
    11
    i dont even have a mopar account faggot.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jul 2011
    Posts
    808
    Thanks given
    448
    Thanks received
    250
    Rep Power
    126
    Quote Originally Posted by kingcobra805 View Post
    i dont even have a mopar account faggot.
    'where does the name kingcobra805 on mopar come from then. and why are u swearing to me rofl
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2010
    Posts
    359
    Thanks given
    152
    Thanks received
    17
    Rep Power
    11
    because your a faggot posting un needed shit on my help thread. and idk i've had this username for a long time... if you payed attention you would notice alot of people have the same names as other people, just because i have this username dont mean anywhere thats this username is mine? and fyi this used to be a common username on runescape, so yeah alot of people have this username.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jul 2009
    Posts
    41
    Thanks given
    1
    Thanks received
    2
    Rep Power
    0
    bump
    Reply With Quote  
     

  7. #7  
    Registered Member `Basher's Avatar
    Join Date
    May 2011
    Posts
    447
    Thanks given
    136
    Thanks received
    40
    Rep Power
    23
    Good lord here:

    Player.java, look for:

    Code:
    
    getPackets().sendGameMessage("Oh dear, you have died.");
    Should be under there some were...
    Cheese
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Jul 2009
    Posts
    41
    Thanks given
    1
    Thanks received
    2
    Rep Power
    0
    public void sendItemsOnDeath(Player killer) {
    charges.die();
    auraManager.removeAura();
    CopyOnWriteArrayList<Item> containedItems = new CopyOnWriteArrayList<Item>();
    for (int i = 0; i < 14; i++) {
    if (equipment.getItem(i) != null
    && equipment.getItem(i).getId() != -1
    && equipment.getItem(i).getAmount() != -1)
    containedItems.add(new Item(equipment.getItem(i).getId(),
    equipment.getItem(i).getAmount()));
    }
    for (int i = 0; i < 28; i++) {
    if (inventory.getItem(i) != null
    && inventory.getItem(i).getId() != -1
    && inventory.getItem(i).getAmount() != -1)
    containedItems.add(new Item(getInventory().getItem(i).getId(),
    getInventory().getItem(i).getAmount()));
    }
    if (containedItems.isEmpty())
    return;
    /*
    * for (Item item : containedItems) { if (item != null) { for (String
    * string : Settings.DONATOR_ITEMS) { if
    * (item.getDefinitions().getName().toLowerCase() .contains(string)) {
    * containedItems.remove(item); } } } }
    */
    int keptAmount = 3;
    if (hasSkull())
    keptAmount = 0;
    if (prayer.usingPrayer(0, 10) || prayer.usingPrayer(1, 0))
    keptAmount++;
    if (donator && Utils.random(2) == 0)
    keptAmount += 1;
    CopyOnWriteArrayList<Item> keptItems = new CopyOnWriteArrayList<Item>();
    Item lastItem = new Item(1, 1);
    for (int i = 0; i < keptAmount; i++) {
    for (Item item : containedItems) {
    int price = item.getDefinitions().getValue();
    if (price >= lastItem.getDefinitions().getValue()) {
    lastItem = item;
    }
    }
    keptItems.add(lastItem);
    containedItems.remove(lastItem);
    lastItem = new Item(1, 1);
    }
    inventory.reset();
    equipment.reset();
    for (Item item : keptItems) {
    getInventory().addItem(item);
    }
    for (Item item : containedItems) {
    World.addGroundItem(item, getLastWorldTile(), killer, true, 180,
    true);
    }
    }

    public void increaseKillCount(Player killed) {
    killed.deathCount++;
    PkRank.checkRank(killed);
    if (killed.getSession().getIP().equals(getSession().g etIP()))
    return;
    killCount++;
    getPackets().sendGameMessage(
    "<col=ff0000>You have killed " + killed.getDisplayName()
    + ", you have now " + killCount + " kills.");
    PkRank.checkRank(this);
    }





    i dont see why it isint dropping?
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Jul 2009
    Posts
    41
    Thanks given
    1
    Thanks received
    2
    Rep Power
    0
    you dont lose items either. it might not be in regaurds to that.
    Reply With Quote  
     

  10. #10  
    Registered Member `Basher's Avatar
    Join Date
    May 2011
    Posts
    447
    Thanks given
    136
    Thanks received
    40
    Rep Power
    23
    I never said it was in there... but since you kids are having trouble finding it... replace the whole run() void with this...

    Code:
    			@Override
    			public void run() {
    				if (loop == 0) {
    					setNextAnimation(new Animation(836));
    				} else if (loop == 1) {
    					getPackets().sendGameMessage("Oh dear, you have died.");
    				} else if (loop == 3) {
    					Player killer = getMostDamageReceivedSourcePlayer();
    					if (killer != null) {
    						killer.removeDamage(thisPlayer);
    						killer.increaseKillCount(thisPlayer);
    						sendItemsOnDeath(killer);
    					}
    					equipment.init();
    					inventory.init();
    					reset();
    					setNextWorldTile(new WorldTile(
    							Settings.RESPAWN_PLAYER_LOCATION));
    					setNextAnimation(new Animation(-1));
    				} else if (loop == 4) {
    					getPackets().sendMusicEffect(90);
    					stop();
    				}
    				loop++;
    			}
    		}, 0, 1);
    	}
    Should work fine...
    What is in red is probably why you weren't getting drops.
    Cheese
    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

Similar Threads

  1. 667/704
    By 64Bit in forum Help
    Replies: 3
    Last Post: 06-05-2012, 12:38 AM
  2. Need 667/704
    By vtothef in forum Buying
    Replies: 4
    Last Post: 03-22-2012, 03:10 PM
  3. Runespark 667/704 - Soon 667/709
    By 23286027318020 in forum Advertise
    Replies: 23
    Last Post: 03-11-2012, 01:28 AM
  4. 667/704 help
    By buffaloboy in forum Help
    Replies: 4
    Last Post: 03-09-2012, 10:16 PM
  5. 667/704
    By 64Bit in forum Help
    Replies: 3
    Last Post: 03-06-2012, 12:14 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
  •