Jump to content
  • 0
Sign in to follow this  
evilpuncker

Keep GM on map after Emperium breaks

Question

Hello, I want to request a mod that would change the actual behavior:

 

 

actual: when emp got destroyed everyone except the guild that broke it will be warped out, even GMs (lvl 99 if possible)

 

 

what I want: when emp got destroyed everyone except the guild that broke it and GMs (lvl 99 if possible), will be warped out

 

 

Hope it is clear :)

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

script.c

int buildin_maprespawnguildid_sub_pc(struct map_session_data* sd, va_list ap){	int16 m=va_arg(ap,int);	int g_id=va_arg(ap,int);	int flag=va_arg(ap,int);	if(!sd || sd->bl.m != m)		return 0;	if(	    (sd->status.guild_id == g_id && flag&1) //Warp out owners	 || (sd->status.guild_id != g_id && flag&2) //Warp out outsiders	 || (sd->status.guild_id == 0)              // Warp out players not in guild [Valaris]	  )		pc->setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,CLR_TELEPORT);	return 1;}
add if ( pc_get_group_level(sd) < 99 ) somewhere inside here

sure you can do it yourself

Share this post


Link to post
Share on other sites
  • 0

 

thanks annie, just tested and it works flawlessly :) I love you

hello could you tell me where u put if ( pc_get_group_level(sd) < 99 )?

 

 

int buildin_maprespawnguildid_sub_pc(struct map_session_data* sd, va_list ap){	int16 m=va_arg(ap,int);	int g_id=va_arg(ap,int);	int flag=va_arg(ap,int);	if(!sd || sd->bl.m != m)		return 0;	if(pc_get_group_level(sd) == 99)		return 0;	if(	    (sd->status.guild_id == g_id && flag&1) //Warp out owners	 || (sd->status.guild_id != g_id && flag&2) //Warp out outsiders	 || (sd->status.guild_id == 0)              // Warp out players not in guild [Valaris]	  )		pc->setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,CLR_TELEPORT);	return 1;}

Share this post


Link to post
Share on other sites
  • 0

 

 

thanks annie, just tested and it works flawlessly :) I love you

hello could you tell me where u put if ( pc_get_group_level(sd) < 99 )?

 

 

int buildin_maprespawnguildid_sub_pc(struct map_session_data* sd, va_list ap){	int16 m=va_arg(ap,int);	int g_id=va_arg(ap,int);	int flag=va_arg(ap,int);	if(!sd || sd->bl.m != m)		return 0;	if(pc_get_group_level(sd) == 99)		return 0;	if(	    (sd->status.guild_id == g_id && flag&1) //Warp out owners	 || (sd->status.guild_id != g_id && flag&2) //Warp out outsiders	 || (sd->status.guild_id == 0)              // Warp out players not in guild [Valaris]	  )		pc->setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,CLR_TELEPORT);	return 1;}

+1  :meh:

Share this post


Link to post
Share on other sites

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.