Author Topic: Tracking Trainer  (Read 3788 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Tracking Trainer
« on: January 31, 2011, 09:46:41 AM »
0
Just a little thing I threw together.... stand at the bank and let er rip.

Code: [Select]
set %trackGumpSize 440_135
set %trackGumpClickX 333
set %trackGumpClickY 120

repeat
event macro 13 38
gosub GumpAndSizeWait NULL generic_gump %trackGumpSize
gosub offsetClick %trackGumpClickX %trackGumpClickY l
wait 5s
event macro 8 7
wait 5s
until #false

;-------------------------------------------------------------------------------
; %1 = GumpAndSizeWait
; %2 = Gumpname 1
; %3 = Gumpname 2
sub GumpAndSizeWait
  set %timedelay #SCNT
  wait 5
  GumpWait_loop1:
    if #CONTNAME = %2 && #CONTSIZE = %3
      return #FALSE ; no error
    if #SCNT > %timedelay + 7
      return #TRUE ; error, timeout
    goto GumpWait_loop1
return #TRUE ; should never get here.

sub OffsetClick
  set %tempx %1 + #CONTPOSX
  set %tempy %2 + #CONTPOSY
  click %tempx %tempy %3
return
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Tags: