Jump to content
  • 0
Sign in to follow this  
Fatalis

Maprespawnguildid

Question

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
sd->state.team = pc_readaccountreg(sd,"#teamwar");

pc.h
unsigned short team;


then the maprespawnguildid

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;}


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;}

 
Edited by Fatalis

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.