Rayeko
Programmer
- Joined
- Apr 9, 2008
- Messages
- 185
- Reaction score
- 3
Hello.
Actually, I had an idea for my serv.. But, the problem is that I don't even know how to do it xDD The idea is simple. I
ts something like this:
For example, a player has a new table in the DB that is "extra.points.meele", then each time a player uses meele combat, this value will be retrieved from the DB to the server (I alredy got the function), and depending on this value, the attack damage will change. For example, if the player has "0" points, then the damage would be 0-110 (example), but, if the player has 10 points, then the damage would be 0-120, something like that..
To make this, first I thought about using creaturescripts like, "onCombat", "onAttack". But, this ones only give me information about the target, and nothing more, furthermore it cannot edit the damage it make. Then, it came to my mind a very exhausting way.. Using weapons.xml and making a script file for all the weapons, including in the script, a formula that will include this points system.
So.. Anyone has any better idea? I would really appreciate ideas about this.
Thanks!
Actually, I had an idea for my serv.. But, the problem is that I don't even know how to do it xDD The idea is simple. I
ts something like this:
For example, a player has a new table in the DB that is "extra.points.meele", then each time a player uses meele combat, this value will be retrieved from the DB to the server (I alredy got the function), and depending on this value, the attack damage will change. For example, if the player has "0" points, then the damage would be 0-110 (example), but, if the player has 10 points, then the damage would be 0-120, something like that..
To make this, first I thought about using creaturescripts like, "onCombat", "onAttack". But, this ones only give me information about the target, and nothing more, furthermore it cannot edit the damage it make. Then, it came to my mind a very exhausting way.. Using weapons.xml and making a script file for all the weapons, including in the script, a formula that will include this points system.
So.. Anyone has any better idea? I would really appreciate ideas about this.
Thanks!