BBot - The best bot of the world

Full Version: exori with party
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Catar, as u are macro specialist could i ask you for help? Tongue
Want to edit my exori script to work with my 2nd char in party
Quote:[Self.Mana>=120
Self.Attacking()==1
Creatures.PlayersOnRange(1)<=1 [else4]
!antiPK!>=!rsRNG! [else4]
Self.Say(exori gran)
Self.Say(exori)
Exit()
{else4}
Self.Say(Exori gran ico)
Self.Say(exori ico)
Exit()
[quote]
So far it ll use single spell for 1 monster and ll use aoe for +2 monsters if no player in close range. But i want to use exori in scenario like: 2 monsters on screen, no player on close range EXCEPT char in my party. I mean, my 2nd char shouldnt be recognized as dangerous, as player
The changes are that now your safe condition must consider party as well, so:
Code:
Creatures.PlayersOnRange(1)<=1

Should consider party, something similar to:

Code:
TotalPlayersBeside:=Creatures.PlayersOnRange(1)
TotalPartyBeside:=Creatures.OnRangeParty(1)
TotalNonPartyBeside:=Dec(!TotalPlayersBeside, !TotalPartyBeside)
!TotalNonPartyBeside<=1
(04-21-2017, 05:56 PM)MegaNo0body Wrote: [ -> ]The changes are that now your safe condition must consider party as well, so:
Code:
Creatures.PlayersOnRange(1)<=1

Should consider party, something similar to:

Code:
TotalPlayersBeside:=Creatures.PlayersOnRange(1)
TotalPartyBeside:=Creatures.OnRangeParty(1)
TotalNonPartyBeside:=Dec(!TotalPlayersBeside, !TotalPartyBeside)
!TotalNonPartyBeside<=1

Thanks Smile