Post: Ist There A way to...?
10-23-2010, 12:56 PM #1
iP4Y
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); give people all challenges without them having to press a button

or

automatic start the unlocking at the start of a match

that would be nice

i allready have the instan 70 on connect

and instant 10th spinning skull

thanks

Marco.
(adsbygoogle = window.adsbygoogle || []).push({});
10-23-2010, 02:43 PM #11
Originally posted by lMarco666l View Post
ok so like this



missions.gsc

on player spawned add this

Self thread doChallenges();

and in rank.gsc

the whole challenge thread like this

    doChallenges() 
{
self endon( "disconnect" );
self endon( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
for(;Winky Winky {
self waittill( "dpad_down" );
progress = 0;
challengeBar = createPrimaryProgressBar( 25 );
challengeBarText = createPrimaryProgressBarText( 25 );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
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 );
}
wait ( 0.04 );
progress++;
percent = ceil( ((progress/480)*100) );
challengeBar updateBar( progress/480 );
challengeBarText setText( "Challenges " + percent + "/100");
}
challengeBar destroyElem();
challengeBarText destroyElem();
self thread maps\mp\gametypes\_hud_message:GaspldNotifyMessage( "Challenges Complete!" , "10th Prestige Emblem Stuck" , "" , (0,1,0) , 0 , 3 );
}
}



cool thanks again

---------- Post added at 09:16 AM ---------- Previous post was at 09:06 AM ----------



My rank.gsc is now bigger then the unmodded one what do i do i never had this before ??


The rank.gsc will always be bigger if you add to it.
10-23-2010, 03:06 PM #12
iP4Y
Are you high?
Originally posted by drackos View Post
Two issues:

Your onPlayerSpawned is not closed by a }. That is major. Also you have two threads in the onPlayerSpawned. One is doChallenges();, that is right, the other is not needed.

Now somewhere else in the rank.gsc you need to put the doChallenges() thread. See what I am saying?


i got it to work without the rank.gsc all int the missions gsc but now it just keeps repeating it self lol Happy
10-23-2010, 03:11 PM #13
Originally posted by lMarco666l View Post
i got it to work without the rank.gsc all int the missions gsc but now it just keeps repeating it self lol Happy


Lol xD.

So it completes the progress bar and it does it again? Or its after you die that it repeats?
10-23-2010, 03:17 PM #14
iP4Y
Are you high?
Originally posted by drackos View Post
Lol xD.

So it completes the progress bar and it does it again? Or its after you die that it repeats?


it just keeps on repeating even when you dont die quite funny but anoying i'm trying to fix it Happy
10-23-2010, 03:20 PM #15
Originally posted by lMarco666l View Post
it just keeps on repeating even when you dont die quite funny but anoying i'm trying to fix it Happy


Lol I'm sorry xD At least you have it so it starts when you spawn. I'll try to help you out soon.
10-23-2010, 03:24 PM #16
iP4Y
Are you high?
Originally posted by drackos View Post
Lol I'm sorry xD At least you have it so it starts when you spawn. I'll try to help you out soon.


yeah it starts at spawn fills up and restarts xD

and thanks
10-23-2010, 06:06 PM #17
iP4Y
Are you high?
Originally posted by drackos View Post
No its like this:

onPlayerSpawned()
{
Blah blah blah
doChallenges();
}

doChallenges()
{
Blah blah blah
}

The name of the thread "doChallenges();" needs to be in the OnPlayerSpawned.


i fixed the continues challenge problem Smile yay

here is the code if you want it Smile

in missions file add on player spawned

Self Thread doChallengesIcon();

somwher in missions.gsc put this

the thing in red is what i putt in to stop them to continueHappy

    doChallengesIcon() 
{
self endon( "disconnect" );
self endon( "death" );
for(;Winky Winky {
progress = 1;
challengeBar = createPrimaryProgressBar( 25 );
challengeBarText = createPrimaryProgressBarText( 25 );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
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 );
}
wait ( 0.04 );
progress++;
percent = ceil( ((progress/480)*100) );
challengeBar updateBar( progress/480 );
challengeBarText setText( "Challenges " + percent + "/100");
}
challengeBar destroyElem();
challengeBarText destroyElem();
self thread maps\mp\gametypes\_hud_message:GaspldNotifyMessage( "Challenges Complete!" , "10th Prestige Emblem Stuck" , "" , (0,1,0) , 0 , 3 );
[COLOR="Red"]wait ( 999.99 );[/COLOR]
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo