[Release] GR Autolooter

06/08/2014 10:33 kellerkind123456#271
Quote:
Originally Posted by buFFy! View Post
A working solution is posted, its your job to undertand it
I want to create it on my own, but I'm not a good programmer.
I understand only a little vb and that's 20 years ago. :)

If I use:

Code:
$finaladdr=_memoryread(_memoryscan($open,"FF 50 1C 85 C0 74 1B")-4,$open,"dword")+0x67
I get 103 as finaladdr. Think this is wrong isn´t it?

[Only registered and activated users can see links. Click Here To Register...]
06/09/2014 14:40 xoraxax#272
Assume that _memoryread works properly and our pattern is right - that means _memoryscan returns you the wrong result (pretty obvious right?) How to fix it?

Let's take a look at the function signature:
Code:
Func _memoryscan($ah_handle, $pattern, $after = False, $iv_addrstart = 01000000, $iv_addrend = 0x02000000, $step = 51200)
The interesting thing is scan range (addrstart to addrend)
06/09/2014 16:51 kellerkind123456#273
Quote:
Originally Posted by xoraxax View Post
Assume that _memoryread works properly and our pattern is right - that means _memoryscan returns you the wrong result (pretty obvious right?) How to fix it?

Let's take a look at the function signature:
Code:
Func _memoryscan($ah_handle, $pattern, $after = False, $iv_addrstart = 01000000, $iv_addrend = 0x02000000, $step = 51200)
The interesting thing is scan range (addrstart to addrend)
Yes, that was my thought too.
I´ve made a debug msgbox to see the values of the vars, the function "_MemoryScan" returns -3 and no address.

Again, one step further ;)


Update:
Got it! Thank you.
"addrstart" to "addrend" in func _memoryscan was the key. :D
06/13/2014 19:38 sifkal#274
so one nub question anyone got working script ?
06/14/2014 18:19 xoraxax#275
There is everything you need to make it by yourself. Even with comments.
06/16/2014 15:44 kellerkind123456#276
Quote:
Originally Posted by sifkal View Post
so one nub question anyone got working script ?
Quote:
Originally Posted by xoraxax View Post
There is everything you need to make it by yourself. Even with comments.
Yes, it´s all here. I´m using [Only registered and activated users can see links. Click Here To Register...] since 10 days.
With the help of Buffy and Xoraxas I have created a running autolooter with Autoit.

This is the base program from Xoraxas:
Quote:
Originally Posted by xoraxax View Post
AutoIt

... and his last autolooter update before the last GW2 patch
Quote:
Originally Posted by xoraxax View Post

this stuff works for me now (assemble it with my last program)

Buffy gave this tip:
Quote:
Originally Posted by buFFy! View Post
Just do the following..
Code:
byte sigAsContext[] = { 0xFF, 0x50, 0x1C, 0x85, 0xC0, 0x74, 0x1B };

Xoraxax adapted it:
Quote:
Originally Posted by xoraxax View Post
This is what Buffy said:
Code:
$finaladdr=_memoryread(_memoryscan($open,"FF 50 1C 85 C0 74 1B")-4,$open,"dword")+0x67
Thank you, very usefull.

... and and gave me the last hint:
Quote:
Originally Posted by xoraxax View Post
Assume that _memoryread works properly and our pattern is right - that means _memoryscan returns you the wrong result (pretty obvious right?) How to fix it?

Let's take a look at the function signature:
Code:
Func _memoryscan($ah_handle, $pattern, $after = False, $iv_addrstart = 01000000, $iv_addrend = 0x02000000, $step = 51200)
--> The interesting thing is scan range (addrstart to addrend) <--
;)
06/16/2014 20:27 torresmo01#277
awesome thx ;)
07/05/2014 21:15 Majin PaiN#278
+++
07/06/2014 00:36 longtianchi#279
thk
07/10/2014 14:09 kellerkind123456#280
As a thank you for the help here in the forum, I present you a working Autolooter.
If the lootaddress changes after an update, it can be adjusted in the GW2_Autoloot.ini.
The GW2_Autoloot.ini is created automatically after the first start of the program.

You can find the autoloot address with [Only registered and activated users can see links. Click Here To Register...].
- Just kill a NPC, if it dropped loot search for the value BYTE 64 in Cheat Engine.
- Go away and search again for DECREASED VALUE.
- Go closer again to the loot and search again vor the EXACT VALUE 64
- Do the steps above again till you got a unique lootaddress
- Edit GW2_Autoloot.ini and change the "lootadress"

... have fun ;)


Updated: 16.7.2014
07/11/2014 09:57 xoraxax#281
FF 51 20 C7 05 .. .. .. .. 00 00 00 00

This is a pattern for a chat flag (1 if chat is active, 0 otherwise)
07/12/2014 16:37 Tömaaaa#282
does it work ?
07/12/2014 20:31 xoraxax#283
it does
07/16/2014 19:47 kellerkind123456#284
New Lootaddress: 0x0151FF47
07/16/2014 19:50 sifkal#285
ty