回复:谁能发一下c++版的改任意技能代码伤害
void 释放CALL(int 对象基址, int 代码, int 伤害, int X轴, int Y轴, int Z轴)
{
__asm
{
push Z轴
push Y轴
push X轴
push 伤害
push 代码
mov eax, dword ptr ds : [人物基址]//人物
push dword ptr ds : [eax]
call 释放CALL
add esp, 0x18
}
}
void 释放线程()
{
int 代码 = GetPrivateProfileIntA("全屏", "技能代码", 2, lpPath);//11422血爆 30055伤害秒杀
int 伤害 = GetPrivateProfileIntA("全屏", "技能伤害", 2, lpPath);
int 技能个数 = 0;
int 一级偏移 = 读整数(人物基址);
int 二级偏移 = 读整数(一级偏移 + 0xB8);
int 首地址 = 读整数(二级偏移 + 0xC0);
int 尾地址 = 读整数(二级偏移 + 0xC4);
int 怪物数量 = (尾地址 - 首地址) / 4;
for (int i = 0; i < 怪物数量; i++)
{
int 怪物基址 = 首地址 + 4 * i;
int 怪物地址 = 读整数(怪物基址);
int 怪物类型 = 读整数(怪物地址 + 0x98);
int 怪物阵营 = 读整数(怪物地址 + 0x7AC);
//int 怪物代码 = *(PINT)(怪物地址 + 880);
int 自身阵营 = 读整数(一级偏移 + 0x7AC);
//int 怪物血量 = *(PINT)(怪物地址 + 0x33DC);
if (怪物类型 == 529 || 怪物类型 == 273 || 怪物类型 == 545)
{
if (怪物阵营 != 自身阵营 && 怪物地址 != 一级偏移)
{
int x = (int)(*(float *)(怪物地址 + 0x1b8));
int y = (int)(*(float *)(怪物地址 + 0x1bc));
int z = (int)(*(float *)(怪物地址 + 0x1c0));
释放CALL(一级偏移, 代码, 伤害, x, y, z);
//释放CALL(人偶地址获取(), 代码, 伤害, x, y, z);
Sleep(GetPrivateProfileIntA("全屏", "技能频率", 2, lpPath));
技能个数++;
if (技能个数 == 8) {
return;
}
}
}
}
}
贴吧:agopoe作者:被戏弄小白 2017-04-19 15:03
C++ 没提示真的好恐怖............
public: [System::Runtime::InteropServices::DllImportAttribute("kernel32.dll", CharSet = System::Runtime::InteropServices::CharSet::Ansi)] st
贴吧:程序员作者:忘尽前尘? 2014-01-13 19:32
回复:【简明教程】----CLEO4新特性浅析---*.CLEO插件的介绍与解读
从INI读整型参数的函数写法如下: OpcodeResult WINAPI Script_InifileGetInt(CScriptThread* thread)
/****************************************************************
Opcode Format
0AF0=4,%4d% = get_int_from_ini_file %1s% section %2s% key %3s%
****************************************************************/
{
char iniPath[MAX_PATH];
char path[100];
char sectionName[100];
char key[100];
int result; CLEO_ReadStringOpcodeParam(thread, path, sizeof(path));
CLEO_ReadStringOpcodeParam(thread, sectionName, sizeof(sectionName));
CLEO_ReadStringOpcodeParam(thread, key, sizeof(key));
// 读入参数123:路径,INI的分节和查找的键名
//if path is short, GetPrivateProfileInt() searches for the file in the Windows directory
MakeFullPath(path, iniPath);
// 处理一下路径 result = GetPrivateProfileInt(sectionName, key, 0x80000000, iniPath);
// 直接调API,很简单吧 0x80000000是读取失败返回值
CLEO_SetIntOpcodeParam(thread, result);
CLEO_SetThreadCondResult(thread, result != 0x80000000);
// 返回执行是否成功
return OR_CONTINUE;
}
正如前面所说,CLEO插件编程可以实现非常强大的功能,而且与游戏线程的联系方便、紧密,确实是实现游戏特效的一种好方法。
贴吧:百度知道_gta爱好者作者:mR_FRkWN 2012-03-15 17:12
回复:注册请进关于武将技上限
if (dwMagicScript <= 700){
if (dwMagicScript != 0){
DoMagic(pBattleUserInfo, dwMagicScript, 0);
}
return;
} switch (dwMagicScript){
/*
case 700:
DoMagic(pBattleUserInfo, 544, 0);
DoMagic(pBattleUserInfo, 610, 0);
break;
*/
default:
{
char szBuf[1024];
GetCurrentDirectory(1024, szBuf);
strcat(szBuf, "\\CombineMagic.ini");
char szSection[32];
sprintf(szSection, "%d", dwMagicScript);
int nCount = GetPrivateProfileInt(szSection, "Count", 0, szBuf);
for (int i = 0; i < nCount; i ++){
char szName[32];
sprintf(szName, "Script%d", i+1);
int nScript = GetPrivateProfileInt(szSection, szName, 0, szBuf);
if (nScript != 0){
DoMagic(pBattleUserInfo, nScript, 0);
}
}
}
break;
}
} _declspec(naked) UserDefinedMagic()
{
__asm {
push [ebp-0Ch];
push [ebp+8h];
call PlayMagic;
retn;
}
}
贴吧:三国群英2作者:竹外桃花叁两枝 2011-12-26 20:46
回复:【黑客入门】暴力破解的一般流程
INI初始化文件相关
  bp GetPrivateProfileStringA ****
  bp GetPrivateProfileInt
  bp WritePrivateProfileString
  bp WritePrivateProfileInt
贴吧:世界联盟作者:恋御姐怪蜀黍 2010-10-21 14:06
回复:开源C++功能
void 符咒()
{
检测();
if (符咒开关 == FALSE)
{
写整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 0x20, 400360004);
符咒开关 = TRUE;
公告(L"?白戏? Fz - ON");
}
else{
符咒开关 = FALSE;
int 代码 = GetPrivateProfileIntA("符咒", "符咒代码", 2, lpPath);
int 伤害 = GetPrivateProfileIntA("符咒", "符咒伤害", 2, lpPath);
写整数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 装备结构) + 0x4) + 0x2c) + 0x0, 20);//触发方式
写小数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 装备结构) + 0x18) + 0x4) + 0x4) + 0x4, 4);//群体
写小数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 装备结构) + 0x18) + 0x4) + 0x18) + 0x4, 99);//几率
写小数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 装备结构) + 0x18) + 0x4) + 0x54) + 0x8, float(代码));
写小数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 装备结构) + 0x18) + 0x4) + 0x54) + 0x18, float(伤害));
写整数(读整数(读整数(读整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 装备结构) + 0x4) + 0x18) + 0x4, 2000);//频率
写整数(读整数(读整数(读整数(读整数(人物基址) + 物品栏) + 物品栏偏移) + 物品栏1) + 0x20, 2236278049);
公告(L"?白戏? Fz - GO");
}
}
好像这个破东西挺稳定,没清楚了,也丢出去。
贴吧:agopoe作者:被戏弄小白 2017-06-15 19:36
回复:开源C++功能
void 物理全局() {
hProcess = GetCurrentProcess();
int 倍功地址 = 全局物理;
int 伤害值 = GetPrivateProfileIntA("物理", "伤害数值", 2, lpPath);
DWORD oldprotect;
VirtualProtect((LPVOID)倍功地址, 6, PAGE_EXECUTE_READWRITE, &oldprotect);
LPVOID 全局物理开始 = NULL;
全局物理开始 = VirtualAllocEx(hProcess, 0, 26, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
BYTE Code[26] = { 0x83, 0xBE, 00, 00, 00, 00, 00, 0x75, 0x06, 0xB8, 00, 00, 00, 00, 0xC3, 0x55, 0x8B, 0xEC, 0x83, 0xEC, 0x14, 0xE9, 00, 00, 00, 00 };
*(int *)(Code + 2) = 阵营偏移;
*(int *)(Code + 10) = 伤害值;
*(int *)(Code + 22) = (倍功地址 + 6) - ((int)全局物理开始 + 21) - 5;
BYTE hook1[6] = { 0xe9, 00, 00, 00, 00, 0x90 };
BYTE hook2[6] = { 0x55, 0x8B, 0xEC, 0x83, 0xec, 0x14 };
*(int *)(hook1 + 1) = (int)全局物理开始 - 倍功地址 - 5;
if (全局物理开关 == FALSE) {
memcpy((void *)倍功地址, hook1, 6);
memcpy(全局物理开始, Code, 26);
全局物理开关 = TRUE;
公告(L"白戏 - 全局物理 - ON");
}
else {
memcpy((void *)倍功地址, hook2, 6);
ZeroMemory(全局物理开始, 26);
VirtualFreeEx(hWindows, 全局物理开始, 26, MEM_DECOMMIT);
全局物理开关 = FALSE;
公告(L"白戏 - 全局物理 - OFF");
}
VirtualProtect((LPVOID)倍功地址, 6, oldprotect, &oldprotect);
}
2017年8月17日18:01:54
02E2F3A0
贴吧:agopoe作者:被戏弄小白 2017-08-23 22:18
回复:关于按钮颜色的问题???
应该是说用ini文件
ini文件
[anniu]
color=123456
Public Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long
dim color as long
color=GetPrivateProfileInt ("anniu","color",0,"d:/anniu.ini")
command1.backcolor=color
贴吧:vb作者:MasterChiefs 2011-07-03 22:08
各路大神,请教如何把vc6.0程序改写成Python语言的,不胜感激
void CMyPGRDlg::linkControlCard() { char szTemp[20]; GetPrivateProfileString("MotionController","Sn","0",szTemp,20,gszConfigFileFullPath); int sn=atoi(szTemp); if(sn==0) { AfxMessageBox("请先设置运控卡序列号数字串,序列号可以在卡上标签找到!"); return; } int nControllerIndex = 1; if(AddGalilReg(sn,nControllerIndex)==false) return ; 这是DMC控制卡的连接程序的一部分,想把它用Python写出来,怎么入门呢,求大神指点
贴吧:python作者:Ω阅览所有贴 2016-07-04 16:40
回复:练习:写一个 LED 广告牌展示程序
回复 fammy043 : 读取 ini 就那么几个函数而已,就是你说的 GetPrivateProfileString() / GetPrivateProfileInt() 等,没什么难度。真正难的是解析。
贴吧:easyx作者:yangw80 2013-02-06 12:10

大家都在搜

  • private company
  • Get into
  • Get over
  • Private
  • Get off
  • Get lost
  • Get out!
  • Get on
  • Get down
  • Get away
  • get marry
  • forget
  • GetMusic
  • get ugly
  • get sb