View Single Post
  #4  
Old 03-28-2012, 12:21 AM
oslander
Sarnak
 
Join Date: Aug 2010
Posts: 33
Default

Figured it out. It was actually easier than I thought and all I had to do was put the name of the npc file from the spell into the quest/templates folder and when that npc is spawned by the temporary spell each one of those npcs change to something random.

Code:
#Put in eqemu/quests/templates folder.  Name it NPCname.pl

sub EVENT_SPAWN
{

my $randomrace = quest::ChooseRandom(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 128, 130, 330, 522);
my $randomgender = quest::ChooseRandom(0, 1);
quest::npcgender($randomgender);
quest::npcrace($randomrace);

}


Question: What would I need to add to this to get all of these NPC's to change to the right size? I tried the line of If $randomrace == X but they don't seem to work.
Reply With Quote