Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug v5.4.2.2.2
#17
(01-22-2015, 12:23 PM)GkevinOD Wrote:  @Ph!d Well first of all, the dropping of CC troops and King and Queen differ in each switch statement.

You mean 'cause the sleep()?

(01-22-2015, 12:23 PM)GkevinOD Wrote:  Also, if you replace $checkKPower/$checkQPower with booleans, then it would fail because those check what slot they are placed in.

That's why I replaced the:

Code:
Click(68 + (72 * $checkKPower), 595)
Click(68 + (72 * $checkQPower), 595)

With:

Code:
Click(68 + (72 * $King), 595)
Click(68 + (72 * $Queen), 595)

So it knows the slot when activating the powers. I have tested the changes and it is working on my end, the 'Waiting xx seconds before activating King/Queen' message is only displayed when a hero is available.

The other way around would have been to set back to -1 value in Func ReturnHome(...) but since we already have the slot stored in the variables $King and $Queen I thought it would be better to use those values and have the checks as bool instead of having 2 * 2 values of the same (king and queen).

(01-22-2015, 12:23 PM)GkevinOD Wrote:  Next, Func ReturnHome(...) have optional parameters that enable taking screenshot of loot and checking for gold change which is not needed when we just want it to return home without taking screenshot of loot and or checking for goldchange.

Here I only meant that the $checkKPower and $checkQPower don't need to be changed cause they are already bool. Sorry if I didn't make it clear.

(01-22-2015, 12:23 PM)GkevinOD Wrote:  Finally, for Func RequestCC() in order for us to check if it is the same text, it would take more power (cpu) to check than to actually just replace the text due to the use of pixel functions.

Ok, that makes sense.
Reply
 


Messages In This Thread
Bug v5.4.2.2.2 - by bushido-21 - 01-21-2015, 08:22 PM
RE: Bug v5.4.2.2.2 - by GkevinOD - 01-21-2015, 08:57 PM
RE: Bug v5.4.2.2.2 - by bushido-21 - 01-21-2015, 09:20 PM
RE: Bug v5.4.2.2.2 - by dinobot - 01-21-2015, 09:48 PM
RE: Bug v5.4.2.2.2 - by bushido-21 - 01-21-2015, 09:53 PM
RE: Bug v5.4.2.2.2 - by funnybox - 01-22-2015, 12:03 AM
RE: Bug v5.4.2.2.2 - by M Khalid - 01-22-2015, 12:44 AM
RE: Bug v5.4.2.2.2 - by TheCheat - 01-22-2015, 02:08 AM
RE: Bug v5.4.2.2.2 - by dinobot - 01-22-2015, 02:17 AM
RE: Bug v5.4.2.2.2 - by GkevinOD - 01-22-2015, 03:17 AM
RE: Bug v5.4.2.2.2 - by dinobot - 01-22-2015, 03:31 AM
RE: Bug v5.4.2.2.2 - by GkevinOD - 01-22-2015, 04:04 AM
RE: Bug v5.4.2.2.2 - by goondar - 01-22-2015, 10:09 AM
RE: Bug v5.4.2.2.2 - by Ph!d - 01-22-2015, 10:29 AM
RE: Bug v5.4.2.2.2 - by GkevinOD - 01-22-2015, 12:23 PM
RE: Bug v5.4.2.2.2 - by Ph!d - 01-23-2015, 04:01 AM
RE: Bug v5.4.2.2.2 - by dinobot - 01-22-2015, 05:57 PM
RE: Bug v5.4.2.2.2 - by Sopyan-7 - 01-23-2015, 12:21 PM
RE: Bug v5.4.2.2.2 - by Ph!d - 01-23-2015, 03:45 PM
RE: Bug v5.4.2.2.2 - by Sopyan-7 - 01-23-2015, 06:51 PM
RE: Bug v5.4.2.2.2 - by nimlyel - 01-24-2015, 02:11 AM
RE: Bug v5.4.2.2.2 - by indy - 01-24-2015, 11:04 PM
RE: Bug v5.4.2.2.2 - by fadelon - 01-24-2015, 09:52 PM
RE: Bug v5.4.2.2.2 - by nimlyel - 01-25-2015, 12:11 AM
RE: Bug v5.4.2.2.2 - by k3iroll - 01-25-2015, 12:16 AM
RE: Bug v5.4.2.2.2 - by nimlyel - 01-25-2015, 07:41 AM
RE: Bug v5.4.2.2.2 - by ehsanslipknot - 01-25-2015, 05:00 PM
RE: Bug v5.4.2.2.2 - by funnybox - 01-25-2015, 07:55 PM
RE: Bug v5.4.2.2.2 - by Sopyan-7 - 01-27-2015, 06:40 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)

About The Bytecode Club

We're a community forum focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website