Monk Elite Farmbot Hilfe?

08/13/2009 14:21 sexyb1tch#1
Habe ein ganz simplen bot gecodet
Klappt alles auch nur wenn der bot neu starten muss
also den run nochmal wiederholen soll kommt
$ Die Varible ist nicht declariert
Würde mich Über Hilfe Freuen :)

Hier Der Script

Code:
WinActivate( "Guild Wars" )

Do
call("weg")
call("run")
call("fight")
call("fight2") 
call("aufgeben")
Until $y=9999999

func weg()
send ("{esc}")
sleep(100)
sleep(100)
call("weg1")
sleep(100)
EndFunc

func weg1()
send("{ä}")
send("{ä}")
sleep(1000)
send("{space}")
sleep(17000)
sleep(1000)
send("{a down}")
sleep(1000)
send("{a up}")
sleep(1000)
send("{d down}")
sleep(800)
send("{d up}")
sleep(500)
send("{r}")
sleep(10000)
sleep(50)
EndFunc



func run()
sleep(1000)
send ("{w down}")
sleep(4000)
send ("{w up}")
sleep(1100)
send ("{a down}")
sleep(690)
send ("{a up}")
sleep(50)
send ("{r}")
sleep(21000)
sleep(50)
sleep(50)
send ("{a down}")
sleep(450)
send ("{a up}")
sleep(5000)
send("{r}")
sleep(500)
send ("{esc}")
send ("{c}")
endfunc


func fight()
sleep(300)
send ("{1}")
sleep(3000)
send ("{5}")
sleep(3000)
send ("{2}")
sleep(3000)
send ("{3}")
sleep(3000)
send ("{4}")
sleep(12000)
endfunc


func fight2()
sleep(2000)
send ("{5}")
send ("{5}")
sleep(3000)
send ("{2}")
Sleep(5000)
send("{8}")
sleep(500)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
endfunc


func aufgeben()
send("{M}")
Sleep(1000)
MouseClick ("left" , 516, 473 )
sleep(1500)
MouseClick ("left" , 297, 411 )
sleep(7000)
Endfunc
08/13/2009 14:29 Sc00terFreak#2
was hast du dir da bitte gescriptet o_O
08/13/2009 14:33 Frutex#3
Joa, sehr simpel.
#reported falsche Sektion
Meine Hilfe für dich. Eine Variabel muss auch immer als solche deklariert werden. Außerdem musst du ja immer +1 rechnen ;)
So würde es funktionieren
€: Was mir noch aufgefallen ist. Bitte nicht mit call callen.
Machs einfach so:
Code:
weg1()
Code:
WinActivate( "Guild Wars" )

Global $y = 0

Do $y = $y+1
call("weg")
call("run")
call("fight")
call("fight2") 
call("aufgeben")
Until $y = 99999
exit

func weg()
send ("{esc}")
sleep(100)
sleep(100)
call("weg1")
sleep(100)
EndFunc

func weg1()
send("{ä}")
send("{ä}")
sleep(1000)
send("{space}")
sleep(17000)
sleep(1000)
send("{a down}")
sleep(1000)
send("{a up}")
sleep(1000)
send("{d down}")
sleep(800)
send("{d up}")
sleep(500)
send("{r}")
sleep(10000)
sleep(50)
EndFunc



func run()
sleep(1000)
send ("{w down}")
sleep(4000)
send ("{w up}")
sleep(1100)
send ("{a down}")
sleep(690)
send ("{a up}")
sleep(50)
send ("{r}")
sleep(21000)
sleep(50)
sleep(50)
send ("{a down}")
sleep(450)
send ("{a up}")
sleep(5000)
send("{r}")
sleep(500)
send ("{esc}")
send ("{c}")
endfunc


func fight()
sleep(300)
send ("{1}")
sleep(3000)
send ("{5}")
sleep(3000)
send ("{2}")
sleep(3000)
send ("{3}")
sleep(3000)
send ("{4}")
sleep(12000)
endfunc


func fight2()
sleep(2000)
send ("{5}")
send ("{5}")
sleep(3000)
send ("{2}")
Sleep(5000)
send("{8}")
sleep(500)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
endfunc


func aufgeben()
send("{M}")
Sleep(1000)
MouseClick ("left" , 516, 473 )
sleep(1500)
MouseClick ("left" , 297, 411 )
sleep(7000)
Endfunc
08/13/2009 14:44 sexyb1tch#4
ty schonmal
aber jetzt Line 5 $y = $y+1
Do^ERROR
Error Illegal text at the end of statement (one statement per line)
Und sry für falsche sction
08/13/2009 14:56 Frutex#5
Ahh, natürlich, sry
Pack das mit der $y = $y+1 in die nächste Zeile!
08/13/2009 14:59 Lonf#6
Quote:
WinActivate( "Guild Wars" )

Global $y = 0

Do
call("weg")
call("run")
call("fight")
call("fight2")
call("aufgeben")
$y = $y+1
Until $y = 99999
exit

func weg()
send ("{esc}")
sleep(100)
sleep(100)
call("weg1")
sleep(100)
EndFunc

func weg1()
send("{ä}")
send("{ä}")
sleep(1000)
send("{space}")
sleep(17000)
sleep(1000)
send("{a down}")
sleep(1000)
send("{a up}")
sleep(1000)
send("{d down}")
sleep(800)
send("{d up}")
sleep(500)
send("{r}")
sleep(10000)
sleep(50)
EndFunc



func run()
sleep(1000)
send ("{w down}")
sleep(4000)
send ("{w up}")
sleep(1100)
send ("{a down}")
sleep(690)
send ("{a up}")
sleep(50)
send ("{r}")
sleep(21000)
sleep(50)
sleep(50)
send ("{a down}")
sleep(450)
send ("{a up}")
sleep(5000)
send("{r}")
sleep(500)
send ("{esc}")
send ("{c}")
endfunc


func fight()
sleep(300)
send ("{1}")
sleep(3000)
send ("{5}")
sleep(3000)
send ("{2}")
sleep(3000)
send ("{3}")
sleep(3000)
send ("{4}")
sleep(12000)
endfunc


func fight2()
sleep(2000)
send ("{5}")
send ("{5}")
sleep(3000)
send ("{2}")
Sleep(5000)
send("{8}")
sleep(500)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
sleep(900)
send("{0}")
sleep(900)
send("{Space}")
endfunc


func aufgeben()
send("{M}")
Sleep(1000)
MouseClick ("left" , 516, 473 )
sleep(1500)
MouseClick ("left" , 297, 411 )
sleep(7000)
Endfunc
machs so so gehts oder mit ner while schleife

einfach da wo das do is while 1 und wo das until und das exit is wend dann läuft dein bott dauerhaft durch!
08/13/2009 15:04 sexyb1tch#7
kk ty klappt^^
08/13/2009 15:05 Lonf#8
kien ding digger
08/13/2009 15:05 Frutex#9
Push the button
08/13/2009 15:19 Lonf#10
das checkt er noch net xD
08/13/2009 19:24 browny_92#11
was bringt euch dieses bekloppte thx?
08/13/2009 19:35 Lonf#12
dadurch wissen andere dass du bei was geholfen hast oder anderen weiterhilfst mahct enn guten eindruck XD
08/13/2009 20:48 Gabba2#13
Und, das wichtigste, der E-Penis wächst.
08/13/2009 20:58 razeakrait#14
;DD
wenn man kein rl-penis hat, is sowas immer gut ;D