Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Game of War (GoW) Automation (Updated)


  • Please log in to reply
42 replies to this topic
3picGamer
  • Members
  • 11 posts
  • Last active: Oct 05 2015 05:42 PM
  • Joined: 05 Aug 2015

Hi Malchite i am sorry to say that

 

it is more Broken now than before, i add the Account := 1 to line 1 correct ? in ini

then for single mode i click disable cycle ? either way clicked or unclicked it does the alliance Helps then

whislt there is a secret gift on screen it does not open it.

 

it cycles through Alliance gift, helps, secret chest, Dungeon, Athena chest but does not open them.

 

Also if i want only 1 account do i have to Add account details ? for one account only ? 

and what do i enter into the ini file for single account only?

 

a little more description because at current this seems to be very Broken

 

i hope you can get it at least working on one account correctly.

 

it is still logging off when only one account is used.

 

how should it be set up with a single account do i still need ini file ? do i enter email and password ?

 

because it is very annoying that the only thing it can get correct is Alliance gifts and Logging off !

 

Also Droid4x 0.8.3 for Active window, you know current Droid4x Version is Droid4x 0.8.4  does this need to be changed in the main script ?



Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015
As long as the icon location is correct, you should be able to just copy/paste the 0.8.3, and change it to 4.
I have a number of people that are using this, I'll post the script working on YouTube here in a bit, under the same name.
I have had people with slower systems tell me that they had to increase the min-max numbers, that's why I put the function in the script.
Just delete the ini file you created, log into the game manually, and check "disable cycle", or you can edit the checkbox to read checked, to make it on all the time, then click start.
If it's not picking up the colors, you may have to adjust the color, or the pixel location, but you can use the "pixel" tool to help you with that too.

3picGamer
  • Members
  • 11 posts
  • Last active: Oct 05 2015 05:42 PM
  • Joined: 05 Aug 2015

oh ok thanks for the info il see if i can get it to work



Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015

I've posted a video of it working in single account mode on youtube at www.youtube.com/watch?v=bvxI_Y2kY9M.



3picGamer
  • Members
  • 11 posts
  • Last active: Oct 05 2015 05:42 PM
  • Joined: 05 Aug 2015

Here is one after updating droid versions to  0.8.4 

 

it will do Alliance Helps and quests but will not do dungeon, secret chest ? yet i check co ords and colours pixels ok and pc is fast quad core  even trien min max wait different milliseconds i am lost to make it work

 



Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015
If (SGiftsOn = 1) {
  GuiControl,,AccountMode,Secret Chest
  SetTimer, CityScreen, 120000
  PixelGetColor, color, 110, 511, %AppVer% ;Secret GIft
   SC1 = %color%
   sleep, 1000
  PixelGetColor, color, 110, 511, %AppVer% ;Secret GIft
   SC2 = %color%
    If SC1 != %SC2%
     {
      gosub, SecretChest
     }
  gosub, CityScreen
  SetTimer, CityScreen, Off
 }

;------Secret GIft------

SecretChest:
gosub, LongSleep
 PixelSearch, Px, Py, 300, 390, 300, 550, 0x0F5CAB, 1, Fast
  If ErrorLevel = 0
   {
     goto, SChestCheck
    return
   }
 PixelSearch, Px, Py, 300, 390, 300, 550, 0x0F5CAB, 1, Fast
  If ErrorLevel != 0
   {
    PixelGetColor, color, 110, 511, %AppVer% ;Secret GIft
    SC1 = %color%
    sleep, 1000
    PixelGetColor, color, 110, 511, %AppVer% ;Secret GIft
    SC2 = %color%
     If SC1 != %SC2%
      {
       ControlClick, x110 y510, %AppVer% ;select Secret Chest
       goto, SecretChest
      }
     If SC1 = %SC2%
      {
       return
      }
   }
return

SChestCheck:
gosub, LongSleep
PixelGetColor, color, 200, 400, %AppVer% 
 If Color = 0x0F5CAB
  {
   ControlClick, x200 y400, %AppVer% ;Collect
   goto, SChestCheck
  }
PixelGetColor, color, 200, 420, %AppVer% 
 If Color = 0x0F5CAB
  {
   ControlClick, x200 y420, %AppVer% ;Collect
   goto, SChestCheck
  }
return

This is the variable check and the subs associated with it.  You can try to adjust the "ControlClick, x110 y510 up to a y511, or possibly just a little higher.  When you doubleclick on the green H in the taskbar, do the recent lines of code reflect that it's trying to pass the click?



Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015

interesting thing is, both the Secret Chest sub, and the Dungeon sub use the same method.  The Athena Chest sub uses the same thing, is it working on the Athena Chests?



3picGamer
  • Members
  • 11 posts
  • Last active: Oct 05 2015 05:42 PM
  • Joined: 05 Aug 2015

ok the quests were not working so i changed the click from green check mark to the red box with number of quests

 

the subs for the secret gifts seem to be comparing a color to a color i think its to complicated and would be error free if you

did it like some of the others where it does a simple pixel search, when the secret chest is not available there is a grey timer bar,

 

maybe you should change it so it checks for grey timer, and not complete the function until the grey bar is gone and chest bouncing, i don't know as i am only learning

but in your first release the gifts always work perfectly and i check and the same numbers and co ords are used in fact if i run the old script it opens the secret gifts perfect

 

 

Also i ask 4 friends all to try this script and they all say malfunctions and things not working, is it maybe graphics card colours or different resolutions pixels sizes 

im not sure.

 

Also i dont understand this fucntion is comparing colours ?

 

 

  1. SC1 = %color%
  2. sleep, 1000
  3. PixelGetColor, color, 110, 511, %AppVer% ;Secret GIft
  4. SC2 = %color%
  5. If SC1 != %SC2%

 

is it there where error is or is it something else, i tried just now the shielding and that also will not work below is a list of things that are broken

 

Not working are

 

Shielding

 

Athena Chest

 

Dungeon

 

Secret gift

 

Combine

 

 

 

The Alliance Helps and Alliance Gifts work Perfectly everytime !!!!

 

 

---- C:\Users\jason\Desktop\gow auto hot\GoW v8.3.4test.ahk
1752: PixelSearch,Px,Py,198,672,202,678,0x777CC3,100,Fast, %AppVer% (0.05)
1753: if (ErrorLevel = 0)  
1756: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.03)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.05)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.03)
1124: if ErrorLevel = 0
1131: Return
1757: SetTimer,CityScreen,Off
1758: Sleep,3000 (3.00)
1759: }
1762: if (ACQuestsOn = 1)  
1774: if (ACGiftsOn = 1)  
1785: if (Accounts = 0)  
1791: if (DisableCycle = 1)  
1793: GuiControl,,AccountMode,Start
1794: Goto,CycleStart
1539: IfWinExist,%AppVer%
1540: WinActivate (0.11)
1541: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.03)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.06)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.03)
1124: if ErrorLevel = 0
1131: Return
1543: if (ShieldOn = 1)  
1549: if (TrainOn = 1)  
1572: if (DonateOn = 1)  
1579: if (BuildOn = 1)  
1584: if (StartOn = 1)  
1597: if (GiftsOn = 1)  
1598: GuiControl,,AccountMode,Alliance Gifts
1599: SetTimer,CityScreen,360000
1600: PixelSearch,Px,Py,277,675,284,688,0X175F1F,25,Fast, %AppVer% (0.03)
1601: if (ErrorLevel = 0)  
1604: SetTimer,CityScreen,Off
1605: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.05)
1124: if ErrorLevel = 0
1131: Return
1606: }
1609: if (HelpsOn = 1)  
1610: GuiControl,,AccountMode,Alliance Helps
1611: SetTimer,CityScreen,120000
1612: PixelSearch,Px,Py,445,550,445,550,0X282EA0,10,Fast, %AppVer% (0.03)
1613: if (ErrorLevel = 0)  
1616: PixelSearch,Px,Py,422,544,422,548,0X011CDD,10,Fast, %AppVer% (0.03)
1617: if (ErrorLevel = 0)  
1620: PixelSearch,Px,Py,442,545,422,548,0X2C32A2,10,Fast, %AppVer%
1621: if (ErrorLevel = 0)  
1624: SetTimer,CityScreen,Off
1625: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.05)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.03)
1124: if ErrorLevel = 0
1131: Return
1626: }
1629: if (HealOn = 1)  
1644: if (DungeonOn = 1)  
1645: GuiControl,,AccountMode,Dungon
1646: SetTimer,CityScreen,120000
1647: PointsEmpty = 1
1648: PixelGetColor,color,345,510,%AppVer% (0.03)
1649: DP1 = %color%
1650: Sleep,1000 (1.00)
1651: PixelGetColor,color,345,510,%AppVer% (0.03)
1652: DP2 = %color%
1653: if DP1 <> %DP2%
1657: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.03)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.05)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.03)
1124: if ErrorLevel = 0
1131: Return
1658: SetTimer,CityScreen,Off
1659: }
1662: if (SGiftsOn = 1)  
1663: GuiControl,,AccountMode,Secret Chest
1664: SetTimer,CityScreen,120000
1665: PixelGetColor,color,110,511,%AppVer% (0.03)
1666: SC1 = %color%
1667: Sleep,1000 (1.00)
1668: PixelGetColor,color,110,511,%AppVer%
1669: SC2 = %color%
1670: if SC1 <> %SC2%
1675: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.03)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.06)
1124: if ErrorLevel = 0
1131: Return
1676: SetTimer,CityScreen,Off
1677: }
1680: if (AGiftsOn = 1)  
1681: GuiControl,,AccountMode,Athena Chest
1682: SetTimer,CityScreen,120000
1683: PixelGetColor,color,190,505,%AppVer% (0.05)
1684: AC1 = %color%
1685: Sleep,1000 (1.00)
1686: PixelGetColor,color,190,505,%AppVer% (0.03)
1687: AC2 = %color%
1688: if AC1 <> %AC2%
1693: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.03)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.05)
1124: if ErrorLevel = 0
1131: Return
1694: SetTimer,CityScreen,Off
1695: }
1698: if (ChestsOn = 1)  
1705: if (CombineCoresOn = 1)  
1713: if (CombinePiecesOn = 1)  
1721: if (CombineGemsOn = 1)  
1729: if (CombineMaterialsOn = 1)  
1737: toggleManualCombine := 0
1740: if (ResearchOn = 1)  
1749: if (QuestsOn = 1)  
1750: GuiControl,,AccountMode,Collecting Quests
1751: SetTimer,CityScreen,300000
1752: PixelSearch,Px,Py,198,672,202,678,0x777CC3,100,Fast, %AppVer% (0.05)
1753: if (ErrorLevel = 0)  
1756: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.05)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.03)
1124: if ErrorLevel = 0
1131: Return
1757: SetTimer,CityScreen,Off
1758: Sleep,3000 (3.00)
1759: }
1762: if (ACQuestsOn = 1)  
1774: if (ACGiftsOn = 1)  
1785: if (Accounts = 0)  
1791: if (DisableCycle = 1)  
1793: GuiControl,,AccountMode,Start
1794: Goto,CycleStart
1539: IfWinExist,%AppVer%
1540: WinActivate (0.13)
1541: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.05)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.05)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.05)
1124: if ErrorLevel = 0
1131: Return
1543: if (ShieldOn = 1)  
1549: if (TrainOn = 1)  
1572: if (DonateOn = 1)  
1579: if (BuildOn = 1)  
1584: if (StartOn = 1)  
1597: if (GiftsOn = 1)  
1598: GuiControl,,AccountMode,Alliance Gifts
1599: SetTimer,CityScreen,360000
1600: PixelSearch,Px,Py,277,675,284,688,0X175F1F,25,Fast, %AppVer% (0.05)
1601: if (ErrorLevel = 0)  
1604: SetTimer,CityScreen,Off
1605: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.05)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.05)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.03)
1124: if ErrorLevel = 0
1131: Return
1606: }
1609: if (HelpsOn = 1)  
1610: GuiControl,,AccountMode,Alliance Helps
1611: SetTimer,CityScreen,120000
1612: PixelSearch,Px,Py,445,550,445,550,0X282EA0,10,Fast, %AppVer% (0.03)
1613: if (ErrorLevel = 0)  
1616: PixelSearch,Px,Py,422,544,422,548,0X011CDD,10,Fast, %AppVer% (0.03)
1617: if (ErrorLevel = 0)  
1620: PixelSearch,Px,Py,442,545,422,548,0X2C32A2,10,Fast, %AppVer%
1621: if (ErrorLevel = 0)  
1624: SetTimer,CityScreen,Off
1625: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.03)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast (0.03)
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.05)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.05)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.03)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast (0.03)
1124: if ErrorLevel = 0
1131: Return
1626: }
1629: if (HealOn = 1)  
1644: if (DungeonOn = 1)  
1645: GuiControl,,AccountMode,Dungon
1646: SetTimer,CityScreen,120000
1647: PointsEmpty = 1
1648: PixelGetColor,color,345,510,%AppVer% (0.03)
1649: DP1 = %color%
1650: Sleep,1000 (1.00)
1651: PixelGetColor,color,345,510,%AppVer%
1652: DP2 = %color%
1653: if DP1 <> %DP2%
1657: Gosub,CityScreen
1059: IfWinExist,%AppVer%
1060: WinActivate (0.11)
1061: WinGetPos,X,Y,W,H,A
1062: if W <> 460
1069: PixelSearch,Px,Py,180,400,180,400,0x0F5CAB,1,Fast (0.03)
1070: if ErrorLevel = 0
1076: PixelSearch,Px,Py,390,380,390,380,0x0F5CAB,1,Fast (0.03)
1077: if ErrorLevel = 0
1083: PixelSearch,Px,Py,78,73,78,73,0xFFFFFF,0,Fast
1084: if ErrorLevel = 0
1091: PixelSearch,Px,Py,411,79,411,79,0xDCDCDC,0,Fast (0.03)
1092: if ErrorLevel = 0
1099: PixelSearch,Px,Py,220,350,220,350,0x030839,0,Fast (0.03)
1100: if ErrorLevel = 0
1107: PixelSearch,Px,Py,200,550,200,550,0x474100,0,Fast (0.03)
1108: if ErrorLevel = 0
1115: PixelSearch,Px,Py,150,50,150,50,0x101427,50,Fast (0.05)
1116: if ErrorLevel = 0
1123: PixelSearch,Px,Py,416,35,450,58,0xDCDCDC,10,Fast
1124: if ErrorLevel = 0
1131: Return
1658: SetTimer,CityScreen,Off
1659: }
1662: if (SGiftsOn = 1)  
1663: GuiControl,,AccountMode,Secret Chest
1664: SetTimer,CityScreen,120000
1665: PixelGetColor,color,110,511,%AppVer%
1666: SC1 = %color%
1667: Sleep,1000 (0.14)


Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015
The color check for the dungeon, Athena chest, and secret chest works like this: it gets the color from a location, stores the color as a variable (SC1) sleeps, then gets the color again from the same location, if they match, the script does nothing (the chest is not moving), if not, it starts the sub.
I use the green checkbox because if there is not a quest to collect, the checkbox isn't present, the red box is always there. Quest is split into two parts, one that just goes to every quest set and completes them if they are there, and a second that looks for the green checkmark, and only collects if a quest is finished. Sounds like there are some color variations there that aren't within the color shades specified. The last numbers in the pixelsearch line are the degrees of variation in shade of the color you are searching for.
What are combine and shield doing?
Last time I had anything close to this was when they changed the border GUI on the droid emulator with an update, and it threw off the pixels locations.

Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015
Try to change the "y" location on the secret gift to y513
Line 1653 above should catch the color change at the pixel location, but is not, so either the location needs to be adjusted, or the pixelsearch function is not working correctly for you.
Use the pixel tool to check the shade of green in the range for the quest collect checkmarks, and adjust it if it is required.

And let me know what combine and shield are doing, or where they are stopping.

Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015
Sorry pixelgetcolor you don't need to check for a specific shade for the chests, and dungeon, it's just looking for a change.

Malechite
  • Members
  • 23 posts
  • Last active: Sep 04 2016 08:02 PM
  • Joined: 30 Jul 2015
Have you had any luck with it?

3picGamer
  • Members
  • 11 posts
  • Last active: Oct 05 2015 05:42 PM
  • Joined: 05 Aug 2015

Hi Malechite i managed to get the Secret gifts to work and athena chest to work, by using pixel tool and changing y511 to y527  and similar fix on Athena chest also same fix i made on Dungeon.

 

Heal is not working i have not looked at this yet but i did look at Shield now pixel tool finds correct co ords and colours if a shield bird icon exists

 

and if no shield icon is present i assume if Errorlevel != 0 means if the coulor it finds is incorrect then jump gosub

 

 
 
Edit = i found why shield does not click it is because there is another boost present that has the same brown colour 0x10122E so first check failsand moves onto next check but the next check has the colour so it does not clcik the items menu, however if i remove the ! form errorlevel,   like if errorlevel = 0 instead of if errorlevel !=0 it perfoms the click
so i will change this too work the next malfunction is when it goes to the war items menu it fails to apply the shield even though there is 8 Hour shields present
and now there are dig site shields from packs it messes with shield so i changed my items to store menu then made it click Own 3 use icon in teal and check if it is Grey
if so i made it run sub for buy shield, So shield is now working
 
I can not get Build Upgrade Working it is scrolling searching for Node then it clicks the Building but does not Click the Upgrade Button i am having trouble finding this maybe you can help so i can edit it ?.
 
 
 
Also you have designed this for lower Vip levels as after vip 10 the quests are autocomplete and do not show a green check mark, even though there are quests to click,
it will only carry out the Quest Sub if there is a green check mark so it only ends up doing the VIP quests and i have to manually click the AutoComplete.
 
And Also on the Open Chests there is an Extra Close Button that is not present on Lower VIP so once you get Open All Chests, at VIP prestige 12 it breaks the Open Chest Function.
 
The Upgrade Function is buggy sometimes it clicks the Yellow arrow then inside Submenu it does not click upgrade Button ? all though the Pixel tool reveals the correct button and colour location ?..
 
For now at least i have managed to fix the Secret gift and Athena Chest, Dungeon, and Buy shield apply Shield
 
So it would be Awsome if i can get Heal and Upgrade working i am not too bothered about the rest of the functions


SnowFlake_FlowSnake
  • Members
  • 845 posts
  • Last active: Jan 24 2016 05:24 PM
  • Joined: 08 Oct 2012

Take a look at these tools to make it easier to find the right pixel

 

http://www.autohotke...-pixel-checker/

and

http://www.autohotke...ion-storer-v10/

 

 

Tnx


  • Download link of my scripts on Autohotkey.com 2/10/2015 [DOWNLAND]
  • Contact Info:  https://github.com/floowsnaake //  FloowSnaake(A)gmail.com
  • IF you need Help send me a PM,Email or Post on Github

  • Quote by tank  Posted 29 September 2015 - 06:14 PM

  • "Eventually i will find a way to convert the DB back to PHPBB3. but i dont have the bandwidth right now. No one that has tried has had success. It is the Only way i can keep this open is if i could successfully convert it."

3picGamer
  • Members
  • 11 posts
  • Last active: Oct 05 2015 05:42 PM
  • Joined: 05 Aug 2015

thanks Snowflake but the script comes with a built in pixel and color finder the problem is im still learning

 

And for me to fully understand the functions and subroutines is a little overwhelming but i have managed to learn to fix some of the issues in the last few days.

 

I guess Help and reading is where things get fixed thank you for your inpout i follow a lot of your work and posts Snowflake,

 

i did have a longer term account here at autohotkey going back as far as Battlefield 2 release days but can not for the life of me remember my details so i started a new account  last week