![]() |
|
|
|
|
#1 | |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
![]() basicly, the idea is from l2j, big thx to them (following info are from L2j and L2jDatapack team) Quote:
you need to have 2 free spaces for 2 arraies 1. for storage _regions 2. for the message that gotta send back to client 19*21 = 399 you need 399*4 bytes for _regions and appoximate 14*4 bytes for message id lets say you store the data at 0x002de620 for _regions and 0x002df620 for messageid expand old loc code, store posX, and posY; Code:
FLD QWORD PTR DS:[EBX+0x10]; call _fnCalculatePosition; push eax; mov posY, eax; push 1; FLD QWORD PTR DS:[EBX+0x08]; call _fnCalculatePosition; push eax; mov posX, eax; push 1; you Code:
shr posX, 15; add posX, 4; and posX, 31; shr posY, 15; add posY, 10; and posY, 31; (to avoid the problem that comes with negative value after been shift to right) Code:
int RToffset = (posY*_RTable_Y+posX); RToffset = RToffset*4; Code:
mov eax, offset _regions;(0x002de620 will be assigned to eax) mov eax, dword ptr DS:[eax+RToffset]; (get the value) mov _region, eax; push _LOC_MSG[_region]; push 7a; ............ |
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
oh btw, remember do some range check
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2005
Posts: 731
|
Torune like always you amaze me , i thought you left the community there for 1 sec but i am so happy you are still helping !!! GJ and tnx for all !!! You're fixes and geodata are the best !!!
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
though i envy you and your knowledge (:P) i must say this is really good...
as always ![]() thx again
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
A big thanks to you
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
it is possible to fix //stoplogin?
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Nov 2005
Posts: 16
|
well i became far but i didn't follow any assembler tutorial....
i know that /loc function is defined at offset: '006b84c0' But hell not know where i have to let it call offset: '002df620' said in your tutorial... torune perhaps you have a good website with a tutorial about asm? |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|