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, 07:56 PM #20
Originally posted by Kane
Yes it is. Report him to a mod if you want.


how exactly would i do that? lol coud you point me in the direction of a mod??
06-06-2011, 08:35 PM #21
.Kane.
Banned
Originally posted by TheCodKittenz View Post
how exactly would i do that? lol coud you point me in the direction of a mod??


You must login or register to view this content.

Go there and post this pic

You must login or register to view this content.

    [IMG]https://img850.imageshack.us/img850/6320/codkitten.png[/IMG]


---------- Post added at 03:35 PM ---------- Previous post was at 03:01 PM ----------

Originally posted by TheCodKittenz View Post
how exactly would i do that? lol coud you point me in the direction of a mod??


Your Welcome

You must login or register to view this content.
06-06-2011, 09:57 PM #22
Originally posted by Kane
You must login or register to view this content.

Go there and post this pic

You must login or register to view this content.

    [IMG]https://img850.imageshack.us/img850/6320/codkitten.png[/IMG]


---------- Post added at 03:35 PM ---------- Previous post was at 03:01 PM ----------



Your Welcome

You must login or register to view this content.


thanks again man, it may not mean alot to you but since you helped me with this whole thing il add you to the credits part of my mod menu Smile
06-06-2011, 10:06 PM #23
.Kane.
Banned
Originally posted by TheCodKittenz View Post
thanks again man, it may not mean alot to you but since you helped me with this whole thing il add you to the credits part of my mod menu Smile


No its ok. I didn't actually help you so yea you don't have to.
06-07-2011, 12:27 AM #24
JaMbO
In Need Of Money
Kane did you get the message that i sent you about the updated waw patch of studmans karoolus edit with your non host binds but the one that doesnt make the game end everytime someone dies
06-07-2011, 12:38 AM #25
.Kane.
Banned
Originally posted by RaMbO View Post
Kane did you get the message that i sent you about the updated waw patch of studmans karoolus edit with your non host binds but the one that doesnt make the game end everytime someone dies


Yea well I'm still working on it but will be done soon.

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

JaMbO
06-07-2011, 08:22 AM #26
JaMbO
In Need Of Money
Originally posted by Kane
Yea well I'm still working on it but will be done soon.


Great thanks i really liked it so yeah please fix the bugs
06-07-2011, 08:23 AM #27
.Kane.
Banned
Originally posted by RaMbO View Post
Great thanks i really liked it so yeah please fix the bugs


I might release tomorrow. Still thinking about it.
06-07-2011, 05:17 PM #28
Karoolus
I'm the W@W Menu Guy !
Originally posted by Kane
I might release tomorrow. Still thinking about it.


just release, WAW is dead anyway :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo