HOW DO I CHANGE ITEMS?

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
Liquid_sprite
Peon
Posts: 17
Joined: Mon Nov 14, 2005 9:31 pm

HOW DO I CHANGE ITEMS?

Post by Liquid_sprite » Tue Nov 15, 2005 9:34 pm

How do i change the cost of an item and how do i change how much xp in each lvl?

Liquid_sprite
Peon
Posts: 17
Joined: Mon Nov 14, 2005 9:31 pm

Post by Liquid_sprite » Tue Nov 15, 2005 9:36 pm

im am using FTP and amx so

User avatar
Avanderik
<b><i>King of Kings!</b></i>
Posts: 150
Joined: Thu Jul 07, 2005 1:51 am
Location: Still Looking

Post by Avanderik » Tue Nov 15, 2005 10:45 pm

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.
War does not determine who is right, war determines who is left...

Order is for idiots, genius masters chaos...
Image

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu » Tue Nov 15, 2005 11:14 pm

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
No Support via PM

Liquid_sprite
Peon
Posts: 17
Joined: Mon Nov 14, 2005 9:31 pm

Post by Liquid_sprite » Wed Nov 16, 2005 10:06 pm

but where do i do that at?

User avatar
Avanderik
<b><i>King of Kings!</b></i>
Posts: 150
Joined: Thu Jul 07, 2005 1:51 am
Location: Still Looking

Post by Avanderik » Thu Nov 17, 2005 6:47 pm

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
War does not determine who is right, war determines who is left...

Order is for idiots, genius masters chaos...
Image

Post Reply