Login

russian armor

How to farm War Spoils

PAGES (68)down
23 Jan 2016, 10:45 AM
#761
avatar of scratchedpaintjob
Donator 11

Posts: 1021 | Subs: 1

Can you get War Spoils when steam is in offline mode ?

i dont think so, but actually the relic servers could be independent from the steam status, therefore it might work. just test it out!

I tried farming for the night, and it seems that the ahk script hangs upon getting a war drop. I got a war drop and it just stopped clicking anything

which script did you use?
and does it work normally, when there are no warspoils?

23 Jan 2016, 10:50 AM
#762
avatar of nuker22110

Posts: 3


i dont think so, but actually the relic servers could be independent from the steam status, therefore it might work. just test it out!


which script did you use?
and does it work normally, when there are no warspoils?



I use the attached exe file. Yes it works normally when no warspoils are given, the different clicks to restart the match works. Could it be some sort of tutorial prompt that shows up from time to time that messed up the script?
23 Jan 2016, 14:10 PM
#763
avatar of SShengli

Posts: 103

What happens exactly when you look at the screen?
Its just still ingame with the VICTORY picture?
23 Jan 2016, 14:32 PM
#764
avatar of nuker22110

Posts: 3

What happens exactly when you look at the screen?
Its just still ingame with the VICTORY picture?



if i remember correctly, it was the victory screen, with the war spoils drop button highlighted(the crate looking thing) or it was the war spoil icon with a gold band surrounding it. i cant really remember which sorry
23 Jan 2016, 14:52 PM
#765
avatar of scratchedpaintjob
Donator 11

Posts: 1021 | Subs: 1



I use the attached exe file. Yes it works normally when no warspoils are given, the different clicks to restart the match works. Could it be some sort of tutorial prompt that shows up from time to time that messed up the script?
if i remember correctly, it was the victory screen, with the war spoils drop button highlighted(the crate looking thing) or it was the war spoil icon with a gold band surrounding it. i cant really remember which sorry

which tutorial prompt do you mean? if its a one time thing, just try the script again and see, if it works now - if not, please make a screenshot of the screen where the script stopped to work!
23 Jan 2016, 18:20 PM
#766
avatar of Sober

Posts: 129

Any chance you interrupted the LOOP? By putting the cursor on another window or something?




if i remember correctly, it was the victory screen, with the war spoils drop button highlighted(the crate looking thing) or it was the war spoil icon with a gold band surrounding it. i cant really remember which sorry
23 Jan 2016, 21:56 PM
#767
avatar of Slayer

Posts: 97

Results from 3 days and nights:

27 items

- Storm doctrine (I now have four of them)
- Coordinated Artillery strike (victory strike - dupe)
- three skins, two dupes
- 22 bulletins

Wow, what a load of crap :(
24 Jan 2016, 10:27 AM
#768
avatar of scratchedpaintjob
Donator 11

Posts: 1021 | Subs: 1

jump backJump back to quoted post23 Jan 2016, 21:56 PMSlayer
Results from 3 days and nights:

27 items

- Storm doctrine (I now have four of them)
- Coordinated Artillery strike (victory strike - dupe)
- three skins, two dupes
- 22 bulletins

Wow, what a load of crap :(

i would advise to change to soviets and wait for relics warspoilfix to get the last wehrmacht commander. with this many commanders you just get a ridiculous amount fo dupes before you have them all :(
24 Jan 2016, 15:50 PM
#769
avatar of SShengli

Posts: 103

This is what i got the last many days :(

24 Jan 2016, 17:29 PM
#770
avatar of moonjy1120

Posts: 2

Hi,i started to play coh2 last week and i was glad to see this. but i got some problem i am using surface pro 3 for farming and surface doesn't have monitor off option so it goes to sleep mode i have to turn it on every time so can you teach me how to make this script input space bar before scripts clicks?
sorry for my bad english...
i searched internet and find send,{space 2} can solve this is this right?
this is the script i edit
Sleep, 10000

WinWait, Company Of Heroes 2,
IfWinNotActive, Company Of Heroes 2, , WinActivate, Company Of Heroes 2,
WinWaitActive, Company Of Heroes 2,

WinGetPos, xborder, yborder,width,height,Company Of Heroes 2

xedge:= (width-1024)/2
ytitlebaredge:= height-768-xedge


Loop, 100
{

;Start Loading

Send, {Space 2}
xcord:=xedge+516
ycord:=ytitlebaredge+620
Click %xcord% %ycord%
Sleep, 5000

;Start Match

xcord:=xedge+514
ycord:=ytitlebaredge+652
MouseMove, %xcord%, %ycord%


xcordl:=xedge+453
ycordl:=ytitlebaredge+643
xcordu:=xedge+455
ycordu:=ytitlebaredge+645
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x1A227F , 5
while (ErrorLevel = 1)
{
Sleep, 100
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x1A227F , 5
}

Send, {Space 2}
xcord:=xedge+514
ycord:=ytitlebaredge+652
Click %xcord% %ycord%
Sleep, 5000

xcord:=xedge+926
ycord:=ytitlebaredge+443
PixelGetColor, color, %xcord%, %ycord%

Blue:="0x" SubStr(color,3,2)
Blue:=Blue+0

Green:="0x" SubStr(color,5,2)
Green:=Green+0

Red:="0x" SubStr(color,7,2)
Red:=Red+0


while (green <> 0 and blue <> 255)
{
Sleep, 5000

PixelGetColor, color, %xcord%, %ycord%


Blue:="0x" SubStr(color,3,2)
Blue:=Blue+0

Green:="0x" SubStr(color,5,2)

Green:=Green+0

Red:="0x" SubStr(color,7,2)

Red:=Red+0
}

waittime:= (Red*60*1000) + 10000
minuten:=waittime/1000/60


Sleep, %waittime%

WinGetPos, xborder, yborder,width,height,Company Of Heroes 2

xedge:= (width-1024)/2
ytitlebaredge:= height-768-xedge


IfWinNotActive, Company Of Heroes 2, , WinActivate, Company Of Heroes 2,
WinWaitActive, Company Of Heroes 2,

;Quit Match
xcord:=xedge+459
ycord:=ytitlebaredge+45
MouseMove, %xcord%, %ycord%

xcordl:=xedge+421
ycordl:=ytitlebaredge+42
xcordu:=xedge+423
ycordu:=ytitlebaredge+44
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x2F3F8C , 5
while (ErrorLevel = 1)
{
Sleep, 100
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x2F3F8C , 5
}

Send, {Space 2}
Click %xcord% %ycord%
Sleep, 1000

;Close Match Stats
CloseMatchstats:
counter=0
xcord:=xedge+487
ycord:=ytitlebaredge+603
MouseMove, %xcord%, %ycord%

xcordl:=xedge+444
ycordl:=ytitlebaredge+602
xcordu:=xedge+446
ycordu:=ytitlebaredge+604
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x2A3A85 , 5
while (ErrorLevel = 1 and counter<60000)
{
Sleep, 100
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x2A3A85 , 5
counter = counter+1
}
;check wether this needs to long (disconnect?)
if (counter>=60000)
{
xcordl:=xedge+551
ycordl:=ytitlebaredge+312
xcordu:=xedge+553
ycordu:=ytitlebaredge+314
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x8BB3CB , 5
;check wether disconnected
if (Errorlevel=0)
{
;accept
Sleep, 5000
xcord:=xedge+511
ycord:=ytitlebaredge+404
MouseMove, %xcord%, %ycord%

Sleep, 500
Send, {Space 2}
Click %xcord%, %ycord%
Sleep, 5000

;close stats
Send, {Space 2}
xcord:=xedge+487
ycord:=ytitlebaredge+603
Click %xcord% %ycord%
Sleep, 5000

;reconnect
Sleep, 5000
xcord:=xedge+463
ycord:=ytitlebaredge+411
MouseMove, %xcord%, %ycord%

Sleep, 500
Send, {Space 2}
Click %xcord% %ycord%
Sleep, 15000

PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x8BB3CB , 5
;check wether still disconnected
while (Errorlevel=0)
{
;accept
xcord:=xedge+511
ycord:=ytitlebaredge+404
MouseMove, %xcord%, %ycord%
Sleep, 500
Send, {Space 2}
Click %xcord% %ycord%
;reconnect
Sleep, 5000
xcord:=xedge+463
ycord:=ytitlebaredge+411
MouseMove, %xcord%, %ycord%
Sleep, 500
Send, {Space 2}
Click %xcord% %ycord%
Sleep, 35000
;reconnect again
MouseMove, %xcord%, %ycord%
Sleep, 500
Click %xcord% %ycord%
PixelSearch, , , %xcordl%, %ycordl%, %xcordu%, %ycordu%, 0x8BB3CB , 5
}

Sleep, 5000
;go back to online&skirmish
xcord:=xedge+150
ycord:=ytitlebaredge+298
MouseMove, %xcord%, %ycord%

Sleep, 500
Send, {Space 2}
Click %xcord% %ycord%
Sleep, 5000

;go back to custom game
Send, {Space 2}
xcord:=xedge+619
ycord:=ytitlebaredge+437
Click %xcord% %ycord%
Sleep, 5000

;get ai enemy
Send, {Space 2}
xcord:=xedge+859
ycord:=ytitlebaredge+279
Click %xcord% %ycord%,
Sleep, 5000
Goto, End
}
Goto, CloseMatchstats
}
Send, {Space 2}
xcord:=xedge+487
ycord:=ytitlebaredge+603
Click %xcord% %ycord%
Sleep, 5000
End:

}
24 Jan 2016, 17:44 PM
#771
avatar of SShengli

Posts: 103

Hi,i started to play coh2 last week and i was glad to see this. but i got some problem i am using surface pro 3 for farming and surface doesn't have monitor off option so it goes to sleep mode i have to turn it on every time so can you teach me how to make this script input space bar before scripts clicks?
sorry for my bad english...
i searched internet and find send,{spacebar} can solve this is this right?


Think this guy fixed it
24 Jan 2016, 17:50 PM
#772
avatar of moonjy1120

Posts: 2



Think this guy fixed it

Thanks man, i tried it but the problem is that i have to enter space bar to turn on the screen anyway
24 Jan 2016, 19:21 PM
#773
avatar of SShengli

Posts: 103


Thanks man, i tried it but the problem is that i have to enter space bar to turn on the screen anyway


Did you try all the things he did? because he got it to work at the end.

you could also try this but i don't know if it works on the surface
24 Jan 2016, 21:15 PM
#774
avatar of scratchedpaintjob
Donator 11

Posts: 1021 | Subs: 1

Hi,i started to play coh2 last week and i was glad to see this. but i got some problem i am using surface pro 3 for farming and surface doesn't have monitor off option so it goes to sleep mode i have to turn it on every time so can you teach me how to make this script input space bar before scripts clicks?
sorry for my bad english...
i searched internet and find send,{space 2} can solve this is this right?
this is the script i edit

welcome to the forum! first of all it would be nice if you could transform your sourcecode into a spoiler like i did here, helps for other guys with the visibility :)

is there any reaosn why you send {Space 2} instead of purely {Space}, because that is what the autohotkey send documentation tells. Other than that i would add a short delay after each Send, {Space} so Sleep, 2000 and you should be good to go i hope!

24 Jan 2016, 21:38 PM
#775
avatar of The End

Posts: 2

hi i ve been lurking around forums from along time but this time i felt that i need to post a question


i love your script , i have followed all instructions but somehow the script stops for me at the stats screen and stays there no matter how long i wait

1) i followed all steps
2) i swiched off anti virs
3) tried admin mode
4) did check with screen off/on
5) tried to add a sleep 5000 after ":close match stats"
6) tried friend list off /on
7) basically the cursor is in the right position but there is no "click"

- all didnt work im no programmer or anything so i got no clue how to remedy this.

everything works fine untill the stats screen all i can say is please help;)
24 Jan 2016, 21:58 PM
#776
avatar of scratchedpaintjob
Donator 11

Posts: 1021 | Subs: 1

jump backJump back to quoted post24 Jan 2016, 21:38 PMThe End

i love your script , i have followed all instructions but somehow the script stops for me at the stats screen and stays there no matter how long i wait

alright, some people have this problem and i think i have the solution for you:
scriptwriter
download ahk, install it and then run this script once!
it will play one game for you and then write another script, which then should not have the problem anymore of stopping :)
if you have nay questions just ask
24 Jan 2016, 23:43 PM
#777
avatar of CivilDefense

Posts: 1

Hey guys!

I have a problem. The script starts the game, but it don't send the start unit to a vp. Are someone known a reason for this? I use the .exe, adminmode and have antivir off.

25 Jan 2016, 09:27 AM
#778
avatar of SShengli

Posts: 103

Scratchedpaintjob's script just starts the game for you and when the game timer has run out the scripts starts a new game, again and again.

No unit should move.
25 Jan 2016, 11:09 AM
#779
avatar of The End

Posts: 2


alright, some people have this problem and i think i have the solution for you:
scriptwriter
download ahk, install it and then run this script once!
it will play one game for you and then write another script, which then should not have the problem anymore of stopping :)
if you have nay questions just ask



it worked perfectly.

Thanks!

25 Jan 2016, 17:12 PM
#780
avatar of cptcool

Posts: 11

I can't seem to get this to work either...downloaded and did all the shizzle from the first page and browsed trough all replies I could find on later pages.For me it only gets me to "start new game" after that when the loading finishes it moves the cursor to "press any key to continue" but won't get any further than that....xept once, I got it to get through the entire 60min autowin match but it didn't hit the "quit game"...just stuck in victory screen.
PAGES (68)down
2 users are browsing this thread: 2 guests

Livestreams

unknown 64
unknown 34
Germany 270
unknown 2
Germany 1

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

516 users are online: 516 guests
0 post in the last 24h
5 posts in the last week
33 posts in the last month
Registered members: 49143
Welcome our newest member, Spdcderry
Most online: 2043 users on 29 Oct 2023, 01:04 AM