Maprespawnguildid

Fatalis

New member
Messages
90
Points
0
can i request some source like the MapRespawnGuildID

but not guild it read a variable teamwar

please help
 

like this

here's my source of my teamwar [ from Clydelion ]
pc.c
Code:
sd->state.team = pc_readaccountreg(sd,"#teamwar");
pc.h
Code:
unsigned short team;
then the maprespawnguildid

Code:
static int buildin_maprespawnteamid_sub_pc(struct map_session_data* sd, va_list ap){	int16 m=va_arg(ap,int);	int team_id=va_arg(ap,int);	int flag=va_arg(ap,int);	if(!sd || sd->bl.m != m)		return 0;	if(		(sd->status.team == team_id && flag&1) || //Warp out owners		(sd->status.team != team_id && flag&2) || //Warp out outsiders	)		pc_setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,CLR_TELEPORT);	return 1;}
Code:
BUILDIN_FUNC(maprespawnteamid){	const char *mapname=script_getstr(st,2);	int team_id=script_getnum(st,3);	int flag=script_getnum(st,4);	int16 m=map_mapname2mapid(mapname);	if(m == -1)		return 0;	//Catch ALL players (in case some are 'between maps' on execution time)	map_foreachpc(buildin_maprespawnteamid_sub_pc,m,team_id,flag);	return 0;}
 
 
Last edited by a moderator:
Back
Top