Jump to content
Moopler Closing Read more... ×
Moopler
  • 0
Sign in to follow this  
PoornStar

Auto Pot and Auto Attack Script

Question

3 answers to this question

Recommended Posts

  • 0

Auto HP/MP

Spoiler

//Breakpoint CWvsContext__OnKey Address if you want more
define(CTRL,001D0000)
define(SHIFT,002A0000)
define(INSERT,01520000)
define(DEL,01530000)
define(HOME,01470000)
define(END,014F0000)
define(PAGEUP,01490000)
define(PAGEDOWN,01510000)
define(ALT,00380000)


define(CWvsContext__OnKey,01E2D610) //A1 ?? ?? ?? ?? 85 C0 74 ?? 8D 48 ?? 8B 01 8B 00
define(TSingleton_CWndMan___ms_pInstance,029D89A4) //8B ? ? ? ? ? C6 ? ? ? E8 ? ? ? ? 8B ? BA ? ? ? ? C6 [POINTER]


//Change HP and MP Values to your preferred settings
define(HP_VALUE,#10000)
define(MP_VALUE,#10000)

[enable]
alloc(hp_hook,128)
alloc(mp_hook,128)
alloc(key_press,128)
label(hp_return)
label(mp_return)

019DF2BC:
jmp hp_hook
nop
hp_return:

hp_hook:
mov [edi+000001B4],esi //Original Opcode
cmp esi,HP_VALUE
jnl hp_return
pushad
mov eax,PAGEUP //Change to HP potion key
call key_press
popad
jmp hp_return


019DF65C:
jmp mp_hook
nop
mp_return:

mp_hook:
mov [esi+000001B4],ebp //Original Opcode
cmp ebp,MP_VALUE
jnl mp_return
pushad
mov eax,PAGEDOWN //Change to MP potion key
call key_press
popad
jmp mp_return

key_press:
mov esi,[TSingleton_CWndMan___ms_pInstance] // 8B 15 ? ? ? ? 85 D2 74 23
mov ecx,[esi+A8]
push eax
push 00
call CWvsContext__OnKey
ret

[disable]
019DF2BC:
mov [edi+000001B4],esi

019DF65C:
mov [esi+000001B4],ebp

 

Someone posted auto attack in script thread

Auto Attack

Spoiler

//Auto Attack v178.3
//Ripped functions from Francesco/AIRRIDE Kami
[enable]
define(KEY_NORMAL,0)
define(KEY_EXTENDED,1)
define(VK_CONTROL,11)
define(_HoldAttack,0)
define(_AttackKey,VK_CONTROL)
define(_AttackKeyType,KEY_EXTENDED)

alloc(AutoAttack,512)
alloc(PressKey,128)
alloc(HoldAttack,1)
label(Exit)

HoldAttack:
db _HoldAttack

define(KEY_PRESS,0)
define(KEY_UP,1)
define(MAPVK_VK_TO_VSC,0)

PressKey:
push ebx
push edx
push esi
push ecx
mov edx, [esp+10+4]
mov esi, [esp+10+8]
mov ebx, [esp+10+C]
mov ecx, edx
push MAPVK_VK_TO_VSC
push ecx
call MapVirtualKeyA
shl eax,#16
shl esi,#24
shl ebx,#31
or eax, esi
or eax, ebx
mov ecx,eax
push ecx
push edx
call 01E2D610//01E2D5E0//019DF8C0 //A1 ?? ?? ?? ?? 85 C0 74 ?? 8D 48 ?? 8B 01 8B 00
pop ecx
pop esi
pop edx
pop ebx
ret 000C

AutoAttack:
cmp dword ptr [esp], 01C1B02A//017DF09A //8B C8 B8 ?? ?? ?? ?? F7 E9 C1 FA ?? 8B C2 C1 E8 ?? 03 C2 83 F8 ?? 74 ?? 81 F9 ?? ?? ?? ?? 75 ?? 80 BE ?? ?? ?? ?? ?? 74 ?? 8B 56 ?? 8B 42 ?? 8D 4E ?? FF D0
pushad
jne Exit
test eax,eax
je Exit
test eax,eax
push KEY_PRESS
push _AttackKeyType
push _AttackKey
call PressKey
cmp byte ptr [HoldAttack], 0
je Exit
push KEY_UP
push _AttackKeyType
push _AttackKey
call PressKey
jmp Exit

Exit:
popad
jmp 01C37BF0

02677700:
dd AutoAttack

[disable]
02677700: // 4 Byte Scan
dd 01C37BF0//017FD730 //6A ?? 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 83 EC ?? 56 A1 ?? ?? ?? ?? 33 C4 50 8D 44 24 ?? 64 A3 ?? ?? ?? ?? 8B 0D ?? ?? ?? ?? 85 C9 74 ?? 8D 44 24 ?? 50 E8 ?? ?? ?? ?? 8B 44 24 ??

dealloc(AutoAttack)
dealloc(PressKey)
dealloc(HoldAttack)

 

 

  • Like 2

Share this post


Link to post
  • 0
2 minutes ago, OuterHaven said:

Auto HP/MP

  Hide contents


//Breakpoint CWvsContext__OnKey Address if you want more
define(CTRL,001D0000)
define(SHIFT,002A0000)
define(INSERT,01520000)
define(DEL,01530000)
define(HOME,01470000)
define(END,014F0000)
define(PAGEUP,01490000)
define(PAGEDOWN,01510000)
define(ALT,00380000)


define(CWvsContext__OnKey,01E2D610) //A1 ?? ?? ?? ?? 85 C0 74 ?? 8D 48 ?? 8B 01 8B 00
define(TSingleton_CWndMan___ms_pInstance,029D89A4) //8B ? ? ? ? ? C6 ? ? ? E8 ? ? ? ? 8B ? BA ? ? ? ? C6 [POINTER]


//Change HP and MP Values to your preferred settings
define(HP_VALUE,#10000)
define(MP_VALUE,#10000)

[enable]
alloc(hp_hook,128)
alloc(mp_hook,128)
alloc(key_press,128)
label(hp_return)
label(mp_return)

019DF2BC:
jmp hp_hook
nop
hp_return:

hp_hook:
mov [edi+000001B4],esi //Original Opcode
cmp esi,HP_VALUE
jnl hp_return
pushad
mov eax,PAGEUP //Change to HP potion key
call key_press
popad
jmp hp_return


019DF65C:
jmp mp_hook
nop
mp_return:

mp_hook:
mov [esi+000001B4],ebp //Original Opcode
cmp ebp,MP_VALUE
jnl mp_return
pushad
mov eax,PAGEDOWN //Change to MP potion key
call key_press
popad
jmp mp_return

key_press:
mov esi,[TSingleton_CWndMan___ms_pInstance] // 8B 15 ? ? ? ? 85 D2 74 23
mov ecx,[esi+A8]
push eax
push 00
call CWvsContext__OnKey
ret

[disable]
019DF2BC:
mov [edi+000001B4],esi

019DF65C:
mov [esi+000001B4],ebp

 

Someone posted auto attack in script thread

Auto Attack

  Reveal hidden contents


//Auto Attack v178.3
//Ripped functions from Francesco/AIRRIDE Kami
[enable]
define(KEY_NORMAL,0)
define(KEY_EXTENDED,1)
define(VK_CONTROL,11)
define(_HoldAttack,0)
define(_AttackKey,VK_CONTROL)
define(_AttackKeyType,KEY_EXTENDED)

alloc(AutoAttack,512)
alloc(PressKey,128)
alloc(HoldAttack,1)
label(Exit)

HoldAttack:
db _HoldAttack

define(KEY_PRESS,0)
define(KEY_UP,1)
define(MAPVK_VK_TO_VSC,0)

PressKey:
push ebx
push edx
push esi
push ecx
mov edx, [esp+10+4]
mov esi, [esp+10+8]
mov ebx, [esp+10+C]
mov ecx, edx
push MAPVK_VK_TO_VSC
push ecx
call MapVirtualKeyA
shl eax,#16
shl esi,#24
shl ebx,#31
or eax, esi
or eax, ebx
mov ecx,eax
push ecx
push edx
call 01E2D610//01E2D5E0//019DF8C0 //A1 ?? ?? ?? ?? 85 C0 74 ?? 8D 48 ?? 8B 01 8B 00
pop ecx
pop esi
pop edx
pop ebx
ret 000C

AutoAttack:
cmp dword ptr [esp], 01C1B02A//017DF09A //8B C8 B8 ?? ?? ?? ?? F7 E9 C1 FA ?? 8B C2 C1 E8 ?? 03 C2 83 F8 ?? 74 ?? 81 F9 ?? ?? ?? ?? 75 ?? 80 BE ?? ?? ?? ?? ?? 74 ?? 8B 56 ?? 8B 42 ?? 8D 4E ?? FF D0
pushad
jne Exit
test eax,eax
je Exit
test eax,eax
push KEY_PRESS
push _AttackKeyType
push _AttackKey
call PressKey
cmp byte ptr [HoldAttack], 0
je Exit
push KEY_UP
push _AttackKeyType
push _AttackKey
call PressKey
jmp Exit

Exit:
popad
jmp 01C37BF0

02677700:
dd AutoAttack

[disable]
02677700: // 4 Byte Scan
dd 01C37BF0//017FD730 //6A ?? 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 83 EC ?? 56 A1 ?? ?? ?? ?? 33 C4 50 8D 44 24 ?? 64 A3 ?? ?? ?? ?? 8B 0D ?? ?? ?? ?? 85 C9 74 ?? 8D 44 24 ?? 50 E8 ?? ?? ?? ?? 8B 44 24 ??

dealloc(AutoAttack)
dealloc(PressKey)
dealloc(HoldAttack)

 

 

love you man

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×