Remove shopmenu2

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Post Reply
[email protected]
Peon
Posts: 7
Joined: Mon Apr 09, 2007 6:20 pm

Remove shopmenu2

Post by [email protected] »

How can I remove shopmenu2 but the heros still exist?
I have no clue.
kp_downarrow
Rifleman
Posts: 162
Joined: Thu Dec 21, 2006 2:12 am

Post by kp_downarrow »

comment shopmenu2 stuff in sma
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post 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)
Image

No support via PM or Email
[email protected]
Peon
Posts: 7
Joined: Mon Apr 09, 2007 6:20 pm

Post by [email protected] »

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.
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

It depends on what version of WC3FT you are using. Tell me that and I will look at it
Image

No support via PM or Email
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

in clientCommands.inl you can just comment out what parses the shopmenu2 command
No Support via PM
[email protected]
Peon
Posts: 7
Joined: Mon Apr 09, 2007 6:20 pm

Post by [email protected] »

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
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post 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.

Code: Select all

 || iStart == 9 
So, that line should look like this

Code: Select all

	if ( iStart == MAX_PAGE_ITEMS && get_pcvar_num( CVAR_wc3_races ) <= 4 || iStart == 9 ) 
Image

No support via PM or Email
[email protected]
Peon
Posts: 7
Joined: Mon Apr 09, 2007 6:20 pm

Post by [email protected] »

Thanks for the help.
But saddly it did not work :(
Does WC3 creator know how to display it?
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

Are you recompiling the plugin after you make the changes??
Image

No support via PM or Email
[email protected]
Peon
Posts: 7
Joined: Mon Apr 09, 2007 6:20 pm

Post by [email protected] »

no?
Can inl be complimed?
And where should the complimed files be putted?
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

You need to recompile the .sma file and place the new .amxx file in your plugins folder
Image

No support via PM or Email
[email protected]
Peon
Posts: 7
Joined: Mon Apr 09, 2007 6:20 pm

Post by [email protected] »

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.
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post 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.
Image

No support via PM or Email
[email protected]
Peon
Posts: 7
Joined: Mon Apr 09, 2007 6:20 pm

Post by [email protected] »

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 :)
Post Reply