• 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!

Attack all players but if they are not in pz

Warmix

New Member
Joined
Mar 28, 2010
Messages
18
Solutions
1
Reaction score
2
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:

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:
Back
Top