- UID
- 221580
- 帖子
- 27
- 主題
- 4
- 精華
- 0
- 積分
- 2
- 楓幣
- 683
- 威望
- 1
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 3
- 閱讀權限
- 10
- 性別
- 保密
- 在線時間
- 18 小時
- 註冊時間
- 2018-1-30
- 最後登入
- 2020-5-18
|
本帖最後由 loo85213 於 2018-5-11 09:30 編輯
- //Tw_Bnb_v111_CRC_限最上方人物可移動
- [ENABLE]
- registersymbol(StoreBase)
- registersymbol(Restrict_Position)
- registersymbol(free_player)
- GlobalAlloc(playerID_BASE, 4);
- alloc(StoreBase,1024);
- alloc(Restrict_Position,1024);
- alloc(free_player,1024);
- StoreBase:
- mov ecx,[ebp+08]
- mov edx,[ebp+10]
- mov [ecx+eax*4],edx
- test ecx, 0x810 //尾巴是040是水球代號基址 810則為人物代號基址
- jz 007339B3
- push eax
- mov eax, [playerID_BASE]
- cmp ecx, eax
- pop eax
- je 007339B3
- mov [playerID_BASE], ecx //人物代號基址
- jmp 007339B3
- 007339AA:
- jmp StoreBase
- nop
- Restrict_Position:
- push eax
- mov eax, [playerID_BASE]
- mov eax, [eax] //座標最上方的人物編碼
- cmp eax, esi
- pop eax
- je free_player
- //其他角色鎖在固定位置
- pop eax
- mov ecx, esi
- mov eax,200 //Y
- push eax
- mov eax, 100 //X
- push eax
- call 005B8AB3
- jmp 005B1728
- free_player:
- add eax, ecx
- push eax
- mov ecx,esi
- jmp 005B1725
- 005B1720:
- jmp Restrict_Position
- [DISABLE]
- 007339AA:
- mov ecx,[ebp+08]
- mov edx,[ebp+10]
- 005B1720:
- add eax, ecx
- push eax
- mov ecx, esi
- dealloc(StoreBase,1024);
- dealloc(Restrict_Position,1024);
- dealloc(free_player,1024);
複製代碼 |
|