My new project is getting the skill requirements from memory. Getting the requirements is quite easy. These are the types I've found so far,
- 0 = no requirements
2 = Mana
3 = %HP
4 = %MP
5 = Rage
6 = Focus
7 = Energy
9 = Item (eg. Posion Bottle, Herb of Essence)
13 = Projectile
14 = Ammunition
23 = Dead player targeted
Can anyone think of any other types of skill requirements? Consider any skill requirements even of Item Set skills. Thanks.
The main reason I'm doing this is because sometimes the character can use up nearly all it's mana and keep trying to cast a skill that it doesn't have enough mana for, because the skills database is wrong. The added bonus is adding support for consumable checks such as projectile, ammunition and item checks.
Getting the mana requirements has always been tricky because it's impossible to find the multiple or 'manainc' of each skill. But I've been looking at the skills and it seems that every single mana skill regardless of class is exactly the same ie. it increments by .1 of the base mana every level until 50 and then it increments by .2. I haven't found any exceptions. So given the base mana, which I can get easily, and the skill level I can calculate the mana required.