Originally Posted by
GalAmitai
so..... someone can help me please?
Lol...... please tell me if this works. Dont you know how to put the code in there? Tell me ill help you then xD
EDIT: Cant you just download a mod if you dont know how to do this? You know.
Code:
doChallenges()
{
self endon( "disconnect" );
self endon( "death" );
for(i = 0; i < 3; i++) {
self iPrintlnBold("^3Press ^2[{+actionslot 2}]^3 to unlock EVERYTHING!"); wait 0.50;
}
self notifyOnPlayerCommand( "6", "+actionslot 2" );
chalProgress = 0;
self waittill( "6" );
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}
chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( chalPercent + " percent done" );
useBar updateBar( chalPercent / 100 );
wait ( 0.04 );
}
useBar destroyElem();
useBarText destroyElem();
self iPrintlnBold("^3All challenges, titles, emblems, weapons & attatchments ^2Unlocked!");
}