viewing paste topic/4593- getmemberaid sample | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
function    script  getmemberaid_display    {
    for ( .@i = 0; .@i < $@onlinecount; .@i++ )
        .@name$[.@i] = rid2name( $@onlineaid[.@i] );
    if ( $@onlinecount )
        .@list$ = implode( .@name$ , ", " );
    announce "Total "+ $@onlinecount +" players. "+ .@list$, bc_all;
    return;
}
 
//  return account_id of ALL online players
prontera,151,189,5  script  ALL_CLIENT  1_F_MARIA,{
    detachrid;
    getmemberaid ALL_CLIENT;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online players on the same map as attached RID
prontera,151,187,5  script  ALL_SAMEMAP 1_F_MARIA,{
    getmemberaid ALL_SAMEMAP;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online players on the defined map
prontera,153,187,5  script  ALL_SAMEMAP_morocc  1_F_MARIA,{
    detachrid;
    getmemberaid ALL_SAMEMAP, "morocc";
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online players within AREA_SIZE (default is 14, configure at conf\battle\client.conf)
prontera,151,185,5  script  AREA    1_F_MARIA,{
    getmemberaid AREA;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online players within the specific coordinates
prontera,153,185,5  script  AREA_coordinate 1_F_MARIA,{
    getmapxy .@map$, .@x, .@y, 0;
    detachrid;
    getmemberaid AREA, .@map$, .@x-1, .@y-1, .@x+1, .@y+1;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online party members of attached RID
prontera,151,183,5  script  PARTY   1_F_MARIA,{
    getmemberaid PARTY;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online party members from defined party ID
prontera,153,183,5  script  PARTY_id    1_F_MARIA,{
    .@pid = getcharid(1);
    detachrid;
    getmemberaid PARTY, .@pid;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online guild members of attached RID
prontera,151,181,5  script  GUILD   1_F_MARIA,{
    getmemberaid GUILD;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all online guild members from defined guild ID
prontera,153,181,5  script  GUILD_id    1_F_MARIA,{
    .@gid = getcharid(2);
    detachrid;
    getmemberaid GUILD, .@gid;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all battleground team members of attached RID
prontera,151,179,5  script  BG  1_F_MARIA,{
    getmemberaid BG;
    callfunc "getmemberaid_display";
    end;
}
 
//  return account_id of all battleground team members from defined battleground ID
prontera,153,179,5  script  BG_id   1_F_MARIA,{
    .@bgid = getcharid(4);
    detachrid;
    getmemberaid BG, .@bgid;
    callfunc "getmemberaid_display";
    end;
}
Viewed 1571 times, submitted by AnnieRuru.