Skip to content

Instantly share code, notes, and snippets.

@0xFFD
Created November 3, 2022 19:04
Show Gist options
  • Save 0xFFD/44bcc646b3e53b14f4ceed77527a5278 to your computer and use it in GitHub Desktop.
Save 0xFFD/44bcc646b3e53b14f4ceed77527a5278 to your computer and use it in GitHub Desktop.
Valorant Instalock
{
"agents": {
"jett" : "add6443a-41bd-e414-f6ad-e58d267f4e95",
"reyna" : "a3bfb853-43b2-7238-a4f1-ad90e9e46bcc",
"raze" : "f94c3b30-42be-e959-889c-5aa313dba261",
"yoru" : "7f94d92c-4234-0a36-9646-3a87eb8b5c89",
"phoenix" : "eb93336a-449b-9c1b-0a54-a891f7921d69",
"neon" : "bb2a4828-46eb-8cd1-e765-15848195d751",
"breach" : "5f8d3a7f-467b-97f3-062c-13acf203c006",
"skye" : "6f2a04ca-43e0-be17-7f36-b3908627744d",
"sova" : "320b2a48-4d9b-a075-30f1-1f93a9b638fa",
"kayo" : "601dbbe7-43ce-be57-2a40-4abd24953621",
"killjoy" : "1e58de9c-4950-5125-93e9-a0aee9f98746",
"cypher" : "117ed9e3-49f3-6512-3ccf-0cada7e3823b",
"sage" : "569fdd95-4d10-43ab-ca70-79becc718b46",
"chamber" : "22697a3d-45bf-8dd7-4fec-84a9e28c69d7",
"omen" : "8e253930-4c05-31dd-1b6c-968525494517",
"brimstome" : "9f0d8ba9-4140-b941-57d3-a7ad57c6b417",
"astra" : "41fb69c1-4189-7b37-f117-bcaf1e96f1bf",
"viper" : "707eab51-4836-f488-046a-cda6bf494859",
"fade" : "1b47567f-8f7b-444b-aae3-b0c634622d10"
}
}
import json
from requests import session
from valclient.client import Client
print('Valorant Agent instalocker by ZEROv20')
playerRegion = input('Enter your region (e.g NA): ').lower()
client = Client(region=playerRegion)
client.activate()
valid = False
agents = {}
seenMatches = []
with open('data.json', 'r') as f:
agents = json.load(f)
while valid == False:
try:
preferredAgent = input("Preferred Agent (e.g Kayo): ").lower()
if (preferredAgent in agents['agents'].keys()):
valid = True
else:
print("Invalid Agent")
except:
print("Input Error")
print("Waiting for Agent Select")
while True:
try:
sessionState = client.fetch_presence(client.puuid)['sessionLoopState']
if ((sessionState == "PREGAME") and (client.pregame_fetch_match()['ID'] not in seenMatches)):
print('Agent Select Found')
client.pregame_select_character(agents['agents'][preferredAgent])
client.pregame_lock_character(agents['agents'][preferredAgent])
seenMatches.append(client.pregame_fetch_match()['ID'])
print('Successfully Locked ' + preferredAgent.capitalize())
except Exception as e:
print('', end='') # Using pass caused weird behavior
@bo0vsthewrld
Copy link

image
not work (freeze after region input)

@0xFFD
Copy link
Author

0xFFD commented Nov 13, 2022

image not work (freeze after region input)

Try all caps.

@Berkwe
Copy link

Berkwe commented Aug 17, 2023

https://dosya.co/9jjjb4w13nt8/data.json.html

added harbor, gekko and deadlock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment