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-05-2011, 09:58 PM #2
nay1995
The Master
lol tell me not to release then 10 minutes later you already have lol and the challenges and attachments are out off my patch...
06-05-2011, 10:10 PM #3
TheFallen
Former Dark Night
If W@W wan't in danger of being really ****ed up, why would you release these?
06-06-2011, 03:10 AM #4
.Kane.
Banned
Originally posted by nay View Post
lol tell me not to release then 10 minutes later you already have lol and the challenges and attachments are out off my patch...


I got them from your multiplayer thread but yea their yours.

---------- Post added at 05:17 PM ---------- Previous post was at 05:13 PM ----------

Originally posted by ITheFallenI View Post
If W@W wan't in danger of being really ****ed up, why would you release these?


Wait what. I released these because W@W is just not worth hiding things. I will not release anything else besides edits and non host patches now.

Also I never really played W@W until I started modding for it since it is boring now.

---------- Post added at 07:20 PM ---------- Previous post was at 05:17 PM ----------

Updated Need tested

---------- Post added at 10:10 PM ---------- Previous post was at 07:20 PM ----------

Updated Derank. Now makes stats negative.
06-06-2011, 12:25 PM #5
Niall-Griffiths
Vault dweller
very nice good find kane
06-06-2011, 01:08 PM #6
Skyl1n3
DO SOMETHING THEN!
I'm gonna be a leecher and not leave a reply :carling: oh wait this is a reply. stare
06-06-2011, 01:38 PM #7
Karoolus
I'm the W@W Menu Guy !
why do al those functions look so familiar ? Happy

The following 2 users say thank you to Karoolus for this useful post:

Correy, redraiderark
06-06-2011, 04:45 PM #8
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
why do al those functions look so familiar ? Happy


cause they are yours but he changed them to update your stats and i tested it all.
06-06-2011, 04:54 PM #9
Karoolus
I'm the W@W Menu Guy !
Originally posted by D34TH View Post
cause they are yours but he changed them to update your stats and i tested it all.


i know, i was just lolling Happy
06-06-2011, 04:57 PM #10
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
i know, i was just lolling Happy


i know haha

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo