Jump to content

  •  

Only4fun

Member Since 11 Apr 2014
Offline Last Active Feb 07 2017 12:42 AM
-----

#44210 [Help] Battleground script

Posted by Only4fun on 25 September 2014 - 07:36 PM

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]src/map/pc.c[/color]
	} else if( sd->bg_id ) {		struct battleground_data *bgd = bg->team_search(sd->bg_id);		if( bgd && bgd->mapindex > 0 ) { // Respawn by BG			if(strcmp( mapindex_id2name(sd->mapindex), "guild_vs3" )){				timer->add(tick+1000, pc->respawn_timer, sd->bl.id, 0);				return 1|8;			}		}	}
Change "guild_vs3" to your map and recompile.
 
Or you can use:
.red=createbgid("",0,0,strnpcinfo(3)+"::OnRedQuit",strnpcinfo(3)+"::OnRedDead");
This way the respawn map do not exist, and will display a little error in map-server, what don't disrupts nothing.