View Single Post
  #1  
Old 10-17-2011, 08:11 PM
bodi
Hill Giant
 
Join Date: May 2010
Posts: 105
Default Fabled spawn code with server shout

I can't stand the /camp to repop named or fableds, so I removed all PH using Georges' spawn group editor and changed named to 100% spawns. Then, I removed all fabled and added this script to the named that have fabled.

The result is, you have all named up, when you kill the named, there is a 5% chance that the fabled version will immediately spawn in his place. I have added a server wide shout, because everyone likes to see their badassery displayed to the server. Easily customizable to each named or whatever you want to spawn. Enjoy.

Code:
sub EVENT_DEATH
{
	my $random_result = int(rand(100));
	my $a=63096; #npc - Fabled Garanel Rucksif
	if($random_result<6)
	{
		
		quest::shout2 ("$name has spawned the Fabled Garanel Rucksif");
		quest::spawn2($a, 0, 0, 147,485,-33,0); 
#the 3 numbers that arent 0s are x,y,z loc of where u want him to spawn.
	}
	else
	{
		quest::say("Someday, I will return to strike you down, $name");
	}
}
Reply With Quote