Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attack monsters when 2 or more
#4
THIS MACRO WONT WORK ON NEW BBOT VERSION
HERE IS UPDATED


Maybe some explanation how it works will be usefll.

It will start attacking hellspawns when 2 or more on screen.
But also it will start attacking when there is one hellspawn for OVER 3 SECOND on screen.
This is why i have !helltime!>=6 there

you need 2 macros for this

This is main macro, that setups killer on/off

[macro]500 {Lure}
helle:=Creatures.ByRangeName(8, Hellspawn)
ilem:=Creatures.ByRange(5)
!helle!>=2 [zabij]
Killer.Start()
HUD.Print(2, 1, 200, 222, 250, 500, Attack)
Exit()
{zabij}
!helltime!>=6 [zabij2]
Killer.Start()
HUD.Print(2, 1, 200, 222, 250, 500, Attack)
exit()
{zabij2}
Killer.Stop()
HUD.Print(2, 1, 200, 222, 250, 500, Lure)
Exit()
{poziom}
!ilem!()>=2
Misc.StandTime()>2
Killer.Start()
HUD.Print(2, 1, 200, 222, 250, 500, Attack)
Exit()
[/macro]

And macro that times how long it sees hellspawn (adds 1 every half second, so if variable helltime reaches 6, lure macro will start attacking)

[macro]500 {helltimer}
Creatures.ByRangeName(5, Hellspawn)>=1 [ad]
VarAdd(helltime, 1)
exit()
{ad}
helltime:=0
exit()
[/macro]


Messages In This Thread
Attack monsters when 2 or more - by halucyfer - 10-15-2016, 10:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)