summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-18 04:02:52 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-18 04:02:52 -0300
commit802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d (patch)
treee09b3aafeaad9251fbcdcf146960bab4df12f0ee /npc/functions
parente28a3651adad1c976e5286c356e7eca21f6234cf (diff)
downloadserverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.gz
serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.bz2
serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.tar.xz
serverdata-802c15e6a7f4c07b7fe0a7ed47d1defbcce4824d.zip
Aegis Shield Blackbox
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/hub.txt2
-rw-r--r--npc/functions/util.txt11
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 {