HOW DO I CHANGE ITEMS?
Moderator: Forum Moderator
-
- Peon
- Posts: 17
- Joined: Mon Nov 14, 2005 9:31 pm
HOW DO I CHANGE ITEMS?
How do i change the cost of an item and how do i change how much xp in each lvl?
- Avanderik
- <b><i>King of Kings!</b></i>
- Posts: 150
- Joined: Thu Jul 07, 2005 1:51 am
- Location: Still Looking
You would have to change the variables that correspond with what you want to do and then recompile the plugin. I haven't looked at war3ft code in months but I believe the cost and xp is in a const variable. For example, say it was like this:
[small]
new const xp_lev[MAX_LEVELS] = {5, 10, 20, 40, 80, 160, 320, 640, 1280, 2560};
[/small]
If you wanted to change the xp required to hit 2, you would change the 10. If you wanted to change lvl 10, it would be the 2560, and so on.
Changing the item prices would involve using the same method.
[small]
new const xp_lev[MAX_LEVELS] = {5, 10, 20, 40, 80, 160, 320, 640, 1280, 2560};
[/small]
If you wanted to change the xp required to hit 2, you would change the 10. If you wanted to change lvl 10, it would be the 2560, and so on.
Changing the item prices would involve using the same method.
War does not determine who is right, war determines who is left...
Order is for idiots, genius masters chaos...

Order is for idiots, genius masters chaos...
