Log In
Sign Up
Go Gold
Home
Forum
Mail
Downloads
Game Search
Macro Editor
Notes
Membership
A_Castellan_of_Air.pl - Quest File
General Info
Quest File
#This script causes the Castellans of Air to spawn 1-4 Vengeful Air Spirits on their death 95% of the time and to spawn Inlokher the Warlord 5% of the time. sub EVENT_DEATH_COMPLETE { quest::signalwith(215483,0,0); # NPC: #Chamberlain_Trigger my $Chance = quest::ChooseRandom(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20); my $x = $npc->GetX(); my $y = $npc->GetY(); my $z = $npc->GetZ(); my $h = $npc->GetHeading(); if ($Chance == 20) { quest::spawn2(215064,0,0,$x,$y,$z,$h); # NPC: #Inlokher_the_Warlord } elsif ($Chance >= 1 && $Chance < 6) { quest::spawn2(215063,0,0,$x-5,$y,$z,$h); # NPC: A_Vengeful_Airspirit } elsif ($Chance >= 6 && $Chance < 11) { quest::spawn2(215063,0,0,$x-5,$y,$z,$h); # NPC: A_Vengeful_Airspirit quest::spawn2(215063,0,0,$x+5,$y,$z,$h); # NPC: A_Vengeful_Airspirit } elsif ($Chance >= 11 && $Chance < 16) { quest::spawn2(215063,0,0,$x-5,$y,$z,$h); # NPC: A_Vengeful_Airspirit quest::spawn2(215063,0,0,$x+5,$y,$z,$h); # NPC: A_Vengeful_Airspirit quest::spawn2(215063,0,0,$x,$y+5,$z,$h); # NPC: A_Vengeful_Airspirit } elsif ($Chance >= 16 && $Chance < 20) { quest::spawn2(215063,0,0,$x-5,$y,$z,$h); # NPC: A_Vengeful_Airspirit quest::spawn2(215063,0,0,$x+5,$y,$z,$h); # NPC: A_Vengeful_Airspirit quest::spawn2(215063,0,0,$x,$y+5,$z,$h); # NPC: A_Vengeful_Airspirit quest::spawn2(215063,0,0,$x,$y-5,$z,$h); # NPC: A_Vengeful_Airspirit } } #Submitted by Jim Mills
Source: 17 Jan 2022
Quest Source: 28 May 2022