Last active
August 29, 2015 14:16
-
-
Save lethak/ff134ee32d637b56ebeb to your computer and use it in GitHub Desktop.
RobertsSpaceIndustries.com StarCitizen Orion Minigame Auto Success
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://robertsspaceindustries.com/comm-link/engineering/14535-Orion-Vault-A-Loan-In-The-Verse | |
window.ltkOrionMinigameHelper = { | |
uid:null, | |
phase:null, | |
init: function(){ | |
console.info("== LTK Orion Minigame Helper == init"); | |
window.ltkOrionMinigameHelper.uid = ""; | |
window.ltkOrionMinigameHelper.phase = 0; | |
window.ltkOrionMinigameHelper.apiCall(); | |
}, | |
samePhase: function(){ | |
console.info("== LTK Orion Minigame Helper == samePhase"); | |
setTimeout(window.ltkOrionMinigameHelper.apiCall, 2000); | |
}, | |
nextPhase: function(){ | |
console.info("== LTK Orion Minigame Helper == nextPhase"); | |
window.ltkOrionMinigameHelper.phase++; | |
if(window.ltkOrionMinigameHelper.phase<3) | |
setTimeout(window.ltkOrionMinigameHelper.apiCall, 2000); | |
else | |
window.alert('== LTK Orion Minigame Helper == success'); | |
}, | |
apiCall: function(){ | |
console.info("== LTK Orion Minigame Helper == apiCall", this); | |
RSI.Api.Minigame.initPhase(window.ltkOrionMinigameHelper.phaseCallback, {"game":"orion","uid":window.ltkOrionMinigameHelper.uid,"phase": window.ltkOrionMinigameHelper.phase}) | |
}, | |
phaseCallback: function(e) | |
{ | |
if(e.success) | |
{ | |
window.ltkOrionMinigameHelper.uid=e.data; | |
ltkOrionMinigameHelper.nextPhase(); | |
} | |
else | |
{ | |
ltkOrionMinigameHelper.samePhase(); | |
} | |
} | |
}; | |
window.ltkOrionMinigameHelper.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Start a new game then open a javascript console (F12) and copy/paste/execute this code into it.
Then wait a -very-very-very- loooong time, a popup will inform you when its finished.
It is taking so long because they have included a "plausible" gameplay session duration check.