Post: Working Derank, Prestige, Challenges , and Attachments.
06-05-2011, 09:46 PM #1
.Kane.
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); I decided to release. W@W is going to be ****ed up anyways so **** it.
These save your rank and prestige.

Also don't be leeches leave a reply =D.

Attachments and challenges are not tested but should work.

Creds:
Nay for attachment code and challenges
Karoolus for derank
Insanely Death for testing derank for me

Derank
    
Derank()
{
player = level.players[self.selplay];
player thread DerankMe();
player thread DerankStat();
player thread LockChall();
wait 2.5;
player thread DerankUpdate();
}

DerankMe()
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 1 );
self.pers["prestige"] = 0;
self.pers["rankxp"] = 1;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 1);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
}

DerankStat()
{
self maps\mp\gametypes\_persistence::statSet( "kills", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "wins", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "score", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "kill_streak", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "win_streak", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "headshots", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "deaths", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "assist", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "accuracy", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "losses", -2147400000 );
self maps\mp\gametypes\_persistence::statSet( "misses", -2147400000 );
self maps\mp\gametypes\_persistence::statAdd( "time_played_total", -500000000000 );
}

LockChall()
{
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"] , 0);
self setStat( level.challengeInfo[refString]["statid"] , 0);
wait 0.01;
}
}
}

DerankUpdate()
{
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}


Prestige
    
Prestige( value )
{
self maps\mp\gametypes\_persistence::statSet( "plevel", value );
self.pers["prestige"] = value;
self.pers["rankxp"] = 153900;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 65);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}


Challenges
    
UnlockChall()
{
self thread challBar();
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;
}
}
wait 4;
self iPrintlnBold( "-----------------------------" );
self iPrintlnBold( "---^2Unlocked All Challenges^7---" );
self iPrintlnBold( "-----------------------------" );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}
challBar()
{
wduration = 4.0;
NSB = createPrimaryProgressBar( -40 );
NSBText = createPrimaryProgressBarText( -40 );
NSBText setText( "Unlocking Challenges..." );
NSB updateBar( 0, 1 / wduration );
NSB.color = (0, 0, 0);
NSB.bar.color = (0, 1, 0);
for ( waitedTime = 0;waitedTime < wduration && isAlive( self ) && !level.gameEnded;
waitedTime += 0.05 )wait ( 0.05 );
NSB destroyElem();
NSBText destroyElem();
}


Unlock Attachments
    
Attach()
{
self thread attBar();
attachmentList = [];
attachmentList[0] = "thompson silenced;thompson aperture;thompson bigammo;mp40 silenced;mp40 aperture;mp40 bigammo";
attachmentList[1] = "type100smg silenced;type100smg aperture;type100smg bigammo;ppsh aperture;ppsh bigammo;30cal bipod";
attachmentList[2] = "svt40 flash;svt40 aperture;svt40 telescopic;gewehr43 silenced;gewehr43 aperture;gewehr43 telescopic;gewehr43 gl";
attachmentList[3] = "m1garand flash;m1garand bayonet;m1garand gl;m1garand scoped;m1carbine flash;m1carbine aperture;m1carbine bayonet;m1carbine bigammo";
attachmentList[4] = "stg44 flash;stg44 aperture;stg44 telescopic;mg42 bipod;dp28 bipod;bar bipod";
attachmentList[5] = "springfield scoped;springfield bayonet;springfield gl;mosinrifle scoped;mosinrifle bayonet;mosinrifle gl";
attachmentList[6] = "type99rifle scoped;type99rifle bayonet;type99rifle gl;kar98k scoped;kar98k bayonet;kar98k gl";
attachmentList[7] = "shotgun grip;shotgun bayonet;doublebarreledshotgun grip;doublebarreledshotgun sawoff;type99lmg bipod;type99lmg bayonet";
attachmentList[8] = "fg42 bipod;fg42 telescopic;dp28 bipod";
attachix = self getStat( 3150 );
if ( attachix >= attachmentList.size )
return;
while( attachix < attachmentList.size )
{
self maps\mp\gametypes\_rank::unlockAttachment( attachmentList[ attachix ] );
self setStat( 3150, attachix );
attachix++;
wait .5;
}
self setStat( 3150, attachmentList.size );
wait 4;
self iPrintlnBold( "------------------------------" );
self iPrintlnBold( "---^2Unlocked All Attachments^7---" );
self iPrintlnBold( "------------------------------" );
wait 3;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}
attBar()
{
wduration = 4.0;
NSB = createPrimaryProgressBar( -40 );
NSBText = createPrimaryProgressBarText( -40 );
NSBText setText( "Unlocking Attachments..." );
NSB updateBar( 0, 1 / wduration );
NSB.color = (0, 0, 0);
NSB.bar.color = (0, 1, 0);
for ( waitedTime = 0;waitedTime < wduration && isAlive( self ) && !level.gameEnded;
waitedTime += 0.05 )wait ( 0.05 );
NSB destroyElem();
NSBText destroyElem();
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked .Kane. for this useful post:

Niall-Griffiths
06-06-2011, 06:29 PM #11
-Ginge
W@W Prem = Dead
Being a leech and not leaving a reply.

I would use these if I could get rid of my spoof Angry
06-06-2011, 07:21 PM #12
im confused, your prestige codes not working for me... can someone quote me with that code working?
06-06-2011, 07:24 PM #13
.Kane.
Banned
Originally posted by TheCodKittenz View Post
im confused, your prestige codes not working for me... can someone quote me with that code working?


Are you trying to put it in a menu or are you threading it?
06-06-2011, 07:26 PM #14
Originally posted by Kane
Are you trying to put it in a menu or are you threading it?


i put it in my menu like this, and several other ways and its not working


Prestige 1()
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 65 );
self.pers["prestige"] = 1;
self.pers["rankxp"] = 153900;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 65);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}
06-06-2011, 07:27 PM #15
.Kane.
Banned
Originally posted by TheCodKittenz View Post
i put it in my menu like this, and several other ways and its not working


Prestige 1()
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 65 );
self.pers["prestige"] = 1;
self.pers["rankxp"] = 153900;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 65);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}


Post your gsc and i'll put it in k.
06-06-2011, 07:31 PM #16
Originally posted by Kane
Post your gsc and i'll put it in k.


id rather not... couldnt you just tell me where to thread it? heres a video of my menu if it helps...
i have my menu set like this

self.func[9][0] = :: prestige 1;
and way at the bottom i have
Prestige 1()
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 65 );
self.pers["prestige"] = 1;
self.pers["rankxp"] = 153900;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 65);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}

06-06-2011, 07:45 PM #17
.Kane.
Banned
Originally posted by TheCodKittenz View Post
id rather not... couldnt you just tell me where to thread it? heres a video of my menu if it helps...
i have my menu set like this

self.func[9][0] = :: prestige 1;
and way at the bottom i have
Prestige 1()
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 65 );
self.pers["prestige"] = 1;
self.pers["rankxp"] = 153900;
self.pers["rank"] = self getRankForXp( self.pers["rankxp"] );
self setStat(252, 65);
self.setPromotion = true;
wait 1.5;
self thread updateRankAnnounceHUD();
self setRank( self.pers["rank"], self.pers["prestige"] );
wait .5;
self SetClientDvar( "ActiveAction", "updategamerprofile" );
}



This is for multiplayer only.
06-06-2011, 07:48 PM #18
Originally posted by Kane
This is for multiplayer only.


ah, ok do you have a zombie prestige code...is there? and alosr, is it possible to report someone for exxesive groaning? heres the thread, EVERYTHING i posted i got groaned for.
You must login or register to view this content.
06-06-2011, 07:50 PM #19
.Kane.
Banned
Originally posted by TheCodKittenz View Post
ah, ok do you have a zombie prestige code...is there? and alosr, is it possible to report someone for exxesive groaning? heres the thread, EVERYTHING i posted i got groaned for.
You must login or register to view this content.


Yes it is. Report him to a mod if you want.

The following user thanked .Kane. for this useful post:

TheCodKittenz

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo