Compile The Source And See If It Has Errors? ?
|
how can i test this code to see if its working?
Code:public boolean rareDrops(Client c, int i) { int rarity = 0; int ringOfWealth = 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("Your ring of wealth helped your drop rate by @red@"+ringOfWealth+"@bla@%"); } rarity = Misc.random(npcDropRate-ringOfWealth); return rarity == 0; }
Compile The Source And See If It Has Errors? ?
You should just System.out.println npcDropRate and ringOfWealth to debug the output, yeah?
no its not ruse and yes i know what you mean but im trying to see if the ring of wealth gives better chance of rare drops, and how can i actual make it send a message like "your ring of wealth glows brighter" for when you get the rare item and not send the message every time you get a normal drop, basically if you get a specific rare item like ags it'll send message saying "ring of wealth glows brighter" understand
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |