资源简介
很全的 天龙八部全套源码,控制台+lua脚本+测试模块,有很高的参考价值.
代码片段和文件信息
#include “AsmItem.h“
#include “AsmRole.h“
#include “Asmbase.h“
CAsmItem::CAsmItem()
{
}
CAsmItem::~CAsmItem()
{
}
//遍历背包项
//第一个参数是开始变量的背包格子号
//第二个参数是背包格子总数
//道具背包是0-29
//材料背包是30-59
//任务背包是60-80
VAsmItem CAsmItem::AsmGetItemData(int nNum)//参数 1是第一个背包,2是第二个背包,3是第三个背包
{
VAsmItem vm_Item;//包裹内物品
try
{
DWORD dwbase = *(DWORD*)BAG_base;
byOneCount = *(BYTE*)(dwbase + 0x9dd0 + 0x18);//道具背包格子总数
byTwoCount = *(BYTE*)(dwbase + 0x9dd0 + 0x19);//材料背包格子总数
byThreeCount = *(BYTE*)(dwbase + 0x9dd0 + 0x1A);//任务背包格子总数
int nIndex = 0;//格子起始索引
int nCount = 0;//格子的总数
if (nNum == 1)
{
nIndex = 0;
nCount = byOneCount;
}
else if (nNum == 2)
{
nIndex = 30;
nCount = 30 + byTwoCount;
}
else if (nNum == 3)
{
nIndex = 60;
nCount = 60 + byThreeCount;
}
for (int i = nIndex; i < nCount; i++)
{
DWORD uObj = *(DWORD*)BAG_base;
uObj = *(DWORD*)(uObj + 0x9dd0);//道具背包格子总数
uObj = *(DWORD*)(uObj + i * 4);//道具背包格子总数
if (0 != uObj)
{
TAsmItem tItems;
ULONG uObj_14 = *(PULONG)(uObj + 0x14);
ULONG uObj_28 = *(PULONG)(uObj + 0x28);
tItems.uType = *(PULONG)(uObj_28 + 0x4);
tItems.uobject = uObj;
if (1 == tItems.uType)
{
tItems.byCurnaijiu = *(PBYTE)(uObj_14 + 0x3F);
tItems.byMaxnaijiu = *(PBYTE)(uObj_14 + 0x3C);
tItems.szName = (PCHAR)*(PULONG)(uObj_28 + 0x28);
tItems.uLevel = *(PULONG)(uObj_28 + 0x2c);
tItems.uNumber = 1;
tItems.szTypeName = (char*)(*(DWORD*)(uObj_28 + 0x58));
tItems.szDataAttribute = (char*)(*(DWORD*)(uObj_28 + 0x34));
//vm_Item.push_back(tItems);
}
else if (2 == tItems.uType
|| 3 == tItems.uType
|| 4 == tItems.uType)
{
tItems.szName = (PCHAR)*(PULONG)(uObj_28 + 0x18);
tItems.uLevel = *(PBYTE)(uObj_14 + 0x3d);
tItems.uNumber = *(PBYTE)(uObj_14 + 0x3C);
tItems.szTypeName = (char*)(*(DWORD*)(uObj_28 + 0x50));
tItems.szDataAttribute = (char*)(*(DWORD*)(uObj_28 + 0x1c));
//vm_Item.push_back(tItems);
}
else if (5 == tItems.uType)
{
tItems.szName = (PCHAR)*(PULONG)(uObj_28 + 0x1C);
tItems.uLevel = *(PBYTE)(uObj_14 + 0x3d);
tItems.uNumber = 1;
tItems.szTypeName = (char*)(*(DWORD*)(uObj_28 + 0x130));
tItems.szDataAttribute = (char*)(*(DWORD*)(uObj_28 + 0x20));
//vm_Item.push_back(tItems);
}
else if (6 == tItems.uType)
{
tItems.szName = (PCHAR)*(PULONG)(uObj_28 + 0x2C);
//tItems.uLevel = *(PBYTE)(uObj_14 + 0x3d);
tItems.uNumber = 1;
//tItems.szTypeName = (char*)(*(DWORD*)(uObj_28 + 0x130));
//tItems.szDataAttribute = (char*)(*(DWORD*)(uObj_28 + 0x20));
//vm_Item.push_back(tItems);
}
else if (7 == tItems.uType)
{
tItems.szName = (PCHAR)*(PULONG)(uObj_28 + 0x28);
//tItems.uLevel = *(PBYTE)(uObj_14 + 0x3d);
tItems.uNumber = 1;
tItems.szTypeName = (char*)(*(DWORD*)(uO
相关资源
- grpc-lua CentOS 7.4 执行程序打包
- 用lua写一份阴历阳历互转
- Synthesis and biological evaluation of cytotox
- Luaplus 53 Vs2015编译 通过 附使用说明
- LuaStudio7.23 完美破解版本
- Evaluation Quality of the Elderly‘s Living E
- Programming_in_Lua_4th_ed._(2017)_.pdf
- 现在最新版本lua,lua-5.2.3。
- lua-sha2-0.2.0.tar.gz
- Lua语言编程 中文版
- 《Programming in Lua》中文版
- lua程序设计第一版+第四版
- lua源码欣赏--云风 高清pdf
- Lua Programming Gems 英文版 pdf,高清
- luaide 免费版 0.3.7
- Lua Programming Gems 高清书签
- Programming in Lua(4th) 无水印pdf
- pc6-vcredist_x86
- luadec解密工具 包含了5.1、5.2、5.3版本
- program in lua 中文版
- air202 mqtt 测试程序
- XILINX开发板ZC706指导手册 Evaluation Bo
- 饥荒mod教程---输入
- Information Retrieval: Implementing and Evalua
- lua游戏ai开发指南 源码
- BabeLua For 2019 V3.2.2.0.zip
- Lua学习游戏AI编程.zip
- 最新天龙LUA
- FundamentalsofUltrasonicNondestructiveEvaluati
- Sublime3及Lua插件
评论
共有 条评论