• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Elf bot script for certain monster

Sengoku

New Member
Joined
Nov 21, 2019
Messages
2
Reaction score
1
Does anyone know what command I can use to shot UE only when certain number of certain monsters around?

Currently I'm using script:
auto 200 if [$monstersaround.3 >= 4 && $playersaround.10 == 0 && $mp >= 1100] {say Exevo Gran Mas Flam}

However this one shots UE anytime when 4 monsters around in distance of 3 sqm. I'd like to change it to for example shot UE when 4 lizards around in distance of 3, but do not count other monsters, for example 2 lizards, 1 snake and 1 bug.
 
Last edited:
Maybe this can help you:
Code:
auto 300 listas 'AutoSpellByMonster' | set $mma 0 | foreach 'allmonsters' m { if [m.name == 'Rat'] { inc $mma } } | if [$mma >= 4] { say 'exevo gran mas frigo' } | clear $mma
 
If the reply above doesn't help I advice you posting there
You'll get faster help related to Elfbot
 
Maybe this can help you:
Code:
auto 300 listas 'AutoSpellByMonster' | set $mma 0 | foreach 'allmonsters' m { if [m.name == 'Rat'] { inc $mma } } | if [$mma >= 4] { say 'exevo gran mas frigo' } | clear $mma

Hi Sarah, thanks for this, I'll test it later on today, but before I have some questions:)
What is $mma? Is this a counter and "if [m.name == 'Rat'] { inc $mma }" increase the counter for every "rat" on screen? Then when $mma >= 4 it shots UE? What about distance?
What is foreach 'allmonsters' m? What means every part of it, so "foreach", "'allmonsters'" and "m"?

Cheers,
 
Hi Sarah, thanks for this, I'll test it later on today, but before I have some questions:)
What is $mma? Is this a counter and "if [m.name == 'Rat'] { inc $mma }" increase the counter for every "rat" on screen? Then when $mma >= 4 it shots UE? What about distance?
What is foreach 'allmonsters' m? What means every part of it, so "foreach", "'allmonsters'" and "m"?

Cheers,
for the distance use:
Code:
 if [m.name == 'Rat' && m.distance <= 4]
 
Back
Top