Jump to content
Moopler
  • 0
Sign in to follow this  
GrrrrBlah

Question Auto Login

Question

Hi, these are the codes I am using for auto choose channel and server/Auto choose character.

I'm not sure which one is wrong but i get an unspecified error and maple also crashes once i get to the server selection screen.

//Auto Character Selection and PIC Entry
//v179.2
//Updated By Killians
[ENABLE]
alloc(CUIAvatar__SelectCharacter_Hook,1024)
alloc(StringPIC,40)

StringPIC:
db '93634531' 00

CUIAvatar__SelectCharacter_Hook:
push ebp
mov ebp,esp
sub esp,04

push esi
mov esi,[029F132C] // CLogin__GetInstance: 8B 3D ? ? ? ? 33 DB 89 7C 24 18 3B FB 0F 84 ? ? ? ? 8B
mov eax, #3 // Character Slot -1 (first char = 0, second char = 1, etc)
mov [esi+000004AC],eax // 8B 87 ? ? ? ? 8B 80 ? ? ? ? 50 8B ? E8 [Offset Below
push -01
push StringPIC
lea ecx,[ebp-04]
call 004D5F90 // ZXString_char___ZXString_char__char_: 8B 44 24 08 56 8B F1 8B 4C 24 08 50 51 8B CE C7 [First Result]
push eax
lea ecx,[esi+00000600] // 8D 8E ? ? 00 00 E8 ? ? ? ? C7 86 ? ? 00 00 00 00 00 00 C6 [First Result Offset]
call 004D9520 // ZXString_unsigned_char___operator_: 8B 44 24 04 56 8B F1 3B F0 74 [First Result]
lea ecx,[ebp-04]
call 004CA940 // ZXString_char____ZXString_char_: 56 8B F1 8B 06 85 C0 74 [Second Result]
pop esi

mov esp,ebp
pop ebp
ret 0004

00F1E510:
jmp CUIAvatar__SelectCharacter_Hook
db 90 90

[DISABLE]
00F1E510: // Follow Call Below: 8B 87 ? ? ? ? 8B 80 ? ? ? ? 50 8B ? E8
push -01
push 0215D198

dealloc(CUIAvatar__SelectCharacter_Hook)
dealloc(StringPIC)
//Auto Server and Channel Selection
//v179.2
//Updtaed By Killians
[ENABLE]
alloc(CLogin__OnRecommendWorldMessage_Hook,1024)
label(CLogin__OnRecommendWorldMessage_Hook_callback)

CLogin__OnRecommendWorldMessage_Hook:
mov [esp],CLogin__OnRecommendWorldMessage_Hook_callback
jmp 00F5E060 // CLogin__OnRecommendWorldMessage //original call

CLogin__OnRecommendWorldMessage_Hook_callback:
mov ecx,[029F132C] // CLogin__GetInstance: 8B 3D ? ? ? ? 33 DB 89 7C 24 18 3B FB 0F 84 ? ? ? ? 8B
push 00 // NULL
push 04 // Channel
push 00 // World [Scania = 00, Bera = 01, etc. 2D for Reboot]

//6A FF 68 ? ? ? ? 64 A1 00 00 00 00 50 81 EC ? ? 00 00 A1 ? ? ? ? 33 ? 89 ? ? ? ? 00 00 53 55 56 57 A1 ? ? ? ? 33 ? 50 8D ? ? ? ? 00 00 64 ? ? ? ? ? 8B ? 89 ? ? ? E9
call 00F105C0 // CLogin__SendLoginPacket: E8 ? ? ? ? 80 3D ? ? ? ? 00 0F [First Result & Follow Call]
jmp 00F5E213+5// Address Below Hook Address

00F5E213:
call CLogin__OnRecommendWorldMessage_Hook

[DISABLE]
00F5E213: // 8b 8e ?? ?? 00 00 33 ?? 3b ?? 0f 95 [first call in function ABOVE this one]
call 00F5E060

dealloc(CLogin__OnRecommendWorldMessage_Hook)

Share this post


Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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  
×