BBot - The best bot of the world
Use Aoe Runes when no players, but party member is around. - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Use Aoe Runes when no players, but party member is around. (/thread-20558.html)



Use Aoe Runes when no players, but party member is around. - Matez93 - 02-10-2017

Is there any way to rewrite a party member as a monster or maybe ignore the player nickname or something else? so 2 chars can exp together with AOEs without making a skull?


RE: Use Aoe Runes when no players, but party member is around. - Catar - 02-10-2017

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.


RE: Use Aoe Runes when no players, but party member is around. - Matez93 - 02-10-2017

Its like a black magic Big Grin

I copy these macros and changed "YourFriendName" to mine second RP but nothing happens.
How to use it?

For Example i want to use MAS SAN, when 3 monsters around or 3 monsters and my SECOND RP.
For You its propably easy, but im beginner as macro writer, looking forward Smile


This how my safe san looks like

800 {Exevo mas san}
Self.Attacking==01
Self.Mana>=400
Creatures.Beside>=3
Creatures.PlayersOnScreen==01
Self.Say(exevo mas san)


RE: Use Aoe Runes when no players, but party member is around. - Catar - 02-10-2017

DONT USE AUTO MACROS FOR ATTACKS!!!!

THats what advanced attack is for.
check mine scripts

\/