Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » Vanguard Premium Discussions

Autoit Diplomacy Script : Vanguard Premium Discussions

Posted: February 12th, 2007
User avatar
Total Posts:272 Joined:2004
This is what I have used for some time now. Keep in mind you have to set it up for yourself. To get mouse coordinates in autoit, make sure you have the newest SciTE editor installed. Alt+F6 opens up the recorder, switch to game screen, press the record button and click where it says Civic Diplomacy. When you stop the recording, it will input the mouse coordinate where you clicked. Do this for each coordinate you need.

I have it setup so that it plays hotkeys with in-game macros for the cards, speak, and listen. You may need to edit them where you place the macros, or put it in the spots I already have programmed in.

The script will also automatically put focus on the game screen each cycle in case it's lost. It is well commented so you know what the script is doing at that exact time.

One more thing, this script is setup for a 3-parley cycle, which means that it will do all 3 civic parleys before the first one repops. Typically you can only setup a strategy to win on 2 different parleys in civic without changing the cards around. If you feel you can only win at 2 w/o changing cards, you can play with the long sleep timer at the end of the script. The shorter it is, the more parleys it will do (max 3). For a typical 15 Dialog match, it takes about a minute for the script to go through the whole match.

Enjoy :)


F11 = Start
Pause = Pause Key
Quit = Ctrl+Q

Code: Register to unlock hidden link

AutoItSetOption("SendKeyDownDelay",200); 

HotKeySet("{F11}", "Start")
HotKeySet("^q","MyExit") ;hotkey to stop the script - CTRL+Q
HotKeySet("{PAUSE}","TogglePause") 
Dim $Paused

Func MyExit()
    Exit 
EndFunc 

Func TogglePause()
$Paused = NOT $Paused
	While $Paused
		sleep(100)
		ToolTip('Script is "Paused"',0,0)
	WEnd
ToolTip("")
EndFunc

While 1
	Sleep (300)
WEnd

Func Start ()
	While 1
		Sleep(1000)
#region --- ScriptWriter generated code Start --- 
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
WinWait("Vanguard: Saga of Heroes","")
If Not WinActive("Vanguard: Saga of Heroes","") Then WinActivate("Vanguard: Saga of Heroes","")
WinWaitActive("Vanguard: Saga of Heroes","")

;civic loop 1
MouseMove(548,306);right click npc in middle of screen
MouseDown("right")
MouseUp("right")
Sleep(2000)
MouseMove(471,291) ;Clicking Civic Diplomacy if it's up
MouseDown("left")
MouseUp("left")
Sleep(1000)
MouseMove(486,302) ;Clicking Parley (top choice)
MouseDown("left")
MouseUp("left")
Sleep(1000)
;parley has now started
;Send("8");play Snippet in slot0
Send("{SHIFTDOWN}")
Send("8");play Snippet in slot0
Send("{SHIFTUP}")
Sleep(300)
;Send("6");speak
Send("{SHIFTDOWN}")
Send("6");speak
Send("{SHIFTUP}")
Sleep(4000)
;Send("9");play Loud Crit in slot1
Send("{SHIFTDOWN}")
Send("9")
Send("{SHIFTUP}")
Sleep(300)
;Send("6");speak
Send("{SHIFTDOWN}")
Send("6");speak
Send("{SHIFTUP}")
Sleep(4000)
;Send("7");listen
Send("{SHIFTDOWN}")
Send("7");listen
Send("{SHIFTUP}")
Sleep(4000)
;Send("0");play Resolution in slot2
Send("{SHIFTDOWN}")
Send("0");play Resolution in slot2
Send("{SHIFTUP}")
Sleep(300)
;Send("6");speak
Send("{SHIFTDOWN}")
Send("6");speak
Send("{SHIFTUP}")
Sleep(4000)
;Send("8");play Snippet in slot0
Send("{SHIFTDOWN}")
Send("8");play Snippet in slot0
Send("{SHIFTUP}")
Sleep(300)
;Send("6");speak
Send("{SHIFTDOWN}")
Send("6");speak
Send("{SHIFTUP}")
Sleep(4000)
;Send("7");listen
Send("{SHIFTDOWN}")
Send("7");listen
Send("{SHIFTUP}")
Sleep(1000)
;parley has now been won
;MouseMove(637,426) ;Move to Continue Button
;MouseDown("left")
;MouseUp("left")
Send("{Escape}")
Sleep(300)
Send("{Escape}")
Sleep(46000);sleeping 46 seconds to allow for refresh of civic parleys
;full cycle takes about 35 seconds

#endregion --- ScriptWriter generated code End --- 
		Sleep(1000)
	WEnd
EndFunc
Posted: February 13th, 2007
User avatar
administrator
Total Posts:29891 Joined:2002
Can premium members say yay or nay to this being moved to a confirmed section.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 12 guests
Locked