What's new

Discussion Unlock All Challenges Code?

L

Lee 0312

Enthusiast
Messages
142
Reaction score
132
Points
115
Sin$
7
Ok I know there's a unlock all challenges code in the managed code list but that makes my challenges looked "bugged" and doesn't unlock everything :frown: I know there's a unlock all attachments/camo's code but when you unlock all challenges everything should be unlocked anyway.

Does anyone now a code that makes all the challenges unlock properly like on mw2
Rep will be given :lol:
 
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
I use:
Code:
DoUnlocks()  //Hold X to use
{
self endon ( "disconnect" );
self endon ( "death" );

while(1)
{
i = 0;
while(self UseButtonPressed() && i < 3)
{
wait 0.01;
i+=0.01;

}

if(i > 2){
self thread doChallenges();	
self thread doAttachments();
}

wait 0.1;
}
}

doChallenges()
{       self iPrintlnBold("^1Completing all challenges - Stage 1/3");
self.challengeData = [];
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier"+i+".csv";

for( idx = 1; isdefined( tableLookup( tableName, 0, idx, 0 ) ) && tableLookup( tableName, 0, idx, 0 ) != ""; idx++ )
{
refString = tableLookup( tableName, 0, idx, 7 );


level.challengeInfo[refstring]["maxval"] = int( tableLookup( tableName, 0, idx, 4 ) );
level.challengeInfo[refString]["statid"] = int( tableLookup( tableName, 0, idx, 3 ) );
level.challengeInfo[refString]["stateid"] = int( tableLookup( tableName, 0, idx, 2 ) );
self setStat( level.challengeInfo[refString]["stateid"] , 255);
self setStat( level.challengeInfo[refString]["statid"] , level.challengeInfo[refstring]["maxval"]);
wait 0.01;


}               

}
self iPrintlnBold("^2All challenges completed - Stage 1/3");
}

doAttachments()
{       self iPrintlnBold("^1Unlocking camos - Stage 2/3");
for( n=0; n<8; n++ )
{
for( i=0; i<150; i++ )
{
attachey = tablelookup( "mp/attachmentTable.csv", 0, n, 4 );    
baseWeapon = tablelookup( "mp/statstable.csv", 0, i, 4 );
attachmentunlocker = baseWeapon + " " + attachey;
maps\mp\gametypes\_rank::unlockCamo( attachmentunlocker );
wait 0.01;
}
wait 0.01;
}
self iPrintlnBold("^2All camos unlocked - Stage 2/3");
wait 0.5;
self iPrintlnBold("^1Unlocking attachments - Stage 3/3");
attachment[0] = "grip";
attachment[1] = "gl";
attachment[2] = "acog";   
attachment[3] = "silencer";
attachment[4] = "reflex";
for( n=0; n<5; n++ )
{
for( i=0; i<150; i++ )
{
attachey = attachment[n];
baseWeapon = tablelookup( "mp/statstable.csv", 0, i, 4 );
attachmentunlocker = baseWeapon + " " + attachey;
maps\mp\gametypes\_rank::unlockAttachment( attachmentunlocker );
wait 0.01;
}
wait 0.01;
}
self iPrintlnBold("^2All attachments unlocked - Stage 3/3");

}
It works fine for me.
 
Top Bottom
Login
Register