Check if bot is current party leader?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Edamh
Posts: 106
Joined: Tue May 24, 2011 11:56 pm

Check if bot is current party leader?

#1 Post by Edamh » Sat Mar 31, 2012 7:43 am

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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Check if bot is current party leader?

#2 Post by rock5 » Sat Mar 31, 2012 12:00 pm

I do that in one of my scripts. Try this

Code: Select all

if RoMScript("IsPartyLeader(UnitName(\"player\"))") then
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests