EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Custom (https://www.eqemulator.org/forums/forumdisplay.php?f=671)
-   -   Fabled spawn code with server shout (https://www.eqemulator.org/forums/showthread.php?t=34360)

bodi 10-17-2011 08:11 PM

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");
        }
}



All times are GMT -4. The time now is 04:56 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.