diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/hub.txt | 2 | ||||
-rw-r--r-- | npc/functions/util.txt | 11 |
2 files changed, 13 insertions, 0 deletions
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 { |