On my PC the game keeps minimizing and showeing the bot window,then,maximize againg,then choose a target,then minimize,then show bot window,then maximize,then chose mmonster.....
ok thats different to what i have. I used a bit of your old code you posted hope you dnt mind, thanks goes out to you jtremblay.......Quote:
Post the code and I will see if I can integrate it in one of the future releses. My only problem with that is currently I am trying to debug all of the features that I have included, and I would have to re-write the entire bot's core to change its method of handling colors. Every if and while statement in the bot has a Pixelgetcolor statement in it, so it would be a very daunting task. All of the possition variables are defined in the beggining of the bot, like possitions of the F keys and such. I was actually about to write the resolution detection script over the next few days and try to add support for more than one resolution. I kinda fixed the multiple OS problem by finding the more common colors between the two and using it to my advantage. I have several ideas that I have on the back-burner for color handling and like I have said before, I want to get close to perfection out of the current script before I play with that. I want to make sure that the current IF and WHILE loops are doing what they are supposed to do before I mess with thier logic.
here is an example of the multi OS healing script...
If = 1 Then
If PixelGetColor(,) <> 2379018 Then ; Win XP
If PixelGetColor(,) <> 2379274 Then ; Vista
If PixelGetColor(,) <> 0 Then
ToolTip("Healing Yourself", ,)
ControlClick("Rappelz", "", "", "left", 1,, ) ; Selects yourself
Sleep(500)
ControlClick("Rappelz", "", "", "left", 1,, )
Sleep(4000)
ControlSend("Rappelz", "", "", "{ESC}")
Sleep(500)
EndIf
EndIf
EndIf
EndIf
The problem with releasing script information is b4 u know it everyones got it, yes thats all the lazy ppl and it gets blocked by hackshield. On the other hand it gives a better understanding of whats going on and in the end alot of input to make it better as a whole. Me personally dnt like to release large scripts but would pefer to release smaller versions and help people understand that way. i learn't from my lessons i use to release alot of scripts on the Actools forum and now its blocked and dead. Up to jtremblay tho.Quote:
Well i saw your script and i just could not resist but to join this forum :D
I have been running the latest script but i am having some problems :(
When i use attack with creature my orc is faster then me so he attacks first and gets killed :(
Sometimes the script would not chip creatures because they are too far so he runs closer but then he overwrites the chip command by pressing the attack button so the monster does not get chipped :(
Now the good news :D
I have a script that i found and i will share it with you so you can use it and make your script better or maybe make the script i found work because i was unable to do so :(
The script was made for program called "SCAR" so it will not work with autoit but i am sure its written in Pascal.
I would also like to ask you if you would be so kind of releasing your script source.
I would not use it for my benefit in any way or release it as mine.
I am very interested in learning how you made your bot and it would really help if i could look at the script.
Thank you very much for the great script you have made.
I never thought about doing it like that... that makes my whole day of getting color info and cataloging points where the values were not 0 sound like a waste of time. I might have to use that approach if I have any more color problems. I already have the coordinates of everything, and I already have all of the variable functions being assigned. It would nto be too much work to just change them over.Quote:
ok thats different to what i have. I used a bit of your old code you posted hope you dnt mind, thanks goes out to you jtremblay.......
Func Start()
WinActivate("Rappelz")
Sleep(2000)
; My global pixel information
$000PlayerHP = PixelGetColor (12, 54)
$025PlayerHP = PixelGetColor (57, 54)
$050PlayerHP = PixelGetColor (107, 54)
$075PlayerHP = PixelGetColor (157, 54)
$100PlayerHP = PixelGetColor (206, 54)
= PixelGetColor (490, 10) ; target window open
= PixelGetColor (685, 26) ; monster max HP
= PixelGetColor (490, 10)
= PixelGetColor (685, 26)
Do
.....
.....
.....
If = 1 Then
= PixelGetColor (107, 54)
= PixelGetColor (685, 26)
If <> $050PlayerHP And <> $025PlayerHP Then ; between 25% and 50% health
basically wot iv done is have a mob targeted as u start the bot it will take pixel information store them as a global as use this information as a reference throughout the program. so your not actually puttin the pixel information in the program urself.
ok i know some of u have pixies running around with u and its good having it heal you so heres some more code i use. Hope its helpful to you jtremblay....
ControlSend("Rappelz", "", "", "{Alt down}1{Alt up}")
Have fun :D
perhaps a setting in Vista OS that minimizes processes when you change focus to another??? I am not sure. I am playing on:Quote:
I've got the same problem like dombol. Client and Bot perform an infinite minimize/maximize loop. Searching and selecting Mobs works, but the Attack doesn't. :confused:
I already tested out different desktop resolutions while keeping the client-window@1024*768. Couldn't fix the problem :/
Vista 32 bit
Quote:
I never thought about doing it like that... that makes my whole day of getting color info and cataloging points where the values were not 0 sound like a waste of time. I might have to use that approach if I have any more color problems. I already have the coordinates of everything, and I already have all of the variable functions being assigned. It would nto be too much work to just change them over.