Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attack monsters when 2 or more
#6
(10-18-2016, 01:30 PM)halucyfer Wrote: Okey but when i want to use it on calassa quaras i just need to make X coppies of it and in all name another monster ?

No. u can summarize them...

for example this

helle:=Creatures.ByRangeName(8, Hellspawn)
counts hellspawns
and
this would count demons
demce:=Creatures.ByRangeName(8, Demon)

U can create new variable to add them up

mobs:=!helle! (first it copies value of helle into mobs)
VarAdd(mobs, !demce!) (now it adds number of demce to it.)

Then instead using this in macro i gave u !helle!>=2 [zabij]
u need to use this
!mobs!>=2 [zabij]



Same thing goes to that Timer macro (just use different name for Summarized variable

[macro]500 {mobtimer}
demce:=Creatures.ByRangeName(8, Demon)
helle:=Creatures.ByRangeName(8, Hellspawn)
mobbs:=!demce!
VarAdd(mobbs, !helle!)
!mobbs!>=1 [ad]
VarAdd(mobtime, 1)
exit()
{ad}
mobtime:=0
exit()
[/macro]



there is also one more thing u can do with it, but it wont be perfect, like putting specific names of creatures..

You can simly count ALL monsters on screen and use that number to decide whether turn on killer or not..

But as u could see on video, in my case it would count fire elementals, which i simply dont care about.







BBOT macro language is very easy once u understand syntax....

and allows you to make almost anything u want ;d


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)