BBot - The best bot of the world
exori with party - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: exori with party (/thread-20674.html)



exori with party - zarize - 04-21-2017

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


RE: exori with party - MegaNo0body - 04-21-2017

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



RE: exori with party - zarize - 04-21-2017

(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