Thread: Dropping items in a certain area drops them but the drops dissapear - Need help!

Results 1 to 4 of 4
  1. #1 Dropping items in a certain area drops them but the drops dissapear - Need help! 
    Registered Member Mikey's Avatar
    Join Date
    Apr 2011
    Posts
    751
    Thanks given
    570
    Thanks received
    32
    Rep Power
    40
    Well since I'm writing a "bug free" dungeoneering base I need this small smuggling problem fixed.
    The way I thought is, what if I could stop items from appearing on the ground when I drop them, then I did a few searches and found that it has been done in PI before (Soulsplit) so I was wondering how I would go about doing this.
    Heres what I came up with.
    I edited the creategrounditem method to this.
    Code:
    	public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) {
    			if (c.isInTest()) {
    			c.sendMessage("Your items are dropped and magically disappear!");
    			deleteItem(itemID,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();
    		}
    	}
    However that did nothing to the drops and just sent the message. The item was on the ground.

    So I was wondering how would this be done and is it even in this method where I would edit.

    Thanks in advance, Mikey

    [Only registered and activated users can see links. ]
     

  2. #2  
    Banned

    Join Date
    Jun 2009
    Posts
    2,918
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    add it in dropitem.java

    below:

    boolean droppable = true;
    add

    if (c.isInTest()) {
    c.sendMessage("Your items are dropped and magically disappear!");
    deleteItem(itemID,itemAmount);
    }
    and delete it from ceategrounditem
     

  3. Thankful user:


  4. #3  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    You need to put
    Code:
    return;
    after
    Code:
    deleteItem(itemID,itemAmount);


     

  5. #4  
    Registered Member Mikey's Avatar
    Join Date
    Apr 2011
    Posts
    751
    Thanks given
    570
    Thanks received
    32
    Rep Power
    40
    Thanks for the rapid replies. I'll be trying both out now.

    Thanks, Mikey

    EDIT: Thanks allstar! Thanked and I can't rep because I "need to spread more around"

    Somebody please close!

    [Only registered and activated users can see links. ]
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Disabling dropping and drops on death
    By tommate123 in forum Help
    Replies: 6
    Last Post: 07-24-2011, 05:39 PM
  2. [PI]Drops; Nothing Dropping
    By SodomizedU in forum Help
    Replies: 6
    Last Post: 10-17-2010, 10:48 PM
  3. Drops Dissapear
    By Haxed' in forum Help
    Replies: 14
    Last Post: 10-22-2009, 09:56 PM
  4. Slayer Area, Monsters, Drops
    By wizzy in forum Tutorials
    Replies: 14
    Last Post: 05-23-2008, 09:41 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •