Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
exori with party
#1
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
Reply
#2
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
Reply
#3
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)