-
1hh fix
hello,
Is there someone to compile this 1hh fix for me ? or how to change weapon change delay time via mainserver or something There is source,but i can not make dll ..alot erros on visual basic..
PHP Code:
namespace CMonster
{
static signed int (__thiscall *CMonsterRealApplyDamage)(void* _this,int a5, int a6, int a7, int a8, int a9, int a10, int a11) = (signed int (__thiscall*)(void*,int a5, int a6, int a7, int a8, int a9, int a10,int a11))0x0043E950;
}
void __fastcall CMonsterRealDamage(void *_this,void*,int Player, int a3, int Damage, int a5, int a6, int a7, int a8)
{
bool forward = true;
Interface<cPlayer> PlayerTool;
if(
( PlayerTool->getMaxMagic(Player) > 6000) ||
( PlayerTool->getMinPhy(Player) > 6000) ||
( PlayerTool->getMaxPhy(Player) > 6000) ||
( PlayerTool->getMinMagic(Player) > 6000) ||
( PlayerTool->getMaxMagic(Player) < 0) ||
( PlayerTool->getMinPhy(Player) < 0) ||
( PlayerTool->getMaxPhy(Player) < 0) ||
( PlayerTool->getMinMagic(Player) < 0) ||
( Damage > 30000)
)
{
forward = false;
CMonster::CMonsterRealApplyDamage(_this,Player,a3,0,a5,a6,a7,a8);
}
if( forward == true )
{
CMonster::CMonsterRealApplyDamage(_this,Player,a3,Damage,a5,a6,a7,a8);
}
}
Memory->Hook(0x0043AC5D,CMonsterRealDamage);
Memory->Hook(0x0043F2F1,CMonsterRealDamage);
Memory->Hook(0x004424BD,CMonsterRealDamage);
Memory->Hook(0x00443A1D,CMonsterRealDamage);
Memory->Hook(0x00444EDD,CMonsterRealDamage);