Jump to content

Search the Community

Showing results for tags 'dropping'.



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 27 results

  1. I have a pi Hey , so recently someone has been going on my server abusing the starter I already have it on 2 ips limited but he keeps making new accs and switching ips and dropping gold :( How can I make it so a new player must be on for atleast 30 minutes before he can drop anything?
  2. So I'm currently coding on a 718 rsps, converting a pvm server to PK only. But how do i make so you drop coins/ and fist of guthix tokens upon death?
  3. Is there a snippet or anyway I can make it so players that have just logged in for their first time, can not drop or trade? If you know of a snippet, please post it! Thankyou in advance.
  4. Does anyone know if there is a snippet for this? I appreciate it very much!
  5. Ok so first off open up your InventoryOptionsHandler and under Option1 add this near the spade: [CODE] if (itemId == 9937) { player.getPackets().sendGameMessage("You troll the nooblets with a red balloon..."); final WorldTile tile = new WorldTile(player); if (!player.addWalkSteps(player.getX() - 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX() + 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX(), player.getY() + 1, 1)) player.addWalkSteps(player.getX(), player.getY() - 1, 1); World.spawnTempGroundObject(new WorldObject(Utils.random(116, 116), 10, 0, tile.getX(), tile.getY(), tile.getPlane()), 592, 5000); player.getInventory().deleteItem(9937, 1); return; } if (itemId == 9935) { player.getPackets().sendGameMessage("You troll the nooblets with a yellow balloon..."); final WorldTile tile = new WorldTile(player); if (!player.addWalkSteps(player.getX() - 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX() + 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX(), player.getY() + 1, 1)) player.addWalkSteps(player.getX(), player.getY() - 1, 1); World.spawnTempGroundObject(new WorldObject(Utils.random(115, 115), 10, 0, tile.getX(), tile.getY(), tile.getPlane()), 592, 5000); player.getInventory().deleteItem(9935, 1); return; } if (itemId == 9936) { player.getPackets().sendGameMessage("You troll the nooblets with a blue balloon..."); final WorldTile tile = new WorldTile(player); if (!player.addWalkSteps(player.getX() - 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX() + 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX(), player.getY() + 1, 1)) player.addWalkSteps(player.getX(), player.getY() - 1, 1); World.spawnTempGroundObject(new WorldObject(Utils.random(117, 117), 10, 0, tile.getX(), tile.getY(), tile.getPlane()), 592, 5000); player.getInventory().deleteItem(9936, 1); return; } if (itemId == 9939) { player.getPackets().sendGameMessage("You troll the nooblets with a green balloon..."); final WorldTile tile = new WorldTile(player); if (!player.addWalkSteps(player.getX() - 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX() + 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX(), player.getY() + 1, 1)) player.addWalkSteps(player.getX(), player.getY() - 1, 1); World.spawnTempGroundObject(new WorldObject(Utils.random(118, 118), 10, 0, tile.getX(), tile.getY(), tile.getPlane()), 592, 5000); player.getInventory().deleteItem(9939, 1); return; } if (itemId == 9940) { player.getPackets().sendGameMessage("You troll the nooblets with a purple balloon..."); final WorldTile tile = new WorldTile(player); if (!player.addWalkSteps(player.getX() - 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX() + 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX(), player.getY() + 1, 1)) player.addWalkSteps(player.getX(), player.getY() - 1, 1); World.spawnTempGroundObject(new WorldObject(Utils.random(119, 119), 10, 0, tile.getX(), tile.getY(), tile.getPlane()), 592, 5000); player.getInventory().deleteItem(9940, 1); return; } if (itemId == 9934) { player.getPackets().sendGameMessage("You troll the nooblets with an origami balloon..."); final WorldTile tile = new WorldTile(player); if (!player.addWalkSteps(player.getX() - 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX() + 1, player.getY(), 1)) if (!player.addWalkSteps(player.getX(), player.getY() + 1, 1)) player.addWalkSteps(player.getX(), player.getY() - 1, 1); World.spawnTempGroundObject(new WorldObject(Utils.random(120, 120), 10, 0, tile.getX(), tile.getY(), tile.getPlane()), 592, 5000); player.getInventory().deleteItem(9934, 1); return; }[/CODE] (can also be put in drop option) Then in ObjectHandler.java locate "Oak" and paste this above or below it: [CODE] case "party balloon": if (objectDef.containsOption(0, "burst")) if(player.getX() != object.getX() || player.getY() != object.getY()) player.addWalkSteps(object.getX(), object.getY(), -1, false); player.setNextAnimation(new Animation(794)); player.getPackets().sendDestroyObject(object); player.setNextGraphics(new Graphics(1765)); player.getPackets().sendGameMessage("You just got trolled noob! Aint no free shit lmfao!!"); break;[/CODE] I really ma not sure if it was released before or whatever but i thought it could be reposted if anything but i just did this in seconds. I also know this could be revised and this is just a raw copy so don't be hatin.
  6. Hi, im having some trouble with 2 things, the first problem. what's really annoying is the dropping issue, its a rune-evo server with matrix client. If you want to destroy a item, i get a option do you really want to destory this item? yes,no. and if i die in PVP or by a NPC or a suicide/killcommand then you still have all your items in your inventory, everything is it possible. to remove the option to destroy items. and make them actually appear on the ground when you drop them. i got no file named Dropitem.Java as some people said. **pictures are below** The second issue is with many npc's dont got a attack nor death animation. i know that i need to give them the animation ID and the Death animation ID. but i have no clue where to find them. For the animations i do not ask simple spoonfeeding. if someone could just show me a file with a npc that got attack and death animations, then i can do the rest myself i only need a example. then i can do the rest myself ^^ only the drop item issue is a problem wich i cannot solve., **all help is appreciated** For normal contact skype: bjorn.schonenberg [ATTACH=CONFIG]8891[/ATTACH] [ATTACH=CONFIG]8892[/ATTACH] The item loss on death issue
  7. on my server i cant drop items. i can only destroy them, it doesnt matter what item it is i can only destroy thats it. I dont if it does that because of a dupe glitch or something but if someone helps me it would be appreciated. [ATTACH=CONFIG]8852[/ATTACH]
  8. Hey guys, I need some help with my 317(508 maps) PI server..npcs don't drop any items.. The server and client download was explicity and the NPCDrops in the TSM file look right : #Man drops 1:1 995:100 554:100 #Guard drops 9:1 995:200 555:100 I'm guessing there's a simple fix for this i'm just completely lost. I was wondering if there's just a way to enable npc drops. If there is I i have no idea where to find it and would greatly appreciate some help so thanks in advance.
  9. Before barrows were dropping the items, (which would break to 0 when dropped) and some random items such as runes or random herbs. I just wanted it to drop barrows, so I deleted the random drops, and changed the 0 drops to noted barrows Now barrows aren't dropping anything! Trust me I've killed well over 100 without a drop, so it's not just me. Anyone help?
  10. Hey guys, I really need some help with this. Ive looked all over Google, Bing and everything and I cant find it anywhere =( What I need is for the players to drop all the items they are wielding and have in their inventory on the ground when they die in Pvp. I know how to disable Pvp drops etc but I cant find out anywhere how to make the players drop their items. If you need the droploot of my Player.java its here: [SPOILER="Player.java"][CODE] public void dropLoot() { if(this.inSWGame()) { return; } if(this.inClanWars()) { return; } if(this.inDuelArena()) { return; } if(this.getLocation().getY() >= 4680 && this.getLocation().getY() <= 4730 && this.getLocation().getX() >= 2495 && this.getLocation().getX() <= 2520) { 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(p2, this.getLocation(), new Item(i.getId(), i.getAmount())); } } 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.inDuelArena()) { 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][/SPOILER] Thanks so much in advance guys!
  11. Hey guys, I really need some help with this. Ive looked all over Google, Bing and everything and I cant find it anywhere =( What I need is for the players to drop all the items they are wielding and have in their inventory on the ground when they die in Pvp. I know how to disable Pvp drops etc but I cant find out anywhere how to make the players drop their items. If you need the droploot of my Player.java its here: [SPOILER="Player.java"][CODE] public void dropLoot() { if(this.inSWGame()) { return; } if(this.inClanWars()) { return; } if(this.inDuelArena()) { return; } if(this.getLocation().getY() >= 4680 && this.getLocation().getY() <= 4730 && this.getLocation().getX() >= 2495 && this.getLocation().getX() <= 2520) { 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>() { [MENTION=15855]Over[/MENTION]ride 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(p2, this.getLocation(), new Item(i.getId(), i.getAmount())); } } 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.inDuelArena()) { 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][/SPOILER] Thanks so much in advance guys!
  12. well i changed my barrows minigame from the killcount then click chest to where they are just spawned ontop of the hills and u kill for drops, but it wont drop anything but charms, does anyone know what might be causing this? NPCDrops.TSM [CODE]#dharok 2026:55 995:15000 12158:1 12159:1 12160:1 12163:1 995:15000 4716:1 4718:1 4720:1 4722:1 #guthan 2027:55 995:15000 12158:1 12159:1 12160:1 12163:1 995:15000 4724:1 4726:1 4728:1 4730:1 #verac 2030:55 995:15000 12158:1 12159:1 12160:1 12163:1 995:15000 4716:1 4718:1 4720:1 4722:1 #karil 2028:55 995:15000 12158:1 12159:1 12160:1 12163:1 995:15000 4732:1 4734:1 4736:1 4738:1 #ahrim 2025:55 995:15000 12158:1 12159:1 12160:1 12163:1 995:15000 4708:1 4710:1 4712:1 4714:1 #torag 2029:55 995:15000 12158:1 12159:1 12160:1 12163:1 995:15000 4745:1 4747:1 4749:1 4751:1[/CODE] spawn-config.cfg [CODE]spawn = 2026 3576 3300 0 0 35 100 150 dharok spawn = 2026 3574 3299 0 0 35 100 150 dharok spawn = 2026 3575 3297 0 0 35 100 150 dharok spawn = 2026 3577 3297 0 0 35 100 150 dharok spawn = 2026 3578 3299 0 0 35 100 150 dharok spawn = 2027 3577 3285 0 0 35 100 150 guthan spawn = 2027 3579 3283 0 0 35 100 150 guthan spawn = 2027 3578 3281 0 0 35 100 150 guthan spawn = 2027 3576 3281 0 0 35 100 150 guthan spawn = 2027 3575 3283 0 0 35 100 150 guthan spawn = 2028 3566 3278 0 0 35 100 150 karil spawn = 2028 3567 3277 0 0 35 100 150 karil spawn = 2028 3565 3274 0 0 35 100 150 karil spawn = 2028 3564 3275 0 0 35 100 150 karil spawn = 2028 3563 3277 0 0 35 100 150 karil spawn = 2025 3563 3289 0 0 35 100 150 ahrim spawn = 2025 3565 3287 0 0 35 100 150 ahrim spawn = 2025 3567 3289 0 0 35 100 150 ahrim spawn = 2025 3567 3291 0 0 35 100 150 ahrim spawn = 2025 3564 3292 0 0 35 100 150 ahrim spawn = 2029 3555 3281 0 0 35 100 150 torag spawn = 2029 3552 3281 0 0 35 100 150 torag spawn = 2029 3552 3283 0 0 35 100 150 torag spawn = 2029 3553 3285 0 0 35 100 150 torag spawn = 2029 3555 3284 0 0 35 100 150 torag spawn = 2030 3556 3295 0 0 35 100 150 verac spawn = 2030 3558 3297 0 0 35 100 150 verac spawn = 2030 3557 3299 0 0 35 100 150 verac spawn = 2030 3555 3299 0 0 35 100 150 verac spawn = 2030 3555 3297 0 0 35 100 150 verac[/CODE]
  13. [CENTER]Many people confuse NPCDrops.TSM and NPCConstants.TSM for an NPC to always drop bones it's dealt in NPCConstants.tsm to do this is relatively easy. Step #1. Go To: Data/cfg/NPCConstants.TSM Right click it and Edit it. You'll see a shitload of numbers but don't let it scare ya. Ok so. For this example i'll be using: Al-Kharid Warriors to constantly drop bones. 18 526 18 = Al-Kharid Warriors NPC ID 526 = Normal Bones The space inbetween them is a Tab not Space if you space it it'll give errors upon start. And thats it! Hope you enjoyed :) [/CENTER]
  14. Well when you spawn an item like a null item like say [CODE]::item 14485 2147000000 [/CODE]it's not noted but because you spawned the max amount it can be pi has it coded it so it acts like a noted item and stay in one inv spot comes in handy when your spawn barrows gloves or something like that. But if you have a spawn server and any would ever spawn a null on your server of 2b and its not stackable and that person dropped it you server would crash. go to itemhandler.java find: [CODE]if (!server.model.items.Item.itemStackable[itemId] && itemAmount > 0) {[/CODE] replace it with: [CODE]if (!server.model.items.Item.itemStackable[itemId] && itemAmount == 1) {[/CODE] What this does is if the item amount is not 1 than it must means its 2 or higher so it will treat it as a noted item and not drop every single 2b of the unstackable items u have in your inventory.
  15. well basically when you kill a boss and move it doesn't drop loot i was wondering if there is a way to fix it:cool:
  16. I am using the method [CODE] public void dropItem(Player player, int slot, int itemId) { Item item = player.getInventory().getContainer().get(slot); ActionSender.sendMessage(player, "Dropping.."); if (item == null) { return; } player.getInventory().removeItems(item); GroundItemManager.createGroundItem(new GroundItem(player, item, player.getLocation(), false)); }[/CODE] Called from [CODE] if (opcode == 39) { dropItem(player, slot, itemId); return true; }[/CODE] In class InventoryListener.java I don't understand why It doesn't work, Unless it's the wrong opcode..
  17. I'm using the Eyrescape 562/639 Dementhium source, And you can't drop Items, Not even when you die will you drop items, How can I fix this? Please ask me if you need anymore information on the problem, and sorry I can't provide any now; I have no clue on what the problem could be caused by. Thanks so much in advance
  18. blik

    dropping items

    does anyone know where i can make it so people can drop items on the floor? i want it for drop partys
  19. fatmess

    pi 317 dropping ?

    ive made my 317 pi a spawn server and now i need to make it so donators and super donators dont drop items when they get killed or die ? the donators rights are 1 and the coding is [CODE]isDonator = 1[/CODE] and super donator is [CODE]isDonator = 2[/CODE] help please and il thank !
  20. Okay so when anyone ranked owner dies, they don't drop items on death which i want to change. Anyone know how to change this?
  21. t1a2m3o

    Dropping .

    Hey. I need help.I drop items, and dont see them. Monsters dont drop too items.Ask if you want to see some scripts. Plz,help me.:) ------------------------------------------------------------------------------------------------------------------------------------------ Player dropping work now, but monsters dont drop.
  22. try this.. took me ages to work it out.. if your using a hybrid pvp source the limit on npc's for dropping items is 7700 so go to npchandler.java search for 7700 and change it all to 10000 then save and compile then it all works... easy tutorial but many need it... thank if this was helpful much appreciated. ----------------- owner of torvazone -----------------
  23. How do I make admins able to trade? Also how do I enable dropping? Like when I drop, it disappears.
  24. at rock crabs the rock crabs will not drop normal bones , how do i fix these i m new to coding can some one help me out please ? (THIS IS PI!)
  25. Yeh I know alot of help threads. just somethings i need help with/ When I drop a item it vanishes, how do I make it so appear on ground? Also when I loot something from the ground, you have to go on the top of it, to actually get it, possible to click it and it runs and then click again to loot like other 562s? Please help
×