The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Peptide

From A Tale in the Desert
Revision as of 07:47, 20 January 2009 by Peptide (talk | contribs) (New page: A script for Quin. This is for 1920X1200 res ... using the LEFT 75% of the screen. If you change res then you will need to rerecord the functions Weedwaterhavest and MovetoMiddle. Use t...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

A script for Quin.

This is for 1920X1200 res ... using the LEFT 75% of the screen.

If you change res then you will need to rerecord the functions Weedwaterhavest and MovetoMiddle. Use the same timing.



START OF SCRIPT

  1. SingleInstance force

!F1::

Reload the script when you make changes

reload return

!s:: suspend toggle return

!q:: ExitApp return

!f:: Flax() return

!x:: SetScreen() return

!v:: Weedwaterhavest() return

!p:: Seed() return

!o:: Gatherseeds() return

Flax() {

global dimension

dimension := 5

SetScreen()

Loop 4 {

Plant() MovetoMiddle()

Sleep 12000 Weedwaterhavest()

Sleep 1500 Weedwaterhavest()

Sleep 4000 Weedwaterhavest()

MouseClick, left, 659, 395 Sleep, 500 }

}

Seed() {

global dimension

dimension := 7

SetScreen() Plant()

Gatherseeds()

;MovetoMiddle()

;Sleep 12000 ;Weedwaterhavest()

;Sleep 1500 ;Weedwaterhavest()

;Sleep 4000 ;Weedwaterhavest()

}

SetScreen() {

global Xcenter global Ycenter global width

message := "Please close your friends list and minimize chat and stat tabs in order to ensure proper macroage.`n" message .= "Ensure that Hotkeys on Flax is disabled`n" message .= "Also disable camera moves very fast and camera moves unreasonably fast.`n`n" message .= "Pin the plant menu at the very top left corner of the screen`n`n" message .= "IN CASE OF EMERGENCY: HIT ALT-Q" MsgBox,,, %message%, 10

; Wait for the window to become active, then get the window stats WinWait, eGenesis Client, IfWinNotActive, eGenesis Client, , WinActivate, eGenesis Client, WinWaitActive, eGenesis Client, WinGetActiveStats, win_Title, Xmax, Ymax, win_Xpos, win_Ypos

Send {F5}{F8}{F8} MouseMove, 0,0 Sleep 5000 MouseMove, 0, 0 Sleep 5000 Xcenter := Xmax//2 - 3 Ycenter := Ymax//2 + 16 ;Flax beds are ~55 coords wide at this zoom level ; Changed to 70 for 1920X1200 res width := 70 MouseMove, Xcenter, Ycenter, 0

Loop 9 { MouseClick, WheelDown Sleep 3330 }

end of function

}

Plant() { global dimension


i = 0 Loop { i += 1 Plant_Row("right", dimension) Move("down") if (i >= dimension) break

i += 1 Plant_Row("left", dimension) Move("down") if (i >= dimension) break }


end of function

}

MovetoMiddle() {

MouseClick, right, 647, 395 Sleep, 333 MouseClick, left, 681, 422 Sleep, 333 MouseClick, left, 730, 418 Sleep, 333 MouseClick, left, 818, 590 Sleep, 3330 MouseClick, left, 659, 395 Sleep, 250



end of function

}


Weedwaterhavest() {


MouseClick, right, 650, 465 Sleep, 333 MouseClick, left, 687, 469 Sleep, 333 MouseClick, right, 731, 457 Sleep, 333 MouseClick, left, 768, 460 Sleep, 333 MouseClick, right, 806, 456 Sleep, 333 MouseClick, left, 840, 453 Sleep, 333 MouseClick, right, 862, 445 Sleep, 333 MouseClick, left, 898, 448 Sleep, 333 MouseClick, right, 941, 470 Sleep, 333 MouseClick, left, 964, 471 Sleep, 333 MouseClick, right, 944, 510 Sleep, 333 MouseClick, left, 969, 514 Sleep, 333 MouseClick, right, 879, 533 Sleep, 333 MouseClick, left, 920, 528 Sleep, 333 MouseClick, right, 822, 522 Sleep, 333 MouseClick, left, 854, 525 Sleep, 333 MouseClick, right, 745, 526 Sleep, 333 MouseClick, left, 763, 526 Sleep, 333 MouseClick, right, 674, 540 Sleep, 333 MouseClick, left, 703, 542 Sleep, 333 MouseClick, right, 680, 598 Sleep, 333 MouseClick, left, 714, 600 Sleep, 333 MouseClick, right, 743, 596 Sleep, 333 MouseClick, left, 778, 602 Sleep, 333 MouseClick, right, 866, 601 Sleep, 333 MouseClick, left, 894, 601 Sleep, 333 MouseClick, right, 945, 603 Sleep, 333 MouseClick, left, 979, 608 Sleep, 333 MouseClick, right, 939, 660 Sleep, 333 MouseClick, left, 972, 655 Sleep, 333 MouseClick, right, 889, 663 Sleep, 333 MouseClick, left, 939, 656 Sleep, 333 MouseClick, right, 819, 664 Sleep, 333 MouseClick, left, 848, 662 Sleep, 333 MouseClick, right, 755, 657 Sleep, 333 MouseClick, left, 789, 659 Sleep, 333 MouseClick, right, 680, 667 Sleep, 333 MouseClick, left, 709, 666 Sleep, 333 MouseClick, right, 686, 735 Sleep, 333 MouseClick, left, 721, 730 Sleep, 333 MouseClick, right, 747, 742 Sleep, 333 MouseClick, left, 796, 747 Sleep, 333 MouseClick, right, 835, 747 Sleep, 333 MouseClick, left, 870, 744 Sleep, 333 MouseClick, right, 897, 739 Sleep, 333 MouseClick, left, 934, 743 Sleep, 333 MouseClick, right, 965, 737 Sleep, 333 MouseClick, left, 982, 737 Sleep, 333

end of function

}


Move(direction, count = 1) { global width global Xcenter global Ycenter

distance := width * count time := 650 * count MouseMove, Xcenter, Ycenter, 0

if (direction == "right") { MouseClick,, distance, 0,, 0,, R } else if (direction == "left") { MouseClick,, -(distance), 0,, 0,, R } else if (direction == "down") { MouseClick,, 0, distance,, 0,, R } else if (direction == "up") { MouseClick,, 0, -(distance),, 0,, R } Sleep %time% }


Plant_Row(direction, num) { MouseClick,, 40, 40,, 0 if (num <= 0) { return } num -= 1 Loop %num% { Move(direction) MouseClick,, 40, 40,, 0 } return }

GatherSeeds() {

MouseClick, left, 294, 597 Sleep, 7000 MouseClick, left, 780, 112 Sleep, 7000 MouseClick, left, 893, 601 Sleep, 500 MouseClick, left, 919, 601 Sleep, 500 MouseClick, left, 934, 601 Sleep, 500 MouseClick, left, 967, 607 Sleep, 500 MouseClick, left, 953, 600 Sleep, 500 MouseClick, left, 977, 601 Sleep, 500 MouseClick, left, 943, 597 Sleep, 500 MouseClick, left, 1011, 596 Sleep, 500 MouseClick, left, 951, 593 Sleep, 500 MouseClick, left, 1003, 590 Sleep, 500 MouseClick, left, 947, 598 Sleep, 500 MouseClick, left, 1010, 599 Sleep, 500 MouseClick, left, 948, 597 Sleep, 500 MouseClick, left, 1026, 593 Sleep, 500 MouseClick, left, 883, 665 Sleep, 500 MouseClick, left, 957, 667 Sleep, 500 MouseClick, left, 787, 651 Sleep, 500 MouseClick, left, 873, 647 Sleep, 500 MouseClick, left, 718, 641 Sleep, 500 MouseClick, left, 766, 643 Sleep, 500 MouseClick, left, 678, 627 Sleep, 500 MouseClick, left, 741, 624 Sleep, 500 MouseClick, left, 664, 617 Sleep, 500 MouseClick, left, 726, 615 Sleep, 500 MouseClick, left, 673, 606 Sleep, 500 MouseClick, left, 730, 604 Sleep, 500 MouseClick, left, 672, 600 Sleep, 500 MouseClick, left, 737, 602 Sleep, 500 MouseClick, left, 741, 667 Sleep, 500 MouseClick, left, 792, 665 Sleep, 500 MouseClick, left, 834, 651 Sleep, 500 MouseClick, left, 874, 649 Sleep, 500 MouseClick, left, 905, 653 Sleep, 500 MouseClick, left, 964, 655 Sleep, 500 MouseClick, left, 936, 634 Sleep, 500 MouseClick, left, 964, 633 Sleep, 500 MouseClick, left, 949, 615 Sleep, 500 MouseClick, left, 991, 612 Sleep, 500 MouseClick, left, 944, 603 Sleep, 500 MouseClick, left, 991, 601 Sleep, 500 MouseClick, left, 950, 600 Sleep, 500 MouseClick, left, 988, 601 Sleep, 500 MouseClick, left, 876, 669 Sleep, 500 MouseClick, left, 928, 664 Sleep, 500 MouseClick, left, 784, 642 Sleep, 500 MouseClick, left, 820, 640 Sleep, 500 MouseClick, left, 716, 649 Sleep, 500 MouseClick, left, 742, 648 Sleep, 500 MouseClick, left, 677, 620 Sleep, 500 MouseClick, left, 736, 618 Sleep, 500 MouseClick, left, 670, 617 Sleep, 500 MouseClick, left, 716, 620 Sleep, 500 MouseClick, left, 674, 606 Sleep, 500 MouseClick, left, 704, 607 Sleep, 500 MouseClick, left, 677, 602 Sleep, 500 MouseClick, left, 720, 598 Sleep, 500 MouseClick, left, 734, 668 Sleep, 500 MouseClick, left, 763, 663 Sleep, 500 MouseClick, left, 821, 646 Sleep, 500 MouseClick, left, 844, 651 Sleep, 500 MouseClick, left, 892, 649 Sleep, 500 MouseClick, left, 961, 650 Sleep, 500 MouseClick, left, 933, 633 Sleep, 500 MouseClick, left, 1005, 632 Sleep, 500 MouseClick, left, 948, 612 Sleep, 500 MouseClick, left, 1000, 608 Sleep, 500 MouseClick, left, 947, 609 Sleep, 500 MouseClick, left, 1011, 607 Sleep, 500 MouseClick, left, 945, 599 Sleep, 500 MouseClick, left, 998, 600 Sleep, 500 MouseClick, left, 875, 670 Sleep, 500 MouseClick, left, 939, 668 Sleep, 500 MouseClick, left, 777, 652 Sleep, 500 MouseClick, left, 857, 644 Sleep, 500 MouseClick, left, 705, 657 Sleep, 500 MouseClick, left, 763, 654 Sleep, 500 MouseClick, left, 675, 629 Sleep, 500 MouseClick, left, 722, 628 Sleep, 500 MouseClick, left, 667, 609 Sleep, 500 MouseClick, left, 752, 609 Sleep, 500 MouseClick, left, 667, 606 Sleep, 500 MouseClick, left, 740, 608 Sleep, 500 MouseClick, left, 667, 601 Sleep, 500 MouseClick, left, 744, 596 Sleep, 500 MouseClick, left, 733, 671 Sleep, 500 MouseClick, left, 809, 671 Sleep, 500 MouseClick, left, 831, 644 Sleep, 500 MouseClick, left, 895, 642 Sleep, 500 MouseClick, left, 895, 642 Sleep, 500 MouseClick, left, 965, 639 Sleep, 500 MouseClick, left, 938, 631 Sleep, 500 MouseClick, left, 995, 630 Sleep, 500 MouseClick, left, 940, 618 Sleep, 500 MouseClick, left, 989, 616 Sleep, 500 MouseClick, left, 957, 612 Sleep, 500 MouseClick, left, 1023, 607 Sleep, 500 MouseClick, left, 933, 599 Sleep, 500 MouseClick, left, 994, 596 Sleep, 500 MouseClick, left, 874, 672 Sleep, 500


}


GuiClose: Gui, Destroy return

END OF SCRIPT