Vac Script Loosing Mobs

06/04/2010 01:59 kenshin888#1
Hi, I am using a script that I found in the forum and it seems to loose mobs when I start to attack. I would lure like 30 mobs and about 10 of them will run off a few at a time before I get to kill them all. Can someone help me edit the script to fix the problem? Can I also increase range and number of mobs I can vac?

Thanks

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

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

00545E85: //48 8B 01 FF89 54 24  50 0C 8B
jmp MonsterRange
nop
ReturnMonsterRange:

00545E9A: //0F B7 86 54 01 00 00 8B 0D
mov eax,[MonsterAggro]
nop
nop

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

MonsterRange:
mov [esp+48],edx
mov [esp+30],00000000
mov [esp+4c],00000000
//mov [esi+00000240],0000000 //other attack range to 0 
//mov [esi+0000023c],0000000 //other attack range to 0 
//mov [esi+00000238],0000000 //other attack range to 0 
mov eax,[ecx]
jmp ReturnMonsterRange

MonsterAggro:
db 03 00 00 00
PropertyBace:
db 00 00 00 00
[DISABLE]
dealloc(MonsterProperties)
unregistersymbol(MonsterAggro)
unregistersymbol(PropertyBace)
0045D37E:
mov eax,[eax+00000098]
00545E85:
mov [esp+48],edx
mov eax,[ecx]
00545E9A:
movzx eax,word ptr [esi+00000154]
06/04/2010 06:14 Vaidas B#2
Code:
[ENABLE]
alloc(MonsterProperties,2048)
label(ReturnMonsterProperties)
label(MonsterRange)
label(ReturnMonsterRange)
label(MonsterAggro)
label(PropertyBace)
registersymbol(MonsterAggro)
registersymbol(PropertyBace)

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

00545E85: //48 8B 01 FF89 54 24  50 0C 8B
jmp MonsterRange
nop
ReturnMonsterRange:

00545E9A: //0F B7 86 54 01 00 00 8B 0D
mov eax,[MonsterAggro]
nop
nop

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],[color="red"]0000004B[/color] //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],[color="green"]000000FA[/color] //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

MonsterRange:
mov [esp+48],edx
mov [esp+30],00000000
mov [esp+4c],00000000
//mov [esi+00000240],0000000 //other attack range to 0 
//mov [esi+0000023c],0000000 //other attack range to 0 
//mov [esi+00000238],0000000 //other attack range to 0 
mov eax,[ecx]
jmp ReturnMonsterRange

MonsterAggro:
db 03 00 00 00
PropertyBace:
db 00 00 00 00
[DISABLE]
dealloc(MonsterProperties)
unregistersymbol(MonsterAggro)
unregistersymbol(PropertyBace)
0045D37E:
mov eax,[eax+00000098]
00545E85:
mov [esp+48],edx
mov eax,[ecx]
00545E9A:
movzx eax,word ptr [esi+00000154]
I hate the new scripts, but i'll give it a shot.
Number of mobs u can vac (set to max, dont touch that)
Not sure, but i think thats the following range
06/04/2010 08:29 bottomy#3
You could also try lowering the value of the DwMoveDelay, that keeps mobs closer.


@TheConArtist i thought the max number of mobs that could follow you is only 0xc8 because there's only 200 mobs on a map. Or are you just saying max number? cause then it should really just be 0xffffffff, but i don't see how that would help since you won't ever get near that number.
06/04/2010 08:49 Vaidas B#4
000000FA = 250 ( i think thats the max number of mobs on the map, if not, more couldent hurt)
06/04/2010 15:12 kenshin888#5
Is there a max persuit range? I have seen other scripts with these codes but I don't understand what they mean. Is there a guide that explains this? :handsdown:

mov [eax+08],00000020//DwSight eax+08
mov [eax+04],00000020//DwPersuitRange eax+04

//mov [eax+1C],00000064//DwMoveDelay eax+1C

mov [eax+04],00000040//DwPersuitRange eax+04