Masspawn dc

06/05/2010 16:17 ProgMata#1
Hi i use this hack, but 5-6min later i get crash any idea how fix it?

Code:
[ENABLE]
alloc(MonsterProperties,2048)
label(ReturnMonsterProperties)
label(PropertyBace)
registersymbol(PropertyBace)

0045D37E: //8B 80 98 00 00 00 89 81 9C 00
jmp MonsterProperties
nop
ReturnMonsterProperties:

MonsterProperties:
push eax
mov eax,[eax+00000098] //Original Code
mov [ecx+0000009C],eax //Original Code
pop eax
mov [PropertyBace],ecx

//mov [ecx+00],00000000 //DwInfoIndex
  mov [ecx+04],0000004B //DwExploreRange
  mov [ecx+08],0000004B //DwSight
  mov [ecx+0C],0000004B //DwPersuitRange
//mov [ecx+10],00000000 //DwAvoidRange
  mov [ecx+14],00000000 //DwExploreStandDelay
//mov [ecx+18],00000000 //DwExploreMoveDelay
//mov [ecx+1C],00000000 //DwStandDelay
  mov [ecx+20],000001F4 //DwMoveDelay
//mov [ecx+24],00000000 //DwFollowMyMasterRange
//mov [ecx+28],00000000 //DwStopMasterNear
//mov [ecx+2C],00000000 //DwWarpMyMasterRange
//mov [ecx+30],00000000 //DwCallTeamPossibelHP
//mov [ecx+34],00000000 //DwCallTeamCount
//mov [ecx+38],00000000 //DwBlockNFirstAttack
//mov [ecx+3C],00000000 //dwCallTeamCell
  mov [ecx+40],000000FA //dwFollowTarget
  mov [ecx+44],00000000 //dwSpecialAttackStartHP
  mov [ecx+48],00000000 //dwSpecialMeleeAttackRate
  mov [ecx+4C],00000000 //dwSpecialRangeAttackRate
  mov [ecx+50],00000000 //DwPowerAttacjStartHP
  mov [ecx+54],00000000 //dwPowerMeleeAttackProbable
  mov [ecx+58],00000000 //dwPowerRangeAttackProbable
//mov [ecx+5C],00000000 //DwUnderAttackAggro
  mov [ecx+60],00000000 //DwMeleeAttackRangeInAggro
  mov [ecx+64],00000000 //DwRangeAttackRangeInAggro
  mov [ecx+68],000003E8 //DwSightInAggro
//mov [ecx+6C],00000000 //DwDefeatAggro
//mov [ecx+70],00000000 //DwBlockedAggro
//mov [ecx+74],00000000 //DwSlideAggro
//mov [ecx+78],00000000 //DwHealAggro
//mov [ecx+7C],00000000 //DwMasterUnderAttackAggro
//mov [ecx+80],00000000 //DwMasterDefeatAggro
//mov [ecx+84],00000000 //DwMasterBlockingAggro
//mov [ecx+88],00000000 //DwMasterSlideAggro
//mov [ecx+8C],00000000 //DwCOmplusionUnderAttackAggro
  mov [ecx+90],00000063 //dwMaxSummonsMonsterCount
  mov [ecx+94],00000000 //dwReSummonsMonsterTick
  mov [ecx+98],00000000 //dwMaxSummonsMonsterRange
  mov [ecx+9C],00000000 //dwSummonsStartPcCount
//mov [eax+A0],00000000 //PatternType

mov eax,[ecx+0000009C] //Original Code
jmp ReturnMonsterProperties
PropertyBace:
db 00 00 00 00

[DISABLE]
dealloc(MonsterProperties)
unregistersymbol(PropertyBace)
0045D37E:
mov eax,[eax+00000098]