Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;This script will run from monsters and collect chests in Last Life.
- ;When you get to the top of the map, the script will teleport home.
- ;Start the script at 250S 249W Vandora (1 space east of Muerte)
- ;You will land in Inari and Arcadia on this journey
- ;@auth koenrad
- ;alt+p pauses/unpauses script
- !p::Pause
- ;alt+w starts the script
- !w::
- Loop, 72{
- ;you will land in Inari and Arcadia
- ;Go Right
- Loop, 498 {
- Send {right}
- Sleep 200
- ImageSearch,FoundX,FoundY,868,294,1125,570,*150 spell.jpg
- if (ErrorLevel = 2)
- MsgBox Fail 1
- else if (ErrorLevel = 1){
- ;MsgBox not in fight
- }
- else{
- Send r
- Sleep 800
- }
- ;Search for chests
- PixelSearch, Px1, Py1, 686,211,1269,793, 0x496898, 3, Fast
- if (ErrorLevel = 0)
- {
- PixelSearch, Px2, Py2, Px1-20, Py1-20, Px1+20, Py1+20, 0x4D70A3, 3, Fast
- if (ErrorLevel = 0) {
- MouseMove, %Px2%, %Py2%
- Click
- }
- }
- ImageSearch,FoundX,FoundY,628,134,1335,512,*150 inari.jpg
- if (ErrorLevel = 2)
- MsgBox Fail 3
- else if (ErrorLevel = 0){
- click 179, 437
- Sleep 500
- }
- ImageSearch,FoundX,FoundY,628,134,1335,512,*200 arcadia.jpg
- if ErrorLevel = 2
- MsgBox Fail 4
- else if (ErrorLevel = 0){
- click 179, 437
- Sleep 500
- }
- }
- ;Go 7 up
- Loop, 7 {
- Send {up}
- Sleep 1500
- ImageSearch,FoundX,FoundY,868,294,1125,570,*150 spell.jpg
- if (ErrorLevel = 2)
- exit
- else if (ErrorLevel = 0){
- Send r
- Sleep 800
- }
- else
- ;Search for chests
- PixelSearch, Px1, Py1, 686,211,1269,793, 0x496898, 3, Fast
- if (ErrorLevel = 0)
- {
- PixelSearch, Px2, Py2, Px1-20, Py1-20, Px1+20, Py1+20, 0x4D70A3, 3, Fast
- if (ErrorLevel = 0) {
- MouseMove, %Px2%, %Py2%
- Click
- }
- }
- }
- ;Go Left
- Loop, 500 {
- Send {left}
- Sleep 200
- ImageSearch,FoundX,FoundY,868,294,1125,570,*150 spell.jpg
- if (ErrorLevel = 2)
- MsgBox Fail 1
- else if (ErrorLevel = 1){
- ;MsgBox not in fight
- }
- else{
- Send r
- Sleep 800
- }
- ;Search for chests
- PixelSearch, Px1, Py1, 686,211,1269,793, 0x496898, 3, Fast
- if (ErrorLevel = 0)
- {
- PixelSearch, Px2, Py2, Px1-20, Py1-20, Px1+20, Py1+20, 0x4D70A3, 3, Fast
- if (ErrorLevel = 0) {
- MouseMove, %Px2%, %Py2%
- Click
- }
- else{
- ;MsgBox not found 2
- }
- }
- else{
- ;MsgBox not found 1
- }
- ImageSearch,FoundX,FoundY,628,134,1335,512,*150 inari.jpg
- if (ErrorLevel = 2)
- MsgBox Fail 3
- else if (ErrorLevel = 0){
- click 140, 437
- Sleep 500
- }
- ImageSearch,FoundX,FoundY,628,134,1335,512,*200 arcadia.jpg
- if ErrorLevel = 2
- MsgBox Fail 4
- else if (ErrorLevel = 0){
- click 140, 437
- Sleep 500
- }
- }
- ;Go 7 up
- Loop, 7 {
- Send {up}
- Sleep 1500
- ImageSearch,FoundX,FoundY,868,294,1125,570,*150 spell.jpg
- if (ErrorLevel = 2)
- exit
- else if (ErrorLevel = 0){
- Send r
- Sleep 800
- }
- else
- ;Search for chests
- PixelSearch, Px1, Py1, 686,211,1269,793, 0x496898, 3, Fast
- if (ErrorLevel = 0)
- {
- PixelSearch, Px2, Py2, Px1-20, Py1-20, Px1+20, Py1+20, 0x4D70A3, 3, Fast
- if (ErrorLevel = 0) {
- MouseMove, %Px2%, %Py2%
- Click
- }
- }
- }
- }
- Click 153, 259
Advertisement
Add Comment
Please, Sign In to add comment