Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Change Character App #91

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

daredoes
Copy link
Collaborator

Adds an app that changes the character to the hero in either Slot 1, 2, or 3.

} else {
debug("Selecting Character in Slot #" + characterSlot);
if (characterSlot == 1) {
InteractionUtil.Mouse.mouseMoveAndClickAndHide(new Offset(250, 200).toScreenCoordinate());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded offset

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are hardcoded as there is no unique image in that location that can be recognized.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main purpose of Profile design is too support multiple screen resolution

masterSwitch, //
SmallTasks //
.builder() //
.clickTalk() //
Copy link
Owner

@9-9-9-9 9-9-9-9 Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are those options needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No clue! Didn't want to break anything :P I just started using your bot on Friday

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you adopt the code base so fast, really impressive, ty

@9-9-9-9
Copy link
Owner

9-9-9-9 commented Jan 26, 2023

Great job, tysm @daredoes

Btw please pump version in pom.xml next time

@9-9-9-9 9-9-9-9 merged commit 9f0ef5b into 9-9-9-9:master Jan 26, 2023
@9-9-9-9
Copy link
Owner

9-9-9-9 commented Jan 26, 2023

Btw @daredoes please write some text that I can paste into Wiki to introduce about your function

@daredoes
Copy link
Collaborator Author

@9-9-9-9 Will do! I'm also almost finished with an update for the AFK app that adds an infinite quest runner. My implementation works, but it could definitely use some love so users can customize their questing. It does support Boss Levels, Heroic Dungeons, and the next available level. It tries to search for a level in that order.

Combined with this PR, I have a script that goes

  • AFK Run Character 1
  • Change to Character 2
  • AFK Run Character 2
  • Change to Character 3
  • AFK Run Character 3
  • Change to Character 1
  • Restart Actions from step 1 for 24/7 loop

@daredoes
Copy link
Collaborator Author

Wiki text:
function character

This function only supports clicking the characters in the first, second, and third slot.

Supported flags:

  • --exit=X means bot will exit after X secs if not completed, no matter how many loop remaining
  • --shutdown shutdown your computer after bot exit
    Global flags

Notes:

  • Automatically exit if used to select character that is already selected after a period of time

@9-9-9-9
Copy link
Owner

9-9-9-9 commented Jan 26, 2023

@9-9-9-9 Will do! I'm also almost finished with an update for the AFK app that adds an infinite quest runner. My implementation works, but it could definitely use some love so users can customize their questing. It does support Boss Levels, Heroic Dungeons, and the next available level. It tries to search for a level in that order.

Combined with this PR, I have a script that goes

  • AFK Run Character 1
  • Change to Character 2
  • AFK Run Character 2
  • Change to Character 3
  • AFK Run Character 3
  • Change to Character 1
  • Restart Actions from step 1 for 24/7 loop

Great, please submit the script as well

@9-9-9-9 9-9-9-9 added the enhancement New feature or request label Jan 29, 2023
@9-9-9-9
Copy link
Owner

9-9-9-9 commented Jan 30, 2023

Hi @daredoes,

Look like due to lacking of dev guide in wiki, leads to some thing that does not perfect in the implementation, that's my fault. Hope that following comments is not too late :D

How to create TP image correctly

  • When you are going to capture to crop a button, please take a picture of game screen via sc app.
  • Go to out/images/sc folder and open that image using Paint
  • You will see the image is without any border, a completely 800x520 screenshot
  • Crop the button into another bmp image
  • Import using tp app
  • Now take a look at the newly imported tp, check the top left corner of that image, refer to the original image taken by sc app, take the coordinate into profile.
  • Let say the Confirm button you made in this PR, as I checked, the offset should be 340,444 (my account does not have any NFT character)
  • You can refer to my previously imported images, you will see the top left corner of the imported images has exact position as described in profile class, on the original image captured using sc app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants