Page 1 of 1

HOW DO I CHANGE ITEMS?

Posted: Tue Nov 15, 2005 9:34 pm
by Liquid_sprite
How do i change the cost of an item and how do i change how much xp in each lvl?

Posted: Tue Nov 15, 2005 9:36 pm
by Liquid_sprite
im am using FTP and amx so

Posted: Tue Nov 15, 2005 10:45 pm
by Avanderik
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.

Posted: Tue Nov 15, 2005 11:14 pm
by Geesu
NEVER POST IN ALL CAPS, goddamn it's annoying, just makes me want to skip over it... Next time you post a thread w/a title in all caps I'm locking it

Posted: Wed Nov 16, 2005 10:06 pm
by Liquid_sprite
but where do i do that at?

Posted: Thu Nov 17, 2005 6:47 pm
by Avanderik
It would be in a) a define or variable include file or b) in the xp or items include

If you don't understand where or what these are then I would give up right now. =P