Page 1 of 1
Remove shopmenu2
Posted: Mon Apr 09, 2007 6:21 pm
How can I remove shopmenu2 but the heros still exist?
I have no clue.
Posted: Mon Apr 09, 2007 7:34 pm
by kp_downarrow
comment shopmenu2 stuff in sma
Posted: Mon Apr 09, 2007 9:16 pm
by YamiKaitou
change the max races to 4. You lose shopmenu2, the last 4 races (Blood Mage, Warden, Shadow Hunter, Crypt Lord), and the name of the mod will be changed to WC3 (Warcraft 3)
Posted: Tue Apr 10, 2007 6:26 am
YamiKaitou I want to keep those races, not delete them.
I only want to delete shopmenu2 and nothing else.
I tried to change the value of shopmenu2 in sma, and then made it amxx, but i still could use it.
Snice I have NO knowlage of plugins for amx, I need some help please.
Posted: Tue Apr 10, 2007 9:28 am
by YamiKaitou
It depends on what version of WC3FT you are using. Tell me that and I will look at it
Posted: Tue Apr 10, 2007 10:44 am
by Geesu
in clientCommands.inl you can just comment out what parses the shopmenu2 command
Posted: Tue Apr 10, 2007 11:34 am
Geesu: Did not worked, I even changed the commands to "xxxxxxx". I could still use shopmenu2.
YamiKaitou: I am using
Warcraft 3 Frozen Throne - Version 3.0 RC6
Posted: Tue Apr 10, 2007 11:56 am
by YamiKaitou
Comment line 468 in the clientCommands.inl file
If that doesn't work, try this
Open file menus.inl. In the if statement on line 737, add this before the last paranthesis.
So, that line should look like this
Code: Select all
if ( iStart == MAX_PAGE_ITEMS && get_pcvar_num( CVAR_wc3_races ) <= 4 || iStart == 9 )
Posted: Tue Apr 10, 2007 12:41 pm
Thanks for the help.
But saddly it did not work

Does WC3 creator know how to display it?
Posted: Tue Apr 10, 2007 12:48 pm
by YamiKaitou
Are you recompiling the plugin after you make the changes??
Posted: Tue Apr 10, 2007 12:51 pm
no?
Can inl be complimed?
And where should the complimed files be putted?
Posted: Tue Apr 10, 2007 1:03 pm
by YamiKaitou
You need to recompile the .sma file and place the new .amxx file in your plugins folder
Posted: Tue Apr 10, 2007 2:29 pm
YamiKaitou wrote:You need to recompile the .sma file and place the new .amxx file in your plugins folder
yes I know that but you told me to edit 2 .inl files and not the sma file.
I am confused.
Posted: Tue Apr 10, 2007 2:39 pm
by YamiKaitou
The sma file is the core of a plugin. Just so Geesu can keep track of everything, he puts like commands in different files. Then, in the sma file, he tells the compiler to include the code in the inl files in the compiling of the plugin. So, if you change a file that is being included, then you have to recompile the core plugin for any changes to take effect.
Posted: Tue Apr 10, 2007 4:07 pm
So thats how it work.
I tried
if ( iStart == MAX_PAGE_ITEMS && get_pcvar_num( CVAR_wc3_races ) <= 4 || iStart == 9 )
Then complimed it and it worked.

It is even displayed with war3menu Thanks
