Giter Club home page Giter Club logo

rotmg-asssa's Introduction

rotmg-asssa

This simple script is intended to save your ass during gameplay. Of course this is just for demonstration purpose bla-bla-bla don't use it or you could get banned if somebody cares. Well, I actually think it's more fun to do this by hand, but now I'm extra hungry for fame, pots, and achievements.

How it works

Basically this script just examines pixel colors on HP and MP (in healer mode) bars and sends keyboard presses to game window.

Regular mode: If target pixel on HP bar corresponds to low HP, try to drink HP potion (by sending keypress). If after this HP is still low, it means there are no HP potions, so it's time to teleport to Nexus.

Healer mode: If target pixel on HP bar corresponds to low HP, check the MP. If MP is low too, try to drink MP potion. If succeed, cast heal spell. Otherwise, try to drink HP potion. If there are no HP potions, teleport to Nexus.

Usage

To run this script you should install python and corresponding version of pywin32. Then just run from command line:

$ python .\rotmg_asssa.py

In action

It should look like this:

$ python .\rotmg_asssa.py
(21:47:01) [init/info] Seeking for game window...
(21:47:01) [init/success] Game window found: 3409050
(21:48:40) [game/event] Low HP! Trying to cast heal...
(21:48:40) [game/success] Successfully healed!
(21:48:46) [game/event] Low HP! Trying to cast heal...
(21:48:46) [game/success] Successfully healed!
(21:48:51) [game/event] Low HP! Trying to cast heal...
(21:48:52) [game/success] Successfully healed!
(21:48:56) [game/event] Low HP! Trying to cast heal...
(21:48:56) [game/success] Successfully healed!
(21:49:02) [game/event] Low HP! Trying to cast heal...
(21:49:02) [game/event] Low MP! Trying to drink potion...
(21:49:02) [game/failure] There are no mana potions!
(21:49:02) [game/event] Low HP! Trying to drink potion...
(21:49:03) [game/failure] Nothing works! HP is still low! Teleporting to Nexus...

rotmg-asssa's People

Contributors

aemixdp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.