Mass Spawn Question

12/03/2009 00:28 Cloudstrife01235#1
So I went into DF today with only one party, 2 other hackers. After the two died I was the only one left in DF, so i went to try the magimata spawning. However when I got there, i noticed way too many were spawning way too fast. I remembered my friend telling me you have to drag one off the map somewhere and only that one will keep spawning, but even then, as a 95 summoner with crappy weapons fighting magimata's by myself, they'll still spawn too fast. So my question :

What do I change in this script to edit how fast the monsters spawn?

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

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

0053D955: //89 54 24 48 8B 01 FF 50 0C 8B
jmp MonsterRange
nop
ReturnMonsterRange:

0053D96A: //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+94],99999999 //dwMaxSummonsMonsterCount
  mov [ecx+90],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)
0045C24E:
mov eax,[eax+00000098]
0053D955:
mov [esp+48],edx
mov eax,[ecx]
0053D96A:
movzx eax,word ptr [esi+00000154]
12/03/2009 00:43 qwopzxnm#2
Not too sure, because i dont use that vac script but..

change
mov [ecx+94],99999999 //dwMaxSummonsMonsterCount

change the 999, to w/e mob count you want
12/03/2009 00:59 sachamo512#3
mov [ecx+90],00000000 //dwReSummonsMonsterTick

that's the time in between spawns
12/03/2009 03:34 Cloudstrife01235#4
Quote:
Originally Posted by sachamo512 View Post
mov [ecx+90],00000000 //dwReSummonsMonsterTick

that's the time in between spawns
So like, if I wanted it to wait 30 seconds between each spawn, I would change it to... what? It seems like I should change it to the 30, but that would mean that the 90 is 90 seconds between spawns, which when the mobs are spawning it's DEFINITELY more than 90 seconds.

Unless you mean I change the 0000000 number, for example :

00000030, would that be 30 seconds?
12/03/2009 03:41 Syberboy#5
it's because you dont give yourself a limit as to how many mobs will spawn.
mov [ecx+94],99999999 //dwMaxSummonsMonsterCount
change the 99999999 into something you can kill within time. So like say put 60 instead of all those 9's and they will stop spawning at 60, once it goes below 30 spawns they will start spawning again till there is 60. Get what im saying?
12/03/2009 03:44 Cloudstrife01235#6
Quote:
Originally Posted by Syberboy View Post
it's because you dont give yourself a limit as to how many mobs will spawn.
mov [ecx+94],99999999 //dwMaxSummonsMonsterCount
change the 99999999 into something you can kill within time. So like say put 60 instead of all those 9's and they will stop spawning at 60, once it goes below 30 spawns they will start spawning again till there is 60. Get what im saying?

So that number is the limit of how many monsters are being spawned... So I change the 99999999 to 00000060?

And also... In the case of the Maganitas, because each of them spawn more, not just one, that limit is for each of them. Which would also mean that i'm still screwed, unless I put the limit at like 1, which would make each one be able to only spawn 1 Maganita?
12/03/2009 03:52 Syberboy#7
No just 60 not need for all those zeors
And no when i say limit im saying how many there are in total. Even if each mag were to spawn 13563526 if you set the limit you 60 they can only spawn 60 in total.
12/03/2009 04:06 Cloudstrife01235#8
Quote:
Originally Posted by Syberboy View Post
No just 60 not need for all those zeors
And no when i say limit im saying how many there are in total. Even if each mag were to spawn 13563526 if you set the limit you 60 they can only spawn 60 in total.
Oh alright thanks guys for the help. And thanks for explaining things, It's nice to learn what i'm doing instead of just doing it without knowing wth im changing lol.
12/03/2009 05:04 sachamo512#9
Quote:
Originally Posted by Cloudstrife01235 View Post
So like, if I wanted it to wait 30 seconds between each spawn, I would change it to... what? It seems like I should change it to the 30, but that would mean that the 90 is 90 seconds between spawns, which when the mobs are spawning it's DEFINITELY more than 90 seconds.

Unless you mean I change the 0000000 number, for example :

00000030, would that be 30 seconds?
That time is in milliseconds, not just seconds. 1000 ms = 1s, so if you want 30 seconds, you would actually to 30000. 90 seconds would be 90000. 30 is every 1/33 of a second or something like that...
12/03/2009 05:46 bottomy#10
Quote:
Originally Posted by sachamo512 View Post
That time is in milliseconds, not just seconds. 1000 ms = 1s, so if you want 30 seconds, you would actually to 30000. 90 seconds would be 90000. 30 is every 1/33 of a second or something like that...

also remember that it's hex value that CE scripts use not decimal.

but like said above easiest way would just to be to edit the max amount that will be spawned. cause then you can damage all of them at once but still not be over run with them.
12/03/2009 17:07 sachamo512#11
Quote:
Originally Posted by bottomy View Post
also remember that it's hex value that CE scripts use not decimal.
I forgot about that part...so you would have to take 30000 and covert it into hex, and then put that number into the monstertick line.
12/03/2009 22:12 Cloudstrife01235#12
Quote:
Originally Posted by sachamo512 View Post
I forgot about that part...so you would have to take 30000 and covert it into hex, and then put that number into the monstertick line.
Sounds too annoying, i think i'll just stick with the max amount that can spawn.

So i'd change it from 99999999 to 60?
12/03/2009 23:46 bottomy#13
Quote:
Originally Posted by Cloudstrife01235 View Post
Sounds too annoying, i think i'll just stick with the max amount that can spawn.

So i'd change it from 99999999 to 60?

well do you want 60 mobs to spawn or 96?
12/04/2009 00:40 Cloudstrife01235#14
60, it's OK i got it. Just did a DF and they spawned fine, fortunately two Mage party members helped me (thnx again, btw) cuz as a summoner with crappy blades killing them myself would not have been fast at all.

Thanks for the help, guys.