diff --git a/doc/script_commands.txt b/doc/script_commands.txt index db851128f59..b74a231d3db 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -9616,6 +9616,11 @@ is run when they relog. refers to an NPC label that attaches to the character and is run when they die. Can be "" for empty. +If "-" is supplied for , this will remove the 1 second automatic +respawn on the battleground map. This allows for better manipulation of +. The player will have to be warped to desired location +at the end of . + Unlike the prior command, the latter will attach a GROUP in a waiting room to the battleground, and sets the array $@arenamembers[0] where 0 holds the IDs of the first group, and 1 holds the IDs of the second. @@ -9747,6 +9752,8 @@ mapflag%TAB%%TAB%battleground%TAB%2 This command will create a new BG Team. When player dies, they will be respawned map_name,X,Y as mentioned. +If "-" is supplied for the map name, this will remove the 1 second automatic +respawn on the battleground map. Command will return -1 if BG Creation is failed, else it will return the BG ID(Also known as TeamID). diff --git a/src/map/script.c b/src/map/script.c index 7578fcdcc9a..8096ec47167 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -23687,7 +23687,7 @@ static BUILDIN(bg_create_team) if( strcmp(map_name,"-") != 0 ) { map_index = script->mapindexname2id(st,map_name); if( map_index == 0 ) { // Invalid Map - script_pushint(st,0); + script_pushint(st, -1); return true; } }