Code:
// ---- BYTES
BYTE NOP [8] = {0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90};
BYTE JMP [1] = {0xEB};
BYTE RETN [1] = {0xC3};
BYTE RETNC [3] = {0xC2,0x0C,0x00};
BYTE QPLANTON [2] = {0xEB,0x3F};
BYTE QDEFUSEON [2] = {0xEB,0x42};
BYTE STWON [2] = {0xD9,0x40};
BYTE VEHFIREON [2] = {0xEB,0x0A};
BYTE INVISIBLEON [3] = {0x8D,0x47,0x0C};
BYTE PLANTDEFON [3] = {0xB3,0x01,0x88};
BYTE HEADON [5] = {0xB9,0x64,0xC1,0x54,0xA5};
BYTE ANTIM14ON [6] = {0xE9,0xAA,0x00,0x00,0x00,0x90};
BYTE AUTOHEALON [6] = {0xE9,0x3F,0x02,0x00,0x00,0x90};
BYTE EXTRACLIPON [3] = {0xB0,0x01,0x90};
BYTE STAMINAUPON [3] = {0xB1,0x01,0x90};
BYTE SNIPERXON [2] = {0xB3,0x01};
BYTE DAMAGEASPUNCH [7] = {0xB8,0x01,0x00,0x00,0x00,0x90,0x90};
BYTE DAMAGEASCOLT [7] = {0xB8,0x07,0x00,0x00,0x00,0x90,0x90};
// ---- PATCHES
CPatch pBoneshot (ADR_BONESHOT,HEADON,5);
CPatch pNoRecoil (ADR_NORECOIL,RETNC,3);
CPatch pNoSpread (ADR_NOSPREAD,NOP,6);
CPatch pNoReload (ADR_NORELOAD,NOP,6);
CPatch pNoDelay (ADR_NODELAY,NOP,2);
CPatch pUnlimitedAmmo (ADR_UNLIMITEDAMMO,RETN,1);
//CPatch pAutoAmmo1 (ADR_AUTOAMMO1,JMP,1);
//CPatch pAutoAmmo2 (ADR_AUTOAMMO2,NOP,6);
CPatch pShootthroughWalls1(ADR_STW1,STWON,2);
CPatch pShootthroughWalls2(ADR_STW2,STWON,2);
CPatch pUnlockSwim (ADR_UNLOCKSWIM, NOP, 2);
//CPatch pProne (ADR_PRONE,NOP, 2);
CPatch pStamina1 (ADR_STAMINA1, JMP, 1);
CPatch pStamina2 (ADR_STAMINA2, JMP, 1);
CPatch pStamina3 (ADR_STAMINA3, JMP, 1);
CPatch pAutoMedic1 (ADR_AUTOMEDIC1,AUTOHEALON,6);
CPatch pAutoMedic2 (ADR_AUTOMEDIC2,NOP,6);
CPatch pInvisible (ADR_INVI,INVISIBLEON,3);
CPatch pOnePositionKill1 (ADR_ONEPOSITIONKILL1,NOP,3);
CPatch pOnePositionKill2 (ADR_ONEPOSITIONKILL2,NOP,3);
CPatch pOnePositionKill3 (ADR_ONEPOSITIONKILL3,NOP,2);
CPatch pWalkthroughWalls(ADR_WTW,NOP,3);
CPatch pArtillery1 (ADR_ARTILLERY1,NOP,2);
CPatch pArtillery2 (ADR_ARTILLERY2,NOP,2);
CPatch pArtillery3 (ADR_ARTILLERY3,JMP,1);
CPatch pArtillery4 (ADR_ARTILLERY4,JMP,1);
CPatch pArtillery5 (ADR_ARTILLERY5,JMP,1);
CPatch pArtillery6 (ADR_ARTILLERY6,NOP,5);
CPatch pArtillery7 (ADR_ARTILLERY7,JMP,1);
CPatch pArtillery8 (ADR_ARTILLERY8,NOP,6);
CPatch pNoDamage (ADR_VEH_NODAMAGE,RETN,1);
CPatch pNoOverheat(ADR_VEH_NOOVERHEAT,NOP,4);
CPatch pVInvisible (ADR_VEH_INVISIBLE,NOP,3);
CPatch pSuperfire1 (ADR_VEH_SUPERFIRE1, NOP, 2);
CPatch pSuperfire2 (ADR_VEH_SUPERFIRE2, NOP, 2);
CPatch pSuperfire3 (ADR_VEH_SUPERFIRE3, VEHFIREON,2);
CPatch pFastPlant (ADR_FASTPLANT,QPLANTON,2);
CPatch pFastDefuse (ADR_FASTDEFUSE,QDEFUSEON,2);
CPatch pDPAnywhere (ADR_DPANYWHERE,PLANTDEFON,3);
CPatch pRadarGPS (ADR_RADARGPS, JMP, 1);
CPatch pMinesGPS (ADR_MINESGPS1, NOP, 6);
CPatch pMinesGPS2 (ADR_MINESGPS2, NOP, 6);
CPatch pRemoveFlash (ADR_NOFLASH, JMP, 1);
CPatch pRemoveM14 (ADR_NOM14,ANTIM14ON, 6);
CPatch pPunchDamage (ADR_DAMAGEAS,DAMAGEASPUNCH,7);
CPatch pColtDamage (ADR_DAMAGEAS,DAMAGEASCOLT,7);
//CPatch pStaminaUP1 (ADR_STAMINAUP1, STAMINAUPON,3);
//CPatch pStaminaUP2 (ADR_STAMINAUP2, STAMINAUPON,3);
//CPatch pExtraClipA (ADR_CLIPA, EXTRACLIPON, 3);
//CPatch pExtraClipS (ADR_CLIPS, EXTRACLIPON, 3);
//CPatch pSniperPX (ADR_SNIPERPX, SNIPERXON, 2);
CBase *g_pBase = (CBase*)ADR_PLAYERPOINTER;
void PlayerCheats()
{
DWORD dwIngame = *(DWORD*)ADR_PLAYERPOINTER;
DWORD dwPlayer = *(DWORD*)ADR_PLAYERPOINTER;
if (dwIngame != 0)
{
// --- SUPERJUMP
switch (nPlayer.nSuperjump)
{
case 1: if(GetAsyncKeyState(VK_CONTROL) &0x8000){ *(float*)(dwPlayer + OFS_Z) = *(float*)(dwPlayer+OFS_Z) + 35.0F; }
case 2: if(GetAsyncKeyState(VK_CONTROL) &0x8000){ *(float*)(dwPlayer + OFS_Z) = 500.0F; }
case 3: if(GetAsyncKeyState(VK_CONTROL) &0x8000){ *(float*)(dwPlayer + OFS_Z) = 1500.0F; }
case 4: if(GetAsyncKeyState(VK_CONTROL) &0x8000){ *(float*)(dwPlayer + OFS_Z) = 2500.0F; }
case 5: if(GetAsyncKeyState(VK_CONTROL) &0x8000){ *(float*)(dwPlayer + OFS_Z) = 5000.0F; }
}
// --- NO FALL DAMAGE
if (nPlayer.nNoFallDamage == 1)
{
*(float*)(dwPlayer+OFS_NOFALLDAMAGE) = -9999999;
}
// --- NO BOUNDS
if (nPlayer.nNoFallDamage == 1)
{
*(DWORD*)(ADR_NOBOUNDS1) = 0;
*(DWORD*)(ADR_NOBOUNDS2) = 0;
*(DWORD*)(ADR_NOBOUNDS3) = 0;
}
// --- SET SPEEDHACK
switch (nPlayer.nSpeed)
{
case 0 :*(double*)(ADR_SPEED) = 96; break;
case 1 :*(double*)(ADR_SPEED) = 96+10; break;
case 2 :*(double*)(ADR_SPEED) = 96+20; break;
case 3 :*(double*)(ADR_SPEED) = 96+200; break;
case 4 :*(double*)(ADR_SPEED) = 96+500; break;
case 5 :*(double*)(ADR_SPEED) = 96+1000; break;
}
// --- SET ROLLSPEED
switch (nPlayer.nSpeedroll)
{
case 0 :*(float*)(ADR_SPEEDROLLING) = 2.20; break;
case 1 :*(float*)(ADR_SPEEDROLLING) = 2.75; break;
case 2 :*(float*)(ADR_SPEEDROLLING) = 3.75; break;
case 3 :*(float*)(ADR_SPEEDROLLING) = 4.75; break;
case 4 :*(float*)(ADR_SPEEDROLLING) = 5.75; break;
case 5 :*(float*)(ADR_SPEEDROLLING) = 6.75; break;
}
// --- NO SPAWN WAIT
if (nPlayer.nNoSpawnWait == 1)
{
*(float*)(ADR_NOSPAWNWAIT1) = 0;
*(float*)(ADR_NOSPAWNWAIT2) = 0;
*(float*)(ADR_NOSPAWNWAIT3) = 0;
}
// --- INVISIBLE
if (nPlayer.nInvisible == 1)
{
pInvisible.Patch();
}
else
{
pInvisible.Restore();
}
// --- WTW
if (nPlayer.nWalkthroughWalls == 1)
{
pWalkthroughWalls.Patch();
}
else
{
pWalkthroughWalls.Restore();
}
// --- AUTOMEDIC
if (nPlayer.nAutoMedic == 1)
{
pAutoMedic1.Patch();
pAutoMedic2.Patch();
}
else
{
pAutoMedic1.Restore();
pAutoMedic2.Restore();
}
// --- STAMINA
if (nPlayer.nStamina == 1)
{
pStamina1.Patch();
pStamina2.Patch();
pStamina3.Patch();
}
else
{
pStamina1.Restore();
pStamina2.Restore();
pStamina3.Restore();
}
// --- PRONE
//if (nPlayer.nProne == 1)
//{
// pProne.Patch();
//}
//else
//{
// pProne.Restore();
//}
// --- ONE POSITION KILL
if (nPlayer.nOnePositionKill == 1)
{
pOnePositionKill1.Patch();
pOnePositionKill2.Patch();
pOnePositionKill3.Patch();
}
else
{
pOnePositionKill1.Restore();
pOnePositionKill2.Restore();
pOnePositionKill3.Restore();
}
// --- SWIM
if (nPlayer.nSwim == 1)
{
if ( *(DWORD*)(dwPlayer + OFS_PLAYERSTARE) != *(DWORD*)ADR_INVEHICLE)
{
*(DWORD*)(dwPlayer + OFS_PLAYERSTARE) = *(DWORD*)ADR_SWIM1;
pUnlockSwim.Patch();
}
}
else
{
*(DWORD*)(dwPlayer + OFS_PLAYERSTARE) = *(DWORD*)ADR_SWIM2;
*(DWORD*)(dwPlayer + OFS_PLAYERSTARE) = *(DWORD*)(dwPlayer + OFS_PLAYERSTARE);
pUnlockSwim.Restore();
}
// WEAPONMANAGER
#define MAX_WEAPONS 350
struct sWeaponsOriginalValues
{
DWORD dwWeight;
DWORD dwShotSpeed;
};
sWeaponsOriginalValues weaponsOriginalValues[MAX_WEAPONS];
bool bValueStored = false;
if(!bValueStored)
{
CWeaponGlobal* weaponPtr_1 = (CWeaponGlobal*)ADR_WEAPONGLOBAL1;
CWeaponGlobal* weaponPtr_2 = (CWeaponGlobal*)ADR_WEAPONGLOBAL2;
if ( weaponPtr_1 !=0 && weaponPtr_2 !=0 )
{
for(int i = 0; i < MAX_WEAPONS; i++)
{
weaponsOriginalValues[i].dwWeight = weaponPtr_1->WeaponPtr->WeaponInformations[i]->dwWeight;
weaponsOriginalValues[i].dwWeight = weaponPtr_2->WeaponPtr->WeaponInformations[i]->dwWeight;
weaponsOriginalValues[i].dwShotSpeed = weaponPtr_1->WeaponPtr->WeaponInformations[i]->dwShotSpeed;
weaponsOriginalValues[i].dwShotSpeed = weaponPtr_2->WeaponPtr->WeaponInformations[i]->dwShotSpeed;
bValueStored = true;
}
}
}
// --- NO WEAPON RANGE
if (nWeapon.nNoWeaponRange == 1)
{
if ( g_pBase->local )
{
CWeaponGlobal* weaponPtr_1 = (CWeaponGlobal*)ADR_WEAPONGLOBAL1;
CWeaponGlobal* weaponPtr_2 = (CWeaponGlobal*)ADR_WEAPONGLOBAL2;
if ( weaponPtr_1 !=0 && weaponPtr_2 !=0 )
{
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwRange = 1000000;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwRange = 1000000;
}
}
}
// --- EXTRA RANGE
if (nWeapon.nExtraRange == 1)
{
if ( g_pBase->local )
{
CWeaponGlobal* weaponPtr_1 = (CWeaponGlobal*)ADR_WEAPONGLOBAL1;
CWeaponGlobal* weaponPtr_2 = (CWeaponGlobal*)ADR_WEAPONGLOBAL2;
if ( weaponPtr_1 !=0 && weaponPtr_2 !=0 )
{
switch ( nWeapon.nExtraRange )
{
case 1 :
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 10000;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 10000;
break;
case 2 :
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 20000;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 20000;
break;
case 3 :
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 30000;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 30000;
break;
case 4 :
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 40000;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 40000;
break;
case 5 :
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 1000000;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwEffectRange = 1000000;
break;
}
}
}
}
// --- SUPER WEAPON
if (nWeapon.nSuperWeapon == 1)
{
if ( g_pBase->local )
{
CWeaponGlobal* weaponPtr_1 = (CWeaponGlobal*)ADR_WEAPONGLOBAL1;
CWeaponGlobal* weaponPtr_2 = (CWeaponGlobal*)ADR_WEAPONGLOBAL2;
if ( weaponPtr_1 !=0 && weaponPtr_2 !=0 )
{
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwShotSpeed = 50000;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwShotSpeed = 50000;
}
}
}else{
if ( bValueStored )
{
CWeaponGlobal* weaponPtr_1 = (CWeaponGlobal*)ADR_WEAPONGLOBAL1;
CWeaponGlobal* weaponPtr_2 = (CWeaponGlobal*)ADR_WEAPONGLOBAL2;
if ( weaponPtr_1 !=0 && weaponPtr_2 !=0 )
{
for(int i = 0; i < MAX_WEAPONS; i++)
{
weaponPtr_1->WeaponPtr->WeaponInformations[i]->dwShotSpeed = weaponsOriginalValues[i].dwShotSpeed;
weaponPtr_2->WeaponPtr->WeaponInformations[i]->dwShotSpeed = weaponsOriginalValues[i].dwShotSpeed;
}
}
}
}
if (nWeapon.nNoWeight == 1)
{
if ( g_pBase->local )
{
CWeaponGlobal* weaponPtr_1 = (CWeaponGlobal*)ADR_WEAPONGLOBAL1;
CWeaponGlobal* weaponPtr_2 = (CWeaponGlobal*)ADR_WEAPONGLOBAL2;
if ( weaponPtr_1 !=0 && weaponPtr_2 !=0 )
{
weaponPtr_1->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwWeight = 0;
weaponPtr_2->WeaponPtr->WeaponInformations[g_pBase->local->weapon]->dwWeight = 0;
}
}
}else
{
if ( bValueStored )
{
CWeaponGlobal* weaponPtr_1 = (CWeaponGlobal*)ADR_WEAPONGLOBAL1;
CWeaponGlobal* weaponPtr_2 = (CWeaponGlobal*)ADR_WEAPONGLOBAL2;
if ( weaponPtr_1 !=0 && weaponPtr_2 !=0 )
{
for(int i = 0; i < MAX_WEAPONS; i++)
{
weaponPtr_1->WeaponPtr->WeaponInformations[i]->dwWeight = weaponsOriginalValues[i].dwWeight;
weaponPtr_2->WeaponPtr->WeaponInformations[i]->dwWeight = weaponsOriginalValues[i].dwWeight;
}
}
}
}
// --- NO RECOIL
if (nWeapon.nNoRecoil == 1)
{
pNoRecoil.Patch();
}
else
{
pNoRecoil.Restore();
}
// --- NO SPREAD
if (nWeapon.nNoSpread ==1)
{
pNoSpread.Patch();
}
else
{
pNoSpread.Restore();
}
// --- NO DELAY
if (nWeapon.nNoDelay == 1)
{
pNoDelay.Patch();
}
else
{
pNoDelay.Restore();
}
// --- NO RELOAD
if (nWeapon.nNoReload == 1)
{
pNoReload.Patch();
}
else
{
pNoReload.Restore();
}
// --- UNLIMITED AMMO
if (nWeapon.nUnlimitedAmmo == 1)
{
pUnlimitedAmmo.Patch();
}
else
{
pUnlimitedAmmo.Restore();
}
// --- STW
if (nWeapon.nShootthroughWalls == 1)
{
pShootthroughWalls1.Patch();
pShootthroughWalls2.Patch();
}
else
{
pShootthroughWalls1.Restore();
pShootthroughWalls2.Restore();
}
// --- BONESHOT
if (nWeapon.nBoneshot == 1)
{
pBoneshot.Patch();
}
else
{
pBoneshot.Restore();
}
// --- ARTILLERY
if (nWeapon.nArtillery == 1)
{
pArtillery1.Patch();
pArtillery2.Patch();
pArtillery3.Patch();
pArtillery4.Patch();
pArtillery5.Patch();
pArtillery6.Patch();
pArtillery7.Patch();
pArtillery8.Patch();
}
else
{
pArtillery1.Restore();
pArtillery2.Restore();
pArtillery3.Restore();
pArtillery4.Restore();
pArtillery5.Restore();
pArtillery6.Restore();
pArtillery7.Restore();
pArtillery8.Restore();
}
// --- AUTOAMMO
//if (nWeapon.nAutoAmmo == 1)
//{
// pAutoAmmo1.Patch();
// pAutoAmmo2.Patch();
//}
//else
//{
// pAutoAmmo1.Restore();
// pAutoAmmo2.Restore();
//}
//if (nWeapon.nScope)
//{
// if (GetAsyncKeyState(0x02))
// {
// *(DWORD*)(ADR_SCOPE) = 8;
// }
// else
// {
// *(DWORD*)(ADR_SCOPE) = 5;
// }
//}
// --- FAST ALL
if (nStatic.nFastAll == 1 )
{
*(float*)(ADR_FASTAMMO) = 15.0F;
*(float*)(ADR_FASTHEALTH) = 15.0F;
}
// --- FAST DEFUSE
if (nStatic.nFastPlant == 1)
{
pFastPlant.Patch();
}
else
{
pFastPlant.Restore();
}
// --- FAST PLANT
if (nStatic.nFastDefuse == 1)
{
pFastDefuse.Patch();
}
else
{
pFastDefuse.Restore();
}
// --- PLANT DEFUSE ANYWHERE
if (nStatic.nPlantanywhere == 1)
{
pDPAnywhere.Patch();
}
else
{
pDPAnywhere.Restore();
}
if (nStatic.nDefuseanywhere == 1)
{
pDPAnywhere.Patch();
}
else
{
pDPAnywhere.Restore();
}
// --- RADAR GPS
if (nVisual.nRadarGPS == 1)
{
pRadarGPS.Patch();
}
else
{
pRadarGPS.Restore();
}
// --- MINE GPS
if (nVisual.nMineGPS == 1)
{
pMinesGPS.Patch();
pMinesGPS2.Patch();
}
else
{
pMinesGPS.Restore();
pMinesGPS2.Restore();
}
// --- REMOVE FLASH
if (nVisual.nRemoveFlash == 1)
{
pRemoveFlash.Patch();
}
else
{
pRemoveFlash.Restore();
}
// --- REMOVE M14
if (nVisual.nRemoveM14 == 1)
{
pRemoveM14.Patch();
}
else
{
pRemoveM14.Restore();
}
// --- VEHICLE INVISIBLE
if (nVehicle.nInvisible == 1)
{
pVInvisible.Patch();
}
else
{
pVInvisible.Restore();
}
// --- VEHICLE NO DAMAGE
if (nVehicle.nNoDamage == 1)
{
pNoDamage.Patch();
}
else
{
pNoDamage.Restore();
}
// --- VEHICLE NO OVERHEAT
if (nVehicle.nNoOverheat == 1)
{
pNoOverheat.Patch();
}
else
{
pNoOverheat.Restore();
}
// --- VEHICLE SUPERFIRE
if (nVehicle.nSuperfire == 1)
{
pSuperfire1.Patch();
pSuperfire2.Patch();
pSuperfire3.Patch();
}
else
{
pSuperfire1.Restore();
pSuperfire2.Restore();
pSuperfire3.Restore();
}
//// --- EXTRACLIP A
//if (nPX.nClipA == 1)
//{
// pExtraClipA.Patch();
//}
//else
//{
// pExtraClipA.Restore();
//}
//// --- EXTRACLIP S
//if (nPX.nClipS == 1)
//{
// pExtraClipS.Patch();
//}
//else
//{
// pExtraClipS.Restore();
//}
//// --- STAMINA UP
//if (nPX.nStamina == 1)
//{
// pStaminaUP1.Patch();
// pStaminaUP2.Patch();
//}
//else
//{
// pStaminaUP1.Restore();
// pStaminaUP2.Restore();
//}
//// --- SNIPER PX
//if (nPX.nSniperPX == 1)
//{
// pSniperPX.Patch();
//}
//else
//{
// pSniperPX.Restore();
//}
// --- DAMAGE AS
if (nBinder.nDamage == 1)
{
pPunchDamage.Patch();
}
if (nBinder.nDamage == 2)
{
pPunchDamage.Restore();
pColtDamage.Patch();
}
if (nBinder.nDamage == 0)
{
pPunchDamage.Restore();
pColtDamage.Restore();
}
}
}
// --- SERVER CHEATS
DWORD dwServer = 0;
void Servercheats( void )
{
dwServer = *(DWORD*)ADR_SERVERPOINTER;
if (dwServer != 0)
{
// ---- SLOT CHEAT
BYTE Slot5,Slot6,Slot7,Slot8;
bool cSlot = true;
if (nBinder.nSlots == 1)
{
if ( cSlot == true )
{
Slot5 = *(BYTE*)(dwServer+OFS_SLOTS);
Slot6 = *(BYTE*)(dwServer+OFS_SLOTS+0x1);
Slot7 = *(BYTE*)(dwServer+OFS_SLOTS+0x2);
Slot8 = *(BYTE*)(dwServer+OFS_SLOTS+0x3);
// ==========================================
*(BYTE*)(dwServer+OFS_SLOTS) = 1;
*(BYTE*)(dwServer+OFS_SLOTS+0x1) = 1;
*(BYTE*)(dwServer+OFS_SLOTS+0x2) = 1;
*(BYTE*)(dwServer+OFS_SLOTS+0x3) = 1;
cSlot = false;
}
}
else
{
if ( cSlot == false )
{
*(BYTE*)(dwServer+OFS_SLOTS) = Slot5;
*(BYTE*)(dwServer+OFS_SLOTS+0x1) = Slot6;
*(BYTE*)(dwServer+OFS_SLOTS+0x2) = Slot7;
*(BYTE*)(dwServer+OFS_SLOTS+0x3) = Slot8;
cSlot = true;
}
}
// --- WEAPON BINDER
if (nBinder.nClass > 0)
{
find_weapons();
if (nBinder.nSlot1 > 0)
WPNput(nBinder.nClass - 1, 0, nBinder.nSlot1 -1);
if (nBinder.nSlot2 > 0)
WPNput(nBinder.nClass - 1, 1, nBinder.nSlot2 -1);
if (nBinder.nSlot3 > 0)
WPNput(nBinder.nClass - 1, 2, nBinder.nSlot3 -1);
if (nBinder.nSlot4 > 0)
WPNput(nBinder.nClass - 1, 3, nBinder.nSlot4 -1);
if (nBinder.nSlot5 > 0)
WPNput(nBinder.nClass - 1, 4, nBinder.nSlot5 -1);
if (nBinder.nSlot6 > 0)
WPNput(nBinder.nClass - 1, 5, nBinder.nSlot6 -1);
if (nBinder.nSlot7 > 0)
WPNput(nBinder.nClass - 1, 6, nBinder.nSlot7 -1);
if (nBinder.nSlot8 > 0)
WPNput(nBinder.nClass - 1, 7, nBinder.nSlot8 -1);
}
}
}