now i know only how to checking if player is in party (max 5 players)
but it doesn't work for the RAID players...
can somebody help me if know how can i check if the player is in my RAID (when i have 10+ 20+ 50 players....)?
List<PartyMember> RaidMembers = getPartyMembers();
if (RaidMembrs != null && RaidMembers.Count > 5)
{
// We've confirmed we're in a party, and it's a raid.
if (me.isPartyMember) // Doing a second check just in case
{
// Do things here because i'm in a raid
}
}
List<PartyMember> RaidMembers = getPartyMembers();
int raidcount = partyMembersCount();
bool israid = (RaidMembers != null && raidcount > 5);
// We've confirmed we're in a party, and it's a raid.
if (israid && me.isPartyMember) // Doing a second check just in case
{
// Do things here because i'm in a raid
// You also have "raidcount" as a variable to play with
// along with "israid"
// Enjoy =]
}
Maybe itsCode:BotTypes.Raid
A nicer one:
but i need to check if other player around me - is in my raid or not...![]()
bool inparty = isPartyMember(String name);
bool inparty = isPartyMember(Creature obj);
Code:bool inparty = isPartyMember(String name); bool inparty = isPartyMember(Creature obj);
it is working for RAID players??
i am using isInMyPartyGroup - and it show true only for party(5 players) and false for all other players from raid...
foreach (var obj in getCreatures())
{
if (obj.type == BotTypes.Player && isPartyMember(obj))
{
// Do things
}
}
THANK YOU very much!![]()
foreach (var obj in getCreatures())
{
if (obj.type == BotTypes.Player && isPartyMember(obj))
{
// Do things
}
Thread.Sleep(10); // 0.01 Second between each creatures function
}