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 ?
- SC1 = %color%
- sleep, 1000
- PixelGetColor, color, 110, 511, %AppVer% ;Secret GIft
- SC2 = %color%
- 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)