Page 1 of 1

Disabling Certain Shopmenu Items

Posted: Mon Dec 05, 2005 12:44 pm
by enigmaxp
Question Regarding disabling certain shopmenu items:

I wanted to disable using the mole function for my DOD War3FT Server. I haven't coded for years and so am having a difficult time finding where to edit the code properly to compile with the mole item disabled.

Can someone point me to the location and file as well as the necessary code changes required to do something like this?

It would be cool if certain items could be turned off completely in the War3Ft.cfg file, but I'm guessing that's probably too much work and not worth the time.

Posted: Mon Dec 05, 2005 2:03 pm
by Geesu
Turning off items isn't too much work, I just didn't want to give people the option :/

But to disable it, open menus.inl...

Within the menu_shopmenu_two function, change:
[small]if(i==ITEM_CHAMELEON-1 || i==ITEM_SCROLL-1)[/small]
to
[small]if(i==ITEM_CHAMELEON-1 || i==ITEM_SCROLL-1 || i==ITEM_MORE-1)[/small]

Recompile, then ur done.

Posted: Mon Dec 05, 2005 3:55 pm
by enigmaxp
Geesu wrote:Turning off items isn't too much work, I just didn't want to give people the option :/

But to disable it, open menus.inl...

Within the menu_shopmenu_two function, change:
[small]if(i==ITEM_CHAMELEON-1 || i==ITEM_SCROLL-1)[/small]
to
[small]if(i==ITEM_CHAMELEON-1 || i==ITEM_SCROLL-1 || i==ITEM_MORE-1)[/small]

Recompile, then ur done.
is the ITEM_MORE a typo? meaning ITEM_MOLE?

just checking :)

Thanks for the help. Found the line. Plan to recompile it tonight.

Posted: Mon Dec 05, 2005 4:36 pm
by Geesu
yes ITEM_MOLE :)

Posted: Tue Dec 06, 2005 2:09 am
by Sn3jk
When i'm runned uwc3 server i just raised the price for som items. Ex like mole to 46k in uwc3.cfg file. But that maby dont works with this mod? :)

Posted: Tue Dec 06, 2005 10:29 am
by Geesu
Can't change prices in a config file, I won't allow it