|
1: 当前有的经验 >= 要扣除的经验, EXP’ = 当前经验 - 要扣除的经验
2: 当前有的经验 < 要扣除的经验,降1级,之后,EXP’ = [当前经验 + 降级后经验(总)] - 要扣除的经验
3: 要扣除的经验 = 当前经验(总)/1000
在2式中,要扣除的经验 = 是降级后的当前经验(总)/1000
开了[保护模式]的,不受影响~~~
* Referenced by a CALL at Address:
|:XXXXXXXX(在人物死亡段)
|
:0051F244 8B45FC mov eax, dword ptr [ebp-04]
:0051F247 80BA3406000000 cmp byte ptr [我的变参~~], 00 -> PK保护模式用的
:0051F24E 755A jne 0051F2AA
:0051F250 8B45FC mov eax, dword ptr [ebp-04]
:0051F253 33D2 xor edx, edx copyright dedecms
:0051F255 8A5034 mov dl, byte ptr [eax+34]
:0051F258 8B45FC mov eax, dword ptr [ebp-04]
:0051F25B E868FBF9FF call 004BEDC8 -> 经验(是总的)
:0051F260 B9E8030000 mov ecx, 000003E8 -> 除数1000,死亡时扣除经验的比率
:0051F265 33D2 xor edx, edx
:0051F267 F7F1 div ecx
:0051F269 8B55FC mov edx, dword ptr [ebp-04]
:0051F26C 39424C cmp dword ptr [edx+4C], eax
:0051F26F 7C05 jl 0051F276 -> 当前有的经验 < 要扣除的经验 copyright dedecms
:0051F271 29424C sub dword ptr [edx+4C], eax -> 扣除经验
:0051F274 EB2C jmp 0051F2A2
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:0051F26F(C)
|
:0051F276 8B45FC mov eax, dword ptr [ebp-04]
:0051F279 80683401 sub byte ptr [eax+34], 01 -> 当前有的经验 < 要扣除的经验,降1级
:0051F27D 8B45FC mov eax, dword ptr [ebp-04]
:0051F280 33D2 xor edx, edx
:0051F282 8A5034 mov dl, byte ptr [eax+34]
:0051F285 8B45FC mov eax, dword ptr [ebp-04] 内容来自dedecms
:0051F288 E83BFBF9FF call 004BEDC8 -> 降级后的经验(总的)
:0051F28D 8B55FC mov edx, dword ptr [ebp-04]
:0051F290 01424C add dword ptr [edx+4C], eax
:0051F293 B9E8030000 mov ecx, 000003E8
:0051F298 33D2 xor edx, edx
:0051F29A F7F1 div ecx -> 经验(总的)/1000
:0051F29C 8B55FC mov edx, dword ptr [ebp-04]
:0051F29F 29424C sub dword ptr [edx+4C], eax -> 当前EXP - 经验(总的)/1000
* Referenced by a (U)nconditional or (C)onditional Jump at Address: 织梦好,好织梦
|:0051F274(U)
|
:0051F2A2 8B45FC mov eax, dword ptr [ebp-04]
:0051F2A5 E8C2FAF9FF call 004BED6C -> 回显~~~
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:0051F24E(C)
|
:0051F2AA 8B45FC mov eax, dword ptr [ebp-04]
:0051F2AD E8EEFDF9FF call 004BF0A0
:0051F2B2 C3 ret |
上一篇:服务端修改检测次数防止双倍辅助工具的方法下一篇:封闭领风强行盗号登录器的方法
|