position in rappelz

03/23/2010 12:34 1nick1988#1
Hi all, i've done my bot by c++, when I didn't know about JT's.
now I have some problems here and i ask you for help

the fist problemi have - /position.
my bot wrote it but... there 8 edites window, in whitch i shall do it?
and... how can i get the coords from chat?

the second my problem is the bot traps.
how i cat get the name of mob like it has done JT's?
I saw the code, but can't find answer.

and at last in some version of vista or 64-bits OS i can't Send esc to rappelz.

WELCOM for some help, thanks
03/23/2010 12:51 schmuselord1#2
1st: you can get position coordinates via OCR. but i dont know how to run / where to get a working OCR-program.
2nd: bot traps have a low level. so if the mob has a purple color level then consider it a bot trap.
3rd: no idea :/
03/23/2010 13:16 1nick1988#3
oh, the 2nd is the Greate solving, thanks much! but i've the OCR programm and...it is not goo variant. not all the coords are readable and it is very slow for bot((
03/23/2010 16:14 schmuselord1#4
can you share your OCR with me plz? ^^
03/23/2010 18:04 1nick1988#5
well mine OCR is Fine reader 8.0. i think it's whill be in my bot there...
i tried GETTEXT message but...
03/23/2010 21:06 Gertos#6
I have writen me an own fast OCR logic for this.

Text from the chat window is even easier that the text form the Mob, because the color is always the same. ( Mob Name has many gray values.)

This is easier than it sounds :D juzst split the Words into letters and compare them with the letters that you already know.

e.g. A Character stored as a String.
Code:
XX____XX_
XX____XX_
X_X__X_X_
X_X__X_X_
X__XX__X_
X__XX__X_
X______X_
X______X_
X______X_
A better way to get an good possition would be to access the Memory, Still searching for a way to do this ;D
03/24/2010 18:17 1nick1988#7
well I'll do it. how can i differ the chat window from others?
04/12/2010 22:22 1nick1988#8
please help me with OCR. put full code of ocr or help me... I'm tired to write it((( (чертовски задолбался писать этот гребаный код)
I'll can help you with others problem if you help me =)
04/13/2010 02:39 1nick1988#9
i done OCR! yohoo but( how i write /position??
i dont want to sekk chat window(
04/13/2010 03:05 1nick1988#10
_SendMessageA(hwndXD, WM_PASTE, 0, 0);
//_SendMessageA(hwndXD, WM_CHAR, 0x2F, 0);
and so on doesn't work(((
04/13/2010 12:07 1nick1988#11
//'/'
temp = rand()%50;temptation=temptation+temp;Sleep(temp);
_PostMessageA(hwndXD, WM_KEYDOWN, 0x6f, 0x10001);
temp = rand()%50;temptation=temptation+temp;Sleep(temp);
_PostMessageA(hwndXD, WM_KEYUP, 0x6f, 0xC0010001);
temp = 50;temptation=temptation+temp;Sleep(temp);

//'p'
temp = rand()%50;temptation=temptation+temp;Sleep(1000);
_SendMessageA(hwndXD, WM_KEYDOWN, 0x50, 0);
temp = rand()%50;temptation=temptation+temp;Sleep(temp);
_SendMessageA(hwndXD, WM_KEYUP, 0x50, 0xC0010001);
temp = rand()%50;temptation=temptation+temp;Sleep(temp);


вводится только / вместо /p

input is only '/', not '/p'((( why???
04/13/2010 19:52 1nick1988#12
problem was solved.... немножко неординарно однако..
04/13/2010 21:02 Gertos#13
Но обратите внимание на немецком языке в этом форуме должны быть на английском языке.

Кроме того, важным является правило о двойном должностей. Если вы были последним, кто пишет что-то в поток, вы должны изменить его записи, а не добавить новую запись.
----

I hope the above make some sense :D
04/13/2010 23:34 1nick1988#14
wow! russians! =) that's great!
but let's go to problem.

the code
while(1)
{
_SendMessageA(hwndXD, WM_KEYDOWN, 0x50, 0);
temp = rand()%50;temptation=temptation+temp;Sleep(temp);
_SendMessageA(hwndXD, WM_KEYUP, 0x50, 0xC0010001);
}

gives only one symbol 'p'. but when i click mouse to person in rappelz - it gives me another 'p'. where my bug? or rappelz waiting another message?
04/27/2010 00:23 1nick1988#15
I did it, close#