DEVELOPER NODE:
ich hab die Ep adressen gefunden ... die sind anders als in offset post >.< hab lange gesucht (bin adresse für adresse durchgegangen ... hatte aber glück ^^)
Code:
Func ReadMemValues()
;0 4 8 C hex 4bit jumps
$playerHP = MemReadDLL("8EEEC0")
$playerHPMax = MemReadDLL("8EEEBC")
$playerEP = MemReadDLL("8EEEB0")
$playerEPMax = MemReadDLL("8EEEA0")
$playerEnergy = MemReadDLL("8EEEC8")
$playerEnergyMax = MemReadDLL("8EEEC4")
; MAX EP = 8EEEA0
; CUR EP = 8EEEB0
EndFunc
hier sind die Counter:
Code:
; add 1 to the kill counter :)
$enemyKillCount = $enemyKillCount + 1
GUICtrlSetData( $killCount, $enemyKillCount)
; ep counter
$newEp = MemReadDLL("8EEEB0") - $playerEP
$playerEP = MemReadDLL("8EEEB0")
$enemyEpCount = $enemyEpCount + $newEp
GUICtrlSetData($epCount , $enemyEpCount)
und hier die Reg abfrage :
Code:
if ((MemReadDLL("8EEEC0")/$playerHPMax)*100) < $reg_minLife Or ((MemReadDLL("8EEEC8")/$playerEnergyMax)*100) < $reg_minMana Then
Send($reg)
while MemReadDLL("8EEEC0") <> MemReadDLL("8EEEBC")
Sleep(2000)
WEnd
while MemReadDLL("8EEEC8") <> MemReadDLL("8EEEC4")
Sleep(2000)
WEnd
; fix bug rest and enemy in range
Send($reg)
-----------------
edit:
i have the cast time and cooldown time included ... i need only a delay field ... np ^^
t3h c0d3!:
Code:
Func F_arttack1()
if(($attack1LastCast + $attack1Cd) < _TimeGetStamp()) Then
GUICtrlSetData($status,"start attack Nr2")
Send($attack1)
Sleep($attack1c)
$attack1LastCast = _TimeGetStamp()
EndIf
EndFunc
Func F_arttack2()
if(($attack2LastCast + $attack2Cd) < _TimeGetStamp()) Then
GUICtrlSetData($status,"start attack Nr2")
Send($attack2)
Sleep($attack2c)
$attack2LastCast = _TimeGetStamp()
EndIf
EndFunc
Func F_arttack3()
if(($attack3LastCast + $attack3Cd) < _TimeGetStamp()) Then
GUICtrlSetData($status,"start attack Nr3")
Send($attack3)
Sleep($attack3c)
$attack3LastCast = _TimeGetStamp()
EndIf
EndFunc
Func F_buff()
if(($attack4LastCast + $attack4Cd) < _TimeGetStamp()) Then
Send($attack4)
Sleep($attack4c)
$attack4LastCast = _TimeGetStamp()
EndIf
EndFunc
teh attacking code:
Code:
GUICtrlSetData($status,"start attacking")
if CheckEnemyDead() <> 0 then
Sleep(500);
while CheckEnemyDead() <> 0
if $attack1 <> "x" then
F_arttack1()
EndIf
if $attack2 <> "x" then
F_arttack2()
EndIf
if $attack3 <> "x" then
F_arttack3()
EndIf
WEnd
teh time funktion (unix tmsp):
Code:
Func _TimeGetStamp()
Local $av_Time
$av_Time = DllCall('CrtDll.dll', 'long:cdecl', 'time', 'ptr', 0)
If @error Then
SetError(99)
Return False
EndIf
Return $av_Time[0]
EndFunc