Perfect World Bot PWI-Prophet Bot Recoded

09/16/2010 13:13 asaky#481
Quote:
Originally Posted by Interest07 View Post
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. :D Why I guard my bot spots jelously. lol
09/16/2010 13:33 Interest07#482
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 butt.
09/16/2010 14:02 asaky#483
Quote:
Originally Posted by Interest07 View Post
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 butt.
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 methose98#484
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 dummy04#485
Quote:
Originally Posted by Interest07 View Post
There's something totally messed up with PW ph lol, apparently my bot won't work there either :o
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 Interest07#486
Quote:
Originally Posted by asaky View Post
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:

change the function SetLifeSupport to this:


and change the saveAutoPotRest function to this:


that should make it less like a quick fix :) (It would add a slider to the autopot form etc.)
09/17/2010 14:48 asaky#487
Quote:
Originally Posted by Interest07 View Post
change the HPMPAutoPotCheck() function to this:

change the function SetLifeSupport to this:


and change the saveAutoPotRest function to this:


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 CN84#488
hi asaky,
what it is for problem? when i startet show this message

[Only registered and activated users can see links. Click Here To Register...]
09/18/2010 10:12 asaky#489
Quote:
Originally Posted by CN84 View Post
hi asaky,
what it is for problem? when i startet show this message

[Only registered and activated users can see links. Click Here To Register...]
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 No0oB#490
hey CN84 ^^....
i'm to 98% sure you have the wrong offsets/addresses ^^
09/18/2010 11:04 asaky#491
Quote:
Originally Posted by No0oB View Post
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 saarsinai#492
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 asaky#493
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 asaky#494
Quote:
Originally Posted by saarsinai View Post
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 View Post
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 View Post
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 Driffangor#495
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 ^^