Skip to main content

Unofficial Valorant Tools Library to Create Assistant Bot

Project description

Pyvalo

MIT License

Unofficial valorant tools library to create your own assistant bot & strategy.

I'm not responsible if your account get ban but so far it's still safe to use.

Requirements

Features

  • Buying Phase Validation
  • Purchase Weapon and Shield
  • Score Info
  • Time Left Info
  • Money Checker In-Game
  • Drop Weapon
  • Communication Chat
  • Configuration
  • Shortcut and Keybind
  • Agents ability
  • Custom Config

Installation

Install my-project with npm

  pip install pyvalo

Usage/Examples

Configure Config

Change this if valorant make any changes or your different resolution screen.

import valorant


valo = valorant.config(tesseract=r'D:\Program Files\Tesseract-OCR\tesseract.exe')
print(valo)
"""
Tesseract: D:\Program Files\Tesseract-OCR\tesseract.exe 
check_money_pos: (250, 120, 110, 55) 
check_buy_phase Path: (810, 140, 310, 140) 
enemy_score_info: (750, 25, 100, 55) 
own_score_info Path: (1050, 25, 100, 55) 
time_left_pos: (900, 25, 100, 55) 
failsafe Path: True
"""
#to access config value
print(valo.buy_phase_coor)  # (810, 140, 310, 140)

Modify Existing weapon

Change this if valorant make any changes or your different resolution screen.

from valorant import market


"""
[price, (x, y)]
x,y mean coordinate
[3000, (904, 670)]
"""
#modify price and coordinate
shop = market.Shop()
shop['vandal']=[3000, (904, 670)]
print(shop['vandal'])

#add new weapon
shop['new weapon']=[3100, (904, 670)]
print(shop['new weapon'])

Agent Abilities and Keybind

Create agent combo shortcut using custom or default keybind and automatically return all information

from valorant.utils.agent import Agent

if __name__ == '__main__':
    agent = Agent(first_ability_keybind="m")
    print(agent) #Agent(first_ability_keybind='m', second_ability_keybind='e', third_ability_keybind='c', ultimate_keybind='x', get_keybind='f', first_ability=0, second_ability=0, third_ability=0, ultimate_ability=1)
    agent.use_first_ability()
    agent.use_second_ability()
    agent.use_ultimate_ability()

Chamber Combo

Create agent combo shortcut using custom or default keybind and automatically return all information

from valorant.utils.helper import shortcut
from valorant.utils.agent import Chamber

if __name__ == '__main__':
    #chamber = Chamber()  # default keybind
    chamber = Chamber(first_ability_keybind="e", get_keybind="f") #custom keybind

    @shortcut("capslock", "Capslock Detected")
    def chambers_fake_tp():
        chamber.fake_tp()
        print(chamber)
        #Chamber(first_ability_keybind='e', second_ability_keybind='e', third_ability_keybind='c', ultimate_keybind='x', get_keybind='f', first_ability=0, second_ability=0, third_ability=0, ultimate_ability=1, fake_tp_keybind='ef')

    chambers_fake_tp()

    # access information of chamber first ability
    print(chamber.first_ability)

Default Config

Create agent combo shortcut using custom or default keybind and automatically return all information

from valorant.utils.gameplay import enemy_score_info, own_score_info
import valorant
import time

default_config = valorant.config()  # default config
time.sleep(1)
print(enemy_score_info(config=default_config))
print(own_score_info(config=default_config))

Complete

Buy Assistant Bot with custom config, use it when you are afk for a moment (free customize)

from valorant import market
from valorant.utils.gameplay import check_buy_phase
import valorant
import time

custom_config = valorant.config(tesseract=r'D:\Program Files\Tesseract-OCR\tesseract.exe')  # custom config
shop = market.Shop()
print("Start Bot")

while True:
    print("Checking buy phase")
    data = check_buy_phase(config=custom_config)
    print(data)
    if data:
        current_money = shop.check_money(config=custom_config)
        print("Current Money: ", str(current_money))
        # this is my buying strategy that mostly I use repeatedly
        primary = "vandal"
        secondary = "classic"
        shield = "heavy_shields"
        if 2000 <= current_money <= 2500:
            primary = "spectre"
        elif 2000 > current_money >= 1500:
            primary="marshal"
        elif 1400 <= current_money <= 2000:
            primary="marshal"
            shield = "light_shields"

        shop.buy_weapon(money=current_money, primary_weapon=primary, secondary_weapon=secondary,
                        shield=shield)
        shop.drop_weapon(weapon="all")
        print("Buy and drop weapon success")
    time.sleep(10)

Support

For support, Join my discord https://discord.gg/HZJZAVAZdr

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvalo-0.2.2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

pyvalo-0.2.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file pyvalo-0.2.2.tar.gz.

File metadata

  • Download URL: pyvalo-0.2.2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pyvalo-0.2.2.tar.gz
Algorithm Hash digest
SHA256 acbde2f7983f9fe236551e96a667d3c3e693cb064146a917d3656a5184bccc7a
MD5 18aeb57ac57f68382fadf5a2edc71e46
BLAKE2b-256 cd99325f8e01121686ac5cd17cd6a0e6d848859b9ac181212835f47df7eabfd3

See more details on using hashes here.

File details

Details for the file pyvalo-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyvalo-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pyvalo-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea59a53ef9579001e72991db98cae00ab7a8e33fe595a5eb391447e94db0f7d5
MD5 1e40e9f5f48cfa8c145a4773a799ce9b
BLAKE2b-256 01f057350166bf0744c38275752af4ffc62cf960ec22dbefb279b1bdfe6b3eb8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page