[C++] Some help on adding a few feature to my bot

01/10/2011 04:43 SpeedWind#91
=( plsss doooo something
01/10/2011 04:44 Inathero#92
I don't get why you guys can't download Int client =\

---------

I can download the PH client, but really don't have any incentive to do so. Int is loads of fun for me so far, no sense of getting PH
01/10/2011 11:10 jepher#93
yes its not working on ph..soo..

pls work on ph..nope since you said their is no sense making it..

add..since im a heretic..can i just use heal/bless on my pet?
01/10/2011 11:38 dumano#94
a quick question about the heretic heal thingy, when you say that party heal as in a skill that heal the entire party? or a single heal that will heal a single party member that is in danger? Because the skill to heal the entire party i believe is at lvl 85? if you can make it target a single party member that will be awesome!! i havent try to bot yet, will try it out tomorrow night. thank you for all of your hard work.
01/10/2011 12:18 dlnqt#95
I will definitely try this if I have the time. Maybe later.. I'll be posting my feedbacks in a while :D
01/10/2011 20:32 Inathero#96
Quote:
Originally Posted by jepher View Post
yes its not working on ph..soo..

pls work on ph..nope since you said their is no sense making it..

add..since im a heretic..can i just use heal/bless on my pet?
I'ma try to take that post apart.

Q. yes its not working on ph..soo..

A. Correct, Was made for INT server

Q. pls work on ph

A. I can, but this bot was made for myself only. I had no plans to sell it. I can make it work on PH, but it'll take a long time to refind the variables and not much fun for me so no reason to do so.

Q. ..nope since you said their is no sense making it..

A. Gj at answering yourself

Q. add..since im a heretic..can i just use heal/bless on my pet?

A. Good Idea, didn't think about that. but since this will only work on INT, you won't beable to use it on PH

------------------------

Quote:
Originally Posted by dumano

a quick question about the heretic heal thingy, when you say that party heal as in a skill that heal the entire party? or a single heal that will heal a single party member that is in danger? Because the skill to heal the entire party i believe is at lvl 85? if you can make it target a single party member that will be awesome!! i havent try to bot yet, will try it out tomorrow night. thank you for all of your hard work.
Heretic Lvl 10 skill Heal:

Heals friendly nearby tagets with sacred light, recovering 296 HP (at lvl 1) plus bonus healing equal to 60% (lvl 1) Light Damage and 60% (lvl 1) of your spirit value.

That's at lvl 10 lol. Lvl 55 has single person healing.

lvl 85 healing = buffed up version of lvl 10 healing.

Q. or a single heal that will heal a single party member that is in danger?

A. Am going to work on that. Dunno how to approach, but will try my best

--------------------

Quote:
Originally Posted by dlnqt View Post
I will definitely try this if I have the time. Maybe later.. I'll be posting my feedbacks in a while :D
Many thanks =3 Any feedback is extremly welcomed ^^
01/10/2011 20:48 SuneC#97
I'm afraid, Inathero, that the skill description of Heal is very poorly worded. It is very easy to misunderstand, and even I did it the first time. It means you are able to heal friendly nearby targets, not that it will do it. It's single target :)
So Heretic don't get their AoE heal before lvl85.
01/10/2011 20:51 Inathero#98
Quote:
Originally Posted by SuneC View Post
I'm afraid, Inathero, that the skill description of Heal is very poorly worded. It is very easy to misunderstand, and even I did it the first time. It means you are able to heal friendly nearby targets, not that it will do it. It's single target :)
So Heretic don't get their AoE heal before lvl85.
Haha i'll be damned. Thanks a bunch SuneC :3

Atm testing on my heretic alt. Played around with the function i made for autoloot. I'll most probably beable to make it so that you can single target a player in the group =3
01/10/2011 21:13 dumpersta#99
The description on the level 10 heal just means it can only heal within a certain range I believe. It most certainly only hits one target with any health gain.

EDIT: Bah, opened page long before I read it, missed replies since then :p ignore me :P
01/10/2011 21:18 Inathero#100
Quote:
Originally Posted by dumpersta View Post
The description on the level 10 heal just means it can only heal within a certain range I believe. It most certainly only hits one target with any health gain.

EDIT: Bah, opened page long before I read it, missed replies since then :p ignore me :P
haha its ok. Was slightly different than Sune's answer and answered all my questions about it XD

Atm working on party positions. Once I get that down, Single party member targetting will be possible
01/10/2011 22:13 Inathero#101
Good news. Bot can select Party Players 1, 2, 3, 4, and 5 succesffuly =3 Unfortuantly uses same function as AutoLoot, so can't minimize game if using that.
01/10/2011 22:57 dumpersta#102
I am curious how well autoloot works with things covering the treasure chest. Like if your bag is open, or the minimap happens to overlap the chest. Or even if the chest is behind your chat panel. Seems that people are writing it to right-click on that window location, which means if your bag IS open and lined up wrong, it might right click something in the bag and use it instead.

Maybe that Pixel Color checking program that was also posted in the BoI forums here could be used as well, to ensure that the pixel about to be right clicked is at least the proper gold shiny color of a lootable chest? Doesn't prevent ALL mis-clicks, but removes a lot of them.
01/10/2011 23:16 jagu#103
CURRENT INTERNATIONAL BOI ADDRESS

BOI_CHBA1=0x00EF7BBC
BOI_CHBA2=0x00BCAB0C
BOI_PARTY=0x00EEDBA0
BOI_PETIO=0x00F12D1C
BOI_TGTNP=0x01182954
BOI_TGTIM=0x011816EC
BOI_TGTIL=0x01186AFC
BOI_TGTBH=0x011899D4
BOI_GMCHT=0x018D21EB
BOI_GMOPN=0x01348394
BOI_GMSK1=0x004E0530
BOI_GMSK2=0x004CA4A0
BOI_GMRU1=0x004C9820
BOI_GMRU2=0x0071EB50
BOI_GMBAG=0x0057D4C0

CURRENT PHILIPPINES BOI OFFSETS

CHAR_HP_OFST=0xA607E0
CHAR_HP_MAX_OFST=0xA60818
CHAR_MP_OFST=0xA607E8
CHAR_MP_MAX_OFST=0xA60820
CHAR_NAME_OFST=0xA605C4
CHAR_RAGE_OFST=0xA607F0
X_CURR=0xA60794
Y_CURR=0xA60798
MAPID=0xDFBF20
PET_HP_OFST=0xA7C27C
PET_HP_MAX_OFST=0xA7C280
PET_MP_OFST=0xA7C5A0
PET_MP_MAX_OFST=0xA7C5A4
PET_IS_OUT_OFST=0xA7B3A4
PTR_TNAME_OFST=0xC9117C
IS_MOB_OFST=0xC8FF34
IS_LORD_OFST=0xC948C4
BEEN_HIT_OFST=0xC9816C
IS_CHAT_OFST=0x1329C7B
OPEN_NPC_OFST=0x
MAP_AUTO_ROUTE_ADD=0x006EFFB0
USE_BAG_ITEM_ADD=0x0056A730

I did not find these... Just found them in another forum... so you can make the bot work in both versions Int and Ph. But wait until the bot is stable and with all the features you want in it before porting it over to PH :)
01/10/2011 23:18 Inathero#104
Quote:
Originally Posted by dumpersta View Post
I am curious how well autoloot works with things covering the treasure chest. Like if your bag is open, or the minimap happens to overlap the chest. Or even if the chest is behind your chat panel. Seems that people are writing it to right-click on that window location, which means if your bag IS open and lined up wrong, it might right click something in the bag and use it instead.

Maybe that Pixel Color checking program that was also posted in the BoI forums here could be used as well, to ensure that the pixel about to be right clicked is at least the proper gold shiny color of a lootable chest? Doesn't prevent ALL mis-clicks, but removes a lot of them.
Heh, this will be a long type

Gonna start bottom up, about the pixel color checking program

That program is extremly basic. excluding gui, programming the basic interior coding would take about 10-20 minutes. I actually wrote a pixel color checking program to work in conjunction with the autoloot, but doesn't work

why? The chest isn't one pixel color. Also, the chest has those golden glowing stuff around it that completly throws off the pixel checking of program.

Also that pixel checker program only records one X and one Y location and monitors the pixel color there, totally pointless since everytime your char moves, the chest location "changes" relatively to your character and teh X and Y values fail. Also, if the chest had a static color, pixel scanning the game is a long and slow process, so it doesn't work efficeintly =\

------------------------------
AutoLoot on rightclicking

You're fears are valid on this concern, however you didn't take in the account that rightclick on an empty spot of the bag, or rightclicking anywhere on the map, closes that window :P In any case, i'll tell you exactly how my autoloot works

It first takes the width and length of the BoI window (if maximized, it takes length and width of your Display's w and l.

from there, i divide both w and l by two to get middle of screen, which would = Character position.

Through testing, I noticed that when killing an enemy, the chests drop at max distance in this equation: ((w/2)/3) +- Player's X or Y

Doing that, I create a box around the character. on my screen, box is usually around 300px or 350px or something.

From there, I find the chests smallest width.. In that box, from the top left corner, I rightclick the top left corner, increase x by width of chest and rightclick, and etc. till reaching end of box. I increase y by height of chest and reset the x of the box to the left again. I keep doing it etc. till box is finished clicking.

Here are my variables:

bright = w + (w-(w*2)/3);
bleft = w - (w-(w*2)/3);
btop = h - (w-(w*2)/3);
bdown = h + (w-(w*2)/3);
increase = (2*(w-(w*2)/3))/30;

where w = (Width of Game Window)/2

So far method works perfectly. I only seen it missed a chest once, but after killing second enemy, it picks up chest. I'm also not using the mouse to click at the coordinates, but instead making the game "think" that the mouse is clicking at those locations. So basically no game lag, you can use your mouse as you want, and etc. Only issue is that if you have bag open, it'll close bag lol

If chest is out of box, it won't be clicked. However that box is rather big. As character moves around killing monsters, the chest will eventually go back into box and get clicked. So far my bot hasn't missed a single box after battles are done, And I use my bot to automate almost all my fights.

Any more questions hit it my way :P

PS: I'm still in highschool
01/10/2011 23:20 Inathero#105
Quote:
Originally Posted by jagu View Post
CURRENT INTERNATIONAL BOI ADDRESS

BOI_CHBA1=0x00EF7BBC
BOI_CHBA2=0x00BCAB0C
BOI_PARTY=0x00EEDBA0
BOI_PETIO=0x00F12D1C
BOI_TGTNP=0x01182954
BOI_TGTIM=0x011816EC
BOI_TGTIL=0x01186AFC
BOI_TGTBH=0x011899D4
BOI_GMCHT=0x018D21EB
BOI_GMOPN=0x01348394
BOI_GMSK1=0x004E0530
BOI_GMSK2=0x004CA4A0
BOI_GMRU1=0x004C9820
BOI_GMRU2=0x0071EB50
BOI_GMBAG=0x0057D4C0

CURRENT PHILIPPINES BOI OFFSETS

CHAR_HP_OFST=0xA607E0
CHAR_HP_MAX_OFST=0xA60818
CHAR_MP_OFST=0xA607E8
CHAR_MP_MAX_OFST=0xA60820
CHAR_NAME_OFST=0xA605C4
CHAR_RAGE_OFST=0xA607F0
X_CURR=0xA60794
Y_CURR=0xA60798
MAPID=0xDFBF20
PET_HP_OFST=0xA7C27C
PET_HP_MAX_OFST=0xA7C280
PET_MP_OFST=0xA7C5A0
PET_MP_MAX_OFST=0xA7C5A4
PET_IS_OUT_OFST=0xA7B3A4
PTR_TNAME_OFST=0xC9117C
IS_MOB_OFST=0xC8FF34
IS_LORD_OFST=0xC948C4
BEEN_HIT_OFST=0xC9816C
IS_CHAT_OFST=0x1329C7B
OPEN_NPC_OFST=0x
MAP_AUTO_ROUTE_ADD=0x006EFFB0
USE_BAG_ITEM_ADD=0x0056A730

I did not find these... Just found them in another forum... so you can make the bot work in both versions Int and Ph. But wait until the bot is stable and with all the features you want in it before porting it over to PH :)
Nice list, thanks, but non of the INT addresses equal my addresses XD

Edit: my bad, Pet one fit, but my shows if sumoned, variable there says "BOI_PETIO" which I have no idea wtf that means. If possible, a clearer variable list would be nicer XD

If I have PH values, I'll port, promise, just don't want to search myself lol