config.java rofl. its already added amg.
|
Heres the item drop code:
How can I make it so it wont drop the item, and tells them dropping is currently disabled?Code:public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) { synchronized(c) { c.getOutStream().createFrame(85); c.getOutStream().writeByteC((itemY - 8 * c.mapRegionY)); c.getOutStream().writeByteC((itemX - 8 * c.mapRegionX)); c.getOutStream().createFrame(44); c.getOutStream().writeWordBigEndianA(itemID); c.getOutStream().writeWord(itemAmount); c.getOutStream().writeByte(0); c.flushOutStream(); } }
I want to permanently disable dropping, or stop dropping during combat..
Not just one item.
Rofl.... So C+P 15,000 + times?
This could be easier solved in 3-5 lines though dude?
Now you need to find where ever an item is been dropped and addCode:private static boolean dropItems = true;
And a command for you.Code:if(!dropItems) { sendMessage("Dropping items is currently disabled"); return; }
Code:if(command.equalsIgnoreCase("toggledrop")) { dropItems = !dropItems; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |