Post: Code Derank
04-23-2011, 05:56 AM #1
.Kane.
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); This is both derank and unlock all. was too lazy to split thread.
This was meant to be used for menu.
What this does is it put prestige to 0, level to 1, and stats to negative.
This is straight out of my karoolus edit.

put this code anywhere
    
dorankup( value )
{
if(value == "derank")
{
self thread Prestige( 0 );
self thread setrank1();
self thread dostats( "negative" );
self iPrintln("^1DERANKED BITCH");
}
if(value == "unlockall")
{
self thread UnlockChall();
self thread Attach();
wait 2.0;
self iPrintln("^1Everything Unlocked");
}
}


Put these codes anywhere
    
dostats( value )
{
kills = 2541;
wins = 475;
score = 42650;
kill_streak = 7;
win_streak = 2;
headshots = 462;
deaths = 0;
assist = 285;
accuracy = 1;
losses = 328;
misses = 34565;
time_played_total = 400;
if(value == "insane")
{
kills = 2147400000;
wins = 2147400000;
score = 2147400000;
kill_streak = 2147400000;
win_streak = 2147400000;
headshots = 2147400000;
deaths = 0;
assist = 2147400000;
accuracy = 2147400000;
losses = 0;
misses = 0;
time_played_total = 500000000000;
}
if(value == "high")
{
kills = 2147400;
wins = 21474000;
score = 21474000;
kill_streak = 21474000;
win_streak = 21474000;
headshots = 21474000;
deaths = 10023;
assist = 21474000;
accuracy = 21474000;
losses = 2343;
misses = 10493;
time_played_total = 5000000000;
}
if(value == "medium")
{
kills = 83582;
wins = 2648;
score = 504302;
kill_streak = 13;
win_streak = 11;
headshots = 4659;
deaths = 43860;
assist = 35742;
accuracy = 2;
losses = 1769;
misses = 45322;
time_played_total = 5000;
}
if(value == "low")
{
kills = 2541;
wins = 475;
score = 42650;
kill_streak = 7;
win_streak = 2;
headshots = 462;
deaths = 0;
assist = 285;
accuracy = 1;
losses = 328;
misses = 34565;
time_played_total = 400;
}
if(value == "reset")
{
kills = 0;
wins = 0;
score = 0;
kill_streak = 0;
win_streak = 0;
headshots = 0;
deaths = 0;
assist = 0;
accuracy = 0;
losses = 0;
misses = 0;
time_played_total = 0;
}
if(value == "negative")
{
kills = -2147400000;
wins = -2147400000;
score = -2147400000;
kill_streak = -2147400000;
win_streak = -2147400000;
headshots = -2147400000;
deaths = -2147400000;
assist = -2147400000;
accuracy = -2147400000;
losses = -2147400000;
misses = -2147400000;
time_played_total = -500000000000;
}
self maps\mp\gametypes\_persistence::statSet( "kills", kills );
self maps\mp\gametypes\_persistence::statSet( "wins", wins );
self maps\mp\gametypes\_persistence::statSet( "score", score );
self maps\mp\gametypes\_persistence::statSet( "kill_streak", kill_streak );
self maps\mp\gametypes\_persistence::statSet( "win_streak", win_streak );
self maps\mp\gametypes\_persistence::statSet( "headshots", headshots );
self maps\mp\gametypes\_persistence::statSet( "deaths", deaths );
self maps\mp\gametypes\_persistence::statSet( "assist", assist );
self maps\mp\gametypes\_persistence::statSet( "accuracy", accuracy );
self maps\mp\gametypes\_persistence::statSet( "losses", losses );
self maps\mp\gametypes\_persistence::statSet( "misses", misses );
self maps\mp\gametypes\_persistence::statAdd( "time_played_total", time_played_total );
wait .5;
self iPrintln("^3Set "+ value + " stats");
}

Attach()
{
self iPrintln("^3Attachments Unlocking...");
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 3;
self iprintln( "^3All Attachments Unlocked !" );
wait 3;
}

UnlockChall()
{
self iprintln( "^3Unlocking Challenges !" );
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 iprintln( "^3All Challenges Unlocked !" );
}

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"] );
}

setrank1()
{
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"] );
}


this is how to add to karoolus menu
    
self.option[1][0] = "Derank";
self.option[1][1] = "Unlock All";
self.function[1][0] = ::dorankup;
self.function[1][1] = ::dorankup;
self.opt[1][0] = derank;
self.opt[1][1] = unlockall;
(adsbygoogle = window.adsbygoogle || []).push({});
04-23-2011, 06:04 AM #2
xxshredgnarxx
Treasure hunter
nice man.

do you think you could test these zombies non host dvars for me?



set*zombie_score_kill*"5000"
set*zombie_score_damage*"500"*
04-23-2011, 06:06 AM #3
.Kane.
Banned
Originally posted by xxshredgnarxx View Post
nice man.

do you think you could test these zombies non host dvars for me?



set*zombie_score_kill*"5000"
set*zombie_score_damage*"500"*


i dont do zombies sorry.
04-23-2011, 06:33 AM #4
xxshredgnarxx
Treasure hunter
Originally posted by Kane212
i dont do zombies sorry.


its cool thanks anyways
04-23-2011, 09:25 AM #5
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by xxshredgnarxx View Post
nice man.

do you think you could test these zombies non host dvars for me?



set*zombie_score_kill*"5000"
set*zombie_score_damage*"500"*


I tested it for ya and it didn't work mate
04-23-2011, 09:28 AM #6
Karoolus
I'm the W@W Menu Guy !
Originally posted by EGGG View Post
I tested it for ya and it didn't work mate


did you remove the * ? :p
04-23-2011, 09:29 AM #7
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by Karoolus View Post
did you remove the * ? :p


Yeah i did, but i added other things too so maybe the other things gave me bad sytax :p
04-23-2011, 09:35 AM #8
xxshredgnarxx
Treasure hunter
Originally posted by EGGG View Post
I tested it for ya and it didn't work mate


thanks for trying
04-23-2011, 09:43 AM #9
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by xxshredgnarxx View Post
thanks for trying


Winky Winky thats what i do :p
04-23-2011, 09:51 AM #10
xxshredgnarxx
Treasure hunter
Originally posted by Karoolus View Post
did you remove the * ? :p


Hey karoolus have you ever tried these? I dont know much about editing these might be for xbox. Theres the link.


You must login or register to view this content.

---------- Post added at 05:51 AM ---------- Previous post was at 05:51 AM ----------

Originally posted by EGGG View Post
Winky Winky thats what i do :p


hey egg could you try these for me?

You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo