zoukankan      html  css  js  c++  java
  • 显示Combobox1中怪物名称列表.txt

    {本段代码的目的 显示Combobox1中怪物名称列表}
    procedure TForm1.ComboBox1DropDown(Sender: TObject);
    var
      Monster:PDWORD;
        PtTmp:PDWORD;
        _kind:PDWORD;
            I:Integer;
        _name:PDWORD;
       _name1:PWideChar;
       _name2:string;
    begin
      PtTmp:=pointer($924E0C);
      PtTmp:=pointer(PtTmp^+$1C);
      PtTmp:=pointer(PtTmp^+$8);
      PtTmp:=pointer(PtTmp^+$24);
      PtTmp:=pointer(PtTmp^+$18);
      ComboBox1.Clear;
      for I:=0 to 768 do
      begin
        Monster:=pointer(PtTmp^+I*4);//
        if Monster^>0 then    {当对象数组列表不为0的时候才添加}
        begin
            Monster:=Pointer(Monster^+$4);
              _kind:=Pointer(Monster^+$B4);{怪物种类 6->怪物,7->NPC,9->宠物,玩家,10->GM}
              _name:=Pointer(Monster^+$230);//名称
             _name1:=Pointer(_name^+$0);
             _name2:=WideCharTostring(_name1);
            {输出结果}
            if  ComboBox1.Items.IndexOf(_name2)<0 then   ComboBox1.Items.Add(_name2);
        end;
      end;
    end;




  • 相关阅读:
    hdu 1260 Tickets
    hdu 4738 Caocao's Bridges(桥的最小权值+去重)
    找规律
    C语言快速排序
    数组的初始化方法
    C语言选择排序
    副本机制
    安装完Kali的后续操作
    Bool盲注
    Python中的列表
  • 原文地址:https://www.cnblogs.com/xe2011/p/2525930.html
Copyright © 2011-2022 走看看