sandy
06-19-2004, 10:03 AM
here are the npcs of the quest :
INSERT INTO `npc_types` VALUES (221000, 'Terris_Thule', NULL, 70, 257, 1, 1, 200000, 2, 0, 0, '30', 0, 0, 16119, 0, 32, 5, 390, 850, 'SEQ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0', '0', 0, 0, 0, 0, 0, 0, 1, 1, 0, 0);
INSERT INTO `npc_types` VALUES (221009, 'A_Grotesque_Statue', NULL, 62, 280, 1, 1, 40000, 2, 0, 0, '25', 0, 0, 16000, 0, 0, 5, 300, 650, 'Q', 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0.67', '1.25', 0, 0, 0, 0, 0, 0, 1, 1, 0, 0);
INSERT INTO `npc_types` VALUES (221005, '_', NULL, 60, 280, 1, 11, 18000, 2, 0, 0, '25', 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0.67', '1.25', 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
INSERT INTO `npc_types` VALUES (221010, 'A_Dream_Defiler', NULL, 59, 264, 9, 8, 25000, 2, 0, 0, '8', 0, 0, 16000, 0, 0, 5, 0, 340, '', 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0.67', '1.25', 0, 0, 0, 0, 0, 0, 1, 0, 0, 0);
Terris Thule ( npc 221000 ) is a god, her fight is an event that depends of her hit points percentage :
at start, she is in the center of her lair, there is 4 pillars and on each pillar there is an untargetable gargoyle ( npc 221005 ) :
at 75 % life : 10 dream defilers ( npc 221010 ) appear in the lair
at 50 % life : Terris Thule casts an aoe Dispell 12 slots : ( spell 3150 )
at 30 % life : the 4 untargetable gargoyles ( npc 221005 ) become targetable, in fact each gargoyle depop and repop in a targetable gargoyle ( npc 221009 )
Here are the files I have done :
221000.pl
sub EVENT_SPAWN
{
quest::setnexthpevent(75);
}
sub EVENT_HP
{
# butterflies spawn
if ( $hpevent == 75 ) {
# quest::shout("Script : Butterflies");
quest::spawn(221010,0,0,-1940,93,134,163);
quest::spawn(221010,0,0,-1868,142,134,146);
quest::spawn(221010,0,0,-1826,142,134,124);
quest::spawn(221010,0,0,-1763,77,134,114);
quest::spawn(221010,0,0,-1715,2,134,64);
quest::spawn(221010,0,0,-1715,-40,134,61);
quest::spawn(221010,0,0,-1755,-112,134,14);
quest::spawn(221010,0,0,-1826,-144,134,5);
quest::spawn(221010,0,0,-1870,-143,134,251);
quest::spawn(221010,0,0,-1944,-90,134,229);
quest::setnexthpevent(50);
}
# aoe dispell
if ( $hpevent == 50 ) {
# quest::shout("Script : Dispell");
quest::selfcast(3150);
quest::setnexthpevent(30);
}
# gargoyles awake
if ( $hpevent == 30 ) {
# quest::shout("Script : Gargoyles");
quest::signal(221005);
}
}
221005.pl
sub EVENT_SIGNAL
{
quest::depop();
quest::spawn(221009,0,0,$x,$y,$z,$h);
}
I have made Terris Thule permarooted ( walkspeed and runspeed = 0 ) so people can't exploit the fight by pulling her out of her lair because in eqlive when it is done she warp back to the center of her lair and i don't know how to do it =)
I have tried, all seems to work except the fact she doesn't cast the aoe dispell i don't understand why =(
any idea ?
INSERT INTO `npc_types` VALUES (221000, 'Terris_Thule', NULL, 70, 257, 1, 1, 200000, 2, 0, 0, '30', 0, 0, 16119, 0, 32, 5, 390, 850, 'SEQ', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0', '0', 0, 0, 0, 0, 0, 0, 1, 1, 0, 0);
INSERT INTO `npc_types` VALUES (221009, 'A_Grotesque_Statue', NULL, 62, 280, 1, 1, 40000, 2, 0, 0, '25', 0, 0, 16000, 0, 0, 5, 300, 650, 'Q', 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0.67', '1.25', 0, 0, 0, 0, 0, 0, 1, 1, 0, 0);
INSERT INTO `npc_types` VALUES (221005, '_', NULL, 60, 280, 1, 11, 18000, 2, 0, 0, '25', 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0.67', '1.25', 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
INSERT INTO `npc_types` VALUES (221010, 'A_Dream_Defiler', NULL, 59, 264, 9, 8, 25000, 2, 0, 0, '8', 0, 0, 16000, 0, 0, 5, 0, 340, '', 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, '0.67', '1.25', 0, 0, 0, 0, 0, 0, 1, 0, 0, 0);
Terris Thule ( npc 221000 ) is a god, her fight is an event that depends of her hit points percentage :
at start, she is in the center of her lair, there is 4 pillars and on each pillar there is an untargetable gargoyle ( npc 221005 ) :
at 75 % life : 10 dream defilers ( npc 221010 ) appear in the lair
at 50 % life : Terris Thule casts an aoe Dispell 12 slots : ( spell 3150 )
at 30 % life : the 4 untargetable gargoyles ( npc 221005 ) become targetable, in fact each gargoyle depop and repop in a targetable gargoyle ( npc 221009 )
Here are the files I have done :
221000.pl
sub EVENT_SPAWN
{
quest::setnexthpevent(75);
}
sub EVENT_HP
{
# butterflies spawn
if ( $hpevent == 75 ) {
# quest::shout("Script : Butterflies");
quest::spawn(221010,0,0,-1940,93,134,163);
quest::spawn(221010,0,0,-1868,142,134,146);
quest::spawn(221010,0,0,-1826,142,134,124);
quest::spawn(221010,0,0,-1763,77,134,114);
quest::spawn(221010,0,0,-1715,2,134,64);
quest::spawn(221010,0,0,-1715,-40,134,61);
quest::spawn(221010,0,0,-1755,-112,134,14);
quest::spawn(221010,0,0,-1826,-144,134,5);
quest::spawn(221010,0,0,-1870,-143,134,251);
quest::spawn(221010,0,0,-1944,-90,134,229);
quest::setnexthpevent(50);
}
# aoe dispell
if ( $hpevent == 50 ) {
# quest::shout("Script : Dispell");
quest::selfcast(3150);
quest::setnexthpevent(30);
}
# gargoyles awake
if ( $hpevent == 30 ) {
# quest::shout("Script : Gargoyles");
quest::signal(221005);
}
}
221005.pl
sub EVENT_SIGNAL
{
quest::depop();
quest::spawn(221009,0,0,$x,$y,$z,$h);
}
I have made Terris Thule permarooted ( walkspeed and runspeed = 0 ) so people can't exploit the fight by pulling her out of her lair because in eqlive when it is done she warp back to the center of her lair and i don't know how to do it =)
I have tried, all seems to work except the fact she doesn't cast the aoe dispell i don't understand why =(
any idea ?