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.
Disabling Certain Shopmenu Items
Moderator: Forum Moderator
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.
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.
No Support via PM
is the ITEM_MORE a typo? meaning ITEM_MOLE?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.
just checking

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