PDA

View Full Version : [Share] 100% GM Enchantment


Eanae
25.05.2006, 20:24
;00489902 |. 8B83 B8190000 mov eax, dword ptr ds:[ebx+19B8]

;************************************************* ********************
; 魔法武器
;************************************************* ********************
;0048988A |. 83FE 03 cmp esi, 3
;0048988D |. DD05 C0E45B00 fld qword ptr ds:[5BE4C0] //100.0
;00489893 |. DC25 50C55D00 fsub qword ptr ds:[5DC550] //60.0
;00489899 |. DD5D DC fstp qword ptr ss:[ebp-24]
;0048989C |. /7C 59 jl short 004898F7 ; L2Server.004898F7
;0048989E |. |83FE 0F cmp esi, 0F
;004898A1 |. |7C 0C jl short 004898AF ; L2Server.004898AF
;004898A3 |. |DD45 DC fld qword ptr ss:[ebp-24]
;004898A6 |. |DC0D 286C5C00 fmul qword ptr ds:[5C6C28] //0.5
;004898AC |. |DD5D DC fstp qword ptr ss:[ebp-24]

EnchantWM proc
mov eax,005BE4C0h
fld qword ptr [eax] ;100.0
mov eax,005DC550h
fsub qword ptr [eax] ;60.0
fstp qword ptr [ebp-24h]
;------------------------------------------------
; 判断GM
mov eax,dword ptr [ebx + OFFSET_USEROBJECT_USERINFO]
mov eax,dword ptr [eax + OFFSET_USERINFO_BUILDER]
.if eax == 1
jmp RATE_100
.endif
;------------------------------------------------

cmp esi, 3
jl RATE_100

cmp esi, 0Fh
jl RATE_END

fld qword ptr [ebp-24h]
mov eax,005C6C28h
fmul qword ptr [eax] ;0.5
fstp qword ptr [ebp-24h]

RATE_END:
push 004898AFh
ret

RATE_100:
push 004898F7h
ret
EnchantWM endp
;************************************************* ********************
; 战士武器
;************************************************* ********************
;00489982 |> \83FE 03 cmp esi, 3
;00489985 |. DD05 C0E45B00 fld qword ptr ds:[5BE4C0] //100.0
;0048998B |. DC25 58C55D00 fsub qword ptr ds:[5DC558] //30.0
;00489991 |. DD5D DC fstp qword ptr ss:[ebp-24]
;00489994 |.^ 0F8C 5DFFFFFF jl 004898F7
;0048999A |. 83FE 0F cmp esi, 0F
;0048999D |. 7C 0C jl short 004899AB
;0048999F |. DD45 DC fld qword ptr ss:[ebp-24]
;004899A2 |. DC0D 286C5C00 fmul qword ptr ds:[5C6C28] //0.5
;004899A8 |. DD5D DC fstp qword ptr ss:[ebp-24]

EnchantWF proc
mov eax,005BE4C0h
fld qword ptr [eax] ;100.0
mov eax,005DC558h
fsub qword ptr [eax] ;30.0
fstp qword ptr [ebp-24h]
;------------------------------------------------
; 判断GM
mov eax,dword ptr [ebx + OFFSET_USEROBJECT_USERINFO]
mov eax,dword ptr [eax + OFFSET_USERINFO_BUILDER]
.if eax == 1
jmp RATE_100
.endif
;------------------------------------------------
cmp esi, 3
jl RATE_100

cmp esi, 0Fh
jl RATE_END

fld qword ptr [ebp-24h]
mov eax,005C6C28h
fmul qword ptr [eax] ;0.5
fstp qword ptr [ebp-24h]

RATE_END:
push 004899ABh
ret

RATE_100:
push 004898F7h
ret
EnchantWF endp
;************************************************* ********************
; 衣服首饰
;************************************************* ********************
;00489A04 |> \83FE 03 cmp esi, 3
;00489A07 |.^ 0F8C EAFEFFFF jl 004898F7
;00489A0D |. 83FE 14 cmp esi, 14
;00489A10 |. 7D 18 jge short 00489A2A
;00489A12 |. DD04F5 60C55D00 fld qword ptr ds:[esi*8+5DC560] esi*8 + 0.0
;00489A19 |. DC0D C0E45B00 fmul qword ptr ds:[5BE4C0] //100.0
;00489A1F |. DC2D C0E45B00 fsubr qword ptr ds:[5BE4C0] //100.0
;00489A25 |. DD5D DC fstp qword ptr ss:[ebp-24]
;00489A28 |. EB 0E jmp short 00489A38

;00489A2A |> C745 DC 00000000 mov dword ptr ss:[ebp-24], 0
;00489A31 |. C745 E0 00000000 mov dword ptr ss:[ebp-20], 0

;00489A38 |> 83FE 0F cmp esi, 0F
;00489A3B |. 7C 0C jl short 00489A49
;00489A3D |. DD45 DC fld qword ptr ss:[ebp-24]
;00489A40 |. DC0D 286C5C00 fmul qword ptr ds:[5C6C28] //0.5
;00489A46 |. DD5D DC fstp qword ptr ss:[ebp-24]

EnchantAA proc
;------------------------------------------------
; 判断GM
mov eax,dword ptr [ebx + OFFSET_USEROBJECT_USERINFO]
mov eax,dword ptr [eax + OFFSET_USERINFO_BUILDER]
.if eax == 1
jmp RATE_100
.endif
;------------------------------------------------
cmp esi, 3
jl RATE_100
cmp esi, 14h
jge RATE_ZERO

mov eax,005DC560h
fld qword ptr [esi*8 + eax]
mov eax,005BE4C0h
fmul qword ptr [eax]
fsubr qword ptr [eax]
fstp qword ptr [ebp-24h]
jmp RATE_NOR

RATE_ZERO:
mov dword ptr [ebp-24h], 0
mov dword ptr [ebp-20h], 0

RATE_NOR:
cmp esi, 0Fh
jl RATE_END

fld qword ptr [ebp-24h]
mov eax,005C6C28h
fmul qword ptr [eax] ;0.5
fstp qword ptr [ebp-24h]

RATE_END:
push 00489A49h
ret

RATE_100:
push 004898F7h
ret
EnchantAA endp

I think it may be incomplete. This is from 99net like a month ago.

Net-Packet
26.05.2006, 04:28
Nice, thank you for the share.