Jump to content

Search the Community

Showing results for tags 'drop'.



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

  1. I saw rare drops -snippet at r-s done by item ids, decided to help everyone out by doing this by item name, giving you ability to add much effectively rare drop announcements. Code is absolutely horrible but works, wrote this just in 2 minutes in a rush, didn't add this to my server at all but it works for sure. :) [CODE] public static final String SUPER_RARES[] = {"armadyl", "bandos", "godsword"}; public static final String RARES[] = {"dragon chainbody", "whip" , "of fury"};[/CODE] [CODE] public static final void announce(Client c, int id) { String item = ItemAssistant.getItemName(id).toString(); for (String superRares : SUPER_RARES) { if (item.toLowerCase().contains(superRares)) { for (int j = 0; j < PlayerHandler.players.length; j++) { if (PlayerHandler.players[j] != null) { Client c2 = (Client) PlayerHandler.players[j]; c2.sendMessage("@[email protected]"+c.playerName+" has received x1 "+item+" as a extreme rare drop!"); } } return; } } for (String rares : RARES) { if (item.toLowerCase().contains(rares)) { for (int j = 0; j < PlayerHandler.players.length; j++) { if (PlayerHandler.players[j] != null) { Client c2 = (Client) PlayerHandler.players[j]; c2.sendMessage("@[email protected]"+c.playerName+" has received x1 "+item+" as a rare drop."); } } } } }[/CODE]
  2. Matrix876

    Drop rates help

    Soo, I'm trying to change the drop rates on my server and I'm confused and need help. Also I'm fairly new so no hate thanks. Example [URL=http://www.runelocus.com/forums/usertag.php?do=list&action=hash&hash=king]#king[/URL] black dragon 1115 995 1500000 1 NPC ID ITEM ID AMOUNT RATE 1 being rare, 100 being everytime I think* but instead mine just says [URL=http://www.runelocus.com/forums/usertag.php?do=list&action=hash&hash=king]#king[/URL] black dragon 50:20 11335:1 NPC ID ITEMID&AMOUNT Please help me to understand thanks.
  3. Find this in npchandler.java public boolean rareDrops(int i) { Client c = (Client)Server.playerHandler.players[npcs[i].killedBy]; And just add this under: int rarity = 0; int ringOfWealth = 0; int npcDropRate = ((Integer)NPCDrops.dropRarity.get(Integer.valueOf(npcs[i].npcType))).intValue(); if(c.playerEquipment[c.playerRing] == 2572) { //As this gets higher the less chance of a rare drop. but more diverse drops. npcDropRate = 1+Misc.random(20); c.sendMessage("<shad=155653>Your ring of wealth helped your drop rate by "+npcDropRate+" "); } if(c.playerEquipment[c.playerRing] == 2572) { //Just make the rarity more or less intense as preffered. rarity = 1+Misc.random(20); c.sendMessage("<shad=155653>Your ring of wealth helped your rarity by "+rarity+" "); } if(c.playerEquipment[c.playerRing] == 15009) { //Drops rares always but increase rarity to get the best drops of all. rarity = 1+Misc.random(15); //Will increase how rare Server.itemHandler.createGroundItem(c, NPCDrops.rareDrops.get(npcs[i].npcType)[random][0], npcs[i].absX, npcs[i].absY, NPCDrops.rareDrops.get(npcs[i].npcType)[random][1], c.playerId); c.sendMessage("<shad=155653>Your Ring of Rarity helped your rarity by "+rarity+" "); } I know alot of people probaby have this but......someone might need it somewere
  4. Hi , Would anybody be able to help me in this question I Kill some NPCs in my server, but Sometimes if I move or eat the drop doesnt appear on the floor, what would be the cause of this?
  5. Hello Everyone, I would like to start off by saying that I'm new to java development. Me and a couple friends are just fooling around on Rune Evo 4 trying to learn how code works while playing our favorite game. So we recently started using Rune Evo 4. If you don't already know, Rune Evo 4 doesn't use the unpacked drops/spawns/prices like previous rune evo's. Instead you have to use these tools which allow you to edit prices, drops, ect. I have ran into a problem when attempting to run these tools... First is the DropEditor.bat. When I try to just run the bat I get this error: [QUOTE]Error: Could not find or load main class DropEditor.java Press any key to continue...[/QUOTE] If I attempt to run the DropEditor.java through eclipse then I get this error: [QUOTE]Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at com.foxtrot.utils.tools.DropEditor.<init>(DropEditor.java:67) at com.foxtrot.utils.tools.DropEditor$17.run(DropEditor.java:695) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.NullPointerException at com.foxtrot.Server.getSavePath(Server.java:145) at com.foxtrot.utils.NPCDrops.<clinit>(NPCDrops.java:17) ... 16 more[/QUOTE] This is quite frustrating because I can't edit any prices or drops... If anyone could please explain to me what I am doing wrong I would really appreciate it. I have attempted to google around and look at the code myself the past couple days but as I said I am newbie... Thank you to anyone who takes the time to read this. PS. I posted the DropEditor.java below if you wish to view it. [CODE]package com.foxtrot.utils.tools; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.IOException; import java.io.RandomAccessFile; import java.util.ArrayList; import java.util.Comparator; import java.util.Enumeration; import java.util.Map.Entry; import java.util.Random; import java.util.SortedMap; import java.util.TreeMap; import javax.swing.GroupLayout; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JPopupMenu; import javax.swing.JProgressBar; import javax.swing.JScrollPane; import javax.swing.JSeparator; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.JTree; import javax.swing.LayoutStyle; import javax.swing.SwingConstants; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.WindowConstants; import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; import javax.swing.table.DefaultTableModel; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.TreePath; import com.foxtrot.Server; import com.foxtrot.cache.Cache; import com.foxtrot.cache.loaders.ItemDefinitions; import com.foxtrot.cache.loaders.NPCDefinitions; import com.foxtrot.game.npc.Drop; import com.foxtrot.utils.NPCDrops; import com.foxtrot.utils.Utils; /** * @author Marvin */ public class DropEditor extends JFrame { private static final long serialVersionUID = 1L; private DefaultMutableTreeNode dropsNode = new DefaultMutableTreeNode("Drops"); private DefaultTreeModel dropsTreeModel = new DefaultTreeModel(dropsNode); private NPCDrops loader = new NPCDrops(); Random random = new Random(); private JMenuItem dumpSpecificDropMenuItem; private JProgressBar progressBar; private JPopupMenu tablePopup; private JMenuItem testItem; /** * Creates new form DropEditor */ public DropEditor() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { } try { Cache.init(); NPCDrops.init(); } catch (IOException e) { e.printStackTrace(); } SortedMap<Integer, ArrayList<Drop>> values = new TreeMap<Integer, ArrayList<Drop>>( new Comparator<Integer>() { [MENTION=15855]Over[/MENTION]ride public int compare(Integer o1, Integer o2) { if (o1 > o2) { return 1; } else if (o1 < o2) { return -1; } return 0; } }); values.putAll(loader.getDropArray()); loader.getDropArray().putAll(values); for (Entry<Integer, ArrayList<Drop>> s : loader.getDropArray().entrySet()) { dropsNode.add(new DefaultMutableTreeNode(s.getKey())); } initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" // desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { treeScroll = new JScrollPane(); dropsTree = new JTree(); searchField = new JTextField(); searchIdLabel = new JLabel(); middleSeparator = new JSeparator(); dropsPanel = new JPanel(); dropsForLabel = new JLabel(); headerSeparator = new JSeparator(); npcIdLabel = new JLabel(); tableScroll = new JScrollPane(); dropTable = new JTable(); tablePopup = new JPopupMenu(); testItem = new JMenuItem("Test Rate"); addNew = new JButton(); deleteSelected = new JButton(); repackDrop = new JButton(); scanButton = new JButton(); addNewButton = new JButton(); removeDrop = new JButton(); fileMenu = new JMenuBar(); jMenu1 = new JMenu(); scan = new JMenuItem(); dumpDropMenuItem = new JMenuItem(); dumpSpecificDropMenuItem = new JMenuItem(); progressBar = new JProgressBar(-1, Utils.getNPCDefinitionsSize()); progressBar.setStringPainted(true); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); setIconImage(new ImageIcon("./data/tools/icon.png").getImage()); setTitle(Server.getConfig().getServerName() + " Drop Editor"); dropsTree.setModel(dropsTreeModel); dropsTree.addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent evt) { dropsTreeValueChanged(evt); } }); treeScroll.setViewportView(dropsTree); searchField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { searchFieldActionPerformed(evt); } }); searchIdLabel.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N searchIdLabel.setText("Search ID:"); middleSeparator.setOrientation(SwingConstants.VERTICAL); dropsForLabel.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N dropsForLabel.setText("Drops for NPC ID:"); npcIdLabel.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N npcIdLabel.setText(" "); dropTable.setModel(new DefaultTableModel(new Object[][] {}, new String[] {})); testItem.addActionListener(new ActionListener() { [MENTION=15855]Over[/MENTION]ride public void actionPerformed(ActionEvent arg0) { testDropRate(arg0); } }); tablePopup.add(testItem); dropTable.addMouseListener(new MouseListener() { [MENTION=15855]Over[/MENTION]ride public void mouseClicked(MouseEvent arg0) { if (arg0.getButton() == MouseEvent.BUTTON3) { int row = dropTable.rowAtPoint(arg0.getPoint()); dropTable.changeSelection(row, dropTable.getSelectedColumn(), false, false); tablePopup.show(dropTable, arg0.getX(), arg0.getY()); } } [MENTION=15855]Over[/MENTION]ride public void mouseEntered(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseExited(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mousePressed(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseReleased(MouseEvent arg0) { // TODO Auto-generated method stub } }); tableScroll.setViewportView(dropTable); addNew.setText("Add New Drop"); addNew.addActionListener(new ActionListener() { [MENTION=15855]Over[/MENTION]ride public void actionPerformed(ActionEvent evt) { addNewActionPerformed(evt); } }); deleteSelected.setText("Delete Selected Drop"); deleteSelected.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { deleteSelectedActionPerformed(evt); } }); repackDrop.setText("Repack"); repackDrop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { repackDropActionPerformed(evt); } }); scanButton.setText("Scan"); scanButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { scanListActionPerformed(evt); } }); GroupLayout dropsPanelLayout = new GroupLayout(dropsPanel); dropsPanel.setLayout(dropsPanelLayout); dropsPanelLayout .setHorizontalGroup(dropsPanelLayout .createParallelGroup( GroupLayout.Alignment.LEADING) .addGroup( GroupLayout.Alignment.TRAILING, dropsPanelLayout .createSequentialGroup() .addContainerGap() .addGroup( dropsPanelLayout .createParallelGroup( GroupLayout.Alignment.TRAILING) .addComponent( headerSeparator, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 424, Short.MAX_VALUE) .addGroup(GroupLayout.Alignment.LEADING, dropsPanelLayout.createSequentialGroup().addComponent(dropsForLabel) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(npcIdLabel, GroupLayout.PREFERRED_SIZE, 200, GroupLayout.PREFERRED_SIZE)) .addComponent( tableScroll, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 424, Short.MAX_VALUE) .addGroup(GroupLayout.Alignment.LEADING,dropsPanelLayout.createSequentialGroup() .addComponent(addNew, GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(deleteSelected,GroupLayout.DEFAULT_SIZE,101,Short.MAX_VALUE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(repackDrop, GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) //.addComponent(scanButton, GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE) //.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addContainerGap())))); dropsPanelLayout .setVerticalGroup(dropsPanelLayout .createParallelGroup( GroupLayout.Alignment.LEADING) .addGroup( dropsPanelLayout .createSequentialGroup() .addGroup( dropsPanelLayout .createParallelGroup( GroupLayout.Alignment.BASELINE) .addComponent( dropsForLabel) .addComponent( npcIdLabel)) .addPreferredGap( LayoutStyle.ComponentPlacement.RELATED) .addComponent( headerSeparator, GroupLayout.PREFERRED_SIZE, 9, GroupLayout.PREFERRED_SIZE) .addPreferredGap( LayoutStyle.ComponentPlacement.UNRELATED) .addComponent( tableScroll, GroupLayout.DEFAULT_SIZE, 327, Short.MAX_VALUE) .addPreferredGap( LayoutStyle.ComponentPlacement.RELATED) .addGroup( dropsPanelLayout .createParallelGroup( GroupLayout.Alignment.BASELINE) .addComponent(addNew) .addComponent( deleteSelected) .addComponent( repackDrop)) .addContainerGap())); addNewButton.setText("Add New NPC Drop"); addNewButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addNewButtonActionPerformed(evt); } }); removeDrop.setText("Remove NPC Drop"); removeDrop.setToolTipText("Removes the currently Selected NPC Drop"); removeDrop.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeDropActionPerformed(evt); } }); jMenu1.setText("File"); scan.setText("Scan for High Amounts"); scan.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { scanListActionPerformed(evt); } }); jMenu1.add(scan); dumpDropMenuItem.setText("Dump all monster drops"); dumpDropMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { dumpDropMenuItemActionPerformed(evt); } }); jMenu1.add(dumpDropMenuItem); dumpSpecificDropMenuItem.setText("Dump specific monster drop"); dumpSpecificDropMenuItem .addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { dumpSpecificDropMenuItemActionPerformed(evt); } }); jMenu1.add(dumpSpecificDropMenuItem); fileMenu.add(jMenu1); setJMenuBar(fileMenu); GroupLayout layout = new GroupLayout( getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout .createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup( layout.createSequentialGroup() .addContainerGap() .addGroup( layout.createParallelGroup( GroupLayout.Alignment.LEADING, false) .addComponent( removeDrop, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup( layout.createSequentialGroup() .addComponent( searchIdLabel) .addPreferredGap( LayoutStyle.ComponentPlacement.UNRELATED) .addComponent( searchField, GroupLayout.PREFERRED_SIZE, 67, GroupLayout.PREFERRED_SIZE)) .addComponent( progressBar, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent( treeScroll, GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE) .addComponent( addNewButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap( LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(middleSeparator, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(dropsPanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addContainerGap())); layout.setVerticalGroup(layout .createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup( layout.createSequentialGroup() .addGroup( layout.createParallelGroup( GroupLayout.Alignment.TRAILING) .addGroup( GroupLayout.Alignment.LEADING, layout.createSequentialGroup() .addContainerGap() .addGroup( layout.createParallelGroup( GroupLayout.Alignment.LEADING) .addComponent( dropsPanel, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent( middleSeparator, GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE))) .addGroup( layout.createSequentialGroup() .addGap(15, 15, 15) .addComponent( treeScroll) .addPreferredGap( LayoutStyle.ComponentPlacement.RELATED) .addComponent( addNewButton) .addPreferredGap( LayoutStyle.ComponentPlacement.RELATED) .addComponent( removeDrop) .addPreferredGap( LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout.createParallelGroup( GroupLayout.Alignment.TRAILING) .addComponent( searchIdLabel) .addComponent( searchField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap( LayoutStyle.ComponentPlacement.RELATED) .addComponent( progressBar, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))) .addContainerGap())); pack(); }// </editor-fold>//GEN-END:initComponents protected void testDropRate(ActionEvent arg0) { ArrayList<Drop> drops = loader.getDropArray().get( Integer.parseInt(dropsTree.getLastSelectedPathComponent().toString())); Drop drop = drops.get(dropTable.getSelectedRow()); String testAmount = JOptionPane.showInputDialog(this, "Enter the amount of times you want to test(0 to test till it drops)"); int testAmt = 0; try { testAmt = Integer.parseInt(testAmount); } catch (Exception e) { testAmt = 0; } if (testAmt > 0) { int successfullDrops = 0; for (int i = 0; i < testAmt; i++) { int chance = random.nextInt(100); if (chance <= drop.getRate()) { successfullDrops++; } } JOptionPane.showMessageDialog(this, "Received the drop " + successfullDrops + " out of " + testAmt + " times"); } else { boolean didntReceive = true; int times = 0; while (didntReceive) { int chance = random.nextInt(100); if (chance <= drop.getRate()) { didntReceive = false; } else { times++; } } JOptionPane.showMessageDialog(this, "Received the drop after " + times + " times"); } } protected void dumpSpecificDropMenuItemActionPerformed(ActionEvent evt) { try { //dump(Integer.parseInt(JOptionPane.showInputDialog(this, "Enter the NPC ID"))); } catch (Exception e) { e.printStackTrace(); } } protected void dumpDropMenuItemActionPerformed(ActionEvent evt) { Thread dumpThread = new Thread() { int index = -1; public void run() { while (index < Utils.getNPCDefinitionsSize()) { try { progressBar.setString(NPCDefinitions.getNPCDefinitions(index).name); //dump(index); index++; progressBar.setValue(index); Thread.sleep(1); } catch (Exception e) { System.out.println("Problem with npc id " + index + "."); index++; progressBar.setValue(index); } } packFile(); progressBar.setString(""); progressBar.setValue(-1); } }; dumpThread.start(); } public DefaultMutableTreeNode searchNode(String nodeStr) { DefaultMutableTreeNode nodeToSearch = null; Enumeration<?> e = dropsNode.breadthFirstEnumeration(); while (e.hasMoreElements()) { nodeToSearch = (DefaultMutableTreeNode) e.nextElement(); if (nodeStr.equals(nodeToSearch.getUserObject().toString())) { return nodeToSearch; } } return null; } private void searchFieldActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_searchFieldActionPerformed try { DefaultMutableTreeNode n = searchNode(searchField.getText()); TreePath path = new TreePath(dropsTreeModel.getPathToRoot(n)); dropsTree.scrollPathToVisible(path); dropsTree.setSelectionPath(path); } catch (Exception e) { JOptionPane.showMessageDialog(this, "Could not find the item."); } }// GEN-LAST:event_searchFieldActionPerformed private void dropsTreeValueChanged(TreeSelectionEvent evt) {// GEN-FIRST:event_dropsTreeValueChanged if (dropsTree.getLastSelectedPathComponent() != null && !"Drops".equals(dropsTree.getLastSelectedPathComponent() .toString())) { loadDrop(Integer.parseInt(dropsTree.getLastSelectedPathComponent() .toString())); } }// GEN-LAST:event_dropsTreeValueChanged private void deleteSelectedActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_deleteSelectedActionPerformed try { int npcID = Integer.parseInt(dropsTree .getLastSelectedPathComponent().toString()); ArrayList<Drop> drops = loader.getDropArray().get(npcID); drops.remove(dropTable.getSelectedRow()); Drop[] d = new Drop[drops.size()]; drops.toArray(d); loader.getDropMap().put(npcID, d); loadDrop(Integer.parseInt(dropsTree.getLastSelectedPathComponent() .toString())); } catch (NullPointerException e) { JOptionPane.showMessageDialog(this, "Please select a drop first!"); } }// GEN-LAST:event_deleteSelectedActionPerformed private void addNewActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_addNewActionPerformed // try { int npcid = Integer.parseInt(dropsTree.getLastSelectedPathComponent() .toString()); // ArrayList<Drop> drops = loader.getDropArray().get(npcid); loader.insertDrop(npcid, Drop.create(Integer.parseInt(JOptionPane .showInputDialog("Please enter the item ID for this drop.")), (int) 100.0, 1, 1, false)); loadDrop(npcid); // } catch (NullPointerException e) { // JOptionPane.showMessageDialog(this, "Please select a drop first!"); // } }// GEN-LAST:event_addNewActionPerformed private void addNewButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_addNewButtonActionPerformed String id = JOptionPane .showInputDialog("Please enter the NPC ID for this drop."); if (id == null) { id = "0"; } loader.getDropArray().put(Integer.parseInt(id), new ArrayList<Drop>()); packFile(); }// GEN-LAST:event_addNewButtonActionPerformed private void removeDropActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_removeDropActionPerformed try { if (!dropsTree.getLastSelectedPathComponent().toString().equals("")) { loader.getDropMap().remove( Integer.parseInt(dropsTree .getLastSelectedPathComponent().toString())); packFile(); } } catch (NullPointerException e) { JOptionPane.showMessageDialog(this, "Please select a drop first!"); } }// GEN-LAST:event_removeDropActionPerformed private void repackDropActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_repackDropActionPerformed packFile(); }// GEN-LAST:event_repackDropActionPerformed private void scanListActionPerformed(ActionEvent evt) { System.out.println("Started Scanning."); final int amountToFind = 100; java.awt.EventQueue.invokeLater(new Runnable() { public void run() { for (Entry<Integer, ArrayList<Drop>> e : loader.getDropArray().entrySet()) { int npcId = e.getKey(); for (Drop d : e.getValue()) { if (d.getMinAmount()> amountToFind && d.getMaxAmount() > amountToFind) { System.out.println("NPC Id:"+npcId+""); System.out.println("Item Id: "+d.getItemId()+""); System.out.println("Min Amount: "+Utils.formatNumber(d.getMinAmount())+""); System.out.println("Max Amount: "+Utils.formatNumber(d.getMaxAmount())+""); System.out.println("---------------------------------------------------------------------------------------"); } } } System.out.println("Scanning Completed."); } }); } /** * [MENTION=75098]Para[/MENTION]m args * the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new DropEditor().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private JButton addNew; private JButton addNewButton; private JButton deleteSelected; private JTable dropTable; private JLabel dropsForLabel; private JPanel dropsPanel; private JTree dropsTree; private JMenuItem scan; private JMenuItem dumpDropMenuItem; private JMenuBar fileMenu; private JSeparator headerSeparator; private JMenu jMenu1; private JSeparator middleSeparator; private JLabel npcIdLabel; private JButton removeDrop; private JButton repackDrop; private JButton scanButton; private JTextField searchField; private JLabel searchIdLabel; private JScrollPane tableScroll; private JScrollPane treeScroll; // End of variables declaration//GEN-END:variables private void loadDrop(final int npcId) { npcIdLabel.setText(Integer.toString(npcId) + " " + NPCDefinitions.getNPCDefinitions(npcId).name); ArrayList<Drop> drops = loader.getDropArray().get(npcId); DefaultTableModel model = new DefaultTableModel(); model.addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { try { if (e.getColumn() != -1) { if (dropTable.getValueAt(dropTable.getSelectedRow(), 0).equals("Rare")) { loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setItemId((short) -1); loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setRate(-1); loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setMinAmount(1); loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setMaxAmount(1); } else { loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setItemId(Short.parseShort((String) dropTable.getValueAt(dropTable.getSelectedRow(), 0).toString())); loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setRate(Double.parseDouble((String) dropTable.getValueAt(dropTable.getSelectedRow(),1).toString())); String amount = (String) dropTable.getValueAt(dropTable.getSelectedRow(), 2); if (amount.contains("-")) { loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setMinAmount(Integer.parseInt(amount.substring(0, amount.indexOf("-")))); loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setMaxAmount(Integer.parseInt(amount.substring(amount.indexOf("-") + 1))); } else { loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setMinAmount(Integer.parseInt(amount)); loader.getDropArray().get(npcId).get(dropTable.getSelectedRow()).setMaxAmount(Integer.parseInt(amount)); } } } } catch (Exception f) { f.printStackTrace(); } } }); model.addColumn("Item ID"); model.addColumn("Percent Chance"); model.addColumn("Amount"); for (Drop d : drops) { if (d == null) { continue; } if (!d.isFromRareTable()) { model.addRow(new Object[] { (d.getItemId()), Double.toString(d.getRate()), Integer.toString(d.getMinAmount()) + (d.getMinAmount() == d.getMaxAmount() || d.getMaxAmount() == 0 ? "" : "-" + d.getMaxAmount()) }); } else { model.addRow(new Object[] { "Rare", "100.0", "1" }); } } dropTable.setModel(model); } private void packFile() { try { // //drops.bin RandomAccessFile raf = new RandomAccessFile("data/npcs/packedDrops.d", "rw"); raf.writeShort(loader.getDropMap().size()); for (Entry<Integer, ArrayList<Drop>> e : loader.getDropArray().entrySet()) { raf.writeShort(e.getKey()); raf.writeShort(e.getValue().size()); for (Drop d : e.getValue()) { raf.writeByte(d.isFromRareTable() ? 1 : 0); if (!d.isFromRareTable()) { int itemID = d.getItemId(); if (ItemDefinitions.getItemDefinitions(itemID).getName().equals("Coins")) { itemID = 995; } raf.writeShort(itemID); raf.writeDouble(d.getRate()); if (d.getMinAmount() > d.getMaxAmount()) { int min = d.getMinAmount(); d.setMinAmount(d.getMaxAmount()); d.setMaxAmount(min); } raf.writeInt(d.getMinAmount()); raf.writeInt(d.getMaxAmount()); } } } raf.close(); System.out.println("Repacking succesful!"); } catch (IOException ex) { System.err.println(ex); } reload(); } private void reload() { dropsNode.removeAllChildren(); // loader = new NPCDropLoader(); // loader.load(); for (Entry<Integer, ArrayList<Drop>> s : loader.getDropArray() .entrySet()) { dropsNode.add(new DefaultMutableTreeNode(s.getKey())); } dropsTreeModel.reload(dropsNode); } } [/CODE]
  6. This is what i have right now. [CODE]int random2 = Misc.random(20); int randomz2 = Misc.random(5); if(random2 == 10) { if (randomz2 == 0) { Server.itemHandler.createGroundItem(o, 14876, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved THE EPIC PvP artifact. Talk to Collector!"); } if (randomz2 == 1)//demise { Server.itemHandler.createGroundItem(o, 14877, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 2) { Server.itemHandler.createGroundItem(o, 14878, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 3) { Server.itemHandler.createGroundItem(o, 14879, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 4) { Server.itemHandler.createGroundItem(o, 14880, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } if (randomz2 == 5) { Server.itemHandler.createGroundItem(o, 14881, c.getX(), c.getY(), 1, c.killerId); o.sendMessage("@[email protected]! you recieved a PvP artifact drop! Talk to Collector!"); } } } }[/CODE] how could i add another item that has a drop rate on 1/250? :)
  7. I was wondering how to edit drop tables in 498, For example if I want to edit the drop table for KBD with NPC ID 50, Using eclipse I go into the npc drop list folder, open 50.txt where all of the KBD drops are listed, edit this list, save it and then compile, however nothing saves. I edit some items to drop 100% of the time to check it is updating the drop table but it isn't. Any Ideas?
  8. 718/742 source Hey there I got the following proplem and cant seem to figure out how to fix it. For example sergeant steelwill has a chance to drop 3 sharks when killed. If I get that drop the drop pile only shows 1 shark in the pile, but when I pick it up, it picks up 3 like it should. Now I want to fix it so it shows up 3 sharks in the drop pile. I've been looking through: NPC.java (sendDrop method), Drop.java, and every .java that has the word: groundItem in it... If anyone could point me in the right direction I would greatly appreciate it.
  9. [SIZE=6]The Runescape Drop Simulator[/SIZE] [FONT=Arial Narrow]Hello guys. And welcome to my thread. This is going to be my new project i am working in. Its a old school drop simulator. First let me start of by saying these are not 100% accurate. But i do my best to make them accurate. Let me also say that this will take some time to make. I am writting with javaFx so expect a beautiful interface :). I am making this for experience aswell so no hate right? There will be 2 versions of this: Offline Version - This will be a much larger application. It will only rely on whats in the jar. This will be one that needs to be updated to get the drop list. Online Version - This will be a very small and lightweight application. It will rely on being connected to the internet to download images and place them in the app. [B]Source code [/B]([SIZE=2][COLOR="#FF0000"]Beta[/COLOR][/SIZE]): [url=https://github.com/OptimumLTD/RS-Drop-Tool]Rs drop tool[/url] [B][SIZE=3]Download now:[/SIZE][/B] [url=https://dl.dropboxusercontent.com/s/k0ifxtiam9oq94w/Runescape%20Drop%20Simulator.zip?dl=0]Runescape Drop Simulator.zip[/url] [SIZE=6]What is a drop simulator?[/SIZE] The whole purpose of a drop simulator is to simulate the killing of an npc. Basically you will put in either the id of the npc or the name of the npc and this program will simulate you killing the npc. Pick up all it's loot and put it in the bank for you. But obviously all the loots/items will be within the application and not actual in your bank on osrs. [SIZE=6]Why[/SIZE] All the times that i played runescape i have always wondered 'Is it worth it killing that many .....' So i will maybe make a drop simulator and give back to the community that i actually loved. Initial design: [img]http://i.imgur.com/8yyXqSJ.png[/img] Progress - [spoiler=images] [img]http://i.imgur.com/wwkWVWC.png[/img] [IMG]http://i.imgur.com/AKXUQiL.gif[/IMG] [img]http://i.imgur.com/OVuSp2w.gif[/img] new looting system implemented: [img]http://i.imgur.com/rXvG0wI.png[/img] More changes to labels [img]http://i.imgur.com/dZmsgrh.png[/img] hovers for real values: [img]http://i.imgur.com/T81b6DX.png[/img] multi supporting labels with new lines [img]http://i.imgur.com/zE53q60.png[/img] new label system added. [img]http://i.imgur.com/6f2bUSE.png[/img] [img]http://i.imgur.com/ifoynhb.png[/img] [img]http://i.imgur.com/fWOCGtG.png[/img] [/spoiler] Please send me all your feedback of what you think can be changes[/FONT]
  10. [I]I am not sure if this is the correct section, if not could a mod please move this.[/I] [CENTER][IMG]http://i.imgur.com/CMxPzZN.png[/IMG] [IMG]http://i.imgur.com/sIZF1YP.png[/IMG] Before anything I would like to give credits to mige5, due to the layout he used in his drop editor. Firstly I know this is "easy" but I couldn't find a decent drop editor for my server so I made this. Drop Editor is currently in version 0.01 (Beta) There are most likely many, many bugs as I haven't had a chance to test it extensively. Please post bugs you find and I will fix them as soon as I get a chance Make sure to read the instructions before using the tool. (Instructions will be the post under this one) [B]This tool can:[/B] [LIST] [*]Visually represent an NPC's drop log [*]Change the items droped by an NPC [*]Change the rare drop ratio for an NPC [*]Simulate the drop patterns of an NPC [/LIST] [IMG]http://i.imgur.com/s8d0f6x.png[/IMG] You must have your [B][I]npc.cfg[/I][/B], [B][I]item.cfg[/I][/B] and [B][I]NPCDrops.TSM[/I][/B] in the same folder with the exact names shown here: [IMG]http://i.imgur.com/xWkxjgA.png[/IMG] It is written in C# so it requires the .net framework It reads the files in the following format: [SPOILER=Formats]npc.cfg [CODE] npc = 3247 Hobgoblin 47 51 npc = 6270 Cyclops 81 80 npc = 6215 Bloodveld 81 125 npc = 6219 Spiritual_Warrior 115 110 npc = 6255 Spiritual_Warrior 125 108 npc = 6229 Spiritual_Warrior 123 105 npc = 6277 Spiritual_Warrior 134 108 npc = 6233 Avansie 97 98 npc = 6232 Avansie 131 115 npc = 6239 Avansie 148 140 npc = 6218 Gorak 146 112 npc = 6269 Ice_Cyclops 146 300 [/CODE] item.cfg [CODE] item = 19323 Dragon_staff This_fire_staff_displays_the_carved_head_of_a_majestic_dragon. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19324 Dragon_staff This_fire_staff_displays_the_carved_head_of_a_majestic_dragon. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19325 Penguin_staff This_water_staff_displayed_the_carved_head_of_a_proud_penguin. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19326 Penguin_staff This_water_staff_displayed_the_carved_head_of_a_proud_penguin. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19327 Bat_staff This_air_staff_displays_the_carved_head_of_a_fierce_bat. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19328 Bat_staff This_air_staff_displays_the_carved_head_of_a_fierce_bat. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19329 Wolf_staff This_earth_staff_displays_the_carved_head_of_a_fearsome_wolf. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19330 Wolf_staff This_earth_staff_displays_the_carved_head_of_a_fearsome_wolf. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19331 Cat_staff This_staff_displays_the_carved_head_of_an_inquisitive_cat. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19332 Cat_staff This_staff_displays_the_carved_head_of_an_inquisitive_cat. 0 0 0 10 -1 40 10 0 2 3 1 10 0 50 6 item = 19333 Fury_ornament_kit Use_on_an_amulet_of_fury_to_make_it_look_fancier. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 item = 19334 Fury_ornament_kit Use_on_an_amulet_of_fury_to_make_it_look_fancier. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 item = 19335 Amulet_of_fury A_very_powerful_onyx_amulet. 0 0 0 10 10 10 10 10 15 15 15 15 15 8 5 item = 19336 Dragon_full_helm Protects_your_head_and_looks_impressive_too. 0 0 0 0 0 0 -6 -2 45 48 41 -1 46 0 0 item = 19337 Dragon_platebody Provides_excellent_protection. 0 0 0 0 0 0 -30 0 109 107 97 -6 106 0 0 item = 19338 Dragon_platelegs looks_pretty_heavy. 0 0 0 0 0 0 -21 -7 68 66 63 -4 65 0 0 item = 19339 Dragon_plateskirt This_looks_pretty_heavy. 0 0 0 0 0 0 -21 -7 68 66 63 -4 65 0 0 [/CODE] NPCDrops.TSM [CODE] #Tzhaar 2607:50 1602:2 1604:2 1608:2 379:3 6529:350 149:1 161:1 1127:1 1147:1 1213:1 1113:1 560:200 6571:1 6568:1 6524:1 6522:10 6525:1 6526:1 11128:1 989:1 #Green Dragons 941:50 1161:1 561:30 554:100 209:2 1355:1 1462:1 1247:1 1608:2 450:2 995:1000 1197:1 1213:1 1602:1 555:100 365:2 217:2 201:2 563:10 1243:1 1163:1 1365:1 1606:3 119:2 207:2 561:10 830:5 1069:1 1604:2 2366:1 2679:1 1249:1 989:1 11732:1 11095:1 #black dragons 54:75 2362:4 9594:2 561:60 2364:2 1123:1 11212:20 565:30 554:100 1373:1 1303:1 1618:3 556:75 995:5000 1319:1 1113:1 443:100 1622:3 810:16 1452:1 1355:1 561:70 892:73 868:5 1185:1 886:175 1620:3 829:30 560:50 563:47 1369:1 1462:1 1201:1 1247:1 1608:3 2366:1 2679:1 1149:1 989:1 11732:1 11095:1 #Fire giants 110:50 1147:1 9594:2 561:30 560:150 562:150 554:500 561:100 995:1200 892:150 1079:1 1127:1 1163:1 1185:1 1303:1 1319:1 1373:1 1436:100 1249:1 2366:1 1149:1 4131:1 989:1 2678:1 11732:1 #Moss Giants 112:50 1213:1 9594:2 1247:1 995:500 560:150 555:150 892:150 805:10 1618:2 1620:2 1622:2 1624:2 9594:2 2366:1 2678:1 [/CODE] Example downloads: [URL="http://www.mediafire.com/download.php?7dnb1d38wcm8w41"]npc.cfg[/URL], [URL="http://www.mediafire.com/download.php?ra5wnwyw8xsv18q"]item.cfg[/URL] and [URL="http://www.mediafire.com/download.php?8ejax3j8xl8ftrx"]NPCDrops.TSM[/URL] [/SPOILER] [IMG]http://i.imgur.com/19PODdU.png[/IMG] [IMG]http://i.imgur.com/MVJKO5I.png[/IMG] [IMG]http://i.imgur.com/WYLbgSg.png[/IMG] [IMG]http://i.imgur.com/JMHQpjt.png[/IMG] [CODE] Version 0.0.1 - 15/5/2013 -First Release! Version 1.0.2 - 1/6/2013 - Out of beta - Re-optimized utilizing lists (Should be some-what faster) - Added a save prompt when closing Version 1.0.3 - 6/6/2013 - Added Drag and Drop functionality - Added the ability to custom load your NPCDrops.TSM file - Fixed a cosmetic bug where it would misread the npc.cfg and item.cfg files - Added the ability to quickly add random items from runescape's rare drop table [/CODE] [IMG]http://i.imgur.com/DnCMuXY.png[/IMG] [URL="https://www.virustotal.com/en/file/6d79c94e69e66a89ed0247215ca3b551decad5d56969bbfe34e089726b1f567e/****ysis/1370774564/"]Virus Scan[/URL] (Click the link then look for **** in the url and change it to a n a l (no spaces) [URL="http://www.mediafire.com/download/t6gbtdo2xi1toso/DropEditor_V2(1.0.3).exe"]Version 1.0.3[/URL] [SPOILER=Previous versions] [URL="https://www.virustotal.com/en/file/75b322d4e9e813febe9a08a1421f1923fdb242564d5110d88cf259870fe7f3b5/****ysis/1370083561/"]Virus Scan[/URL] (Click the link then look for **** in the url and change it to a n a l (no spaces) [URL="http://www.mediafire.com/download/ymrmj64ht6z21ia/DropEditor_V2(1.02).exe"]Version 1.0.2[/URL] [URL="https://www.virustotal.com/en/file/d98984602e4aef428a09ee445e1fc7afc952e220e0b98f6ce42852856667c531/****ysis/1368614071/"]Virus Scan[/URL] (Click the link then look for **** in the url and change it to a n a l (no spaces) [URL="http://www.mediafire.com/download/w9c743wm3sxhs1a/DropEditor_V2(Beta).exe"]Version 0.0.1[/URL][/SPOILER] [/CENTER]
  11. Thread will be updated as I continue to build onto this. :) Drop Log: [url]https://www.youtube.com/watch?v=-F1rChBmsn0[/url] Edit: Player can now search other players' logs. [img]http://puu.sh/9lfdN/6c4f744a90.jpg[/img] Edit 2: Now shows the item in an interface! [img]http://puu.sh/9xbXP/349aa7f4a8.jpg[/img] Edit 3: Now supports 45 slots, will include all 215 eventually. Ignore the Dwarf Remains that the item for ID 0. (meaning the player doesn't have that many rare drops yet) [img]http://puu.sh/9yA30/60dd4fe129.jpg[/img]
  12. Running a 667 server beastpk source, it will not let me drop items, anyway i can fix this? thanks would appreciate some help:)
  13. i have changed [CODE]public void dropItemsOnDeath() { if (getDifficulty() > 3) { sendItemsOnDeath(this); } }[/CODE] to [CODE]public void dropItemsOnDeath() { if (getDifficulty() > 0) { sendItemsOnDeath(this); } }[/CODE] No Luck Anyone who dies will keep their stuff even if they get killed in wildy, or unsafe clan wars or anywhere else. no one ever drops their stuff when they die. i have looked everywhere in player.java and nothing. I'm not asking for someone to spoon feed me, I'm asking if someone know where I can find the coding that needs to be changed so everyone drops their stuff. it's wierd how if you die from the corporeal beast, you drop your items if you die and they are placed on the ground where you died. anywhere else, no luck. Again, I'm looking to learn. Not for someone to spoon feed me. Thanks for your time!
  14. How do I make it when you kill a PLAYER, only a certain array of items are dropped, and everything else the dead player keeps?
  15. So Yeah... I tried again today to use drop editor and i tried also ask another sites how to fix and they only said i don't have Dropeditor.Java But i got it on Com/rs/tools... Still this message comes [code] Error: Could not find or load main class com.rs.tools.dropeditor [/code] I tried also use eclipse but somehow my source comes into syntax if i open source on eclipse... Anyone know what i can do for this ?
  16. When a player is killed in wild, the loot doesn't appear. You have to wait 30 seconds for loot to appear and you also don't get the kill. Why?
  17. [IMG]http://i59.tinypic.com/2ut4wnr.png[/IMG] i got this error can somone can help? but before it works but have problem when i change item chance to get i repack reload and it goes back to 100%:( can somone help
  18. [Delta] Items drop to the ground when you die Hello, In my rsps when you die, you keep 3 items, and the rest disappears. My players started to nag about it, so I spent about 2 hours trying to fix it but couldn't. I want the rest of the items (except the 3) to be left (dropped) on the ground where you died, like rs or a lot of rsps's around here. This is my whole youdie() method: [CODE]public void youdied() { if(playerHasItem(5509)){ deleteItem(5509, 1); } if(playerHasItem(5510)){ deleteItem(5510, 1); } if(playerHasItem(5512)){ deleteItem(5512, 1); } if(playerHasItem(5514)){ deleteItem(5514, 1); } if(playerHasItem(6570)){ keep6570 = true; deleteItem(6570, 1); } if (!isSkulled) { keepItemHandle(); } if (ProtItem) { applyProtectItemProt(); } for(int rr=0; rr<playerItems.length; rr++) { try { if(playerItems[rr] > 0 && playerItems[rr] < 11999) { //createItem(currentX,currentY,playerItems[rr]-1); replaceBarrows(); //server.checkPlayerCapes.checkDrop(this); ItemHandler.addItem(playerItems[rr]-1, absX, absY, playerItemsN[rr], KillerId, false); //createGroundItem(playerItems[rr]-1, absX, absY, playerItemsN[i]); deleteItem(playerItems[rr]-1, getItemSlot(playerItems[rr]-1), playerItemsN[rr]); } } catch(Exception e) { } } for(int r=0; r<playerEquipment.length; r++) { try { int item = playerEquipment[r]; if((item > 0) && (item < 11999)) { remove(item, r); } } catch(Exception e) { sM("ERROR: Removing Equipment"); } } if(playerHasItem(5509)){ deleteItem(5509, 1); } if(playerHasItem(5510)){ deleteItem(5510, 1); } if(playerHasItem(5512)){ deleteItem(5512, 1); } if(playerHasItem(5514)){ deleteItem(5514, 1); } if(playerHasItem(6570)){ keep6570 = true; deleteItem(6570, 1); } for(int rr=0; rr<playerItems.length; rr++) { try { if(playerItems[rr] > 0 && playerItems[rr] < 11999) { //createItem(currentX,currentY,playerItems[rr]-1); replaceBarrows(); //server.checkPlayerCapes.checkDrop(this); ItemHandler.addItem(playerItems[rr]-1, absX, absY, playerItemsN[rr], KillerId, false); //createGroundItem(playerItems[rr]-1, absX, absY, playerItemsN[i]); deleteItem(playerItems[rr]-1, getItemSlot(playerItems[rr]-1), playerItemsN[rr]); } } catch(Exception e) { } } try { } catch(Exception e) {} ItemHandler.addItem(526, absX, absY, 1, KillerId, false); try { } catch(Exception e) {} if (itemKept1 > 0) addItem(itemKept1, 1); if (itemKept2 > 0) addItem(itemKept2, 1); if (itemKept3 > 0) addItem(itemKept3, 1); if (itemKept4 > 0) addItem(itemKept4, 1); if (keep6570) { addItem(6570, 1); keep6570 = false; } resetKeepItem(); hitDiff = 0; updateRequired = true; appearanceUpdateRequired = true; } [/CODE] I tried un-commenting the [CODE]creategrounditem[/CODE] but it didn't work.
  19. i need help making items drop on death
  20. Okay so i download The Starterpack From runelocus I can spawn Npc But when i wanne change drop rate I get this wierd file Every Guide on youtube Has it something Like this npc = 125 5 10 Something like that But i get This in my file? Sorry but idk How to get it in A Code line 1 995 9 995 1624 3140 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 554 554 554 554 554 554 554 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 554 554 554 554 554 554 554 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 554 554 554 554 554 554 554 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 1249 1247 561 995 1617 1619 1213 554 554 554 554 554 554 554 1618 1249 565 1147 444 1623 1619 4125 995 1643 4105 1387 995 560 555 565 4099 3053 556 1610 4129 995 1247 1163 1249 2357 2357 2357 1163 1619 4153 995 995 1163 4101 1613 2363 2363 2363 1247 1201 1079 1185 1163 2357 2357 2357 2357 1373 443 443 4131 2904 2363 2363 2363 1247 1201 1079 1185 1163 2357 2357 2357 2357 1373 443 443 4131 2363 2363 2363 1247 1201 1079 1185 1163 2357 2357 2357 2357 1373 443 443 4131 1615 1373 1373 1319 1319 1163 1163 1113 1113 1147 1147 1147 1249 1249 1149 2363 2363 2363 565 565 554 556 4151 1373 1373 1319 1319 1163 1163 1113 1113 1147 1147 1147 1249 1249 1149 2363 2363 2363 565 565 554 556 2883 6729 6739 6737 1357 6735 1149 1247 371 1619 1343 1617 1357 6735 1149 1247 371 1619 1343 1617 1357 6735 1149 1247 371 1619 1343 1617 1357 6735 1149 1247 371 1619 1357 6735 1149 1247 371 1619 1343 1617 1357 6735 1149 1247 371 1619 1343 1617 1357 6735 1149 1247 371 1619 1343 1617 1357 6735 1149 1247 371 1619 1343 1617 2882 6731 6739 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 554 4675 1617 1619 1621 1623 1359 2881 6733 6739 6729 4675 1617 1619 1621 1627 329 1249 1247 1137 4675 1617 1619 1621 1627 329 1249 1247 1137 4675 1617 1619 1621 1627 329 1249 1247 1137 4675 1617 1619 1621 1627 329 1249 1247 1137 4675 1617 1619 1621 1627 329 1249 1247 1137 4675 1617 1619 1621 1627 329 1249 1247 1137 55 1249 1149 1623 1621 1163 1247 54 8101 449 1149 565 554 1373 995 1185 2363 892 1319 1079 1127 1617 1619 1621 1623 449 1149 565 554 1373 995 1185 2363 892 1319 1079 1127 1617 1619 1621 1623 449 1149 565 554 1373 995 1185 2363 892 1319 1079 1127 1617 1619 1621 1623 449 1149 565 554 1373 995 1185 2363 892 1319 1079 1127 1617 1619 1621 1623 449 1149 565 554 1373 995 1185 2363 892 1319 1079 1127 1617 1619 1621 1623 449 1149 565 554 1373 995 1185 2363 892 1319 1079 1127 1617 1619 1621 1623 100 995 440 1115 1067 41 314 2138 18 995 117 995 101 995 913 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 3840 912 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 3842 914 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 3844 2783 4827 11212 11212 11212 11212 11212 1617 1619 1621 1623 1631 1079 1093 1113 1127 1147 1163 1185 1201 1213 1247 1289 1303 1319 1333 1373 1432 837 1249 385 1149 2363 11212 1617 1619 1621 1623 1631 1079 1093 1113 1127 1147 1163 1185 1201 1213 1247 1289 1303 1319 1333 1373 1432 837 1249 385 1149 2363 1612 995 1648 995 90 995 82 995 52 995 49 995 1341 995 26 995 20 995 21 995 19 6589 6591 6593 6595 6597 6599 6601 6603 6605 6607 6609 6611 6613 6615 6617 6619 6621 6623 6625 6627 6629 6631 6633 81 1739 2131 84 1247 1621 1127 1147 1213 1079 1249 1615 1197 1315 828 886 50 1111 1199 1211 8101 1249 1617 1621 1619 2363 565 1515 1319 1123 1615 1247 1111 1199 1211 8101 1249 1617 1621 1619 2363 565 1515 1319 1123 1615 1247 1111 1199 1211 8101 1249 1617 1621 1619 2363 565 1515 1319 1123 1615 1247 8101 3200 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 35 2402 746 667 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 995 7158 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 1249 1319 1373 3202 565 560 892 1615 941 1249 1201 1213 1197 555 561 1069 554 563 1753 1157 1119 4675 1249 1201 1213 1197 555 561 1069 554 563 1753 1157 1119 2607 1623 1621 1619 1617 995 995 995 995 995 995 995 436 438 440 444 447 449 451 892 554 556 561 6522 6524 6585 1623 1621 1619 1617 995 995 995 995 995 995 995 436 438 440 444 447 449 451 892 554 556 561 6522 6524 1623 1621 1619 1617 995 995 995 995 995 995 995 436 438 440 444 447 449 451 892 554 556 561 6522 6524 6568 6568 6528 6528 2558 11702 995 Please Help
  21. ToySoul

    Drop

    How do i get my Drop editor to work? @echo off title Npc Drop Editor java -client -Xmx512m -cp bin;lib/* com.rs.tools.DropEditor pause That one dont work Java is not an external command, program or batch file. Press any key to continue ...
  22. The npc drops doens't work :( there is even no npc-config.cfg How to fix this?
  23. Does anybody know why my drop editor isnt working correctly? I can not edit the percentages of the items dropped and if i try to add a new item to a drop and after repacking it, the editor will automatically reset the drop percentage to 100% drop rate. Does anyone know how to fix this? Thanks!
  24. Kon

    Rare drop announcer

    Hi all, So i tried adding a rare drop announcer, but i keep getting a few errors which idk how to fix. Can someone please help me ? :) (This is the code im using) [SUB]public void sendDrop(Player player, Drop drop) { int size = getSize(); String dropName = ItemDefinitions.getItemDefinitions(drop.getItemId()) .getName().toLowerCase(); Item item = ItemDefinitions.getItemDefinitions(drop.getItemId()).isStackable() ? new Item(drop.getItemId(), (drop.getMinAmount() * Settings.DROP_RATE) + Utils.getRandom(drop.getExtraAmount() *Settings.DROP_RATE)) : new Item(drop.getItemId(), drop.getMinAmount() + Utils.getRandom(drop.getExtraAmount())); World.addGroundItem(item, new WorldTile(getCoordFaceX(size), getCoordFaceY(size), getPlane()), player, false, 180, true); if (dropName.contains("pernix") || dropName.contains("torva") || dropName.contains("virtus") || dropName.contains("bandos") || dropName.contains("armadyl") || dropName.contains("hilt") || dropName.contains("vine") || dropName.contains("chaotic") || dropName.contains("santa") || dropName.contains("korasi") || dropName.contains("divine") || dropName.contains("zamorak") || dropName.contains("saradomin") || dropName.contains("visage") || dropName.contains("spectral") || dropName.contains("zaryte") || dropName.contains("elysian") || dropName.contains("steadfast") || dropName.contains("glaiven") || dropName.contains("ragefire") || dropName.contains("spirit") || dropName.contains("fury") || dropName.contains("arcane")) { World.sendWorldMessage("<img=2><col=FF0000>News: " + player.getUsername() + " has received a " + dropName + " as a rare drop!", false); } }[/SUB] And these are the errors im getting: Symbol: method sendWorldMessage(String,boolean) Symbol: variable DROP_RATE // Error cannot find symbol Any1 knows how to fix this Kind regards, kon
  25. If i drop an item it will just vanish. How do i add that admins can just drop items? Thanks. Kind Regards, Xangu.
×