Thread: [Luck] Ring of wealth

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11  
    Registered Member
    Join Date
    Aug 2019
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Elite IV View Post
    Show us where the global var "DROP_RATE" is used. (Besides settings of course, where else is it used?)

    There's probably a reason why it's dropping 2x the loot rather than a higher amount of loot.

    NPC.java :
    Code:
    	public void sendDrop(final Player player, Drop drop) {
    		final int size = getSize();
    		int bonus = 1;
    		int random = Utils.random(1, 100);
    		if (World.doubledrops == false) {
    			bonus = 2;
    		}
    		String dropName = ItemDefinitions.getItemDefinitions(drop.getItemId())
    				.getName().toLowerCase();
    		Item item = ItemDefinitions.getItemDefinitions(drop.getItemId())
    				.isStackable() ? new Item(drop.getItemId(),
    				(drop.getMinAmount() * Settings.DROP_RATE/*bonus*/)
    						+ Utils.getRandom(drop.getExtraAmount()
    								* Settings.DROP_RATE/*bonus*/)) : new Item(
    				drop.getItemId(), drop.getMinAmount()
    						+ Utils.getRandom(drop.getExtraAmount()));
    		if (item.getId() == 995) {
    			player.getInventory().addItemMoneyPouch(item);
    			return;
    		}
    Settings.java :
    Code:
    	public static int DROP_RATE = 1;
    Reply With Quote  
     

  2. #12  
    Banned

    Join Date
    May 2017
    Age
    27
    Posts
    1,552
    Thanks given
    946
    Thanks received
    1,395
    Rep Power
    0
    Quote Originally Posted by baderazem View Post
    NPC.java :
    Code:
        public void sendDrop(final Player player, Drop drop) {
            final int size = getSize();
            int bonus = 1;
            int random = Utils.random(1, 100);
            if (World.doubledrops == false) {
                bonus = 2;
            }
            String dropName = ItemDefinitions.getItemDefinitions(drop.getItemId())
                    .getName().toLowerCase();
            Item item = ItemDefinitions.getItemDefinitions(drop.getItemId())
                    .isStackable() ? new Item(drop.getItemId(),
                    (drop.getMinAmount() * Settings.DROP_RATE/*bonus*/)
                            + Utils.getRandom(drop.getExtraAmount()
                                    * Settings.DROP_RATE/*bonus*/)) : new Item(
                    drop.getItemId(), drop.getMinAmount()
                            + Utils.getRandom(drop.getExtraAmount()));
            if (item.getId() == 995) {
                player.getInventory().addItemMoneyPouch(item);
                return;
            }
    Settings.java :
    Code:
        public static int DROP_RATE = 1;
    995 is money

    if (item.getId() == 995) {
    player.getInventory().addItemMoneyPouch(item);
    return;
    }
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Aug 2019
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Guardian View Post
    995 is money

    if (item.getId() == 995) {
    player.getInventory().addItemMoneyPouch(item);
    return;
    }
    how to fix it ?

    bump
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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. [pi] Ring of wealth?
    By nbness2 in forum Help
    Replies: 2
    Last Post: 06-28-2012, 04:59 PM
  2. RING OF WEALTH convert i hate delta
    By Jilic-Matt in forum Help
    Replies: 0
    Last Post: 08-20-2011, 11:45 PM
  3. Buying ring of wealths, 40k each.
    By Mergim in forum Gold & Items
    Replies: 4
    Last Post: 03-02-2011, 02:50 AM
  4. [delta]basic ring of wealth[delta]
    By shoopdawhoop in forum Snippets
    Replies: 14
    Last Post: 10-05-2010, 11:06 AM
  5. Ring of wealth help please
    By shoopdawhoop in forum Help
    Replies: 0
    Last Post: 11-04-2009, 10:56 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
  •