|
You last visited: Today at 03:47
Advertisement
Perfect World Bot PWI-Prophet Bot Recoded
Discussion on Perfect World Bot PWI-Prophet Bot Recoded within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.
09/16/2010, 13:13
|
#481
|
elite*gold: 0
Join Date: Sep 2009
Posts: 259
Received Thanks: 22
|
Quote:
Originally Posted by Interest07
Well, it handles the HP and MP pots in this piece of code:
Code:
Func HPMPAutoPotCheck()
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_HP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, 0)))
$HPTimer = TimerInit()
Endif
EndIf
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_MP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_KEY, 0)))
$MPTimer = TimerInit()
Endif
EndIf
EndFunc
If you want it to use ToP as well as a potion, you'd have to add another line before or after the one where it uses the health potion (within the same if statement). Easiest would be to copy and paste this line for sending the button press for HP pots and editing it to send the button for ToP instead:
Code:
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, 0)))
As this reads the button to send for the HP potion from the ini file, you'd have to either write the keycode for your ToP skill directly into the code, or add the value for it in the ini file and read it from there. The first method being easier, but less convenient if you wish to share your method with others.
If you add the ToP button in the .ini, you can either manually write it there, or edit the part of the bot where you are asked to input the buttons to also ask for the button for ToP.
If you only want to use ToP in the case your HP is below a certain value, you would need to add an extra if-statement to the code in this function. Again, you can opt to do things neatly by adding stuff to the .ini and read it from there, or just hardcode the values into the bot code.
|
Damn I was hoping to just find the line where the autopot is and copy it somewhere. I think I might wait till the prophets get around to it though its something I really want to see. Keeping the bot alive is number 2 prioty, not getting caught is number 1.  Why I guard my bot spots jelously. lol
|
|
|
09/16/2010, 13:33
|
#482
|
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
|
Well, the dirty way is to simply copy this line:
Code:
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, 0)))
change it into
Code:
_SendMessage($HANDLE, 256, KEYCODE("{F1}"))
for example if your ToP is at F1 and place it right before or after the line you just copied. Then it'll use both ToP and a pot whenever this function is triggered. If you want to add an extra menu item etc, it would require a lot of copy pasting and editing, as GUIs are always a big pain in the ****.
|
|
|
09/16/2010, 14:02
|
#483
|
elite*gold: 0
Join Date: Sep 2009
Posts: 259
Received Thanks: 22
|
Quote:
Originally Posted by Interest07
Well, the dirty way is to simply copy this line:
Code:
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, 0)))
change it into
Code:
_SendMessage($HANDLE, 256, KEYCODE("{F1}"))
for example if your ToP is at F1 and place it right before or after the line you just copied. Then it'll use both ToP and a pot whenever this function is triggered. If you want to add an extra menu item etc, it would require a lot of copy pasting and editing, as GUIs are always a big pain in the ****.
|
Yeah I was more thinking programming was more simple then that, but I didn't want a fix I want it done properly to further the bot.
|
|
|
09/16/2010, 14:51
|
#484
|
elite*gold: 0
Join Date: Jan 2009
Posts: 33
Received Thanks: 4
|
Another idea to make the bot even more useful, enable an autopot ability when the bot is stopped so that as we play on our own, we don't have to worry with pots, we can more focus on the game. Just an idea.
|
|
|
09/16/2010, 18:08
|
#485
|
elite*gold: 0
Join Date: Sep 2010
Posts: 8
Received Thanks: 0
|
Quote:
Originally Posted by Interest07
There's something totally messed up with PW ph lol, apparently my bot won't work there either 
|
Huhuhu Ive been searching the whole day. Just hoping some programmer in ph could help me.. well its a nice bot I can see it has the framework of the MHS just upgraded.
|
|
|
09/16/2010, 18:50
|
#486
|
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
|
Quote:
Originally Posted by asaky
Yeah I was more thinking programming was more simple then that, but I didn't want a fix I want it done properly to further the bot.
|
change the HPMPAutoPotCheck() function to this:
Code:
Func HPMPAutoPotCheck()
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_HP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, 0)))
$HPTimer = TimerInit()
Endif
EndIf
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_HP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_KEY, 0)))
$HPTimer = TimerInit()
Endif
EndIf
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_MP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_KEY, 0)))
$MPTimer = TimerInit()
Endif
EndIf
EndFunc
change the function SetLifeSupport to this:
Code:
Func SetLifeSupport()
Global $FORM_LIFESUPPORT = GUICreate("Life Support", 621, 250, -1, -1, -1, -1, $PROPHETBOT)
GUISetOnEvent($GUI_EVENT_CLOSE, "WindowLifeSupportCloseClicked")
GUISwitch($FORM_LIFESUPPORT)
GUISetBkColor(0x000000)
Global $BUTTON_SAVE_AUTOPOTREST = GUICtrlCreateButton("Save", 389, 225, 80, 18)
GUICtrlSetOnEvent(-1, "SaveAutoPotRest")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBKColor(-1, 0x000000)
;Auto Rest Section
;--------------------------------------------------------------------------------
Global $CHECK_AUTO_REST_HP, $CHECK_AUTO_REST_MP, $SLIDE_AUTO_REST_HP, $SLIDE_AUTO_REST_MP, $REST_KEY
Global $GROUP_AUTO_REST = GUICtrlCreateGroup("Automatic Rest", 5, 5, 160, 215)
GUICtrlSetOnEvent(-1, "SaveAutoPotRest")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($GROUP_AUTO_REST), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetTip(-1, "Bot Status")
;Auto-Rest HP
Global $CHECK_AUTO_REST_HP = GUICtrlCreateCheckbox("Restore HP", 20, 25, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTO_REST_HP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_KEY, "0") = 1 Then
$STATE = $GUI_CHECKED
Else
$STATE = $GUI_UNCHECKED
EndIf
GUICtrlSetState(-1, $STATE)
Global $SLIDE_AUTO_REST_HP = GUICtrlCreateSlider(25, 50, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% HP", 30, 70, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
;End Auto-Rest HP
;Auto-Rest MP
Global $CHECK_AUTO_REST_MP = GUICtrlCreateCheckbox("Restore MP", 20, 100, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTO_REST_MP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $SLIDE_AUTO_REST_MP = GUICtrlCreateSlider(25, 130, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% MP", 30, 150, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
;End Auto-Rest MP
;Auto-Rest Key
GUICtrlCreateLabel("Key:", 20, 180, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $REST_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, "--"), 60, 180, 50, 20)
GUICtrlSetData(-1, $KEYCODE , "")
;End Auto-Rest Key
;--------------------------------------------------------------------------------
;End Auto Rest Section
;Auto Loot Section
;--------------------------------------------------------------------------------
Global $CHECK_AUTO_PICK, $AUTO_PICK_TIMES, $AUTO_PICK_KEY
Global $GROUP_AUTO_PICK = GUICtrlCreateGroup("Automatic Get Loot", 170, 5, 300, 50)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($GROUP_AUTO_PICK), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
Global $CHECK_AUTO_PICK = GUICtrlCreateCheckbox("Auto Loot", 185, 25, 80, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTO_PICK), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x800080)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_FLAG_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
GUICtrlCreateLabel("Key:", 275, 28, 40, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTO_PICK_KEY = GUICtrlCreateCombo("", 305, 25, 50, 50)
GUICtrlSetData(-1, $KEYCODE , IniRead($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_KEY, "--"))
GUICtrlCreateLabel("Times:", 360, 28, 40, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTO_PICK_TIMES = GUICtrlCreateInput("", 400, 26, 50, 18)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_TIMES_KEY, "1"))
;--------------------------------------------------------------------------------
;End Auto Loot Section
;Auto Pot Section
;--------------------------------------------------------------------------------
Global $CHECK_AUTOPOT_FLAG_HP, $CHECK_AUTOPOT_FLAG_MP, $SLIDE_AUTOPOT_HP, $SLIDE_AUTOPOT_MP, $AUTOPOT_HP_PERC, $AUTOPOT_MP_PERC
Global $AUTOPOT_HP_KEY, $AUTOPOT_MP_KEY
Global $CHECK_RES_ON_DIE
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
Global $GROUP_AUTOPOT = GUICtrlCreateGroup("Automatic Pot", 170, 60, 445, 160)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($GROUP_AUTOPOT), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
;Auto-Pot HP
Global $CHECK_AUTOPOT_FLAG_HP = GUICtrlCreateCheckbox("Auto-Pot HP", 185, 85, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTOPOT_FLAG_HP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_FLAG_KEY, "0") = 1 Then
$STATE = $GUI_CHECKED
Else
$STATE = $GUI_UNCHECKED
EndIf
GUICtrlSetState(-1, $STATE)
Global $SLIDE_AUTOPOT_HP = GUICtrlCreateSlider(190, 110, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% HP", 195, 130, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
GUICtrlCreateLabel("Key:", 185, 157, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTOPOT_HP_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, "--"), 215, 155, 50, 20)
GUICtrlSetData(-1, $KEYCODE , "")
;End Auto-Pot HP
;Auto-Pot MP
Global $CHECK_AUTOPOT_FLAG_MP = GUICtrlCreateCheckbox("Auto-Pot MP", 330, 85, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTOPOT_FLAG_MP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_FLAG_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $SLIDE_AUTOPOT_MP = GUICtrlCreateSlider(335, 110, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% MP", 340, 130, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
GUICtrlCreateLabel("Key:", 330, 157, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTOPOT_MP_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_KEY, "--"), 360, 155, 50, 20)
GUICtrlSetData(-1, $KEYCODE, "")
;End Auto-Pot MP
;AutoToP
Global $AUTOTOP_KEY, $CHECK_AUTOTOP_FLAG, $SLIDE_AUTOTOP, $AUTOTOP_PERC, $CFG_HEAL_AUTOTOP_FLAG_KEY = $NAME & "--" & "AutoToPFlag", $CFG_HEAL_AUTOTOP_PERC_KEY = $NAME & "--" & "AutoToPPerc", $CFG_HEAL_AUTOTOP_KEY = $NAME & "--" & "AutoToPKey"
Global $CHECK_AUTOTOP_FLAG = GUICtrlCreateCheckbox("Auto-ToP", 475, 85, 90, 20) ;+145
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTOTOP_FLAG), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_FLAG_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $SLIDE_AUTOTOP = GUICtrlCreateSlider(480, 110, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% HP", 485, 130, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
GUICtrlCreateLabel("Key:", 475, 157, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTOTOP_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_KEY, "--"), 505, 155, 50, 20)
GUICtrlSetData(-1, $KEYCODE, "")
;End AutoToP
;Res On Die
Global $CHECK_RES_ON_DIE = GUICtrlCreateCheckbox("Res On Die", 185, 190, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_RES_ON_DIE), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_RES_ON_DIE_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $BUTTON_SETRAIL = GUICtrlCreateButton("Set Rail", 280, 191, 80, 18)
GUICtrlSetOnEvent(-1, "SetRailList")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBKColor(-1, 0x000000)
Global $BUTTON_TESTRAIL = GUICtrlCreateButton("Test Rail", 370, 191, 80, 18)
GUICtrlSetOnEvent(-1, "RunRail")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBKColor(-1, 0x000000)
;End Res On Die
;Move To Corpse
Global $CHECK_MOVE_TO_CORPSE = GUICtrlCreateCheckbox("Move To Corpse", 20, 225, 120, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_MOVE_TO_CORPSE), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_MOVE_TO_CORPSE_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
;Move To Corpse
;--------------------------------------------------------------------------------
;End Auto Pot Section
GUISetState(@SW_SHOW, $FORM_LIFESUPPORT)
EndFunc
and change the saveAutoPotRest function to this:
Code:
Func SaveAutoPotRest()
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_KEY, GUICtrlRead($CHECK_AUTO_REST_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_PERC_KEY, GUICtrlRead($SLIDE_AUTO_REST_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_KEY, GUICtrlRead($CHECK_AUTO_REST_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_PERC_KEY, GUICtrlRead($SLIDE_AUTO_REST_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, GUICtrlRead($REST_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_FLAG_KEY, GUICtrlRead($CHECK_AUTO_PICK))
IniWrite($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_KEY, GUICtrlRead($AUTO_PICK_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_TIMES_KEY, GUICtrlRead($AUTO_PICK_TIMES))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_FLAG_KEY, GUICtrlRead($CHECK_AUTOPOT_FLAG_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_PERC_KEY, GUICtrlRead($SLIDE_AUTOPOT_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_FLAG_KEY, GUICtrlRead($CHECK_AUTOPOT_FLAG_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_PERC_KEY, GUICtrlRead($SLIDE_AUTOPOT_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, GUICtrlRead($AUTOPOT_HP_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_KEY, GUICtrlRead($AUTOPOT_MP_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_RES_ON_DIE_KEY, GUICtrlRead($CHECK_RES_ON_DIE))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_MOVE_TO_CORPSE_KEY, GUICtrlRead($CHECK_MOVE_TO_CORPSE))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_FLAG_KEY, GUICtrlRead($CHECK_AUTOTOP_FLAG))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_PERC_KEY, GUICtrlRead($SLIDE_AUTOTOP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_KEY, GUICtrlRead($AUTOTOP_KEY))
GUIDelete($FORM_LIFESUPPORT)
EndFunc ;==>SaveAutoPotRest
that should make it less like a quick fix  (It would add a slider to the autopot form etc.)
|
|
|
09/17/2010, 14:48
|
#487
|
elite*gold: 0
Join Date: Sep 2009
Posts: 259
Received Thanks: 22
|
Quote:
Originally Posted by Interest07
change the HPMPAutoPotCheck() function to this:
Code:
Func HPMPAutoPotCheck()
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_HP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, 0)))
$HPTimer = TimerInit()
Endif
EndIf
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_HP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_KEY, 0)))
$HPTimer = TimerInit()
Endif
EndIf
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_FLAG_KEY, 0) = 1 Then
If GUICtrlRead($PERC_MP) < Int(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_PERC_KEY, 1)) Then
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_KEY, 0)))
$MPTimer = TimerInit()
Endif
EndIf
EndFunc
change the function SetLifeSupport to this:
Code:
Func SetLifeSupport()
Global $FORM_LIFESUPPORT = GUICreate("Life Support", 621, 250, -1, -1, -1, -1, $PROPHETBOT)
GUISetOnEvent($GUI_EVENT_CLOSE, "WindowLifeSupportCloseClicked")
GUISwitch($FORM_LIFESUPPORT)
GUISetBkColor(0x000000)
Global $BUTTON_SAVE_AUTOPOTREST = GUICtrlCreateButton("Save", 389, 225, 80, 18)
GUICtrlSetOnEvent(-1, "SaveAutoPotRest")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBKColor(-1, 0x000000)
;Auto Rest Section
;--------------------------------------------------------------------------------
Global $CHECK_AUTO_REST_HP, $CHECK_AUTO_REST_MP, $SLIDE_AUTO_REST_HP, $SLIDE_AUTO_REST_MP, $REST_KEY
Global $GROUP_AUTO_REST = GUICtrlCreateGroup("Automatic Rest", 5, 5, 160, 215)
GUICtrlSetOnEvent(-1, "SaveAutoPotRest")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($GROUP_AUTO_REST), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetTip(-1, "Bot Status")
;Auto-Rest HP
Global $CHECK_AUTO_REST_HP = GUICtrlCreateCheckbox("Restore HP", 20, 25, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTO_REST_HP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_KEY, "0") = 1 Then
$STATE = $GUI_CHECKED
Else
$STATE = $GUI_UNCHECKED
EndIf
GUICtrlSetState(-1, $STATE)
Global $SLIDE_AUTO_REST_HP = GUICtrlCreateSlider(25, 50, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% HP", 30, 70, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
;End Auto-Rest HP
;Auto-Rest MP
Global $CHECK_AUTO_REST_MP = GUICtrlCreateCheckbox("Restore MP", 20, 100, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTO_REST_MP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $SLIDE_AUTO_REST_MP = GUICtrlCreateSlider(25, 130, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% MP", 30, 150, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
;End Auto-Rest MP
;Auto-Rest Key
GUICtrlCreateLabel("Key:", 20, 180, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $REST_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, "--"), 60, 180, 50, 20)
GUICtrlSetData(-1, $KEYCODE , "")
;End Auto-Rest Key
;--------------------------------------------------------------------------------
;End Auto Rest Section
;Auto Loot Section
;--------------------------------------------------------------------------------
Global $CHECK_AUTO_PICK, $AUTO_PICK_TIMES, $AUTO_PICK_KEY
Global $GROUP_AUTO_PICK = GUICtrlCreateGroup("Automatic Get Loot", 170, 5, 300, 50)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($GROUP_AUTO_PICK), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
Global $CHECK_AUTO_PICK = GUICtrlCreateCheckbox("Auto Loot", 185, 25, 80, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTO_PICK), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x800080)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_FLAG_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
GUICtrlCreateLabel("Key:", 275, 28, 40, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTO_PICK_KEY = GUICtrlCreateCombo("", 305, 25, 50, 50)
GUICtrlSetData(-1, $KEYCODE , IniRead($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_KEY, "--"))
GUICtrlCreateLabel("Times:", 360, 28, 40, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTO_PICK_TIMES = GUICtrlCreateInput("", 400, 26, 50, 18)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_TIMES_KEY, "1"))
;--------------------------------------------------------------------------------
;End Auto Loot Section
;Auto Pot Section
;--------------------------------------------------------------------------------
Global $CHECK_AUTOPOT_FLAG_HP, $CHECK_AUTOPOT_FLAG_MP, $SLIDE_AUTOPOT_HP, $SLIDE_AUTOPOT_MP, $AUTOPOT_HP_PERC, $AUTOPOT_MP_PERC
Global $AUTOPOT_HP_KEY, $AUTOPOT_MP_KEY
Global $CHECK_RES_ON_DIE
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
Global $GROUP_AUTOPOT = GUICtrlCreateGroup("Automatic Pot", 170, 60, 445, 160)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($GROUP_AUTOPOT), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
;Auto-Pot HP
Global $CHECK_AUTOPOT_FLAG_HP = GUICtrlCreateCheckbox("Auto-Pot HP", 185, 85, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTOPOT_FLAG_HP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_FLAG_KEY, "0") = 1 Then
$STATE = $GUI_CHECKED
Else
$STATE = $GUI_UNCHECKED
EndIf
GUICtrlSetState(-1, $STATE)
Global $SLIDE_AUTOPOT_HP = GUICtrlCreateSlider(190, 110, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% HP", 195, 130, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
GUICtrlCreateLabel("Key:", 185, 157, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTOPOT_HP_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, "--"), 215, 155, 50, 20)
GUICtrlSetData(-1, $KEYCODE , "")
;End Auto-Pot HP
;Auto-Pot MP
Global $CHECK_AUTOPOT_FLAG_MP = GUICtrlCreateCheckbox("Auto-Pot MP", 330, 85, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTOPOT_FLAG_MP), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_FLAG_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $SLIDE_AUTOPOT_MP = GUICtrlCreateSlider(335, 110, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% MP", 340, 130, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
GUICtrlCreateLabel("Key:", 330, 157, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTOPOT_MP_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_KEY, "--"), 360, 155, 50, 20)
GUICtrlSetData(-1, $KEYCODE, "")
;End Auto-Pot MP
;AutoToP
Global $AUTOTOP_KEY, $CHECK_AUTOTOP_FLAG, $SLIDE_AUTOTOP, $AUTOTOP_PERC, $CFG_HEAL_AUTOTOP_FLAG_KEY = $NAME & "--" & "AutoToPFlag", $CFG_HEAL_AUTOTOP_PERC_KEY = $NAME & "--" & "AutoToPPerc", $CFG_HEAL_AUTOTOP_KEY = $NAME & "--" & "AutoToPKey"
Global $CHECK_AUTOTOP_FLAG = GUICtrlCreateCheckbox("Auto-ToP", 475, 85, 90, 20) ;+145
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_AUTOTOP_FLAG), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_FLAG_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $SLIDE_AUTOTOP = GUICtrlCreateSlider(480, 110, 100, 20)
GUICtrlSetData(-1, IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_PERC_KEY, "0"))
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlCreateLabel("0 50 100% HP", 485, 130, 120, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
GUICtrlCreateLabel("Key:", 475, 157, 50, 20)
GUICtrlSetColor(-1, 0xC0C0C0)
Global $AUTOTOP_KEY = GUICtrlCreateCombo(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_KEY, "--"), 505, 155, 50, 20)
GUICtrlSetData(-1, $KEYCODE, "")
;End AutoToP
;Res On Die
Global $CHECK_RES_ON_DIE = GUICtrlCreateCheckbox("Res On Die", 185, 190, 90, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_RES_ON_DIE), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_RES_ON_DIE_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
Global $BUTTON_SETRAIL = GUICtrlCreateButton("Set Rail", 280, 191, 80, 18)
GUICtrlSetOnEvent(-1, "SetRailList")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBKColor(-1, 0x000000)
Global $BUTTON_TESTRAIL = GUICtrlCreateButton("Test Rail", 370, 191, 80, 18)
GUICtrlSetOnEvent(-1, "RunRail")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBKColor(-1, 0x000000)
;End Res On Die
;Move To Corpse
Global $CHECK_MOVE_TO_CORPSE = GUICtrlCreateCheckbox("Move To Corpse", 20, 225, 120, 20)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($CHECK_MOVE_TO_CORPSE), "wstr", 0, "wstr", 0)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x000000)
If IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_MOVE_TO_CORPSE_KEY, "0") = 1 Then
GUICtrlSetState(-1, $GUI_CHECKED)
Else
GUICtrlSetState(-1, $GUI_UNCHECKED)
EndIf
;Move To Corpse
;--------------------------------------------------------------------------------
;End Auto Pot Section
GUISetState(@SW_SHOW, $FORM_LIFESUPPORT)
EndFunc
and change the saveAutoPotRest function to this:
Code:
Func SaveAutoPotRest()
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_KEY, GUICtrlRead($CHECK_AUTO_REST_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_HP_PERC_KEY, GUICtrlRead($SLIDE_AUTO_REST_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_KEY, GUICtrlRead($CHECK_AUTO_REST_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_MP_PERC_KEY, GUICtrlRead($SLIDE_AUTO_REST_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, GUICtrlRead($REST_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_FLAG_KEY, GUICtrlRead($CHECK_AUTO_PICK))
IniWrite($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_KEY, GUICtrlRead($AUTO_PICK_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_LOOT_ROOT_KEY, $CFG_LOOT_TIMES_KEY, GUICtrlRead($AUTO_PICK_TIMES))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_FLAG_KEY, GUICtrlRead($CHECK_AUTOPOT_FLAG_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_PERC_KEY, GUICtrlRead($SLIDE_AUTOPOT_HP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_FLAG_KEY, GUICtrlRead($CHECK_AUTOPOT_FLAG_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_PERC_KEY, GUICtrlRead($SLIDE_AUTOPOT_MP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_HP_KEY, GUICtrlRead($AUTOPOT_HP_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOPOT_MP_KEY, GUICtrlRead($AUTOPOT_MP_KEY))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_RES_ON_DIE_KEY, GUICtrlRead($CHECK_RES_ON_DIE))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_MOVE_TO_CORPSE_KEY, GUICtrlRead($CHECK_MOVE_TO_CORPSE))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_FLAG_KEY, GUICtrlRead($CHECK_AUTOTOP_FLAG))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_PERC_KEY, GUICtrlRead($SLIDE_AUTOTOP))
IniWrite($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOTOP_KEY, GUICtrlRead($AUTOTOP_KEY))
GUIDelete($FORM_LIFESUPPORT)
EndFunc ;==>SaveAutoPotRest
that should make it less like a quick fix  (It would add a slider to the autopot form etc.)
|
I will probably try it later though I am to tired and lazy atm just did a huge video editing stint all night and half the day.
|
|
|
09/18/2010, 09:45
|
#488
|
elite*gold: 0
Join Date: Sep 2010
Posts: 6
Received Thanks: 0
|
hi asaky,
what it is for problem? when i startet show this message
|
|
|
09/18/2010, 10:12
|
#489
|
elite*gold: 0
Join Date: Sep 2009
Posts: 259
Received Thanks: 22
|
Quote:
Originally Posted by CN84
hi asaky,
what it is for problem? when i startet show this message
|
I do not know I am not the programmer here. I just help out prophets by answering the non technical questions.
|
|
|
09/18/2010, 11:01
|
#490
|
elite*gold: 0
Join Date: Jan 2009
Posts: 175
Received Thanks: 162
|
hey CN84 ^^....
i'm to 98% sure you have the wrong offsets/addresses ^^
|
|
|
09/18/2010, 11:04
|
#491
|
elite*gold: 0
Join Date: Sep 2009
Posts: 259
Received Thanks: 22
|
Quote:
Originally Posted by No0oB
hey CN84 ^^....
i'm to 1000% sure you have the wrong offsets/addresses ^^
|
I believe so aswell.
Hey could you make an offset finder for this bot? If you do I will hug you (if your a girl), If you a guy I will probably awkwardly man hug you. :\
|
|
|
09/20/2010, 14:05
|
#492
|
elite*gold: 0
Join Date: Jun 2009
Posts: 11
Received Thanks: 0
|
i found few more little problem that i would like to mention for you Prophets to fix:
in my cleric, i bot for example in place with small radius, now the bot kills one mob.. and while "finding mob" again, some mob next to him (but not in the radius) start attacking my char. the bot doesn't recognize it, and it won't defend and attack back. that makes him died in few seconds. hope you understand my explain.
another tip. i believe you should add an option which makes the character goes to the base point if you set a radius area, because when my char attack a mob in the limit of the radius, sometimes it doesn't find the next mob for some reasons of distance..
so it would be great thing to add an option which make the character go back to base point every time he finish killing a mob (like he meditaing and other stuff, he will go back to base point)
and one last thing, while botting in my veno, after few kills (it could be 30, it could be 130), i'm not sure why, the bot says that the veno "Killing Monster.." but ingame he doesn't killing any thing, just stands still, and that lead to stop feeding the pet and lose all the loyalty, and it happends for me for the last few days.. tried to download the clean new files from you thread and re-set the bot and check many things.. but nothing fixed it.
i know i wrote alot XD, but hope you could read it and maybe fix some of the problems, or even better, all of them.
that would be great.
keep up the great work you are doing.
|
|
|
09/20/2010, 15:00
|
#493
|
elite*gold: 0
Join Date: Sep 2009
Posts: 259
Received Thanks: 22
|
Your comment with grammatical fixes sorry I am a grammer natzi and cannot let such an atrocity stand.
I found a few more little problems that I would like to mention to you Prophets to fix.
On my cleric, I bot for example in place with a small radius, now the bot kills one mob.. and while "finding mob" again, some mob next to him (but not in the radius) starts attacking my character. The bot doesn't recognize it, and it won't defend and attack back. that makes him die in few seconds. hope you understand my explaination.
Another tip, I believe you should add an option which makes the character go to the base point if you set a radius area, because when my character attacks a mob in the limit of the radius, sometimes it doesn't find the next mob for some reasons because of distance..
So it would be a great thing to add an option which makes the character go back to base point every time he has finished killing a mob (like when he meditates and other stuff, he will go back to base point)
and one last thing, while botting in my veno, after few kills (it could be 30, it could be 130), i'm not sure why, the bot says that the veno "Killing Monster.." but ingame she doesn't kill anyrhing, just stands still, and that lead to stop feeding the pet and lose all the loyalty, and it happends for me for the last few days.. tried to download the clean new files from you thread and re-set the bot and check many things.. but nothing fixed it.
I know I wrote alot XD, but hope you could read it and maybe fix some of the problems, or even better, all of them.
that would be great.
|
|
|
09/20/2010, 15:03
|
#494
|
elite*gold: 0
Join Date: Sep 2009
Posts: 259
Received Thanks: 22
|
Quote:
Originally Posted by saarsinai
i found few more little problem that i would like to mention for you Prophets to fix:
in my cleric, i bot for example in place with small radius, now the bot kills one mob.. and while "finding mob" again, some mob next to him (but not in the radius) start attacking my char. the bot doesn't recognize it, and it won't defend and attack back. that makes him died in few seconds. hope you understand my explain.
another tip. i believe you should add an option which makes the character goes to the base point if you set a radius area, because when my char attack a mob in the limit of the radius, sometimes it doesn't find the next mob for some reasons of distance..
so it would be great thing to add an option which make the character go back to base point every time he finish killing a mob (like he meditaing and other stuff, he will go back to base point)
and one last thing, while botting in my veno, after few kills (it could be 30, it could be 130), i'm not sure why, the bot says that the veno "Killing Monster.." but ingame he doesn't killing any thing, just stands still, and that lead to stop feeding the pet and lose all the loyalty, and it happends for me for the last few days.. tried to download the clean new files from you thread and re-set the bot and check many things.. but nothing fixed it.
i know i wrote alot XD, but hope you could read it and maybe fix some of the problems, or even better, all of them.
that would be great.
keep up the great work you are doing.
|
Quote:
Originally Posted by saarsinai
while botting in my veno, after few kills (it could be 30, it could be 130), i'm not sure why, the bot says that the veno "Killing Monster.." but ingame he doesn't killing any thing
|
Turn off (Pet Attack First) I have had this problem aswell not sure why it does that, it needs to be fixed. But for now turn that off.
Quote:
Originally Posted by saarsinai
so it would be great thing to add an option which make the character go back to base point every time he finish killing a mob (like he meditaing and other stuff, he will go back to base point)
|
I never use the radius thing I manually select each mob its more accurate and safer.
|
|
|
09/21/2010, 09:19
|
#495
|
elite*gold: 0
Join Date: Sep 2010
Posts: 7
Received Thanks: 0
|
I am very sorry for asking but can I trouble anyone to help me start my bot? Am i supposed to download the bot to a specified folder? Do I turn my bot on before I turn on Perfect World International or after or does it even matter? How do I get my bot to get my characters information because it doesn't do that. How do I add monsters to my moblist because I press f11 and it still doesn't add. Does the PWI client have to be set in a specific resolution? Is there a guide to this bot because if one was made it would be very beneficial to very new PWI bot users like myself. Again I apologize to everyone for my troubles.
P.S. I also have this problem whenever i am trying to start the bot: a window titled "Can't Find Perfect World" and the content is "Impossible to detect you Perfect WOrld. Review settings in Custom_Offsets.ini. Set the correct value for Application_Title and for Base_Address properties."
P.S.S. I found out that yes I do have to start the PWI Element client before i start my bot so one of my questions is now answered ^^
|
|
|
All times are GMT +1. The time now is 03:48.
|
|