|
@@ -10220,35 +10220,6 @@ BUILDIN_FUNC(getusers)
|
|
|
return SCRIPT_CMD_SUCCESS;
|
|
|
}
|
|
|
|
|
|
-/*==========================================
|
|
|
- * Works like @WHO - displays all online users names in window
|
|
|
- *------------------------------------------*/
|
|
|
-BUILDIN_FUNC(getusersname)
|
|
|
-{
|
|
|
- TBL_PC *sd, *pl_sd;
|
|
|
- int /*disp_num=1,*/ group_level = 0;
|
|
|
- struct s_mapiterator* iter;
|
|
|
-
|
|
|
- sd = script_rid2sd(st);
|
|
|
- if (!sd) return 0;
|
|
|
-
|
|
|
- group_level = pc_get_group_level(sd);
|
|
|
- iter = mapit_getallusers();
|
|
|
- for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
|
|
|
- {
|
|
|
- if (pc_has_permission(pl_sd, PC_PERM_HIDE_SESSION) && pc_get_group_level(pl_sd) > group_level)
|
|
|
- continue; // skip hidden sessions
|
|
|
-
|
|
|
- /* Temporary fix for bugreport:1023.
|
|
|
- * Do not uncomment unless you want thousands of 'next' buttons.
|
|
|
- if((disp_num++)%10==0)
|
|
|
- clif_scriptnext(sd,st->oid);*/
|
|
|
- clif_scriptmes(sd,st->oid,pl_sd->status.name);
|
|
|
- }
|
|
|
- mapit_free(iter);
|
|
|
- return SCRIPT_CMD_SUCCESS;
|
|
|
-}
|
|
|
-
|
|
|
/*==========================================
|
|
|
* getmapguildusers("mapname",guild ID) Returns the number guild members present on a map [Reddozen]
|
|
|
*------------------------------------------*/
|
|
@@ -19451,7 +19422,6 @@ struct script_function buildin_func[] = {
|
|
|
#endif
|
|
|
BUILDIN_DEF(preg_match,"ss?"),
|
|
|
BUILDIN_DEF(dispbottom,"s?"), //added from jA [Lupus]
|
|
|
- BUILDIN_DEF(getusersname,""),
|
|
|
BUILDIN_DEF(recovery,"i???"),
|
|
|
BUILDIN_DEF(getpetinfo,"i"),
|
|
|
BUILDIN_DEF(gethominfo,"i"),
|