About Double Agent

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

Moderator: Forum Moderator

Post Reply
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

About Double Agent

Post by onliacs »

I would like to know how to disable double agent item from shopmenu2
thx for helping me :)

--- Please enter the following information for support ---
War3ft Version: 3.0rc5
Amxmodx Version:
Metamod Version:
amxx list:
amxx modules:
meta list:
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

And what item is Double Agent?
Image

No support via PM or Email
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

that is the item which makes you spawning with the other team with a skin from the other team
it's the last item from shopmenu2 which costs 16000$
Ps: sorry for my poor english

I found, that the mole item in english :s and i would like to know how to disable it please
User avatar
Geesu
<b>King of the world!</b>
Posts: 3164
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

Change the cost of the item to be > 16000
No Support via PM
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

okay...
But there is not other way to really disable it, or to modify the code in order to delete this item?
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

Yes, you can modify the code, but you would have to know how to code to do that
Image

No support via PM or Email
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

if i replace

if(i==ITEM_CHAMELEON-1 || i==ITEM_SCROLL-1)
by
if(i==ITEM_CHAMELEON-1 || i==ITEM_SCROLL-1 || i==ITEM_MOLE-1)

in menus.inl...
does it work?
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

I don't know, I have never wanted to disable the Mole. You will have to figure it out on your own
Image

No support via PM or Email
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

oki thanks for your help :D
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

hm.. in which file should i modify the cost of the item "mole" ?
and what i have to do?
DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

Post by DesasterUK »

items.inl

[small]ITEM_COST[ITEM_MOLE] = 16000; // Mole[/small]
Image
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

thanks but when i want to recompile the .sma to .amxx with the internet compiler, it doestn't work, where can i fint the compile.bat ???
Your plugin failed to compile! Read the errors below:

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/phpucZ10p.sma(61) : fatal error 100: cannot read from file: "war3ft/constants.inl"

Compilation aborted.
1 Error.
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

You can't compile this mod with the web one. You have to use the compilier found in the scripting folder in your amxmodx directory
Image

No support via PM or Email
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

ok done, but the price is not fixed, sometimes is > 16000 but sometimes not, can you explain me why?
DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

Post by DesasterUK »

cause the prices in the shopmenu are depending on the level ur char is on

set it up to more than 30k and it should work for all levels

if u set it to 16001 only level 10 chars have to pay 16001 for it
on level 9 u only have to pay round about 15500
Image
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

now i've a new problem, after doing this (and thanks to you that's working), when arriving on the server, the chooserace menu doesn't appear for some players :s
If a new player come on the server and he doesn't know how to chose a race :s

:)
User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou »

Known bug with RC5. I believe it has been fixed in RC6
Image

No support via PM or Email
DesasterUK
WC3Mods Donor
WC3Mods Donor
Posts: 223
Joined: Thu Mar 09, 2006 6:05 pm
Location: Germany
Contact:

Post by DesasterUK »

thats a problem in RC5
will be fixed in RC6

are u using csdm? (deathmatch)

if not, try this

war3ft.inl

find:
[small]

// User has no race
if ( p_data[id][P_RACE] == 0 )
{
new menu_id, keys;

new menuUp = player_menu_info( id, menu_id, keys );

// Only display menu if another isn't shown
if ( menuUp <= 0 )
{
WC3_ChangeRaceStart( id );
}

// Try again in 1 second
else
{
set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
}
}
[/small]

and change to:

[small]
// User has no race
if ( p_data[id][P_RACE] == 0 )
{
// new menu_id, keys;

// new menuUp = player_menu_info( id, menu_id, keys );

// Only display menu if another isn't shown
// if ( menuUp <= 0 )
// {
WC3_ChangeRaceStart( id );
// }

// Try again in 1 second
// else
// {
// set_task( 1.0, "WC3_GetUserInput", TASK_GETINPUT + id );
// }
}
[/small]

then recompile the plugin
Image
onliacs
Peon
Posts: 11
Joined: Fri Feb 23, 2007 10:34 am

Post by onliacs »

thanks you, it's working now
Post Reply