Jump to content

Search the Community

Showing results for tags 'drops'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 104 results

  1. dose anyone know a source and client with random pk drops
  2. i'm using a normal 317 base, not PI or Delta. if you have to idc if you criticize, it's a great server so far. but my question is: is there a way to add PvP drops known by anybody so that when a player is killed, there is a chance of a random drop appearing in the pile of loot? for example, i killed this player and he dropped all his stuff, but in the pile there was a vesta chainskirt that he didn't have, but it was a randomly generated drop. THANKS FOR READING AND PLEASE REPLY! THIS IS THE LAST THING I NEED TO ADD TO MY SERVER, AND I'VE BEEN NEEDING IT FOR OVER A YEAR! - THANKS -
  3. Alright i've downloaded Project DungeonFest 659 and i was wondering how do i change the drops? I went to ./data/npc/drops.bin but its a .bin file and i cannot even open it... Did i choose the wrong file? Any programs which are opening .bin files? Please help me, Thank you! And EDIT: It's dementhium source!
  4. kk i jsut want items drops for basic reasons. although ive heard rumors that 562 cant drop items (which im positive is bs). so could anybody help me?
  5. Hey, So I have a 562 loading 602 server, the base is Rs2Hd and the source is RuneSlay. Ive found out that once a player dies, If they are not in the wildy they dont lose their items (Good), yet if they die in the Wildy, they lose their items but the player who killed them just gets the PVP drops, not the Players inv etc. This is very annoying. If anybody knows a way to replace the pvp drops with players drops / Add Players drops in as well as Pvp drops, I would be very grateful. I have the Void for my Droploot in Player.java. That is here: [code] public void dropLoot() { if(this.inSWGame()) { return; } if(this.inClanWars()) { return; } if(this.getLocation().getY() >= 4680 && this.getLocation().getY() <= 4730 && this.getLocation().getX() >= 2495 && this.getLocation().getX() <= 2520) { return; } if(this.getRights() == 2) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); List<Item> itemsInHand = new ArrayList<Item>(); for(int i = 0; i < Inventory.SIZE; i++) { Item item = this.getInventory().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } for(int i = 0; i < Equipment.SIZE; i++) { Item item = this.getEquipment().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } this.getInventory().reset(); this.getEquipment().reset(); int keep = 3; if(this.PROTECTITEM == true) { keep = 4; } if(this.getHeadIcons().isSkulled()) { keep = 0; if(this.PROTECTITEM == true) { keep = 1; } } if(keep > 0) { Collections.sort(itemsInHand, new Comparator<Item>() { @Override public int compare(Item arg0, Item arg1) { int a0 = arg0.getDefinition().getPrice().getNormalPrice(); int a1 = arg1.getDefinition().getPrice().getNormalPrice(); return a1 - a0; } }); List<Item> toRemove = new ArrayList<Item>(); for(int i = 0; i < itemsInHand.size(); i++) { Item item = itemsInHand.get(i); if(item.getDefinition().isStackable() || item.getDefinition().isNoted()) { continue; } if(keep > 0) { toRemove.add(item); keep--; } else { break; } } for(Item i : toRemove) { itemsInHand.remove(i); this.getInventory().addItem(i.getId(), 1); } } for(Item i : itemsInHand) { World.getInstance().getItemManager().createDropGroundItem(this.getKiller(), this.getLocation(), i); } } [/code] The Void for droploot2 is this: [code] public void dropLoot2() { if(this.inSWGame()) { return; } if(getLocation().getY() >= 4680 && getLocation().getY() <= 4730 && getLocation().getX() >= 2495 && getLocation().getX() <= 2520) { return; } if(this.inClanWars()) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); Item Food = dropId(pvpDrops.Foods()); Item Low = dropId(pvpDrops.OtherItems()); Item Medium = dropId(pvpDrops.OtherItems2()); Item High = dropId(pvpDrops.OtherItems3()); Item PvpItems = dropId(pvpDrops.PvPItems()); Item PvpItems2 = dropId(pvpDrops.PvPItems()); Item TargetDrop = dropId(pvpDrops.TargetDrop()); List<Item> itemsInHand = new ArrayList<Item>(); List<Item> itemsInHand2 = new ArrayList<Item>(); List<Item> itemsInHand3 = new ArrayList<Item>(); List<Item> itemsInHand4 = new ArrayList<Item>(); List<Item> itemsInHand5 = new ArrayList<Item>(); List<Item> itemsInHand6 = new ArrayList<Item>(); List<Item> itemsInHand7 = new ArrayList<Item>(); if(Food != null || Low != null || Medium != null || High != null || PvpItems != null || TargetDrop != null) { itemsInHand.add(Food); itemsInHand2.add(Low); itemsInHand3.add(Medium); itemsInHand4.add(High); itemsInHand5.add(PvpItems); itemsInHand6.add(TargetDrop); itemsInHand7.add(PvpItems2); } for(Item food : itemsInHand) { for(Item low : itemsInHand2) { for(Item medium : itemsInHand3) { for(Item high : itemsInHand4) { for(Item pvpitems : itemsInHand5) { for(Item targetdrop : itemsInHand6) { for(Item pvpitems2 : itemsInHand7) { //if(p2.giveDrop == p2.bhTarget) { if(p2.bhTarget == p2.giveDrop) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), targetdrop); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your target."); p2.giveDrop = 0; } if(p2.playerEp <= 10) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("EP: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 11 && p2.playerEp <= 21) { p2.playerEp = p2.playerEp - Misc.random(10); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 22 && p2.playerEp <= 32) { p2.playerEp = p2.playerEp - Misc.random(15); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 33 && p2.playerEp <= 44) { p2.playerEp = p2.playerEp - Misc.random(20); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 45 && p2.playerEp <= 55) { p2.playerEp = p2.playerEp - Misc.random(30); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 56 && p2.playerEp <= 66) { p2.playerEp = p2.playerEp - Misc.random(40); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 67 && p2.playerEp <= 77) { p2.playerEp = p2.playerEp - Misc.random(50); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 78 && p2.playerEp <= 88) { p2.playerEp = p2.playerEp - Misc.random(60); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 89 && p2.playerEp <= 100) { p2.playerEp = p2.playerEp - Misc.random(70); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } }}}}}}} } [/code] Thanks in advance!
  6. Hey, So I have a 562 loading 602 server, the base is Rs2Hd and the source is RuneSlay. Ive found out that once a player dies, If they are not in the wildy they dont lose their items (Good), yet if they die in the Wildy, they lose their items but the player who killed them just gets the PVP drops, not the Players inv etc. This is very annoying. If anybody knows a way to replace the pvp drops with players drops / Add Players drops in as well as Pvp drops, I would be very grateful. I have the Void for my Droploot in Player.java. That is here: [code] public void dropLoot() { if(this.inSWGame()) { return; } if(this.inClanWars()) { return; } if(this.getLocation().getY() >= 4680 && this.getLocation().getY() <= 4730 && this.getLocation().getX() >= 2495 && this.getLocation().getX() <= 2520) { return; } if(this.getRights() == 2) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); List<Item> itemsInHand = new ArrayList<Item>(); for(int i = 0; i < Inventory.SIZE; i++) { Item item = this.getInventory().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } for(int i = 0; i < Equipment.SIZE; i++) { Item item = this.getEquipment().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } this.getInventory().reset(); this.getEquipment().reset(); int keep = 3; if(this.PROTECTITEM == true) { keep = 4; } if(this.getHeadIcons().isSkulled()) { keep = 0; if(this.PROTECTITEM == true) { keep = 1; } } if(keep > 0) { Collections.sort(itemsInHand, new Comparator<Item>() { @Override public int compare(Item arg0, Item arg1) { int a0 = arg0.getDefinition().getPrice().getNormalPrice(); int a1 = arg1.getDefinition().getPrice().getNormalPrice(); return a1 - a0; } }); List<Item> toRemove = new ArrayList<Item>(); for(int i = 0; i < itemsInHand.size(); i++) { Item item = itemsInHand.get(i); if(item.getDefinition().isStackable() || item.getDefinition().isNoted()) { continue; } if(keep > 0) { toRemove.add(item); keep--; } else { break; } } for(Item i : toRemove) { itemsInHand.remove(i); this.getInventory().addItem(i.getId(), 1); } } for(Item i : itemsInHand) { World.getInstance().getItemManager().createDropGroundItem(this.getKiller(), this.getLocation(), i); } } [/code] The Void for droploot2 is this: [code] public void dropLoot2() { if(this.inSWGame()) { return; } if(getLocation().getY() >= 4680 && getLocation().getY() <= 4730 && getLocation().getX() >= 2495 && getLocation().getX() <= 2520) { return; } if(this.inClanWars()) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); Item Food = dropId(pvpDrops.Foods()); Item Low = dropId(pvpDrops.OtherItems()); Item Medium = dropId(pvpDrops.OtherItems2()); Item High = dropId(pvpDrops.OtherItems3()); Item PvpItems = dropId(pvpDrops.PvPItems()); Item PvpItems2 = dropId(pvpDrops.PvPItems()); Item TargetDrop = dropId(pvpDrops.TargetDrop()); List<Item> itemsInHand = new ArrayList<Item>(); List<Item> itemsInHand2 = new ArrayList<Item>(); List<Item> itemsInHand3 = new ArrayList<Item>(); List<Item> itemsInHand4 = new ArrayList<Item>(); List<Item> itemsInHand5 = new ArrayList<Item>(); List<Item> itemsInHand6 = new ArrayList<Item>(); List<Item> itemsInHand7 = new ArrayList<Item>(); if(Food != null || Low != null || Medium != null || High != null || PvpItems != null || TargetDrop != null) { itemsInHand.add(Food); itemsInHand2.add(Low); itemsInHand3.add(Medium); itemsInHand4.add(High); itemsInHand5.add(PvpItems); itemsInHand6.add(TargetDrop); itemsInHand7.add(PvpItems2); } for(Item food : itemsInHand) { for(Item low : itemsInHand2) { for(Item medium : itemsInHand3) { for(Item high : itemsInHand4) { for(Item pvpitems : itemsInHand5) { for(Item targetdrop : itemsInHand6) { for(Item pvpitems2 : itemsInHand7) { //if(p2.giveDrop == p2.bhTarget) { if(p2.bhTarget == p2.giveDrop) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), targetdrop); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your target."); p2.giveDrop = 0; } if(p2.playerEp <= 10) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("EP: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 11 && p2.playerEp <= 21) { p2.playerEp = p2.playerEp - Misc.random(10); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 22 && p2.playerEp <= 32) { p2.playerEp = p2.playerEp - Misc.random(15); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 33 && p2.playerEp <= 44) { p2.playerEp = p2.playerEp - Misc.random(20); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 45 && p2.playerEp <= 55) { p2.playerEp = p2.playerEp - Misc.random(30); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 56 && p2.playerEp <= 66) { p2.playerEp = p2.playerEp - Misc.random(40); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 67 && p2.playerEp <= 77) { p2.playerEp = p2.playerEp - Misc.random(50); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 78 && p2.playerEp <= 88) { p2.playerEp = p2.playerEp - Misc.random(60); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 89 && p2.playerEp <= 100) { p2.playerEp = p2.playerEp - Misc.random(70); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } }}}}}}} } [/code]
  7. Hey, So I have a 562 loading 602 server, the base is Rs2Hd and the source is RuneSlay. Ive found out that once a player dies, If they are not in the wildy they dont lose their items (Good), yet if they die in the Wildy, they lose their items but the player who killed them just gets the PVP drops, not the Players inv etc. This is very annoying. If anybody knows a way to replace the pvp drops with players drops / Add Players drops in as well as Pvp drops, I would be very grateful. I have the Void for my Droploot in Player.java. That is here: [code] public void dropLoot() { if(this.inSWGame()) { return; } if(this.inClanWars()) { return; } if(this.getLocation().getY() >= 4680 && this.getLocation().getY() <= 4730 && this.getLocation().getX() >= 2495 && this.getLocation().getX() <= 2520) { return; } if(this.getRights() == 2) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); List<Item> itemsInHand = new ArrayList<Item>(); for(int i = 0; i < Inventory.SIZE; i++) { Item item = this.getInventory().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } for(int i = 0; i < Equipment.SIZE; i++) { Item item = this.getEquipment().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } this.getInventory().reset(); this.getEquipment().reset(); int keep = 3; if(this.PROTECTITEM == true) { keep = 4; } if(this.getHeadIcons().isSkulled()) { keep = 0; if(this.PROTECTITEM == true) { keep = 1; } } if(keep > 0) { Collections.sort(itemsInHand, new Comparator<Item>() { @Override public int compare(Item arg0, Item arg1) { int a0 = arg0.getDefinition().getPrice().getNormalPrice(); int a1 = arg1.getDefinition().getPrice().getNormalPrice(); return a1 - a0; } }); List<Item> toRemove = new ArrayList<Item>(); for(int i = 0; i < itemsInHand.size(); i++) { Item item = itemsInHand.get(i); if(item.getDefinition().isStackable() || item.getDefinition().isNoted()) { continue; } if(keep > 0) { toRemove.add(item); keep--; } else { break; } } for(Item i : toRemove) { itemsInHand.remove(i); this.getInventory().addItem(i.getId(), 1); } } for(Item i : itemsInHand) { World.getInstance().getItemManager().createDropGroundItem(this.getKiller(), this.getLocation(), i); } } [/code] The Void for droploot2 is this: [code] public void dropLoot2() { if(this.inSWGame()) { return; } if(getLocation().getY() >= 4680 && getLocation().getY() <= 4730 && getLocation().getX() >= 2495 && getLocation().getX() <= 2520) { return; } if(this.inClanWars()) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); Item Food = dropId(pvpDrops.Foods()); Item Low = dropId(pvpDrops.OtherItems()); Item Medium = dropId(pvpDrops.OtherItems2()); Item High = dropId(pvpDrops.OtherItems3()); Item PvpItems = dropId(pvpDrops.PvPItems()); Item PvpItems2 = dropId(pvpDrops.PvPItems()); Item TargetDrop = dropId(pvpDrops.TargetDrop()); List<Item> itemsInHand = new ArrayList<Item>(); List<Item> itemsInHand2 = new ArrayList<Item>(); List<Item> itemsInHand3 = new ArrayList<Item>(); List<Item> itemsInHand4 = new ArrayList<Item>(); List<Item> itemsInHand5 = new ArrayList<Item>(); List<Item> itemsInHand6 = new ArrayList<Item>(); List<Item> itemsInHand7 = new ArrayList<Item>(); if(Food != null || Low != null || Medium != null || High != null || PvpItems != null || TargetDrop != null) { itemsInHand.add(Food); itemsInHand2.add(Low); itemsInHand3.add(Medium); itemsInHand4.add(High); itemsInHand5.add(PvpItems); itemsInHand6.add(TargetDrop); itemsInHand7.add(PvpItems2); } for(Item food : itemsInHand) { for(Item low : itemsInHand2) { for(Item medium : itemsInHand3) { for(Item high : itemsInHand4) { for(Item pvpitems : itemsInHand5) { for(Item targetdrop : itemsInHand6) { for(Item pvpitems2 : itemsInHand7) { //if(p2.giveDrop == p2.bhTarget) { if(p2.bhTarget == p2.giveDrop) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), targetdrop); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your target."); p2.giveDrop = 0; } if(p2.playerEp <= 10) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("EP: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 11 && p2.playerEp <= 21) { p2.playerEp = p2.playerEp - Misc.random(10); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 22 && p2.playerEp <= 32) { p2.playerEp = p2.playerEp - Misc.random(15); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 33 && p2.playerEp <= 44) { p2.playerEp = p2.playerEp - Misc.random(20); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 45 && p2.playerEp <= 55) { p2.playerEp = p2.playerEp - Misc.random(30); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 56 && p2.playerEp <= 66) { p2.playerEp = p2.playerEp - Misc.random(40); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 67 && p2.playerEp <= 77) { p2.playerEp = p2.playerEp - Misc.random(50); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 78 && p2.playerEp <= 88) { p2.playerEp = p2.playerEp - Misc.random(60); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 89 && p2.playerEp <= 100) { p2.playerEp = p2.playerEp - Misc.random(70); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } }}}}}}} } [/code]
  8. I've known were to edit drops on all my servers... but this is just messed up. It's a 639 and it's like nowhere. Help?
  9. Hay guys I would appreciate it if someone could explain to me how to add npc drops and how it works becaus I currently have 3 files in the cfg folder which are npc drop related. These are: ~Npcdrops.cfg ~Npcdrops.tsm ~Npcconstants (think this is for every kill you get this drop) So yeah please help!
  10. Hello, Can anyone tell me which files I need to be to Add Shops, NPC's and their drops. Thanks in advance. Edit - This is a 562. (Forgot to tell you all, My bad) Edit2 - How do I add Working Doors? I have set my home to the new rs quest area and none of the doors work or have ID's, is Edgeville a better home?
  11. I need to know how to change the NPC Drops. I know of the NPCDrops.TSM but when i change it, nothing happens. Is there something else I need to do?
  12. looked at like 20 guides and all their npcdrops look waaaayy different than mine >.> does anyone know how to change it in mine? or show me which number is which?[ATTACH=CONFIG]3095[/ATTACH]
  13. Ok i have my 317 source (caution-x) and it has a PI drop system and whenever i kill a monster all i get is bones..like for example im trying to get a d bow from dark beast and ive killed it 100 times and all its ever dropped was bones and there like 20 items its supposed to drop (not at once) please help
  14. dds ledg

    562 PVP Drops

    Hey, I have a 562 server and the base is Rs2Hd. My source is Runeslay. I have a problem about Pking, you do not get the opponents items when you kill them, rather the Pk Drops. Is there any way to make it so you get the opponents items AND the PVP drops? This error is very annoying and if anyone could fix it I would be very grateful. The Void for my Droploot in Player.java is here: [code] @Override public void dropLoot() { if(this.inSWGame()) { return; } if(this.inClanWars()) { return; } if(this.getLocation().getY() >= 4680 && this.getLocation().getY() <= 4730 && this.getLocation().getX() >= 2495 && this.getLocation().getX() <= 2520) { return; } if(this.getRights() == 2) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); List<Item> itemsInHand = new ArrayList<Item>(); for(int i = 0; i < Inventory.SIZE; i++) { Item item = this.getInventory().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } for(int i = 0; i < Equipment.SIZE; i++) { Item item = this.getEquipment().getContainer().get(i); if(item != null) { itemsInHand.add(item); } } this.getInventory().reset(); this.getEquipment().reset(); int keep = 3; if(this.PROTECTITEM == true) { keep = 4; } if(this.getHeadIcons().isSkulled()) { keep = 0; if(this.PROTECTITEM == true) { keep = 1; } } if(keep > 0) { Collections.sort(itemsInHand, new Comparator<Item>() { @Override public int compare(Item arg0, Item arg1) { int a0 = arg0.getDefinition().getPrice().getNormalPrice(); int a1 = arg1.getDefinition().getPrice().getNormalPrice(); return a1 - a0; } }); List<Item> toRemove = new ArrayList<Item>(); for(int i = 0; i < itemsInHand.size(); i++) { Item item = itemsInHand.get(i); if(item.getDefinition().isStackable() || item.getDefinition().isNoted()) { continue; } if(keep > 0) { toRemove.add(item); keep--; } else { break; } } for(Item i : toRemove) { itemsInHand.remove(i); this.getInventory().addItem(i.getId(), 1); } } for(Item i : itemsInHand) { World.getInstance().getItemManager().createDropGroundItem(this.getKiller(), this.getLocation(), i); } } [/code] And the Void for Droploot2 is below: [code] public void dropLoot2() { if(this.inSWGame()) { return; } if(getLocation().getY() >= 4680 && getLocation().getY() <= 4730 && getLocation().getX() >= 2495 && getLocation().getX() <= 2520) { return; } if(this.inClanWars()) { return; } if(this.giveDrop == 0) { System.out.println("Npc Killed him, so no drop"); return; } final Player p2 = World.getInstance().getPlayerList().get(this.giveDrop); Item Food = dropId(pvpDrops.Foods()); Item Low = dropId(pvpDrops.OtherItems()); Item Medium = dropId(pvpDrops.OtherItems2()); Item High = dropId(pvpDrops.OtherItems3()); Item PvpItems = dropId(pvpDrops.PvPItems()); Item PvpItems2 = dropId(pvpDrops.PvPItems()); Item TargetDrop = dropId(pvpDrops.TargetDrop()); List<Item> itemsInHand = new ArrayList<Item>(); List<Item> itemsInHand2 = new ArrayList<Item>(); List<Item> itemsInHand3 = new ArrayList<Item>(); List<Item> itemsInHand4 = new ArrayList<Item>(); List<Item> itemsInHand5 = new ArrayList<Item>(); List<Item> itemsInHand6 = new ArrayList<Item>(); List<Item> itemsInHand7 = new ArrayList<Item>(); if(Food != null || Low != null || Medium != null || High != null || PvpItems != null || TargetDrop != null) { itemsInHand.add(Food); itemsInHand2.add(Low); itemsInHand3.add(Medium); itemsInHand4.add(High); itemsInHand5.add(PvpItems); itemsInHand6.add(TargetDrop); itemsInHand7.add(PvpItems2); } for(Item food : itemsInHand) { for(Item low : itemsInHand2) { for(Item medium : itemsInHand3) { for(Item high : itemsInHand4) { for(Item pvpitems : itemsInHand5) { for(Item targetdrop : itemsInHand6) { for(Item pvpitems2 : itemsInHand7) { //if(p2.giveDrop == p2.bhTarget) { if(p2.bhTarget == p2.giveDrop) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), targetdrop); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your target."); p2.giveDrop = 0; } if(p2.playerEp <= 10) { p2.playerEp = p2.playerEp - Misc.random(5); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("EP: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 11 && p2.playerEp <= 21) { p2.playerEp = p2.playerEp - Misc.random(10); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 22 && p2.playerEp <= 32) { p2.playerEp = p2.playerEp - Misc.random(15); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 33 && p2.playerEp <= 44) { p2.playerEp = p2.playerEp - Misc.random(20); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 45 && p2.playerEp <= 55) { p2.playerEp = p2.playerEp - Misc.random(30); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), low); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 56 && p2.playerEp <= 66) { p2.playerEp = p2.playerEp - Misc.random(40); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 67 && p2.playerEp <= 77) { p2.playerEp = p2.playerEp - Misc.random(50); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 78 && p2.playerEp <= 88) { p2.playerEp = p2.playerEp - Misc.random(60); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } if(p2.playerEp >= 89 && p2.playerEp <= 100) { p2.playerEp = p2.playerEp - Misc.random(70); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), food); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), pvpitems2); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), high); World.getInstance().getItemManager().createDropGroundItem(p2 , this.getLocation(), medium); actionSender.sendString("Drop Potential: "+playerEp+"%", 591, 9); actionSender.sendMessage("You killed your opponent."); p2.giveDrop = 0; } }}}}}}} } [/code] I think you might have to edit the Droploot2 in Player.java. Probable edit these lines: [code] World.getInstance().getItemManager().createDropGroundItem(p2, this.getLocation(), food); [/code] Because that if creating the ground Items. Im not sure but thanks for the help in Advance!
  15. inside my NPCDrops i have [QUOTE]#tormented demon 8350:349 886:150 1149:1 1249:1 1201:1 1319:1 1289:1 1185:1 1247:1 1147:1 1432:1 1113:1 1373:1 892:42 829:20 565:20 560:40 561:67 1149:1 14484:1 15221:1 15032:1 15029:1 15028:1 3140:1 4087:1 4585:1 1187:1 6585:1[/QUOTE] Can some1 explain it? Iknow this much.. The NPC ID: 8350 (i dontknow what 349 means) drops 150 of 886 and 1 of 1149. Sooo what does the "349" mean in: "8350:349"
  16. Okay i go into NPCDROPS.tsm and add/edit drops for my corp beast, once I'm done I compile and when I run server i get this message [img]http://gyazo.com/f5c74822f0711d4940f0ee883181564a.png[/img] Idk if it worked or not because I'm still able to run it i just get this weird error. Tell me what I'm doing wrong this is what it looks like [img]http://gyazo.com/cf1cbc1adb16bb02198136a4a1c93457.png[/img]
  17. seanlol

    drops r off?

    For some reason all my drops have just turned off i havent changed anything can anyone fix?
  18. pkingbandit

    Drops help

    Ok i really dont know why cause i have changed everything in all things with drop. I have made sure all npc ids are correct and same with names. Yet i still havent gotten the 100% drops to work and tbh idk if any drops work. If someone gets on skype (add me x25xquinton) and then we get on team view or something or you help me FIX i will pay you.
  19. Kk all my monsters drop stuff to much how do i make it drop rarer?? [QUOTE]#Corporeal Beast 5247:130 4113:1 4111:1 452:20 2362:351 995:500000 384:70 1754:100 1514:75 890:750 9144:250 1381:1 175:1 1149:1 391:10 4087:1 11732:1 4087:1 11732:1 15024:1 15025:1 15024:1 15001:1 2366:1 1249:1 14087:1 11732:1 15000:1 4151:1 15003:1 11335:1 15002:1 4087:1 11732:1[/QUOTE] Thats what the coded is please tell me how to make it rarer drops.
  20. I have no idea what's causing it... It seems that when I kill an NPC, it's not going to DeathEvent anymore. I've put sendMessage in DeathEvent, giveSlayer, etc.
  21. Lol Drugs

    Random Pk Drops??

    Hi, i've searched pretty much everywhere for how to add random PvP and Pk drops... in other words i want there to be a potential chance at receiving a god armor piece after killing another player.. does anybody know how i could do this? or a link maybe where there's a good guide? THANKS!!!!!
  22. I need help to turn drops [on] not off! Where do I make then where they appear on ground for all players? Help please!
  23. Ok, so this is what my NPC drops.cfg file looks like, people say its supposed to have the name of the npc, the item id, the ammount and then a percentage after. But this is mine. [ATTACH=CONFIG]2080[/ATTACH] As you can clearly see, i dont. Anyone know what to do ? I'm trying to add more drops for the npc's.
  24. Yes, I know everyone says "use the search first." And I'm here to tell you all, i've tried and only found topics of the community telling a person to use the search bar, and I never found an answer to my question. Anyways, the title says it all. Outside of the wilderness the players lose items on death but the items do not appear on the ground. I need to know where the code is so i can fix it; so please don't simply put "player.java"... And please.... don't say "use the search bar again". Thank you for your help in advance. :)
  25. im willing to pay.. but i can't untill monday when i upload some money, the only way i can get a NPC to drop a item is by putting it on constants.. but that doesnt help.. i dont know the problem.. i can prove i will pay, ill show my paypal (already paid for alot of help).. really need it doing. people are starting to quit because of this alone.. - Staticcc
×