|
Post by Darth Maul on Jan 22, 2015 10:04:13 GMT
Auto cast spell if monster south of you
auto 2000 | listas 'auto cast spell - by Darth Maul' | foreach 'floorcreatures' $c {if [$c.posx == $self.posx && $c.posy == [$self.posy + 1] {say 'exori flam'}}
Using this script you can also check a number of other things about the monster that's south of you. You can check these by changing what the bot says. Instead of using a spell have it say: say '$c.name' say '$c.id' say '$c.hppc' say '$c.hp' say '$c.speed'
You could also make the bot both use a spell, and attack the monster south of you by using this script:
auto 2000 | listas 'auto cast spell - by Darth Maul' | foreach 'floorcreatures' $c {if [$c.posx == $self.posx && $c.posy == [$self.posy + 1] {say 'exori flam' | attack $c.id}}
|
|