Difference between revisions of "Bg monster set team"

From Hercules Wiki
Jump to: navigation, search
(Created page with "== Syntax == * bg_monster_set_team <GID>,<Battle Group>; == Description == This command will change the allegiance if a monster in battlegrounds. GID can be set when ...")
 
m (mapannounce syntax broken ... also found this on doc/script_commands.txt too)
 
Line 9: Line 9:
 
   
 
   
 
  OnEnable:
 
  OnEnable:
  [[mapannounce]] "A guardian has been summoned for Battle Group 2!",bc_map,"0xFFCE00";
+
  [[mapannounce]] "bat_b01", "A guardian has been summoned for Battle Group 2!", bc_map, 0xFFCE00;
 
  [[set]] $@Guardian, [[bg_monster]]($@BG_2,"bat_a01",268,204,"Guardian",1949,"NPCNAME::OnMyMobDead");
 
  [[set]] $@Guardian, [[bg_monster]]($@BG_2,"bat_a01",268,204,"Guardian",1949,"NPCNAME::OnMyMobDead");
 
  [[initnpctimer]];
 
  [[initnpctimer]];
Line 16: Line 16:
 
  [[OnTimer]]1000:
 
  [[OnTimer]]1000:
 
  [[stopnpctimer]];
 
  [[stopnpctimer]];
  [[mapannounce]] "Erm, sorry about that! This monster was meant for Battle Group 1.",bc_map,"0xFFCE00";
+
  [[mapannounce]] "bat_b01", "Erm, sorry about that! This monster was meant for Battle Group 1.", bc_map, 0xFFCE00;
 
  [[bg_monster_set_team]] $@Guardian, $@BG_1;
 
  [[bg_monster_set_team]] $@Guardian, $@BG_1;
 
  [[end]];
 
  [[end]];
  
 
[[Category:Script Command]]
 
[[Category:Script Command]]

Latest revision as of 15:09, 5 December 2015

Syntax

  • bg_monster_set_team <GID>,<Battle Group>;

Description

This command will change the allegiance if a monster in battlegrounds. GID can be set when spawning the monster via the bg_monster command.

Examples

	end;

OnEnable:
	mapannounce "bat_b01", "A guardian has been summoned for Battle Group 2!", bc_map, 0xFFCE00;
	set $@Guardian, bg_monster($@BG_2,"bat_a01",268,204,"Guardian",1949,"NPCNAME::OnMyMobDead");
	initnpctimer;
	end;

OnTimer1000:
	stopnpctimer;
	mapannounce "bat_b01", "Erm, sorry about that! This monster was meant for Battle Group 1.", bc_map, 0xFFCE00;
	bg_monster_set_team $@Guardian, $@BG_1;
	end;