Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:35

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

Advertisement



FlyffBot Help pls

Discussion on FlyffBot Help pls within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
FlyffBot Help pls

Also, bin dabei mein erstes, richtiges Programm zu schreiben und es is soweit fertig, nur leider gibt es noch nen pa kleine Probleme beim Parsen
Error parsing function Call

Könnt ihr mir helfen die letzten Falten auszubügeln?

Hier der Code
HTML Code:
#include <NomadMemory.au3>

HotKeySet ("{F10}" [, "Fooding"])
HotKeySet ("{F11}" [, "Pille"])
HotKeySet ("{F9}" [, "TogglePause"])
HotKeySet ("{F12}" [, "End"])

WinWaitActive ( "Flyff" )
$pid = WinGetProcess ("Flyff")
$Mem = 0x004000
$low = InputBox ( "Fooding Bot", "Wann soll gefooded werden?" [, "1000"] )
$sleepFood = InputBox ( "Fooding Bot", "Cooldown des Foods in Sekunden?" [, "5"] )
$lowPill = InputBox ( "Fooding Bot", "Wann soll eine Pille eingesetzt werden? Wenn du keine Pillen benutzt gib 0 an." [, "0" )
$sleepPille = InputBox ( "Fooding Bot", "Cooldown der Pille in Sekunden?" [, "60"] )

;Mathematische Operatoren
$cooldownFood = $sleepFood * 1000
$cooldownPille = $sleepPille * 1000

;Functions
Func Fooding()
	While 1=1
	$pinfo = _MemoryOpen($pid)
	If _MemoryRead($Mem, $pinfo) > $low Then
	ControlSend ( "$Window", '', '', "{F1}")
	EndIf
	_MemoryClose($pinfo)
	Sleep ( $cooldownFood )
	WEnd
EndFunc

Func Pille()
	While 1=1
	$pinfo = _MemoryOpen($pid)
	If _MemoryRead($Mem, $pinfo) > $lowPill Then
	ControlSend ( "$Window", '', '', "{F2}")
	EndIf
	_MemoryClose($pinfo)
	Sleep ( $cooldownPille )
	WEnd
EndFunc

Global $Paused
 Func TogglePause()
     $Paused = NOT $Paused
     While $Paused
         sleep(100)
     WEnd

 EndFunc

Func End()
	Exit 0
	EndFunc
Kanns vllt daran liegen, dass ich noch keinen richtigen Wert für die Variable $mem angegeben hab

So wie ich das seh muss einer der Fehler oben, noch vor den functions liegen, da die erste Meldung bereits auftritt bevor ich einde von denen auslöse

Freu mich über eure Comments
greetz nAno
.nAno is offline  
Old 11/15/2009, 12:39   #2
 
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
Problem gelöst

Scriptgerüsst zu 100% vollständig

#close pls
.nAno is offline  
Reply




All times are GMT +1. The time now is 07:35.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.