Kill Limiting (A Ctrl Idle Fix)
Posted: 03 Jul 2008, 01:13
It is no hidden fact that using the keyboard keys can allow a player to lock down a key, such as Ctrl, or even "a" and "Ctrl" to be able to fight in a mob populated area while idle. Though such actions may be viewed as cheating, the easy accessibility to these functions, make it a prime way to gain levels without the tedium. The following is a method that may help to reduce this, without terminating the gameplay for those who are actively leveling.
What I am suggesting is a max kill limit when attacking the same mob over and over again. This will force people to go to other areas, and kill other mobs. The following is an example of how it would work.
We make an array which mob ID numbers are stored. Lets say the array has 100 entries. If the array becomes full, the new mobs IDs are overwritten over the oldest ID's in the array. For example, lets say you killed 50 "bats" and that maxed out the allowed limit. For every "bat" over 50, the exp earned would drop exponentially The only way to go back to gaining max experience again for "bats", would be to kill enough other mobs so that enough of the "bat" ID's were removed from the array so that the penalty did not apply.
Really all in all a simple code. The array is saved to the player file. Each kill writes to the array.
Each mob file would need to have a spot for their kill limit, and the exp modifier.
A couple of checks in the exp gain code, and viola, problem resolved.
So, back to our 50 bats example. Lets say the limit is 50, and the exp mod is 20%.
Bat 1 through 50 gives you 55 exp. Bat 51 gives you 44 exp, 52 gives 33 exp and so on to the point where no exp is gained.
- Miana
PS> Programmers note: Be sure to have a check for if exp gain < 0, exp gain = 0.
Edited: Wednesday, July 2nd: 11:08PM (GMT -05:00)
- Apparently this post should have been a reply to the post linked below. My apologies.
- http://forums.themanaworld.org/viewtopic.php?f=4&t=2646
What I am suggesting is a max kill limit when attacking the same mob over and over again. This will force people to go to other areas, and kill other mobs. The following is an example of how it would work.
We make an array which mob ID numbers are stored. Lets say the array has 100 entries. If the array becomes full, the new mobs IDs are overwritten over the oldest ID's in the array. For example, lets say you killed 50 "bats" and that maxed out the allowed limit. For every "bat" over 50, the exp earned would drop exponentially The only way to go back to gaining max experience again for "bats", would be to kill enough other mobs so that enough of the "bat" ID's were removed from the array so that the penalty did not apply.
Really all in all a simple code. The array is saved to the player file. Each kill writes to the array.
Each mob file would need to have a spot for their kill limit, and the exp modifier.
A couple of checks in the exp gain code, and viola, problem resolved.
So, back to our 50 bats example. Lets say the limit is 50, and the exp mod is 20%.
Bat 1 through 50 gives you 55 exp. Bat 51 gives you 44 exp, 52 gives 33 exp and so on to the point where no exp is gained.
- Miana
PS> Programmers note: Be sure to have a check for if exp gain < 0, exp gain = 0.
Edited: Wednesday, July 2nd: 11:08PM (GMT -05:00)
- Apparently this post should have been a reply to the post linked below. My apologies.
- http://forums.themanaworld.org/viewtopic.php?f=4&t=2646