|
You last visited: Today at 21:28
Advertisement
JT's Rappelz Bot
Discussion on JT's Rappelz Bot within the Rappelz forum part of the MMORPGs category.
05/01/2008, 18:32
|
#376
|
elite*gold: 0
Join Date: Apr 2008
Posts: 30
Received Thanks: 6
|
Quote:
Originally Posted by TheManaic4
PixelSearch(x-top, y-top, x-bottom, y-bottom, color[, shade variation, step])
return an array if it found the color (x,y) or 1 if it found nothing
|
This is what i am using in my program at momment was about to reply but i see some1 has posted it
|
|
|
05/01/2008, 18:34
|
#377
|
elite*gold: 0
Join Date: Apr 2008
Posts: 30
Received Thanks: 6
|
@JT for screen resolution how are u finding it or you using pixels or this:-
Global Const $tagWINDOWPOS = "hwnd hWnd;int InsertAfter;int X;int Y;int CX;int CY;int Flags"
CX Specifies the window width, in pixels
CY Specifies the window height, in pixels
and...
i know from reading the whole thread there are alot of lazy ppl around lol who cant be bothered to read and see that you have to move the rappelz window into the upper left to get things running maybe using this could sort this out dunno if it will work aint tested it just throwing some ideas out for u here:-
WinMove ( "title", "text", x, y [, width [, height[, speed]]] )
|
|
|
05/01/2008, 19:12
|
#378
|
elite*gold: 0
Join Date: Apr 2008
Posts: 208
Received Thanks: 37
|
Just to clarify, partyxboy, when you say "DJ", you mean "JT" right? lol
Sorry, just didn't want your question to go unanswered, and I noticed that you've used it before as well, so I just wanted to clear it up for everyone
|
|
|
05/01/2008, 19:22
|
#379
|
elite*gold: 0
Join Date: Apr 2008
Posts: 30
Received Thanks: 6
|
Quote:
Originally Posted by m00000
Just to clarify, partyxboy, when you say "DJ", you mean "JT" right? lol
Sorry, just didn't want your question to go unanswered, and I noticed that you've used it before as well, so I just wanted to clear it up for everyone 
|
lmao thanks dunno why i keep putting that must be a habit i have a friend i call DJ o well... EDITED....
|
|
|
05/01/2008, 19:32
|
#380
|
elite*gold: 0
Join Date: Jul 2007
Posts: 292
Received Thanks: 580
|
How I acquire the screen resolution is by finding a pixel in the target window that is unique. That is why all of my programs targets itself when you start the bot. Here is an example of my loop I use to do this:
While $ResChk = 0
ControlClick("Rappelz", "", "", "left", 1,$XPHP,$YPHP ) ; Selects yourself
Sleep(1000)
$FTarget = PixelSearch(480,5,1200,5,0xA9ABAB,0)
ToolTip("Target window POS set", $FTarget[0],$FTarget[1])
Sleep(2000)
$XTarget = $FTarget[0]
$YTarget = $FTarget[1]
; Target HP Values
$X0THP = $XTarget + 2
$X100THP = $XTarget + 199
$YTHP = 23
ControlSend("Rappelz", "", "", "{ESC}")
Sleep(500)
$ResChk = 1
WEnd
yes I do have the pixel coordinates locked to the window, so 0,0 is the upper left corner of the Rapplez window. I have the bot search the exact y line that the coordinate exists on for the x range that is possible for all resolutions... starting at 480 for the 1024 resolution and no more than 1200 for the 1600 resolution. However... I do not know what I am doing so take my words with a grain of salt please... lol. Then i define the target values based off of this pixel location. It is really simple and helps to merge the difference between Vista and XP resolutions with the bot.
|
|
|
05/01/2008, 19:49
|
#381
|
elite*gold: 0
Join Date: Jul 2007
Posts: 292
Received Thanks: 580
|
it always bumps my posts to the next page...
|
|
|
05/01/2008, 20:27
|
#382
|
elite*gold: 0
Join Date: Mar 2008
Posts: 82
Received Thanks: 10
|
Quote:
Originally Posted by Gamer485
^
What color would you search for though, you would have to make sure its not any color on the desktop or the open window since I think the search will stop automatically after the first occurrence of the pixel color and not search the entire possible area.
|
Yes it would stopp after finding the certain pixel with the color and return the x-y coordinate. But I dont get the point what excatly are you trying?
I mean with PixelSearch(x-top, y-top, x-bottom, y-bottom, color[, shade variation, step]) you can tell him the exactly area to search the pixel (no need to search in the whole screen), example:
search in a rectangle on the top left corner
PixelSearch(0, 0, 100, 100, 13553872, 25) ; color is in decimal value but that doesnt matter
|
|
|
05/01/2008, 20:29
|
#383
|
elite*gold: 0
Join Date: Apr 2008
Posts: 208
Received Thanks: 37
|
Quote:
Originally Posted by jtremblay
it always bumps my posts to the next page...
|
It's cause you're special bro lol
|
|
|
05/01/2008, 20:51
|
#384
|
elite*gold: 0
Join Date: Apr 2008
Posts: 12
Received Thanks: 0
|
Quote:
Originally Posted by TheManaic4
Yes it would stopp after finding the certain pixel with the color and return the x-y coordinate. But I dont get the point what excatly are you trying?
I mean with PixelSearch(x-top, y-top, x-bottom, y-bottom, color[, shade variation, step]) you can tell him the exactly area to search the pixel (no need to search in the whole screen), example:
search in a rectangle on the top left corner
PixelSearch(0, 0, 100, 100, 13553872, 25) ; color is in decimal value but that doesnt matter
|
Someone stated before that they used this function to search entire screen for compiling times sake. They stated 12 Secs to search entire screen. I ran while looks to have a good comparison since this would search the entire screen and every pixel. Later they said they had used the PixelSearch function. I'm amazed it took 12 seconds using this function unless they planted a specific pixel on the last search slot or used a unique color that wasn't found.
|
|
|
05/01/2008, 20:56
|
#385
|
elite*gold: 0
Join Date: Dec 2006
Posts: 61
Received Thanks: 2
|

I had an idea.
I do not use my pet as DD because it is low level. I was wondering if it was possible to eliminate buffs for pet (for a savings of time / mana and not risk of dying during buffs (as I've already been several times)).
however, I congratulate you on the EXCELLENT work, the version .9 is definitely much better!
|
|
|
05/01/2008, 21:35
|
#386
|
elite*gold: 0
Join Date: Apr 2008
Posts: 9
Received Thanks: 3
|
Yeah, I've got a few ideas that I want to try and write code for. I'm just going to have to learn how to write GUI code though (something I was never good at). I just don't have time right now, stupid Senior Design Presentations. Anyways, after I'm done with this quarter hopefully I'll be able to put some coding time in. With half a dozen people putting in ideas, this should be one hell of a bot once it reaches completion. =)
|
|
|
05/01/2008, 21:55
|
#387
|
elite*gold: 0
Join Date: Jul 2007
Posts: 292
Received Thanks: 580
|
wow!
My XP guys need to talk to me here... major problems with wordmaker. It was only working on vista...
I have been playing with some code on my XP machine and found this out. I have anew version coming out soon so my XP guys can take advantage of wordmaker. I am also spending the day on acquiring bot-trap information to improve the bot-trap detection script.
|
|
|
05/01/2008, 21:56
|
#388
|
elite*gold: 0
Join Date: Apr 2008
Posts: 30
Received Thanks: 6
|
Quote:
Originally Posted by TheManaic4
Yes it would stopp after finding the certain pixel with the color and return the x-y coordinate. But I dont get the point what excatly are you trying?
I mean with PixelSearch(x-top, y-top, x-bottom, y-bottom, color[, shade variation, step]) you can tell him the exactly area to search the pixel (no need to search in the whole screen), example:
search in a rectangle on the top left corner
PixelSearch(0, 0, 100, 100, 13553872, 25) ; color is in decimal value but that doesnt matter
|
Has nothing todo what im actually doin lol i wanted to see exactly how long it would take to search EVERY pixel on the screen, messing around basically useless information if you want to put it that way!
|
|
|
05/01/2008, 22:00
|
#389
|
elite*gold: 0
Join Date: Apr 2008
Posts: 30
Received Thanks: 6
|
Quote:
Originally Posted by Gamer485
Someone stated before that they used this function to search entire screen for compiling times sake. They stated 12 Secs to search entire screen. I ran while looks to have a good comparison since this would search the entire screen and every pixel. Later they said they had used the PixelSearch function. I'm amazed it took 12 seconds using this function unless they planted a specific pixel on the last search slot or used a unique color that wasn't found.
|
o no no lol im only searching a section of the screen and every other 150 pixels it dont take long at all!
|
|
|
05/01/2008, 22:05
|
#390
|
elite*gold: 0
Join Date: Apr 2008
Posts: 30
Received Thanks: 6
|
Quote:
Originally Posted by jtremblay
How I acquire the screen resolution is by finding a pixel in the target window that is unique. That is why all of my programs targets itself when you start the bot. Here is an example of my loop I use to do this:
While = 0
ControlClick("Rappelz", "", "", "left", 1,, ) ; Selects yourself
Sleep(1000)
= PixelSearch(480,5,1200,5,0xA9ABAB,0)
ToolTip("Target window POS set", ,)
Sleep(2000)
=
=
; Target HP Values
= + 2
= + 199
= 23
ControlSend("Rappelz", "", "", "{ESC}")
Sleep(500)
= 1
WEnd
yes I do have the pixel coordinates locked to the window, so 0,0 is the upper left corner of the Rapplez window. I have the bot search the exact y line that the coordinate exists on for the x range that is possible for all resolutions... starting at 480 for the 1024 resolution and no more than 1200 for the 1600 resolution. However... I do not know what I am doing so take my words with a grain of salt please... lol. Then i define the target values based off of this pixel location. It is really simple and helps to merge the difference between Vista and XP resolutions with the bot.
|
wouldnt it be easier to use
Global Const $tagWINDOWPOS = "hwnd Rappelz;int InsertAfter;int X;int Y;int CX;int CY;int Flags"
CX Specifies the window width, in pixels
CY Specifies the window height, in pixels
basically tells you the screen size of that window
|
|
|
All times are GMT +1. The time now is 21:28.
|
|