hi, ich habe ein Script an meine Vorhaben angepasst, aber kriege dies einfach nicht so wie ich es will zum laufen... die While schleife will einfach nicht funktionieren
(sorry, aber ich war schon immer ein sehr schlechter C++ programmer - das zieht sich wahrscheinlich auf hier mit durch )
Das Ziel ist es, dass alle xx male der Schleife mit send("5") wieder die obere genommen wird mit send("6") - was ich mit meinen abc Kenntnissen wohl nicht mal hin kriege
Spoiler anzeigen
while 1
sleep(5000)
send("6")
sleep(9000)
while 2[/b]
WinActivate("WORLD OF WARCRAFT")
send("5")
sleep(3710)
$start2 = Timerinit()
while 1
$dif = TimerDiff($start2)
if $dif > 21000 then
exitloop
endif
sleep(500)
$message = "Searching for feather..."
$height = 60
update_splash()
$feather_cord = PixelSearch ($left, $top, $right, $bottom, $feather, $colourVariance, $step)
if NOT @error = 1 then
seterror(2)
$message = "Found Something."
update_splash()
$featherx = $feather_cord[0]
$feathery = $feather_cord[1]
mousemove($featherx, $feathery)
exitloop
endif
WEnd
$start = Timerinit()
While 1
sleep(100)
$message = "Waiting for bite..."
$height = 100
update_splash()
;calc area of probable splash
$s_left = ($featherx - $s_offset)
$s_top = ($feathery - $s_offset)
$s_right = ($featherx + $s_offset)
$s_bottom = ($feathery + $s_offset)
$sp = Pixelsearch($s_left, $s_top, $s_right, $s_bottom, $day, $splashvariance)
$sp = Pixelsearch($s_left, $s_top, $s_right, $s_bottom, $night, $splashvariance)
$dif = TimerDiff($start)
if $dif > 25000 then
exitloop
endif
if ubound($sp) > 1 then
;if NOT @error = 1 then
seterror(2)
$message = "Fish!"
$height = 60
update_splash()
send("{shiftdown}")
mouseclick("right", $featherx, $feathery, 1, 1)
send("{shiftup}")
exitloop
endif
WEnd
WEnd
WEnd
Edit BugFix: Tags gesetzt
Edit GtaSpider: [04.10.2007 20:15]
Hab ich übrigens auch gemacht, nur ca 2 Sekunden vor BugFix^^