PWI Eclipse changes

04/12/2015 21:23 Stark77#106
@bestvlad: cant remember any issues with those coordinates sry

@jasty: i only start a client and let AHK type in the account info after a fix delay that works quite good for me. but dont know any other way.
Code:
Run, %A_WorkingDir%\elementclient.exe startbypatcher
sleep, %LoadingTime%
WinActivate, Perfect World International
WinMove, Perfect World International, , 0, 0
WinSetTitle, Perfect World International, ,%PlayerName%
send, %nickname%{Tab}%password%
send, {Enter}
04/12/2015 21:27 bestvlad#107
Stark77, I've just rewritten AutoPath function code to C# and it works fine.

AutoPath function:

MoveTo function:
04/13/2015 01:31 Stark77#108
prety sure u still need to use the reversed hexa form of the coordinates like i posted in my example. maybe move to (500,500,0) and print your x value that u inject and compare it.
04/13/2015 07:19 sasukezero#109
@jasty
I am using image search for logging in chars with autoit. but there i don't have a character switcher build in cause i don't need it. I guess its easily possible by changing some vars.

For relogging/switching between chars, i am using package send to log out to the character selection -> wait for image(like the start button) and then send "ESC" to get to the login window(also here a wait for image), through which i can login another character.

This way i don't have set sleeps, which can fail in case of lag or whatever.

I hope that helps ^^
04/13/2015 08:17 bestvlad#110
Quote:
Originally Posted by Stark77 View Post
prety sure u still need to use the reversed hexa form of the coordinates like i posted in my example. maybe move to (500,500,0) and print your x value that u inject and compare it.
Iteger and floating values are converted to HEX correctly by function similar to yours:

04/13/2015 09:30 jasty#111
Quote:
Originally Posted by sasukezero View Post
@jasty
I am using image search for logging in chars with autoit. but there i don't have a character switcher build in cause i don't need it. I guess its easily possible by changing some vars.

For relogging/switching between chars, i am using package send to log out to the character selection -> wait for image(like the start button) and then send "ESC" to get to the login window(also here a wait for image), through which i can login another character.

This way i don't have set sleeps, which can fail in case of lag or whatever.

I hope that helps ^^
I didn't know autoit had imagesearch. Last I looked I only saw pixelsearch and I couldn't find pixels that worked. Python has an imagesearch but the tolerance value didn't work and all the buttons had a little transparency that was screwing it up.

Actually I still don't see imagesearch in the [Only registered and activated users can see links. Click Here To Register...] are you using a custom library? Can it read pixels from minimized windows?
04/13/2015 09:58 bestvlad#112
Fixed my MoveTo function. Coords should be passed in that oreder: X, Z, Y.

Is there any way to change Z while flying like drag the spinner in game?
04/13/2015 14:03 sasukezero#113
Idk if i could make it work with minimized windows. i didn't try it cause i don't need it in my case.
I guess i got the image search from here: [Only registered and activated users can see links. Click Here To Register...]
But im not sure anymore. Else i can upload it here.

About the Transparency, just use things that don't have it, like the start button and so.
What i did at the character selection was, make a pic of the start button eventho its transparent. It shows always the same. Only thing that can kick in is a mouse, that hovers over. I move the mouse in the middle for that via Mousemove().

In case of doing minimized image search would also a print Window work, i guess.
Maybe ill look into it.
I might check for flags that are there when you're in different modes, but it works just awesome with image search in my case.
04/14/2015 13:14 bestvlad#114
Stark77, do you have an injectable code for attack?
04/14/2015 14:12 Stark77#115
Hmm for normalattack i still use packets:

For other skills the injection denzjh postet here:
[Only registered and activated users can see links. Click Here To Register...]
04/21/2015 15:28 bestvlad#116
Does anyone know SendChatMessage function address?
05/07/2015 22:02 louco89#117
Unfortunately AddressRetriever does not work with executable of PWBR :(
Perhaps because we not had the Eclipse update here yet.
05/19/2015 06:25 Craz1nf#118
I have not been able to get autopath to change its altitude, just stays at current Z position. At the moment my character will get on its flyer & just start flying to the X,Y location without flying up/down to Z.

not sure if i have to do something more after calling AutoPath() ?

any help would be appreciated:)

05/19/2015 15:51 Stark77#119
hmm i cannot see the misstake atm. i use normal move to fly or swim. maybe take a look at it (set the flyflag=1 to fly):

05/19/2015 18:16 Craz1nf#120
thanks, tried with the normal MoveTo function posted on page 4 of this thread


If i leave flymode flag set to 0, it walks to the coordinates, but if i set it to 1, my character will just standstill/start running on the spot (on screen) and does not move to the destination, from another client the char appears to be standing still.

Another thing i noticed is that MoveTo walks a straight line, it does not use in-game autopath type paths (walking around objects to destination), i assume this is normal?

EDIT:
tried passing 1.0 instead of 1: MoveTo(X, Y, Z, 1.0), it does not standstill this way, but works the same as if i used MoveTo(x, y, z, 0) and walks to destination instead of flying.