黃易群俠傳M脫機外掛應用程式黃易神行
1224
1

[發問] 請問玩家名稱位子問題

janin0115 發表於 2011-1-15 16:10:18 | 只看該作者 回帖獎勵 |倒序瀏覽 |
請問大大們 我這樣讀出來都是亂碼 請問要怎麼解決
procedure TForm1.Timer6Timer(Sender: TObject);
var
   ENVIRON_BASE_ADDR,PLAYER_BASE_ADDR,PLAYER_LIST_ADDR:dword;
   ROLE_BASE_ADDR,ROLE_SN,PLAYER_ADDR,PLAYER_OBJ,PLAYER_MAXHP,PLAYER_CURHP,PLAYER_NAME_ADDR:cardinal;
   PLAYER_X,PLAYER_y,PLAYER_z:single;
   PLAYER_NAME: array [0..16] of WideChar;
   UnicodeName:dword ;
begin
  ReadProcessMemory(ProcessID,Pointer($A5BFB0+$1C),@first, 4, tt);   //讀取一級基址
  ReadProcessMemory(ProcessID,Pointer(first+$08),@ENVIRON_BASE_ADDR,4,tt); //取得環境基址
  ReadProcessMemory(ProcessID,Pointer(ENVIRON_BASE_ADDR+$20),@PLAYER_BASE_ADDR,4,tt); //取得週圍玩家基址
  ReadProcessMemory(ProcessID,Pointer(PLAYER_BASE_ADDR+$18),@PLAYER_LIST_ADDR,4,tt); //取得週圍玩家列表基址
  ReadProcessMemory(ProcessID,Pointer(ROLE_BASE_ADDR+$B0C),@ROLE_SN,4,tt); //人物選中sn
  ReadProcessMemory(ProcessID,Pointer(PLAYER_LIST_ADDR+((ROLE_SN Mod 769))*4),@PLAYER_ADDR,4,tt );//相應位置玩家基址
  ReadProcessMemory(ProcessID,Pointer(PLAYER_ADDR+$4),@PLAYER_OBJ,4,tt); //相應位置玩家指針
  ReadProcessMemory(ProcessID,Pointer(PLAYER_OBJ+$3C),@PLAYER_X,4,tt); //相應位置玩家X座標
  ReadProcessMemory(ProcessID,Pointer(PLAYER_OBJ+$44),@PLAYER_Y,4,tt); //相應位置玩家y座標
  ReadProcessMemory(ProcessID,Pointer(PLAYER_OBJ+$40),@PLAYER_Z,4,tt); //相應位置玩家Z座標
  ReadProcessMemory(ProcessID,Pointer(PLAYER_OBJ+$4B4),@PLAYER_MAXHP,4,tt); //相應位置玩家最大血量
  ReadProcessMemory(ProcessID,Pointer(PLAYER_OBJ+$474),@PLAYER_CURHP,4,tt); //相應位置玩家當前血量
  ReadProcessMemory(ProcessID,Pointer(PLAYER_OBJ+$618),@PLAYER_CURHP,4,tt); //相應位置玩家名稱基址
  ReadProcessMemory(ProcessID,pointer(PLAYER_NAME_ADDR),@PLAYER_NAME,SizeOf(PLAYER_NAME), tt);//讀取人物名稱
  Label35.Caption := '玩家名稱:' + string(PLAYER_NAME);
  Label36.Caption := '座標:'+Formatfloat('0',(PLAYER_X/10+400))+', '+Formatfloat('0',(PLAYER_Y/10+550))+
                     '#' + Formatfloat('0',(PLAYER_Z/10));
  Label37.Caption := '玩家血量:'+IntToStr(PLAYER_CURHP)+' / '+IntToStr(PLAYER_MAXHP);
  end;
收藏收藏 分享分享 讚 幹 分享分享 FB分享
回覆

使用道具 舉報


janin0115 當前離線
UID
1472623
熱心
200 值
嘉獎
0 次
違規
0 次
在線時間
269 小時
經驗
120 點
積分
927
精華
0
最後登錄
2015-10-26
閱讀權限
30
註冊時間
2010-5-31
論壇幣
318 幣
聯合幣
3 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 4Rank: 4
janin0115 2011-1-16 22:22:01
以解決問題 繼續下去
修改完就ok了
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊


手機版 | Archiver | 外掛聯合國

GMT+8, 2024-5-22 22:03 , Processed in 0.057611 second(s), 20 queries , Memcache On.

版權說明:
  本站不會製作、經銷、代理外掛程式。僅免費提供外掛程式下載前之掃毒及掃木馬等安全檢測驗證,協助會員遠離盜號危險程式。本站所有資料均來自網際網路收集整理,說明文字暨下載連結轉載自原程 式開發站。站上出現之公司名稱、遊戲名稱、程式等,商標及著作權,均歸各公司及程式原創所有,本站程式所有權歸外掛聯合國所有。本程式所有權歸外掛聯合國所有.......

回頂部
第二步?
第三步?