The point of changing instances is to fix the bugged queue.
Hey, I just wanted to say great work on this script.
I would like your help.
It seems that two leave party images are needed with my resolution.
1. Leave group when you are the group leader
2. Leave group when you are a member
1. If I take the image when i am the leader it can leave the group and re-queues but if I get kicked and am bugged it is not able to recognize the leave party so that I can't get unbugged.
2. If I use the image for leaving when I am not the leader I can leave the group and get unbugged but if I get leader it will not work with the different context menu and I get stuck as the leader with 1 disconnector and the script tries to queue non stop.
Is there some way that I can just duplicate the bit of code which navigates to portrait and selects leave party for both when I am leader and when I am not?
So something like this
Also when I am in the battleground it keeps spamming M sometimes so I assume its the in game swirly thing that is not correct?}
else {
ImageSearch, partyX, partyY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 inParty.png
if(ErrorLevel = 0) {
Send {m}
Sleep 200
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 changeInstance.png
if(ErrorLevel = 0) {
critical,on
MouseClick left, foundX, foundY
Sleep 3000
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 transferButton.png
MouseClick left, foundX, foundY
Sleep 15000
Send {Alt}
Sleep 200
ImageSearch, portraitX, portraitY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 playerPortrait.png
MouseClick right,portraitX, portraitY
Sleep 3000
ImageSearch, leaveX, leaveY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 leaveParty.png
MouseClick left,leaveX, leaveY
Send {alt}
Sleep 3000
ImageSearch, portraitX, portraitY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 playerPortrait.png
MouseClick right,portraitX, portraitY
Sleep 3000
ImageSearch, leaveX, leaveY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 leaveParty_alternative.png
MouseClick left,leaveX, leaveY
Send {alt}
Sleep 200
critical,off
And when I remove the : from the code to get the kicking to work it has never functioned. I will try to work with the images a bit more on this one and see if I can get the kicking script to work.
Last edited by djpyro21; 05-24-2013 at 03:11 AM.
Hey, could you tell me how to implement in the script an "/invite JohnDoe@Johndoe1"
Also, any command to leave the arena instead of clicking it?
tehserch, you can try
or something like that. You may need to look at the documentation to see if you need to escape the characters, or if you need to use another API. Also, I'm only doing minimal debugging here everyone =P My account was banned and I no longer have my computer. If I do decide to pick this game back up in the least, you will have to wait for me to get my laptop. My troubleshooting guide should be all you need to debug (for the most part). Most people can answer your questions as well, as they may have had the same problems creating their images and running their script.Code:Send "/invite JohnDoe@Johndoe1"
good script, one question. so it cant run in background?
Last edited by imunderyourbed; 05-25-2013 at 02:21 PM.
No it cannot. I was unable to find out how to send it messages that it accepts to pull up menus. If someone could control everything via the chat, it could run in background mode. Otherwise, its a no-go.
There are a few commands that I found (from the console find) that I've modified the script to use. It eliminates some of the need for buttons, and the errors that can occur using the image search. Commands like /team_leave, /changeInstance, and there's one for leaving a PVP match I just don't remember it off the top of my head.
The commands I haven't found yet are ones to join the PVP queue, accept the match, and hit transfer after /changeInstance
The one question I have, anyone else having problems that the queueAvailable image changes in-game every so often and they have to re-screenshot it? The image changes ever so slightly every few hours. I'm not sure if I'm somehow changing something on my client or if Cryptic decided to add in a little security via a unconventional tactic.
EDIT: For those who might want my command changes (Important: Also added auto-move and turn to my script to try and trick some teams into not kicking ;D)
Code:SetTimer, Jump, 60000 Loop { IfWinActive, ahk_class CrypticWindowClassDX0 { ; Is the game already over? ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 matchDone.png if(ErrorLevel = 0) { critical, on MouseClick left, foundX, foundY Sleep 15000 Send {Enter} Sleep 500 Send /team_leave Sleep 500 Send {Enter} Sleep 200 critical, off } else { ; Are we in a game already? ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 inMatch.png if (ErrorLevel = 0) { Sleep 5000 Send {Enter} Sleep 500 Send /turnright 1 Sleep 500 Send {Enter} Sleep 500 Send {Alt} Sleep 750 Send {Alt} Sleep 1000 ; Be a dick and kick everyone from the party if we are leader ;ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 isLeader.png ;if(ErrorLevel = 0) { ;critical,on ;Send {Alt} ;ImageSearch, partyX, partyY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 inParty.png ;if(ErrorLevel = 0) { ;MouseClick right, partyX, partyY ;Sleep 3000 ;ImageSearch, kickX, kickY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 kickPlayer.png ;MouseClick left, kickX, kickY ;} ;critical,off ;} } else { ImageSearch, partyX, partyY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 inParty.png if(ErrorLevel = 0) { Sleep 3000 Send {Enter} Sleep 500 Send /changeInstance Sleep 500 Send {Enter} ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 transferButton.png if(ErrorLevel = 0) { MouseClick left, foundX, foundY Sleep 15000 Send {Enter} Sleep 500 Send /team_leave Sleep 500 Send {Enter} Sleep 200 critical,off } } else { ; Has the queue popped? ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *30 groupFinder.png if (ErrorLevel = 0) { Send {Shift down} Sleep 100 Send 1 Sleep 100 Send {Shift up} Sleep 15000 } else { ; Do we need to queue up? ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *50 queueAvailable.png if (ErrorLevel = 0) { ; Arbitrary 50 here. Just to make sure it doesn't detect the other join buttons. ImageSearch, buttonX, buttonY, foundX, foundY-50, %A_ScreenWidth%, %A_ScreenHeight%, *50 joinButton.png if(ErrorLevel = 0) { MouseClick left, buttonX, buttonY Sleep 3000 MouseMove 0, 0 } } else { ; Can't find queue button, Try opening up queue Send k Sleep 3000 } } } } } } } return Jump: IfWinActive, ahk_class CrypticWindowClassDX0 { Send {Space} ; Temp fix here... dunno why its not detecting me ingame Sleep 100 Send {Space down} Sleep 100 Send {Space up} } return
Last edited by Shimitari; 05-25-2013 at 07:07 PM. Reason: Added code
Grab an isboxer suite 7-day trial, level 5 chars to 10 (multiboxing), party them and run afk pvp script from 10 to 60![]()
What would I need to add to make it exit when it shows 0 transfer instances? Thanks
Just got 60. Whenever i left my PC or got bored from questing i just ran this and it gave me alot of levels. Thanks for this, now i can enjoy the end-game!
No problem. =) And Shimitari, if you can find commands for all of them, the bot could be entirely background mode (i believe, I don't remember if the enter button opens up the chat or not).