Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 18:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Func wird übersprungen

Discussion on Func wird übersprungen within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 33
Received Thanks: 4
Func wird übersprungen

hi,
ich habe folgendes Problem: Wenn mein Script die Position des Characters feststellen soll via IF CheckArea, wird die Funktion in der sie sich befindet einfach übersprungen.

PHP Code:
For $i 10 To 0 Step -1
    rauslaufen_warten
()
    
kmpfen()
    
einsammeln()
    
nach_Tsunmei()
    
kaufmann_suchen()
    
verkaufen()

Func nach_Tsunmei()
    
    
ControlSend("Guild Wars""""""m"0)
    
sleep(2000)
    
ControlClick("Guild Wars""""""Left"2810558)
    
sleep(7000)
    
EndFunc

Func kaufmann_suchen
()  ;<----wird übersprungen

    sleep
(5000)
    IF 
CheckArea(-6474+(Random(-12001200)),-15756+(Random(-12001200))) Then
    sleep
(5000)
    
PrepMoveTo()                        
    
MoveTo(1,-6292,-16962)
    
StopMoveTo()
    
sleep(5000)
    ElseIf 
CheckArea(8500+(Random(-750750)),-15500+(Random(-750750))) Then
    sleep
(3000)
    
ControlSend("Guild Wars""""""{w down}",1)
    
$rnd random(1,10,1)
    
Select
    
case $rnd 1
        _WWeg1
()
    case 
$rnd 2
        _WWeg2
()
    case 
$rnd 3
        _WWeg3
()
    case 
$rnd 4
        _WWeg4
()
    case 
$rnd 5
        _WWeg5
()
    case 
$rnd 6
        _WWeg6
()
    case 
$rnd 7
        _WWeg7
()
    case 
$rnd 8
        _WWeg8
()
    case 
$rnd 9
        _WWeg9
()
    case 
$rnd 10
        _WWeg10
()
    
endselect
    sleep
(4000)
    
EndIf

EndFunc
    
Func verkaufen
()
    
sleep(4000)
    
ControlSend("Guild Wars""""""v",1)        
    
sleep(4000)
    
ControlSend("Guild Wars""""""{SPACE}" ,1)
    
sleep(1000)
    
ControlClick("Guild Wars""""""Left"112239)
    
sleep(100)
    
sleep(1000)
    For 
$i 50 To 0 Step -1
    ControlClick
("Guild Wars""""""Left"115361010)
    
sleep(100)
    
Next
    
    sleep
(500)
    
ControlSend("Guild Wars""""""x"1)
    
EndFunc

;############################

Func _WWeg1()
        
    
PrepMoveTo()
    
MoveTo(1,-8528.6728515625,-16035.2705078125)
    
MoveTo(1,-7764.51416015625,-16522.40234375)
    
MoveTo(1,-7461.5908203125,-17031.4453125)
    
MoveTo(1,-7103.38916015625,-17401.1015625)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()

    
EndFunc

Func _WWeg2
()
    
    
PrepMoveTo()
    
MoveTo(1,-8049.625,-15504.78515625)
    
MoveTo(1,-7558.263671875,-15380.728515625)
    
MoveTo(1,-7008.9638671875,-15785.6279296875)
    
MoveTo(1,-6531.2802734375,-16460.310546875)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()


EndFunc

Func _WWeg3
()
    
    
PrepMoveTo()
    
MoveTo(1,-8201.0078125,-16143.431640625)
    
MoveTo(1,-7396.42333984375,-16795.84375)
    
MoveTo(1,-6859.66796875,-17173.994140625)
    
MoveTo(1,-6513.4541015625,-17111.33203125)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()

EndFunc
    
Func _WWeg4
()
    
    
PrepMoveTo()
    
MoveTo(1,-7952.85205078125,-15566.4384765625)
    
MoveTo(1,-7409.51318359375,-15654.8427734375)
    
MoveTo(1,-6730.7041015625,-16191.373046875)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()
    
EndFunc

Func _WWeg5
()
    
    
PrepMoveTo()
    
MoveTo(1,-8450.2392578125,-16033.568359375)
    
MoveTo(1,-7815.08642578125,-16513.08203125)
    
MoveTo(1,-7165.68994140625,-16909.212890625)
    
MoveTo(1,-6676.4697265625,-16932.474609375)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()
    
EndFunc

Func _WWeg6
()
    
    
PrepMoveTo()
    
MoveTo(1,-8315.689453125,-15552.2578125)
    
MoveTo(1,-7550.7392578125,-15506.42578125)
    
MoveTo(1,-7097.16796875,-15698.7763671875)
    
MoveTo(1,-6891.65087890625,-15885.2919921875)
    
MoveTo(1,-6609.7939453125,-16241.1796875)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()

EndFunc

Func _WWeg7
()
    
    
PrepMoveTo()
    
MoveTo(1,-8208.8525390625,-16106.376953125)
    
MoveTo(1,-7858.61767578125,-16478.4453125)
    
MoveTo(1,-7485.3759765625,-16933.46875)
    
MoveTo(1,-7287.37890625,-17519.15234375)
    
MoveTo(1,-7115.58349609375,-17458.61328125)
    
MoveTo(1,-6592.19775390625,-17161.07421875)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()


EndFunc

Func _WWeg8
()
    
    
PrepMoveTo()
    
MoveTo(1,-7903.55078125,-15678.8916015625)
    
MoveTo(1,-7530.34912109375,-15429.62890625)
    
MoveTo(1,-7015.53466796875,-15659.078125)
    
MoveTo(1,-6638.42724609375,-16235.529296875)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()


EndFunc

Func _WWeg9
()
    
    
PrepMoveTo()
    
MoveTo(1,-8191.96923828125,-16149.0087890625)
    
MoveTo(1,-7873.4541015625,-16475.744140625)
    
MoveTo(1,-7426.4794921875,-16792.8125)
    
MoveTo(1,-6825.1416015625,-16928.671875)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()

    
EndFunc

Func _WWeg10
()
    
    
PrepMoveTo()
    
MoveTo(1,-8247.6669921875,-15571.4296875)
    
MoveTo(1,-7722.64111328125,-15404.771484375)
    
MoveTo(1,-6942.7373046875,-15867.3125)
    
MoveTo(1,-6566.19677734375,-16380.1787109375)
    
MoveTo(1,-6120.10498046875,-16968.18359375)
    
StopMoveTo()


EndFunc 
Bitte keine Kommentare dazu wie schlecht es geschrieben ist, ich weiss, dass es nicht viel mehr als ein makro ist.
Sputimhoch is offline  
Old 02/07/2009, 22:30   #2
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
hab mir das jetzt nicht weiter angeguckt, aber warum zum teufel machst du random werte bei der checkarea func rein? mir fällt da absolut kein plausibler grund ein. bin mir zu 99,9% sicher. das darin der fehler liegt.

aufjedenfall isses lustig das du da randoms drin hast, aber bei deinen wegpunkten, wo es eigentlich sinn machen würde nicht.

in deiner schleife fehlt das next.

da fehlen nen paar funktionen.
kmpfen, einsammeln

mich wunderts das es bei dir kein fehler nach dem anderen kommt.
kknb is offline  
Thanks
1 User
Old 02/07/2009, 22:34   #3
 
elite*gold: 0
Join Date: Apr 2008
Posts: 33
Received Thanks: 4
Man hat 2 "Gebiete" wo man auftauchen kann. Aber dortdrin kann man an unzähligen orten auftauchen.
Sputimhoch is offline  
Old 02/07/2009, 22:42   #4
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
dann vergrößere den wert inner tt6.au3, so wirds nie und nimmer funktionieren.

habe jetzt im dorf ungefähr 50 mal dis gechanged und bin auf 3 verschiedene spawn points gekommen....
kknb is offline  
Thanks
2 Users
Old 02/08/2009, 08:35   #5
 
elite*gold: 0
Join Date: Apr 2008
Posts: 33
Received Thanks: 4
die 2 beim Kaufmann fasse ich als einen zusammen

edit: ok es hat sich gelöst habe die Werte in der tt6 vergrössert. Vielen Dank kknb
Sputimhoch is offline  
Reply


Similar Threads Similar Threads
wr func net
04/02/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
Wenn ich wr starte und auf game starten klcike steht da "ERROR:Cannot Find Exeute file! was muss ich machen habe win 7
Func in IE.au3
10/15/2009 - AutoIt - 26 Replies
Hallo, mal eine Frage zur IE.au3 Ich möchte im gleichen Fenster eine andere Adresse aufrufen, kann ich das hiermit machen ? IENavigate(ByRef $o_object, $s_Url, $f_wait = 1) dann hab ich da mal 2 weitere fragen zu. Was genau kommt bei $o_object rein und was ist mit dem ByRef ? Vielen Dank falls mir geholfen werden kann.
Need help Func
04/11/2009 - GW Bots - 12 Replies
Hi all, I have a little issue with the bot I'm doin using the tt6 move to engine. I'm trying the make it scan in front of my charc on the minimap to check if enemies are present. So here's the func: ;scan if enemy is in front of us Func ScanEnemy1() PixelSearch(86, 460, 173, 516, $MonsterColor_Red, 10) If @error then Sleep( 100 ) PixelSearch(86, 460, 173, 516, $MonsterColor_Red, 10) if @error then return False EndIf
Casten wird übersprungen
01/28/2009 - GW Bots - 6 Replies
Hi ich hab hir einen Bot für Tore von Kryta und der funtzt auch soweit nur wird in manchen Fällen so beim 4-6 durchlauf der schleife steinfleischaura übersprungen warum ? #cs -------------------------------------------------- -------------------------- AutoIt Version: 3.3.0.0 Author: myName Script Function: Template AutoIt script.
[autoit]tasten werden übersprungen
07/04/2008 - AutoIt - 3 Replies
hallo ich habe ein großes problem mit autoit. Send("v") RandomSleep(20, 50) send("{SPACE}") RandomSleep(7000, 8000) Send("{w down}")



All times are GMT +1. The time now is 18:53.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.