People argue about how drops are dropped from monsters, and these are the 2 main scenarios:
1: Drops are based on the abount of objects (monsters) killed in an environment (map)
2: Drops are based on a counter in the Character object, so that after the character kills a certain but random number of monsters, his item will get dropped.
Lets just look at complexity for now. Which one does everyone think will be easier to write a code for? 31 without a doubt. More explanation on that later. I'm sorry if I put lots of java code on here, but I'll try to make it understandable. And we also need to establish that Wizet does not want accounts to be hacked, which would make it easier to hack using the 2nd option (more on this later).
This would be the partial code for the 1st option (I'll use cave of trial 1 and a jr cerebes using only equip drops, because it drops the least in the game. Basically, the monster class would have 3 instance variables, such as changeofFishSpearDropped = .0001. Then, when the monster gets killed, a random number generator will generate a decimal number between 0 and 1, and if the number is less than .0001, the item will get dropped. Simple enough, don't you think? (At least compared to the 2nd scenario)
The 2nd scenario is much more complex. A character would have a counter for each item existing in the game, and a random number generatorfor each one. That would be 2000 instance variables, which is very inefficient. Also, the character and monster objects would have to call each other so that the monster drops the item, which makes the character object be public, not private. That means that any other class can access it, including classes that hackers make. This would allow hackers to create a program that increases the chances of an item dropped. So far, we haven't seen any hacks where people get an evil wings on each werewolf kill, or where each 10% scroll works on an omega spear. With the first option, vac hacks are made possible, which is exactly WHY it's the first option. The second option needs more memory storage, which means more lag, and it is more prone to hackers. Now why would wizet want that?
I took a long time typing all that out, and be thankful I changed my mind not to write code. Now.
Thousands of people die every day because of malnutrition. with a donation of just 1 million mesos, you can do a good deed by saving many. So remember, donate to the "Help HappyNazgul get out of debt" fund! (10% discount on your donation if you donate more than 3 million mesos XD)
9:03pm + PM My Characters: HappyNazgul, a Lvl 62 Cleric (Broa)