|
楼主 |
发表于 2013-5-7 19:05:23
|
显示全部楼层
本帖最后由 sky52bb001 于 2013-5-7 19:19 编辑
chyj4747 发表于 2013-5-7 08:39
把你的触发发上来看看。。
VOID CALLBACK MyTimerProc ( HWND hwnd, UINT message, UINT iTimerID, DWORD dwTime)
{
MyGroupEnumUnitsInRange(m_m_group,MyGetUnitX(m_unit),MyGetUnitY(m_unit),1000);
DWORD m_m_unit=MyFirstOfGroup(m_m_group);
while(m_m_unit>0)
{
//i++;
unitlife=MyGetUnitState(m_m_unit,0);
if(m_dgj_unit!=m_m_unit)
{
if (unitlife<lifetoa&&unitlife>0&&MyIsUnitType(m_m_unit,6))
{
m_dgj_unit=m_m_unit;
//m_eword=Getdword(m_m_unit);
//*(BYTE*)(pjaddr+0X3C9521)=0XB8;
//*(DWORD*)(pjaddr+0X3C9522)=m_eword;
MyDisplayTextToPlayer(Mylp,&x,&y,*((DWORD*)MyGetUnitName(m_m_unit)));
//m_unitx=MyGetUnitX(m_m_unit);
//m_unity=MyGetUnitY(m_m_unit);
//sprintf_s(zb,40,"m_unitx=%f,m_unity=%f",m_unitx,m_unity);
//MyDisplayTextToPlayer(Mylp,&x,&y,(DWORD)&zb);
MyIssueNeutralTargetOrderById(Mylp,m_unit,0x000D000F,m_m_unit);
//MyIssueTargetOrderByIdGai(m_unit,0x000D000F,m_m_unit,pjaddr);//attack-0x000D000F
//MyIssueTargetOrder(m_unit,(DWORD)&"attack",m_m_unit);
}
}
MyGroupRemoveUnit(m_m_group,m_m_unit);
m_m_unit=MyFirstOfGroup(m_m_group);
}
}
我是用vc做的,你看看啊,用MyIssueNeutralTargetOrderById(Mylp,m_unit,0x000D000F,m_m_unit);for循环给前面的函数传递玩家参数,就能给每个顽家发同一个命令,还是掉线的啊,今天发现了一个很厉害的挂“guai自动补刀”补刀全图,过平台检测啊厉害啊,不知道他的补刀是怎么做的啊 |
|