Memory pointers
Posted: July 5th, 2008, 1:38 pm
Anyone know the current memory location for HP / MP / SP
Also if you have a pointer for the MOB level that you have as a target
.
I haven't had a chance to look myself yet but I expect some cleaver bloke has already done it.
My current bot uses PixelGetColor which works but will fail depending on your FPS.
As such before I pass it to anyone I want to change it to reference memory rather than screen.
Any help would be great here is my cal for HP and MP checks.
Cheers
-------- Start Code ---------
Func checkhpfast()
;###############
;# GET MY HP Function #
;###############
$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
Call ("GetMP")
Else
$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
sleep(75)
Call ("GetMP")
Else
ToolTip("Potting HP ",0,0)
send ("+6") ;Goto Attack Bar 6 and pot madly
Send ("1")
Sleep (95)
Send ("2")
Sleep (96)
Send ("3")
Sleep (99)
Send ("4")
Sleep (75)
Send ("+4")
Call ("GetMP")
EndIf
EndIf
EndFunc
Func GetMP()
;#############
;# GET MP Function #
;#############
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then
Call ("Check4Mob")
Else
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then
Call ("Check4Mob")
Else
ToolTip("Potting MP ",0,0)
send ("+6") ;Goto Attack Bar 6 and pot madly
Send ("5")
Sleep (81)
Send ("6")
Sleep (80)
Send ("7")
Sleep (82)
Send ("8")
Sleep (75)
Send ("+4")
Sleep (150)
Call ("Check4Mob")
EndIf
EndIf
EndFunc
-------- End Code ---------
Also if you have a pointer for the MOB level that you have as a target
I haven't had a chance to look myself yet but I expect some cleaver bloke has already done it.
My current bot uses PixelGetColor which works but will fail depending on your FPS.
As such before I pass it to anyone I want to change it to reference memory rather than screen.
Any help would be great here is my cal for HP and MP checks.
Cheers
-------- Start Code ---------
Func checkhpfast()
;###############
;# GET MY HP Function #
;###############
$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
Call ("GetMP")
Else
$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
sleep(75)
Call ("GetMP")
Else
ToolTip("Potting HP ",0,0)
send ("+6") ;Goto Attack Bar 6 and pot madly
Send ("1")
Sleep (95)
Send ("2")
Sleep (96)
Send ("3")
Sleep (99)
Send ("4")
Sleep (75)
Send ("+4")
Call ("GetMP")
EndIf
EndIf
EndFunc
Func GetMP()
;#############
;# GET MP Function #
;#############
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then
Call ("Check4Mob")
Else
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then
Call ("Check4Mob")
Else
ToolTip("Potting MP ",0,0)
send ("+6") ;Goto Attack Bar 6 and pot madly
Send ("5")
Sleep (81)
Send ("6")
Sleep (80)
Send ("7")
Sleep (82)
Send ("8")
Sleep (75)
Send ("+4")
Sleep (150)
Call ("Check4Mob")
EndIf
EndIf
EndFunc
-------- End Code ---------