Thread: [718] Double drop ?

Results 1 to 3 of 3
  1. #1 [718] Double drop ? 
    Registered Member Still Blazin's Avatar
    Join Date
    Aug 2014
    Posts
    204
    Thanks given
    45
    Thanks received
    16
    Rep Power
    5
    how can i make my server automatically make the rare drop to double? basically double drop weekend w.e
    Reply With Quote  
     

  2. #2  
    EradicationX's Owner
    Eradication-X's Avatar
    Join Date
    Jan 2014
    Posts
    259
    Thanks given
    69
    Thanks received
    44
    Rep Power
    23
    I'm not sure if this'd be the same case for the source you're using but, here's how you could make a double drop weekend.

    In settings, find
    Code:
     	public static final int DROP_RATE = 1;
    and add under it,
    Code:
    	public static final int DOUBLE_DROP_RATE = 2;
    Now make this file:
    Code:
    package com.rs.game.player.content.custom;
    
    import java.util.Calendar;
    
    public class DoubleDropManager {
    
    	public static int dayOfWeek() {
    		Calendar cal = Calendar.getInstance();
    		return cal.get(Calendar.DAY_OF_WEEK);
    	}
    	
    	public static boolean isWeekend() {
    		return dayOfWeek() == 1 ? true: 
    			   dayOfWeek() == 6 ? true:
    			   dayOfWeek() == 7 ? true: false;
    	}
    	
    }
    Now go to your NPC file and make this function:
    Code:
        public int getDropRate() {
            if (DoubleDropManager.isWeekend() == true) {
            	return Settings.DOUBLE_DROP_RATE;
            } else {
            	return Settings.DROP_RATE;
            }
        }
    Find all of your "Settings.DROP_RATE" (also some things that say '* 1')in your NPC file and replace it with "getDropRate()"
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    48 0x69

    Pax M's Avatar
    Join Date
    Oct 2013
    Posts
    2,008
    Thanks given
    36
    Thanks received
    488
    Rep Power
    2270
    Quote Originally Posted by Eradication-X View Post
    I'm not sure if this'd be the same case for the source you're using but, here's how you could make a double drop weekend.

    In settings, find
    Code:
     	public static final int DROP_RATE = 1;
    and add under it,
    Code:
    	public static final int DOUBLE_DROP_RATE = 2;
    Now make this file:
    Code:
    package com.rs.game.player.content.custom;
    
    import java.util.Calendar;
    
    public class DoubleDropManager {
    
    	public static int dayOfWeek() {
    		Calendar cal = Calendar.getInstance();
    		return cal.get(Calendar.DAY_OF_WEEK);
    	}
    	
    	public static boolean isWeekend() {
    		return dayOfWeek() == 1 ? true: 
    			   dayOfWeek() == 6 ? true:
    			   dayOfWeek() == 7 ? true: false;
    	}
    	
    }
    Now go to your NPC file and make this function:
    Code:
        public int getDropRate() {
            if (DoubleDropManager.isWeekend() == true) {
            	return Settings.DOUBLE_DROP_RATE;
            } else {
            	return Settings.DROP_RATE;
            }
        }
    Find all of your "Settings.DROP_RATE" (also some things that say '* 1')in your NPC file and replace it with "getDropRate()"
    Or he just ment rare drops, then add *2
    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. 718 Double custom drops?
    By Sjonsen in forum Help
    Replies: 6
    Last Post: 05-24-2014, 07:17 PM
  2. 718 double drop rates
    By helpMe in forum Help
    Replies: 18
    Last Post: 06-06-2013, 06:38 PM
  3. Double Drop Probelm, HELP
    By Bosnia in forum Help
    Replies: 11
    Last Post: 08-14-2012, 07:56 PM
  4. 718 Npc Drops
    By tm g in forum Help
    Replies: 0
    Last Post: 07-30-2012, 03:11 PM
  5. PI double drop
    By Ashley in forum Help
    Replies: 9
    Last Post: 07-24-2012, 11:23 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
  •