You are viewing our Forum Archives. To view or take place in current topics click here.
[RELEASE] Unlock everything in less then 20 seconds
Posted:
[RELEASE] Unlock everything in less then 20 secondsPosted:
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 85
Reputation Power: 3
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 85
Reputation Power: 3
Unlock everything in less then 20 seconds Challenges, Camos, Attachments
I have been away from the cod 4 modding scene for a bit and someone ask me to get them 10th and all challenge's and s*** on cod 4, so got them 10th and thought hmmm that tuck the piss unlocking s***. There has to be a better way so.....
Also this lets you get rid of the new's ;) also before someone stays this could be smaller I KNOW I did it this way so it looks good on screen
I have been away from the cod 4 modding scene for a bit and someone ask me to get them 10th and all challenge's and s*** on cod 4, so got them 10th and thought hmmm that tuck the piss unlocking s***. There has to be a better way so.....
UnlockEverything()
{
// Created By NITRAM
self endon( "death" );
ProcessBar = createPrimaryProgressBar( 25 );
ProcessBarText = createPrimaryProgressBarText( 25 );
ProcessBarText setText( "Unlocking Challenges..." );
chal = ""; camo = ""; attach = ""; camogold = strtok( "dragunov|ak47|uzi|m60e4|m1014", "|" );
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier" + i + ".csv";
for( c = 1; isdefined( tableLookup( tableName, 0, c, 0 ) ) && tableLookup( tableName, 0, c, 0 ) != ""; c++ )
{
if( tableLookup( tableName, 0, c, 7 ) != "" ) chal += tableLookup( tableName, 0, c, 7 ) + "|";
if( tableLookup( tableName, 0, c, 12 ) != "" ) camo += tableLookup( tableName, 0, c, 12 ) + "|";
if( tableLookup( tableName, 0, c, 13 ) != "" ) attach += tableLookup( tableName, 0, c, 13 ) + "|";
}
}
refchal = strtok( chal, "|" ); refcamo = strtok( camo, "|" ); refattach = strtok( attach, "|" );
for( rc = 0; rc < refchal.size; rc++ )
{
self setStat( level.challengeInfo[refchal[ rc ]]["stateid"], 255 );
self setStat( level.challengeInfo[refchal[ rc ]]["statid"], level.challengeInfo[refchal[ rc ]]["maxval"] );
Process = ceil( ( ( rc / refchal.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait ( 0.05 );
}
ProcessBarText setText( "Unlocking Attachments.." );
for( at = 0; at < refattach.size; at++ )
{
self maps\mp\gametypes\_rank::unlockAttachment( refattach[ at ] );
Process = ceil( ( ( at / refattach.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait( 0.05 );
}
ProcessBarText setText( "Unlocking Camos." );
for( ca = 0; ca < refcamo.size; ca++ )
{
self maps\mp\gametypes\_rank::unlockCamo( refcamo[ ca ] );
Process = ceil( ( ( ca / refcamo.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait( 0.05 );
}
for( g = 0; g < camogold.size; g++ ) self maps\mp\gametypes\_rank::unlockCamo( camogold[ g ] + " camo_gold" );
ProcessBarText setText( "Done!" );
wait ( 1 );
self setClientDvar( "player_unlock_page", "3" );
ProcessBar destroyElem();
ProcessBarText destroy();
}
Also this lets you get rid of the new's ;) also before someone stays this could be smaller I KNOW I did it this way so it looks good on screen
#2. Posted:
Status: Offline
Joined: Oct 02, 201014Year Member
Posts: 1,619
Reputation Power: 59
Status: Offline
Joined: Oct 02, 201014Year Member
Posts: 1,619
Reputation Power: 59
Copy and paste much?
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Feb 19, 201113Year Member
Posts: 426
Reputation Power: 20
Status: Offline
Joined: Feb 19, 201113Year Member
Posts: 426
Reputation Power: 20
Nice one if it Works Will Save a Hell of alot of Time
Good Post Keep the Coding up
Good Post Keep the Coding up
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Sep 29, 201014Year Member
Posts: 164
Reputation Power: 6
NITRAMMODZ wrote Unlock everything in less then 20 seconds Challenges, Camos, Attachmentscould you inv me gt: KufzR
I have been away from the cod 4 modding scene for a bit and someone ask me to get them 10th and all challenge's and s*** on cod 4, so got them 10th and thought hmmm that tuck the piss unlocking s***. There has to be a better way so.....
UnlockEverything()
{
// Created By NITRAM
self endon( "death" );
ProcessBar = createPrimaryProgressBar( 25 );
ProcessBarText = createPrimaryProgressBarText( 25 );
ProcessBarText setText( "Unlocking Challenges..." );
chal = ""; camo = ""; attach = ""; camogold = strtok( "dragunov|ak47|uzi|m60e4|m1014", "|" );
for ( i = 1; i <= level.numChallengeTiers; i++ )
{
tableName = "mp/challengetable_tier" + i + ".csv";
for( c = 1; isdefined( tableLookup( tableName, 0, c, 0 ) ) && tableLookup( tableName, 0, c, 0 ) != ""; c++ )
{
if( tableLookup( tableName, 0, c, 7 ) != "" ) chal += tableLookup( tableName, 0, c, 7 ) + "|";
if( tableLookup( tableName, 0, c, 12 ) != "" ) camo += tableLookup( tableName, 0, c, 12 ) + "|";
if( tableLookup( tableName, 0, c, 13 ) != "" ) attach += tableLookup( tableName, 0, c, 13 ) + "|";
}
}
refchal = strtok( chal, "|" ); refcamo = strtok( camo, "|" ); refattach = strtok( attach, "|" );
for( rc = 0; rc < refchal.size; rc++ )
{
self setStat( level.challengeInfo[refchal[ rc ]]["stateid"], 255 );
self setStat( level.challengeInfo[refchal[ rc ]]["statid"], level.challengeInfo[refchal[ rc ]]["maxval"] );
Process = ceil( ( ( rc / refchal.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait ( 0.05 );
}
ProcessBarText setText( "Unlocking Attachments.." );
for( at = 0; at < refattach.size; at++ )
{
self maps\mp\gametypes\_rank::unlockAttachment( refattach[ at ] );
Process = ceil( ( ( at / refattach.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait( 0.05 );
}
ProcessBarText setText( "Unlocking Camos." );
for( ca = 0; ca < refcamo.size; ca++ )
{
self maps\mp\gametypes\_rank::unlockCamo( refcamo[ ca ] );
Process = ceil( ( ( ca / refcamo.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
wait( 0.05 );
}
for( g = 0; g < camogold.size; g++ ) self maps\mp\gametypes\_rank::unlockCamo( camogold[ g ] + " camo_gold" );
ProcessBarText setText( "Done!" );
wait ( 1 );
self setClientDvar( "player_unlock_page", "3" );
ProcessBar destroyElem();
ProcessBarText destroy();
}
Also this lets you get rid of the new's ;) also before someone stays this could be smaller I KNOW I did it this way so it looks good on screen
- 0useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Feb 02, 201113Year Member
Posts: 568
Reputation Power: 23
Status: Offline
Joined: Feb 02, 201113Year Member
Posts: 568
Reputation Power: 23
keep up the good posting
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 85
Reputation Power: 3
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 85
Reputation Power: 3
TTG_Wyrick wrote Copy and paste much?
Copy and paste ? I wrote this
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Feb 02, 201113Year Member
Posts: 261
Reputation Power: 10
Status: Offline
Joined: Feb 02, 201113Year Member
Posts: 261
Reputation Power: 10
so we just paste this into the patch?
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 85
Reputation Power: 3
Status: Offline
Joined: Dec 27, 201013Year Member
Posts: 85
Reputation Power: 3
TTG_M0nSteR wrote so we just paste this into the patch?
Yes and and thread UnlockEverything()
- 0useful
- 0not useful
#9. Posted:
Status: Offline
Joined: Jan 15, 201113Year Member
Posts: 23
Reputation Power: 1
Status: Offline
Joined: Jan 15, 201113Year Member
Posts: 23
Reputation Power: 1
can u invite me gt is : SF x MagiczZ
- 0useful
- 0not useful
#10. Posted:
Status: Offline
Joined: Sep 30, 201014Year Member
Posts: 72
Reputation Power: 2
Status: Offline
Joined: Sep 30, 201014Year Member
Posts: 72
Reputation Power: 2
invit me please ... my gt is
Iv CROSBIE vI
thankyou:)
Iv CROSBIE vI
thankyou:)
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.