Page 1 of 1

Check if bot is current party leader?

Posted: Sat Mar 31, 2012 7:43 am
by Edamh
Is there a function that I can use to check if a bot is the current party leader? For example, I want to perform A, B, and C if bot is party leader, but only A and B not C if bot is only member of party. Is there a way to check party status -- either leader or member?

Thanks.

Re: Check if bot is current party leader?

Posted: Sat Mar 31, 2012 12:00 pm
by rock5
I do that in one of my scripts. Try this

Code: Select all

if RoMScript("IsPartyLeader(UnitName(\"player\"))") then