Thread: [718] Globally removing an item as a drop.

Results 1 to 9 of 9
  1. #1 [718] Globally removing an item as a drop. 
    Registered Member
    Zach's Avatar
    Join Date
    Aug 2013
    Posts
    1,123
    Thanks given
    24
    Thanks received
    511
    Rep Power
    5000
    So I want to remove all loop half/tooth half/Crystal key drops from the drop table. Is there a way I can do this without going to every individual NPC and removing it from their drop table?
    Thanks
    ZachTX's RSPS Video Services (10,000+ Loyal RSPS Subscribers)
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Banned Market Banned Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    841
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Just find where it calls the method that creates a ground item, and make it only call if it's not dropping what you don't want it to.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Extreme Donator

    Join Date
    Apr 2015
    Posts
    371
    Thanks given
    215
    Thanks received
    79
    Rep Power
    74
    Nope, good luck.
    Reply With Quote  
     

  4. #4  
    Banned Market Banned Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    841
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Quote Originally Posted by durky View Post
    Nope, good luck.
    The fuck?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member
    Zach's Avatar
    Join Date
    Aug 2013
    Posts
    1,123
    Thanks given
    24
    Thanks received
    511
    Rep Power
    5000
    Quote Originally Posted by -3clipse- View Post
    Just find where it calls the method that creates a ground item, and make it only call if it's not dropping what you don't want it to.
    Well I have a system where if you're wearing a Ring of wealth and doing a Slayer assignment you get a chance at getting a Crystal key loot. Wouldn't this affect it?
    ZachTX's RSPS Video Services (10,000+ Loyal RSPS Subscribers)
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Banned Market Banned Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    841
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Quote Originally Posted by Zach_ View Post
    Well I have a system where if you're wearing a Ring of wealth and doing a Slayer assignment you get a chance at getting a Crystal key loot. Wouldn't this affect it?
    All you need to do is find that line and remove it then.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Registered Member
    Zach's Avatar
    Join Date
    Aug 2013
    Posts
    1,123
    Thanks given
    24
    Thanks received
    511
    Rep Power
    5000
    Quote Originally Posted by -3clipse- View Post
    All you need to do is find that line and remove it then.
    What? I don't want to remove it. I just made this system, it's the reason I made this thread. I only want it to be obtainable through Slayer assignments with a Ring of wealth on. But right now it's dropped by normal monsters as well.
    ZachTX's RSPS Video Services (10,000+ Loyal RSPS Subscribers)
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Registered Member
    Zach's Avatar
    Join Date
    Aug 2013
    Posts
    1,123
    Thanks given
    24
    Thanks received
    511
    Rep Power
    5000
    Okay well since nobody can help me with this, I came up with something you may be able to help me with. What if I made it so a certain item ID changes to another ID when dropped by a monster, how would I go about doing that?
    ZachTX's RSPS Video Services (10,000+ Loyal RSPS Subscribers)
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    Jul 2013
    Posts
    1,235
    Thanks given
    1
    Thanks received
    492
    Rep Power
    0
    npc.java

    Code:
    sendDrop(Player player, Drop drop)
    place this:

    Code:
    String[] bannedDrops = { "loop half", "tooth half", "crystal key" };
    		for (String bannedD : bannedDrops) {
    			if (dropName != null && dropName.contains(bannedD)) {
    				player.getPackets().sendGameMessage("Sucks to be you! You cant have " + dropName + "!!!!!!");
    				return;
    			}
    		}
    after you declare the variable dropName and its initialized.

    plz rate comment & subskrebe if helpd
    Reply With Quote  
     


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. Replies: 41
    Last Post: 02-22-2013, 04:48 PM
  2. [PI] help with npc detecting and removing an item
    By xdragonlordx in forum Requests
    Replies: 1
    Last Post: 07-25-2012, 05:48 PM
  3. Replies: 4
    Last Post: 07-15-2011, 01:47 PM
  4. Random amount of an item on a drop[DELTA]
    By shoopdawhoop in forum Snippets
    Replies: 2
    Last Post: 12-10-2010, 11:43 AM
  5. Recoloring as many parts of an item as you want
    By Scottyz in forum Tutorials
    Replies: 4
    Last Post: 01-08-2008, 01:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •