Thread Rating:
  • 5 Vote(s) - 3.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Unlock All Challenges
#1
C++ Code
  1. UnlockallChallenges()
  2. {
  3. self endon("disconnect");
  4.  
  5.  
  6. notifyAll = 1;
  7. challengeTypes = [];
  8. challengeTypes[0] = "marksman";
  9. challengeTypes[1] = "expert";
  10.  
  11. for ( weaponNum = 0; weaponNum < 64; weaponNum++ )
  12. {
  13. if ( isDefined( level.tbl_weaponIDs[ weaponNum ] ) )
  14. {
  15. foreach( challengeType in challengeTypes )
  16. {
  17. baseName = "ch_" + challengeType + "_" + level.tbl_weaponIDs[ weaponNum ][ "reference" ] + "_";
  18. numLevels = getChallengeLevels( baseName );
  19.  
  20. if ( numLevels > 1 )
  21. {
  22. refString = baseName + numLevels;
  23. self.challengeData[baseName + "1"] = 255;
  24. }
  25. else
  26. {
  27. refString = baseName;
  28. self.challengeData[baseName] = 255;
  29. }
  30.  
  31. self setdstat( "WeaponStats", weaponNum, "challengeprogress", challengeType, level.challengeInfo[refString]["maxval"] );
  32. self setdstat( "WeaponStats", weaponNum, "challengestate", challengeType, 255 );
  33.  
  34. if( notifyAll == 1 )
  35. {
  36. self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], weaponNum, level.challengeInfo[refString]["tier"] );
  37. }
  38. wait .05;
  39. }
  40. }
  41. }
  42.  
  43. for(c=0;c<self.challengeData.size;c++)
  44. {
  45. baseName = self.challengeData[c];
  46. numLevels = getChallengeLevels( baseName );
  47.  
  48. if ( numLevels > 1 )
  49. {
  50. refString = baseName + numLevels;
  51. self.challengeData[baseName + "1"] = 255;
  52. }
  53. else
  54. {
  55. refString = baseName;
  56. self.challengeData[baseName] = 255;
  57. }
  58.  
  59. self setdstat( "ChallengeStats", refString, "challengeprogress", level.challengeInfo[refString]["maxval"] );
  60. self setdstat( "ChallengeStats", refString, "challengestate", 255 );
  61.  
  62. if( notifyAll == 1 )
  63. {
  64. self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], 0, level.challengeInfo[refString]["tier"] );
  65. }
  66. wait .05;
  67. }
  68. notifyData = spawnstruct();
  69. notifyData.titleText = "Challenges Done";
  70. notifyData.notifyText = "<Made by Kevgodee/KG36";
  71. notifyData.notifyText = "<Visit Gamefroobs.net / Itsmods.com for all your moding needs";
  72. notifyData.duration = 2;
  73. self thread notifyMessage( notifyData );
Reply

#2
i'm assuming this will have no impact at cod points nor exp?
Reply

#3
not yet, i'm looking into it, but atm i don't think it is possible.
Reply

#4
your missing the last bracket on the bottom,
but none the less gj

EDIT: theres also another syntax error i cant seem to find?
Reply

#5
what does the console say? (sometimes it gives a character number, sometimes it says uninitialized variable or unknown function)
Reply

#6
(11-19-2010, 03:42)SuperNovaAO Wrote: what does the console say? (sometimes it gives a character number, sometimes it says uninitialized variable or unknown function)

fixed, although more unknown functions so I didn't care anymore
Code:
foreach()
seems to not work (for me at least) anymore

and the console is still like mw2, no feedback whatsoever
Reply

#7
Id tech 3 engine consoles = TERRIBLE
Reply

#8
does it work or not?
Reply

#9
I think its work but i dont wanna risk ( Banned ) This is not the complete codes for this.
Reply

#10
If your going to copy my code at least give credit kid. Here is where I originally posted it:
http://www.se7ensins.com/forums/topic/34...enge-hack/
Not trying to advertise, just showing that I made this code and that OP is retarded.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  unlock max fps plugin lander 3 3,452 08-20-2013, 15:12
Last Post: Pozzuh
  10th prestige // 70 lobby // unlock everything d0h! 5 37,219 01-13-2013, 20:56
Last Post: ben.anter
  Secret Challenges Puffiamo 4 4,919 12-19-2012, 15:00
Last Post: JariZ
  When will my Black Ops II PC game unlock? SparkyMcSparks 14 7,979 11-10-2012, 18:02
Last Post: Pozzuh
  [Tutorial] [Important] Guide for iPhone 3GS unlock rotceh_dnih 0 2,237 02-06-2012, 22:51
Last Post: rotceh_dnih
Wink [Tutorial] MW3 Console Unlock! tadej 29 34,703 01-07-2012, 16:19
Last Post: husamscorpio
  [Tutorial] SP Unlock Level Menu and get dev info Yamato 12 7,561 10-15-2011, 20:32
Last Post: d0h!
  [Tutorial] How to unlock limits of Heli/RC/Turret/Dogs/Airstrikes alistair3149 9 5,918 09-17-2011, 07:34
Last Post: Alpha_One
  Preview gold camo unlock mod :D Boma 11 6,963 09-13-2011, 15:04
Last Post: Nekochan
Heart [Request] MW2 Liberation 1.04 Donor Unlock TimeShift 4 7,629 06-05-2011, 13:13
Last Post: TechnoX

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.