U can use substraction - VarSub on a variable that counts number of players nearby in your safe macro if u have one
For example I show you what would I do for my Paladin script.
You can make similar for rune.
[macro]100 {PlayerTimer} Creatures.PlayersOnRange(4)>=2 [tim] antiPK:=0 exit() {tim} VarAdd(antiPK, 1) exit()[/macro]
That delays usage of my safe Mas San
[macro]0 {safe mas san} Self.Mana>=160 Self.Attacking()==1 Creatures.PlayersOnScreen()==01 !antiPK!>=!rsRNG! HUD.Display(mas san) Self.Say(exevo mas san) exit()[/macro]
[macro]2000 {rsRNG} rsRNG:=Misc.Random(30, 70) exit()[/macro]
You can make other variable
friend:=Creatures.ByName(YourFriendName)
then macros would look like
[macro]100 {PlayerTimer} friend:=Creatures.ByRangeName(4, YourFriendName) plr:=Creatures.PlayersOnRange(4) VarSub(plr, !friend!) !plr!>=2 [tim] antiPK:=0 exit() {tim} VarAdd(antiPK, 1) exit()[/macro]
[macro]0 {safe mas san} Self.Mana>=160 Self.Attacking()==1 friends:=Creatures.ByRangeName(4, YourFriendName) plrs:=Creatures.Creatures.PlayersOnRange(4) VarSub(plrs, !friends!) !plrs!==1 !antiPK!>=!rsRNG! HUD.Display(mas san) Self.Say(exevo mas san) exit()[/macro]
Basicly it would check number of players in certain range, and substract 1 from it, if a player with that name is in that range.
For example I show you what would I do for my Paladin script.
You can make similar for rune.
[macro]100 {PlayerTimer} Creatures.PlayersOnRange(4)>=2 [tim] antiPK:=0 exit() {tim} VarAdd(antiPK, 1) exit()[/macro]
That delays usage of my safe Mas San
[macro]0 {safe mas san} Self.Mana>=160 Self.Attacking()==1 Creatures.PlayersOnScreen()==01 !antiPK!>=!rsRNG! HUD.Display(mas san) Self.Say(exevo mas san) exit()[/macro]
[macro]2000 {rsRNG} rsRNG:=Misc.Random(30, 70) exit()[/macro]
You can make other variable
friend:=Creatures.ByName(YourFriendName)
then macros would look like
[macro]100 {PlayerTimer} friend:=Creatures.ByRangeName(4, YourFriendName) plr:=Creatures.PlayersOnRange(4) VarSub(plr, !friend!) !plr!>=2 [tim] antiPK:=0 exit() {tim} VarAdd(antiPK, 1) exit()[/macro]
[macro]0 {safe mas san} Self.Mana>=160 Self.Attacking()==1 friends:=Creatures.ByRangeName(4, YourFriendName) plrs:=Creatures.Creatures.PlayersOnRange(4) VarSub(plrs, !friends!) !plrs!==1 !antiPK!>=!rsRNG! HUD.Display(mas san) Self.Say(exevo mas san) exit()[/macro]
Basicly it would check number of players in certain range, and substract 1 from it, if a player with that name is in that range.