From 802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 18 Feb 2021 04:02:52 -0300 Subject: Aegis Shield Blackbox --- npc/functions/hub.txt | 2 ++ npc/functions/util.txt | 11 +++++++++++ 2 files changed, 13 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 9974ae624..6f8378660 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -225,6 +225,8 @@ function script HUB_Logout { // Register logout time if (!.@dead) CHAREG_CLEANUP=gettimetick(2); + + callfunc "02524_Avenge_BlackBox", .@dead; return; } diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 1966ce6df..5d510a709 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -633,6 +633,17 @@ function script alignment { return 0; } +// Returns if you are a legendary weapon holder +// islegendary( {strcharinfo} ) +function script islegendary { + .@you$ = getarg(0, strcharinfo(0)); + return (.@you$ == $LIGHT_HOLDER$ || + .@you$ == $AEGIS_HOLDER$ || + .@you$ == $TYRAN_HOLDER$ || + .@you$ == $RUNES_HOLDER$ || + .@you$ == $DEMUR_HOLDER$); +} + // Returns if an event is a ranked Aurora Event or not // (Had to be moved from functions/aurora.txt) function script FYEventUsesRanking { -- cgit v1.2.3-60-g2f50