Thread: How to add a better drop rate for donators (REPPING)

Results 1 to 6 of 6
  1. #1 How to add a better drop rate for donators (REPPING) 
    Registered Member
    Join Date
    Dec 2009
    Posts
    151
    Thanks given
    16
    Thanks received
    8
    Rep Power
    0
    I referred back to the Ring of Wealth tutorial and I can't seem to figure it out.
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Jul 2010
    Posts
    427
    Thanks given
    5
    Thanks received
    4
    Rep Power
    18
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    151
    Thanks given
    16
    Thanks received
    8
    Rep Power
    0
    Re read the post. Thanks anyways. Still need this. BUMP
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jan 2013
    Posts
    153
    Thanks given
    64
    Thanks received
    25
    Rep Power
    0
    Quote Originally Posted by p loves c View Post
    Re read the post. Thanks anyways. Still need this. BUMP
    is it hard to change code... he's giving you a base to use.
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Jan 2013
    Posts
    153
    Thanks given
    64
    Thanks received
    25
    Rep Power
    0
    so it would be like

    Code:
    public boolean rareDrops(Client c, int i) {
    if (c.playerRights >=1) {
           int rarity = 0;
           int npcDropRate = ((Integer)NPCDrops.dropRarity.get(Integer.valueOf(npcs[i].npcType))).intValue();
           if(c.playerEquipment[c.playerRing] == 2572 && npcDropRate-3 > 0) {
               ringOfWealth = 1+Misc.random(2);
               c.sendMessage("Being a Donator has helped you receive a better drop!");
           }
          rarity = Misc.random(npcDropRate-isDonator);
           
          return rarity == 0;
       }
    }
    and so on

    theres still some to change, but its a basic idea.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2009
    Posts
    151
    Thanks given
    16
    Thanks received
    8
    Rep Power
    0
    Thanks mate.
    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. Drop system/rate help (REPPING++)
    By Raw Envy in forum Help
    Replies: 6
    Last Post: 07-08-2011, 09:25 PM
  2. How do you change drop rates? REPPING++
    By Raw Envy in forum Help
    Replies: 1
    Last Post: 07-07-2011, 06:51 PM
  3. Weird NPC Drop error (Repping.)
    By savior I in forum Help
    Replies: 4
    Last Post: 08-15-2010, 07:19 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
  •