I found here script that attacks all player on screen for Elfbot. Yes, it's working but if there is PZ zone and one enemy stand into temple and another stand not info temple, sometimes script won't attack this player who is not standing into pz zone but still trying attack player who is in temple. I tried to repair this and wrote something like this:
or this one:
But it's not working - still attacks player into temple. How can I repair this?
Code:
auto 300 if [$inpz == 0] { attack enemy | sd enemy} | ifnot [$fired] { foreach 'allplayers' $aa if [$aa.name != $self.name && $aa.isfriend == 0 ] { if [$aa.isshootable] {setrelation '$aa.name' 'enemy' } } }
or this one:
Code:
auto 300 if [$inpz == 0] { attack enemy | sd enemy} | ifnot [$fired] { foreach 'allplayers' $aa if [$aa.name != $self.name && $aa.isfriend == 0 ] { attack $aa.name | sd $aa.name | if [$fired] {setrelation '$aa.name' 'enemy' } } }
But it's not working - still attacks player into temple. How can I repair this?
Last edited: