2016-06-21 08:44:14 -04:00
function event_enter_zone ( e )
e.self : ClearCompassMark ( ) ;
local qglobals = eq.get_qglobals ( e.self ) ;
2016-08-16 10:23:04 -04:00
if ( qglobals [ " Fatestealer " ] == " 1 " and qglobals [ " hpb_zone_emote " ] == nil ) then
2016-06-21 08:44:14 -04:00
eq.set_timer ( " s1 " , 5000 ) ;
eq.set_timer ( " s2 " , 10000 ) ;
eq.set_timer ( " s3 " , 15000 ) ;
eq.set_global ( " hpb_zone_emote " , " 1 " , 3 , " 1H " ) ;
2020-12-26 14:00:52 -06:00
elseif qglobals [ " pre_pal " ] == " 2 " then
2023-08-13 17:16:42 -04:00
e.self : Message ( MT.Yellow , " Your sword piece reverberates with a low hum. An attraction is felt within it. To the center of this plane you are drawn, towards the direction of that attraction. " ) ;
2016-06-21 08:44:14 -04:00
end
end
2020-12-26 14:00:52 -06:00
2016-06-21 08:44:14 -04:00
function event_loot ( e )
2016-06-21 10:21:40 -04:00
if ( e.self : Class ( ) == " Rogue " and e.item : GetID ( ) == 52337 ) then
2016-06-21 08:44:14 -04:00
local qglobals = eq.get_qglobals ( e.self ) ;
2016-06-21 10:21:40 -04:00
if ( qglobals [ " Fatestealer " ] == " 1 " and qglobals [ " rogue_hate_chest " ] == nil ) then
2016-06-21 08:44:14 -04:00
eq.spawn2 ( 283157 , 0 , 0 , e.self : GetX ( ) , e.self : GetY ( ) , e.self : GetZ ( ) , e.self : GetHeading ( ) ) ; -- #a chest (Epic 1.5)
eq.set_global ( " rogue_hate_chest " , " 1 " , 5 , " F " ) ;
end
end
end
function event_timer ( e )
if ( e.timer == " s1 " ) then
2023-08-13 17:16:42 -04:00
eq.zone_emote ( MT.Red , " Innoruuk shouts, What? Once again I have been called away to the mortal realm! " ) ;
2016-06-21 08:44:14 -04:00
eq.stop_timer ( " s1 " ) ;
elseif ( e.timer == " s2 " ) then
2023-08-13 17:16:42 -04:00
eq.zone_emote ( MT.Red , " Innoruuk shouts, No. It is . . . someone else. " ) ;
2016-06-21 08:44:14 -04:00
eq.stop_timer ( " s2 " ) ;
elseif ( e.timer == " s3 " ) then
2023-08-13 17:16:42 -04:00
eq.zone_emote ( MT.Red , " Innoruuk shouts, Stay out of sight, and ignore any mortal fools that deign to trespass here. Remember, they are beneath us and not worthy of our attention. " ) ;
2016-06-21 08:44:14 -04:00
eq.stop_timer ( " s3 " ) ;
end
2020-12-26 14:00:52 -06:00
end